Detailed Description
The MemoCamera class represents a memo camera control in a view.
- See also:
- MemoCamera
- Since:
- 10.5 (2012)
- Example:
- Demonstrates how to record the 4 memo cameras in the perspective view.
using namespace XSI;
Application app;
View vm = app.GetDesktop().GetActiveLayout().GetViews().GetItem( "vm" );
View viewB = vm.GetViews()[ 1 ];
CRefArray memoCameras = viewB.GetMemoCameras();
app.LogMessage( "Memo camera count for view B: " + CString( memoCameras.GetCount() ) );
Camera camB = app.GetActiveSceneRoot().FindObjects( XSI::siCameraID )[ 0 ];
KinematicState kinestate = camB.GetKinematics().GetGlobal();
for ( int index = 0; index < 4; index++ )
{
switch( index )
{
case 0:
kinestate.PutParameterValue( "posx", -10.0 );
kinestate.PutParameterValue( "posy", 2.0 );
kinestate.PutParameterValue( "posz", 20.0 );
break;
case 1:
kinestate.PutParameterValue( "posx", 0.0 );
break;
case 2:
kinestate.PutParameterValue( "posx", 10.0 );
break;
case 3:
kinestate.PutParameterValue( "posx", 0.0 );
kinestate.PutParameterValue( "posy", -2.0 );
break;
}
MemoCamera memoCamera = memoCameras[ index] ;
memoCamera.Record();
}
#include <xsi_memocamera.h>
List of all members.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
in_ref | constant reference object. |
Copy constructor.
- Parameters:
-
in_obj | constant class object. |
Member Function Documentation
bool IsA |
( |
siClassID |
in_ClassID | ) |
const [virtual] |
Returns true if a given class type is compatible with this API class.
- Parameters:
-
- Returns:
- true if the class is compatible, false otherwise.
Reimplemented from UIObject.
Returns the type of the API class.
- Returns:
- The class type.
Reimplemented from UIObject.
Creates an object from another object. The newly created object is set to empty if the input object is not compatible.
- Parameters:
-
in_obj | constant class object. |
- Returns:
- The new MemoCamera object.
Creates an object from a reference object. The newly created object is set to empty if the input reference object is not compatible.
- Parameters:
-
in_ref | constant class object. |
- Returns:
- The new MemoCamera object.
Reimplemented from UIObject.
The documentation for this class was generated from the following file: