#include <AlImagePlane.h>
class AlImagePlane : public AlObject , public AlAnimatable , public AlPickable
enum AlDisplayMode {
kDisplayOff,
kDisplayUnknown,
kRGB,
kColourMap,
kOutline,
kFilled
};
enum AlFrameType {
kFrameOff,
kRegular,
kKeyframe
};
union AlFrameTypeParams {
struct {
int start;
int end;
int by;
int offset;
} regular;
struct {
int frame;
double offset;
} keyframe;
};
enum AlDepthType {
kDepthOff,
kDepthUnknown,
kPriority
};
enum AlMaskType {
kMaskOff,
kMaskUnknown,
kImage,
kFile,
kChromaKey
};
union AlMaskTypeParams {
struct {
const char *name;
AlFrameType frameType;
AlFrameTypeParams *params;
} file;
struct {
double r;
double g;
double b;
double hue_range;
double sat_range;
double val_range;
double threshold;
} chroma_key;
};
enum AlImageSpaceType {
kScreen,
kFields,
k01,
kWorld
};
union AlImageSpaceTypeParams {
struct {
int size;
} fields;
struct {
int origin_x;
int origin_y;
int size_x;
int size_y;
} screen;
struct {
double tran_x;
double tran_y;
double size_x;
double size_y;
} zero_one;
struct {
double tran_x;
double tran_y;
double size_x;
double size_y;
double pivot_x;
double pivot_y;
} world;
};
struct AlImageSpaceParams {
boolean wrap_horiz;
boolean wrap_vert;
int offset_x;
int offset_y;
int coverage_x;
int coverage_y;
};
AlImagePlane();
~AlImagePlane();
virtual AlObject* copyWrapper() const;
virtual statusCode deleteObject();
virtual AlObjectType type() const;
virtual AlImagePlane* asImagePlanePtr();
virtual AlAnimatable* asAnimatablePtr();
virtual AlPickable* asPickablePtr();
virtual const char* name() const;
virtual statusCode setName( const char * );
AlImagePlane* next() const;
AlImagePlane* nextInCamera() const;
AlImagePlane* prev() const;
AlImagePlane* prevInCamera() const;
statusCode nextD();
statusCode nextInCameraD();
statusCode prevD();
statusCode prevInCameraD();
const char* imageFile();
statusCode setImageFile( const char * );
statusCode displayMode( AlDisplayMode & );
statusCode setDisplayMode( AlDisplayMode );
statusCode RGBMult( double&, double&, double&, double& );
statusCode setRGBMult( double, double, double, double );
statusCode RGBOffset( double&, double&, double&, double& );
statusCode setRGBOffset( double, double, double, double );
statusCode frameType( AlFrameType&, AlFrameTypeParams* = NULL );
statusCode setFrameType( AlFrameType, AlFrameTypeParams* = NULL );
// The next four functions are not fully supported.
statusCode maskType( AlMaskType&, AlMaskTypeParams* = NULL );
statusCode setMaskType( AlMaskType, AlMaskTypeParams* = NULL );
statusCode maskInvert( boolean& );
statusCode setMaskInvert( boolean );
statusCode depthType( AlDepthType&, double* = NULL );
statusCode setDepthType( AlDepthType, double* = NULL );
// The next two functions are not fully supported.
statusCode imageSpace( AlImageSpaceType, AlImageSpaceTypeParams* = NULL,
AlImageSpaceParams* = NULL );
statusCode setImageSpace( AlImageSpaceType, AlImageSpaceTypeParams* =
NULL, AlImageSpaceParams* = NULL );
//
// use kScreen X/Y origin to set the position of the image in
pixels
// Use these to set the pivot (in pixels)
//
statusCode pivot( double&x, double &y);
statusCode setPivot( double x, double y);
To create an image plane, you must use the addImagePlane function of AlCamera. That function will return to you a new AlImagePlane object that you can use to set the image plane's parameters. Given a pointer to an AlImagePlane, you can delete it from Alias using the deleteObject method.
To walk the list of all the image planes in Alias, use AlUniverse::firstImagePlane. You can move from image plane to image plane in the current stage, or in a camera, by using the appropriate next method.
For more information about image planes in general, see the online documentation for the camera editor.
sFailure - there is no next imageplane
sInvalidObject - the image plane was invalid
sFailure - there is no next imageplane
sInvalidObject - the image plane was invalid
sFailure - there is no previous imageplane before the current one
sInvalidObject - the image plane was invalid
sFailure - there is no next imageplane
sInvalidObject - the image plane was invalid
sFailure - the name could not be changed
sFailure - the name could not be changed
sInvalidObject - the image plane was invalid
sInvalidArgument - an unknown display mode was specified
sInvalidObject - the image plane was invalid
sInvalidObject - the image plane was invalid
sFailure - the rgba values could not be read
sInvalidObject - the image plane was invalid
sFailure - the rgba values could not be set
sInvalidObject - the image plane was invalid
sFailure - the rgba values could not be read
sInvalidObject - the image plane was invalid
sFailure - the rgba values could not be retrieved
ftp - the returned values for the parameters
sInvalidObject - the image plane was invalid
sFailure - the parameters could not be retrieved
ftp - the values for the parameters
sInvalidObject - the image plane was invalid
sFailure - the parameters could not be set
sInvalidArgument - an invalid frame type was given
ftp - the returned values for the parameters
sInvalidObject - the image plane was invalid
sFailure - the parameters could not be retrieved
ftp - the values for the parameters
sInvalidObject - the image plane was invalid
sFailure - the parameters could not be set
sInvalidArgument - an invalid mask type was given
sInvalidObject - the image plane was invalid
sInvalidObject - the image plane was invalid
sFailure - the flag could not be set
depth - a pointer to a variable to place the depth (if not NULL)
sInvalidObject - the image plane was invalid
sFailure - the type could not be determined
depth - if non-NULL, then this points to the value of the depth
sInvalidObject - the image plane was invalid
sFailure - the depth type could not be set
This can be kFields (if the image is in the perspective window), k01, kScreen or kWorld.
spaceTypeParams - the returned values of the space type
spaceParams - the returned values of the wrap and origin values
sInvalidObject - the image plane was invalid
sFailure - the parameters could not be read
Note that world space is only allowed in orthographic windows but not in perspective windows.
spaceTypeParams - the new values of the space type
spaceParams - the new values of the wrap and origin values
sInvalidObject - the image plane was invalid
sFailure - the parameters could not be set