Camera set node function set.
MFnCameraSet is the function set that is used for manipulating cameraSet nodes.
A cameraSet node defines a list of camera layeres to be processed in order, defining a multi-layer viewing of the scene. A camera layer consists of an object set to be used by the layer, and a camera through which the set is viewed. Individual layers may be marked active or inactive and ordered arbitrarily.
#include <MFnCameraSet.h>
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnCameraSet () |
Destructor. |
|
MFnCameraSet () | |
Default constructor. |
|
MFnCameraSet (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MObject | create (MStatus *ReturnStatus=NULL) |
Creates a new cameraSet dependency node and
puts it in the dependency graph. |
|
MObject | create (const MDagPathArray &camList, MStatus *returnStatus=NULL) |
Creates a new cameraSet dependency node and
puts it in the dependency graph. |
|
MObject | create (const MString &name, MStatus *ReturnStatus=NULL) |
Creates a new cameraSet dependency node and
puts it in the dependency graph. |
|
MObject | create (const MDagPathArray &camList, const MObjectArray &setList, MStatus *returnStatus=NULL) |
Creates a new cameraSet dependency node and
puts it in the dependency graph. |
|
MObject | create (const MString &name, const MDagPathArray &camList, const MObjectArray &setList, MStatus *returnStatus=NULL) |
Creates a new cameraSet dependency node and
puts it in the dependency graph. |
|
MStatus | appendLayer (const MDagPath &camera, const MObject &set) |
Appends a layer to the associated cameraSet
node. |
|
MStatus | appendLayer (const MDagPath &camera) |
Appends a layer to the associated cameraSet
node using the given camera. |
|
MStatus | insertLayer (unsigned int index, const MDagPath &camera, const MObject &set) |
Inserts a layer at the given index to the
associated cameraSet node using the given camera. |
|
MStatus | insertLayer (unsigned int index, const MDagPath &camera) |
Inserts a layer at the given index to the
associated cameraSet node using the given camera. |
|
MStatus | deleteLayer (unsigned int index) |
Deletes the layer denoted by the given
index. |
|
MStatus | clear () |
Clear all of the camera layers. |
|
unsigned int | getNumLayers (MStatus *returnStatus=NULL) |
Return the number of layers in the
cameraSet. |
|
MStatus | setLayerCamera (unsigned int index, const MDagPath &camera) |
Set the camera to be used for a particular
layer. |
|
MStatus | getLayerCamera (unsigned int index, MDagPath &camera) |
Get the camera used for a particular layer.
|
|
MStatus | setLayerSceneData (unsigned int index, const MObject &set) |
Set the scene data to be used for a
particular layer. |
|
MStatus | getLayerSceneData (unsigned int index, MObject &set) |
Get the scene data used for a particular
layer. |
|
MStatus | setLayerActive (unsigned int index, bool isActive) |
Set a particular layer to be active.
|
|
bool | isLayerActive (unsigned int index, MStatus *returnStatus=NULL) |
Get whether a particular layer is active.
|
|
MStatus | setLayerOrder (unsigned int index, int order) |
Set the processing order of a particular
layer. |
|
MStatus | getLayerOrder (unsigned int index, int &order) |
Get the processing order of a particular
layer. |
|
MStatus | getSortedIndices (MUintArray &sortedIndices) |
Get a list of the layer indices, sorted by
the order attribute. |
|
MFnCameraSet (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
MFnCameraSet | ( | MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFnCameraSet | ( | const MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFn::Type type | ( | ) | const [virtual] |
const char * className | ( | ) | const [protected, virtual] |
Creates a new cameraSet dependency node and puts it in the dependency graph.
[out] | returnStatus | return status |
MObject create | ( | const MDagPathArray & | camList, |
MStatus * | returnStatus =
NULL |
||
) |
Creates a new cameraSet dependency node and puts it in the dependency graph.
The method takes a list of cameras and creates a camera layer for each corresponding camera. Sets are not connected.
[in] | camList | The list of cameras or stereo rigs |
[out] | returnStatus | return status |
Creates a new cameraSet dependency node and puts it in the dependency graph.
[in] | name | The name for the new cameraSet node |
[out] | returnStatus | return status |
Reimplemented from MFnDependencyNode.
MObject create | ( | const MDagPathArray & | camList, |
const MObjectArray & | setList, | ||
MStatus * | returnStatus =
NULL |
||
) |
Creates a new cameraSet dependency node and puts it in the dependency graph.
The method takes a list of cameras and object sets and creates a camera layer for each corresponding camera and object set.
[in] | camList | The list of cameras or stereo rigs |
[in] | setList | The list of sets |
[out] | returnStatus | return status |
MObject create | ( | const MString & | name, |
const MDagPathArray & | camList, | ||
const MObjectArray & | setList, | ||
MStatus * | returnStatus =
NULL |
||
) |
Creates a new cameraSet dependency node and puts it in the dependency graph.
The method takes a list of cameras and object sets and creates a camera layer for each corresponding camera and object set.
[in] | name | The name for the new cameraSet node |
[in] | camList | The list of cameras or stereo rigs |
[in] | setList | The list of sets |
[out] | returnStatus | return status |
Appends a layer to the associated cameraSet node.
The given camera and object set are used in the layer. If MObject::kNullObj is passed as the set, then the whole scene will be rendered in the layer.
[in] | camera | The camera or stereo rig for the layer |
[in] | set | The set of objects used in the layer |
Appends a layer to the associated cameraSet node using the given camera.
The whole scene will be used with this layer as no object set is provided.
[in] | camera | The camera or stereo rig for the layer |
Inserts a layer at the given index to the associated cameraSet node using the given camera.
The index value must be in the range from 0 to the number of layers currently defined. The given camera and object set are used in the layer. If MObject::kNullObj is passed as the set, then the whole scene will be rendered in the layer.
[in] | index | The index of the layer |
[in] | camera | The camera for the layer |
[in] | set | The set of objects used in the layer |
Inserts a layer at the given index to the associated cameraSet node using the given camera.
The index value must be in the range from 0 to the number of layers currently defined. The whole scene will be used with this layer as no object set is provided.
[in] | index | The index of the layer |
[in] | camera | The camera for the layer |
MStatus deleteLayer | ( | unsigned int | index | ) |
Deletes the layer denoted by the given index.
[in] | index | The index of the layer |
MStatus clear | ( | ) |
Clear all of the camera layers.
unsigned int getNumLayers | ( | MStatus * | returnStatus =
NULL |
) |
Return the number of layers in the cameraSet.
[out] | returnStatus | The return status |
Set the camera to be used for a particular layer.
[in] | index | The index of the layer |
[in] | camera | The camera for the layer |
Get the camera used for a particular layer.
[in] | index | The index of the layer |
[out] | camera | The camera for the layer |
Set the scene data to be used for a particular layer.
[in] | index | The index of the layer |
[in] | set | The object set for the layer |
Get the scene data used for a particular layer.
The returned scene data could be MObject::kNullObj if no scene data has been set. The operation will still be deemed successful.
[in] | index | The index of the layer |
[out] | set | The object set for the layer |
MStatus setLayerActive | ( | unsigned int | index, |
bool | isActive | ||
) |
Set a particular layer to be active.
[in] | index | The index of the layer |
[in] | isActive | Whether the layer should be processed |
bool isLayerActive | ( | unsigned int | index, |
MStatus * | returnStatus =
NULL |
||
) |
Get whether a particular layer is active.
[in] | index | The index of the layer |
[out] | returnStatus | The return status |
MStatus setLayerOrder | ( | unsigned int | index, |
int | order | ||
) |
Set the processing order of a particular layer.
[in] | index | The index of the layer |
[in] | order | The order number |
MStatus getLayerOrder | ( | unsigned int | index, |
int & | order | ||
) |
Get the processing order of a particular layer.
[in] | index | The index of the layer |
[out] | order | The processing order |
MStatus getSortedIndices | ( | MUintArray & | sortedIndices | ) |
Get a list of the layer indices, sorted by the order attribute.
[out] | sortedIndices | The sorted indices |