Public Member Functions

CropCallback Class Reference

Search for all occurrences

Detailed Description

See also:
Class Bitmap.

Description:
This class is available in release 2.0 and later only.

This class is a callback for interactive adjustment of bitmap "Cropping rectangle", passed in as an argument to the Bitmap::Display() method. See /MAXSDK/SAMPLES/MATERIALS/BMTEX.CPP for sample code.

All methods of this class are virtual.

#include <bitmap.h>

Inheritance diagram for CropCallback:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual float  GetInitU ()=0
virtual float  GetInitV ()=0
virtual float  GetInitW ()=0
virtual float  GetInitH ()=0
virtual BOOL  GetInitMode ()=0
virtual void  SetValues (float u, float v, float w, float h, BOOL md)=0
virtual void  OnClose ()=0

Member Function Documentation

virtual float GetInitU ( ) [pure virtual]
Remarks:
Returns the initial U value.
virtual float GetInitV ( ) [pure virtual]
Remarks:
Returns the initial V value.
virtual float GetInitW ( ) [pure virtual]
Remarks:
Returns the initial W value.
virtual float GetInitH ( ) [pure virtual]
Remarks:
Returns the initial H value.
virtual BOOL GetInitMode ( ) [pure virtual]
Remarks:
Returns TRUE for place mode; FALSE for crop mode. In crop mode the image is clipped at the edges. In place mode, the image is resized or moved.
virtual void SetValues ( float  u,
float  v,
float  w,
float  h,
BOOL  md 
) [pure virtual]
Remarks:
This method is called to set the values as the user is making adjustments. If the parameters may be animated, use Interface::GetTime() to retrieve the time they are being set for.
Parameters:
float u

The U parameter to set.

float v

The V parameter to set.

float w

The W parameter to set.

float h

The H parameter to set.

BOOL md

The mode being set. TRUE is place mode; FALSE is crop.
virtual void OnClose ( ) [pure virtual]
Remarks:
This method is called when the cropping adjustment window is closed.

CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback
CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback CropCallback