#include <inode.h>
Public Member Functions |
|
INodeTransformed (INode *n, Matrix3 tm, BOOL dm=TRUE) | |
void | DisposeTemporary () |
INode * | GetActualINode () |
MCHAR * | GetName () |
void | SetName (MCHAR *s) |
Matrix3 | GetNodeTM (TimeValue t, Interval *valid=NULL) |
void | SetNodeTM (TimeValue t, Matrix3 &tm) |
void | InvalidateTreeTM () |
void | InvalidateTM () |
void | InvalidateWS () |
void | InvalidateRect (TimeValue t, bool oldRect) |
Matrix3 | GetObjectTM (TimeValue time, Interval *valid=NULL) |
Matrix3 | GetObjTMBeforeWSM (TimeValue time, Interval *valid=NULL) |
Matrix3 | GetObjTMAfterWSM (TimeValue time, Interval *valid=NULL) |
const ObjectState & | EvalWorldState (TimeValue time, BOOL evalHidden=TRUE) |
INode * | GetParentNode () |
void | AttachChild (INode *node, int keepTM=1) |
void | Detach (TimeValue t, int keepTM=1) |
int | NumberOfChildren () |
INode * | GetChildNode (int i) |
void | Delete (TimeValue t, int keepChildPosition) |
void | Hide (BOOL onOff) |
Controls the hidden state of the node in the
scene. |
|
int | IsHidden (DWORD hflags=0, BOOL forRenderer=FALSE) |
Determines if the node is hidden in the
scene. |
|
int | IsNodeHidden (BOOL forRenderer=FALSE) |
Returns nonzero if the node is hidden in any
way. |
|
void | Freeze (BOOL onOff) |
Controls the frozen state of the node in the
scene. |
|
int | IsFrozen () |
Determines if the node is frozen in any way
in the scene. |
|
void | SetShowFrozenWithMtl (BOOL onOff) |
int | ShowFrozenWithMtl () |
void | XRayMtl (BOOL onOff) |
Set the X-Ray node property |
|
int | HasXRayMtl () |
Returns nonzero if the X-Ray Material display property is on for
the node; otherwise zero. |
|
void | IgnoreExtents (BOOL onOff) |
Ignore this node during zoom extents.
|
|
int | GetIgnoreExtents () |
Is this node ignored during zoom extents.
|
|
void | BoxMode (BOOL onOff) |
int | GetBoxMode () |
void | AllEdges (BOOL onOff) |
int | GetAllEdges () |
void | VertTicks (int onOff) |
int | GetVertTicks () |
void | BackCull (BOOL onOff) |
int | GetBackCull () |
void | SetCastShadows (BOOL onOff) |
int | CastShadows () |
void | SetRcvShadows (BOOL onOff) |
int | RcvShadows () |
void | SetGenerateCaustics (BOOL onOff) |
int | GenerateCaustics () |
void | SetRcvCaustics (BOOL onOff) |
int | RcvCaustics () |
void | SetApplyAtmospherics (BOOL onOff) |
int | ApplyAtmospherics () |
void | SetGenerateGlobalIllum (BOOL onOff) |
int | GenerateGlobalIllum () |
void | SetRcvGlobalIllum (BOOL onOff) |
int | RcvGlobalIllum () |
void | SetMotBlur (BOOL onOff) |
int | MotBlur () |
float | GetImageBlurMultiplier (TimeValue t) |
void | SetImageBlurMultiplier (TimeValue t, float m) |
void | SetImageBlurMultController (Control *cont) |
Control * | GetImageBlurMultController () |
BOOL | GetMotBlurOnOff (TimeValue t) |
void | SetMotBlurOnOff (TimeValue t, BOOL m) |
Control * | GetMotBlurOnOffController () |
void | SetMotBlurOnOffController (Control *cont) |
void | SetRenderable (BOOL onOff) |
int | Renderable () |
void | SetPrimaryVisibility (BOOL onOff) |
int | GetPrimaryVisibility () |
void | SetSecondaryVisibility (BOOL onOff) |
int | GetSecondaryVisibility () |
void | ShowBone (int boneVis) |
void | BoneAsLine (int onOff) |
BOOL | IsBoneShowing () |
BOOL | IsBoneOnly () |
DWORD | GetWireColor () |
void | SetWireColor (DWORD newcol) |
int | IsRootNode () |
int | Selected () |
int | Dependent () |
int | IsTarget () |
void | SetIsTarget (BOOL b) |
BOOL | GetTransformLock (int type, int axis) |
void | SetTransformLock (int type, int axis, BOOL onOff) |
INode * | GetTarget () |
INode * | GetLookatNode () |
Matrix3 | GetParentTM (TimeValue t) |
int | GetTargetTM (TimeValue t, Matrix3 &m) |
Object * | GetObjectRef () |
void | SetObjectRef (Object *o) |
Object * | GetObjOrWSMRef () |
Control * | GetTMController () |
BOOL | SetTMController (Control *m3cont) |
Control * | GetVisController () |
void | SetVisController (Control *cont) |
float | GetVisibility (TimeValue t, Interval *valid=NULL) |
void | SetVisibility (TimeValue t, float vis) |
float | GetLocalVisibility (TimeValue t, Interval *valid) |
BOOL | GetInheritVisibility () |
void | SetInheritVisibility (BOOL onOff) |
virtual void | SetRenderOccluded (BOOL onOff) |
virtual BOOL | GetRenderOccluded () |
Mtl * | GetMtl () |
void | SetMtl (Mtl *matl) |
Material * | Mtls () |
int | NumMtls () |
RenderData * | GetRenderData () |
void | SetRenderData (RenderData *rd) |
void | SetObjOffsetPos (Point3 p) |
Point3 | GetObjOffsetPos () |
void | SetObjOffsetRot (Quat q) |
Quat | GetObjOffsetRot () |
void | FlagForeground (TimeValue t, BOOL notify=TRUE) |
int | IsActiveGrid () |
void | SetNodeLong (LONG_PTR l) |
LONG_PTR | GetNodeLong () |
void | GetUserPropBuffer (MSTR &buf) |
void | SetUserPropBuffer (const MSTR &buf) |
BOOL | GetUserPropString (const MSTR &key, MSTR &string) |
BOOL | GetUserPropInt (const MSTR &key, int &val) |
BOOL | GetUserPropFloat (const MSTR &key, float &val) |
BOOL | GetUserPropBool (const MSTR &key, BOOL &b) |
void | SetUserPropString (const MSTR &key, const MSTR &string) |
void | SetUserPropInt (const MSTR &key, int val) |
void | SetUserPropFloat (const MSTR &key, float val) |
void | SetUserPropBool (const MSTR &key, BOOL b) |
BOOL | UserPropExists (const MSTR &key) |
ULONG | GetGBufID () |
void | SetGBufID (ULONG id) |
UWORD | GetRenderID () |
void | SetRenderID (UWORD id) |
CoreExport void | SetObjOffsetScale (ScaleValue sv) |
CoreExport ScaleValue | GetObjOffsetScale () |
void | CenterPivot (TimeValue t, BOOL moveObject) |
void | AlignPivot (TimeValue t, BOOL moveObject) |
void | WorldAlignPivot (TimeValue t, BOOL moveObject) |
void | AlignToParent (TimeValue t) |
void | AlignToWorld (TimeValue t) |
void | ResetTransform (TimeValue t, BOOL scaleOnly) |
void | ResetPivot (TimeValue t) |
bool | MayResetTransform () |
void | Move (TimeValue t, const Matrix3 &tmAxis, const Point3 &val, BOOL localOrigin=FALSE, BOOL affectKids=TRUE, int pivMode=PIV_NONE, BOOL ignoreLocks=FALSE) |
void | Rotate (TimeValue t, const Matrix3 &tmAxis, const AngAxis &val, BOOL localOrigin=FALSE, BOOL affectKids=TRUE, int pivMode=PIV_NONE, BOOL ignoreLocks=FALSE) |
void | Rotate (TimeValue t, const Matrix3 &tmAxis, const Quat &val, BOOL localOrigin=FALSE, BOOL affectKids=TRUE, int pivMode=PIV_NONE, BOOL ignoreLocks=FALSE) |
void | Scale (TimeValue t, const Matrix3 &tmAxis, const Point3 &val, BOOL localOrigin=FALSE, BOOL affectKids=TRUE, int pivMode=PIV_NONE, BOOL ignoreLocks=FALSE) |
BOOL | IsGroupMember () |
BOOL | IsGroupHead () |
BOOL | IsOpenGroupMember () |
BOOL | IsOpenGroupHead () |
void | SetGroupMember (BOOL b) |
void | SetGroupHead (BOOL b) |
void | SetGroupMemberOpen (BOOL b) |
void | SetGroupHeadOpen (BOOL b) |
RefResult | NotifyRefChanged (Interval changeInt, RefTargetHandle hTarget, PartID &partID, RefMessage message) |
Receives and responds to messages. |
|
void | CopyProperties (INode *from) |
Public Attributes |
|
INode * | node |
Matrix3 | tm |
BOOL | deleteMe |
INodeTransformed | ( | INode * | n, |
Matrix3 | tm, | ||
BOOL | dm = TRUE |
||
) | [inline] |
void DisposeTemporary | ( | ) | [inline, virtual] |
Reimplemented from INode.
{node->DisposeTemporary(); if (deleteMe) DeleteINodeTransformed(this);}
INode* GetActualINode | ( | ) | [inline, virtual] |
Reimplemented from INode.
{return node->GetActualINode();}
MCHAR* GetName | ( | ) | [inline, virtual] |
Implements INode.
void SetName | ( | MCHAR * | s | ) | [inline, virtual] |
t | Specifies the time to retrieve the TM. |
valid | Points to storage for the validity interval of the transformation matrix. The interval, if passed, is intersected with the validity interval of the NodeTM. |
Implements INode.
void SetNodeTM | ( | TimeValue | t, |
Matrix3 & | tm | ||
) | [inline, virtual] |
t | Specifies the time to set the transformation matrix. |
tm | The node's world space transformation matrix. |
Implements INode.
void InvalidateTreeTM | ( | ) | [inline, virtual] |
Implements INode.
{node->InvalidateTreeTM();}
void InvalidateTM | ( | ) | [inline, virtual] |
Implements INode.
{node->InvalidateTM();}
void InvalidateWS | ( | ) | [inline, virtual] |
Implements INode.
{node->InvalidateWS();}
void InvalidateRect | ( | TimeValue | t, |
bool | oldRect | ||
) | [inline, virtual] |
t | - The time to invalidate the node's rectangle |
oldRect | - If true, the cached viewport rectangles of the node are invalidated. This would be the case when a node property that doesn't affect the size or position of the node's viewport rectangles, such as wireframe color, is changed. Otherwise, the node's current rectangle in each viewport is invalidated. If the node's world space cache is not valid, the node's world state at time t will be evaluated, from which its current viewport rectangles are calculated. |
Implements INode.
{ node->InvalidateRect(t,oldRect); }
time | Specifies the time to retrieve the object's transform matrix. |
valid | Points to storage for the validity interval of the transformation matrix. |
Implements INode.
{return tm*node->GetObjectTM(time,valid);}
time | Specifies the time to retrieve the transform matrix. |
valid | Points to storage for the validity interval of the transformation matrix. |
Implements INode.
{return tm*node->GetObjTMBeforeWSM(time,valid);}
time | Specifies the time to retrieve the object's transform matrix. |
valid | Points to storage for the validity interval of the transformation matrix. |
Implements INode.
{return tm*node->GetObjTMAfterWSM(time,valid);}
const ObjectState& EvalWorldState | ( | TimeValue | time, |
BOOL | evalHidden =
TRUE |
||
) | [inline, virtual] |
time | Specifies the time to retrieve the object state. |
evalHidden | If FALSE and the node is hidden, the pipeline will not actually be evaluated (however the TM will). |
// Get the object from the node ObjectState os = node->EvalWorldState(ip->GetTime()); if (os.obj->SuperClassID()==GEOMOBJECT_CLASS_ID) { obj = (GeomObject*)os.obj; //... }
// Retrieve the TriObject from the node int deleteIt; TriObject *triObject = GetTriObjectFromNode(ip->GetSelNode(0), deleteIt); // Use the TriObject if available if (!triObject) return; // ... // Delete it when done... if (deleteIt) triObject->DeleteMe(); // Return a pointer to a TriObject given an INode or return NULL // if the node cannot be converted to a TriObject TriObject *Utility::GetTriObjectFromNode(INode *node, int &deleteIt) { deleteIt = FALSE; Object *obj = node->EvalWorldState(ip->GetTime()).obj; if (obj->CanConvertToType(Class_ID(TRIOBJ_CLASS_ID, 0))) { TriObject *tri = (TriObject *) obj->ConvertToType(ip->GetTime(), Class_ID(TRIOBJ_CLASS_ID, 0)); // Note that the TriObject should only be deleted // if the pointer to it is not equal to the object // pointer that called ConvertToType() if (obj != tri) deleteIt = TRUE; return tri; } else { return NULL; } }
Implements INode.
{return node->EvalWorldState(time,evalHidden);}
INode* GetParentNode | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetParentNode();}
void AttachChild | ( | INode * | node, |
int | keepTM = 1 |
||
) | [inline, virtual] |
node | Specifies the node to attach. |
keepTM | If nonzero, the world transform matrix of the specified (child) node is unchanged after the attach operation, i.e. INode::GetNodeTM returns the same matrix both before and after the attach operation. Otherwise, the world transform of the specified (child) node is affected by the parent node's transform. |
Implements INode.
{node->AttachChild(node,keepTM);}
void Detach | ( | TimeValue | t, |
int | keepTM = 1 |
||
) | [inline, virtual] |
t | Specifies the time at which to detach the node. |
keepTM | If nonzero, the world transform matrix of the detached node is unchanged, i.e. INode::GetNodeTM returns the same matrix both before and after the detach operation. Otherwise, the world transform of the detached node may change as a result of the detach operation since the node stops inheriting its parent node's transform. |
Implements INode.
int NumberOfChildren | ( | ) | [inline, virtual] |
Implements INode.
{return node->NumberOfChildren();}
INode* GetChildNode | ( | int | i | ) | [inline, virtual] |
i | Specifies the child node to retrieve. |
Implements INode.
{return node->GetChildNode(i);}
void Delete | ( | TimeValue | t, |
int | keepChildPosition | ||
) | [inline, virtual] |
t | The time for the deletion. |
keepChildPosition | If TRUE the position of any children of this node are kept the same; otherwise linked children may move due to the deletion. |
Reimplemented from INode.
void Hide | ( | BOOL | onOff | ) | [inline, virtual] |
Controls the hidden state of the node in the scene.
onOff | Pass TRUE to hide the node in the scene; pass FALSE to make the node visible. |
Implements INode.
int IsHidden | ( | DWORD | hflags = 0 , |
BOOL | forRenderer =
FALSE |
||
) | [inline, virtual] |
Determines if the node is hidden in the scene.
hflags | If you pass 0, you will get the hidden state of the node. If
you pass one or more of the flags shown below, the method checks
the Class_ID of the
node to see if it's hidden by the specified category. You may
specify one or more of the following values: HIDE_OBJECTS HIDE_SHAPES HIDE_LIGHTS HIDE_CAMERAS HIDE_HELPERS HIDE_WSMS HIDE_SYSTEMS HIDE_PARTICLES HIDE_ALL HIDE_NONE See the method Interface::GetHideByCategoryFlags() for how to retrieve the currently set values to use as the flags for this method. |
forRenderer | If true, test to see if the node is hidden for the render, else if it is hidden in the viewport |
Reimplemented from INode.
int IsNodeHidden | ( | BOOL | forRenderer =
FALSE |
) | [inline, virtual] |
Returns nonzero if the node is hidden in any way.
This method takes into account both the node hidden attribute and the 'Hide By Category' flags.
forRenderer | If true, test to see if the node is hidden for the render, else if it is hidden in the viewport returns zero. |
Reimplemented from INode.
{ return node->IsNodeHidden(forRenderer); }
void Freeze | ( | BOOL | onOff | ) | [inline, virtual] |
Controls the frozen state of the node in the scene.
A frozen node is visible but cannot be picked.
onOff | TRUE if the node should be frozen; FALSE if the node should not be frozen. |
Implements INode.
int IsFrozen | ( | ) | [inline, virtual] |
Determines if the node is frozen in any way in the scene.
A node can have the frozen property set, or be frozen by 'ghosting'
Implements INode.
void SetShowFrozenWithMtl | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE to set the flag; FALSE to disable. |
Implements INode.
{node->SetShowFrozenWithMtl(onOff);}
int ShowFrozenWithMtl | ( | ) | [inline, virtual] |
Implements INode.
{return node->ShowFrozenWithMtl();}
void XRayMtl | ( | BOOL | onOff | ) | [inline, virtual] |
int HasXRayMtl | ( | ) | [inline, virtual] |
Returns nonzero if the X-Ray Material display property is on for the node; otherwise zero.
Implements INode.
{return node->HasXRayMtl();}
void IgnoreExtents | ( | BOOL | onOff | ) | [inline, virtual] |
Ignore this node during zoom extents.
onOff | If true, Set this node to be ignored during zoom extents. |
Implements INode.
{node->IgnoreExtents(onOff);}
int GetIgnoreExtents | ( | ) | [inline, virtual] |
Is this node ignored during zoom extents.
Implements INode.
{return node->GetIgnoreExtents();}
void BoxMode | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE to display the node as its bounding box; FALSE for normal display. |
Implements INode.
int GetBoxMode | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetBoxMode();}
void AllEdges | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE to display all the node's edges; FALSE to not display "hidden" edges. |
Implements INode.
int GetAllEdges | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetAllEdges();}
void VertTicks | ( | int | onOff | ) | [inline, virtual] |
onOff | TRUE to enable; FALSE to disable. |
Implements INode.
int GetVertTicks | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetVertTicks();}
void BackCull | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE if the node should be drawn using back-face culling; FALSE if all faces should be drawn. |
Implements INode.
int GetBackCull | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetBackCull();}
void SetCastShadows | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE to turn shadow casting on; FALSE to turn it off. |
Implements INode.
{ node->SetCastShadows(onOff); }
int CastShadows | ( | ) | [inline, virtual] |
Implements INode.
{ return node->CastShadows(); }
void SetRcvShadows | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE to turn shadow receiving on; FALSE to turn it off. |
Implements INode.
{ node->SetRcvShadows(onOff); }
int RcvShadows | ( | ) | [inline, virtual] |
Implements INode.
{ return node->RcvShadows(); }
void SetGenerateCaustics | ( | BOOL | onOff | ) | [inline, virtual] |
int GenerateCaustics | ( | ) | [inline, virtual] |
void SetRcvCaustics | ( | BOOL | onOff | ) | [inline, virtual] |
int RcvCaustics | ( | ) | [inline, virtual] |
void SetApplyAtmospherics | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE to enable the flag, FALSE to disable. |
Implements INode.
{ node->SetApplyAtmospherics(onOff); }
int ApplyAtmospherics | ( | ) | [inline, virtual] |
Implements INode.
{ return node->ApplyAtmospherics(); }
void SetGenerateGlobalIllum | ( | BOOL | onOff | ) | [inline, virtual] |
int GenerateGlobalIllum | ( | ) | [inline, virtual] |
void SetRcvGlobalIllum | ( | BOOL | onOff | ) | [inline, virtual] |
int RcvGlobalIllum | ( | ) | [inline, virtual] |
void SetMotBlur | ( | BOOL | onOff | ) | [inline] |
{ node->SetMotBlur(onOff); }
int MotBlur | ( | ) | [inline, virtual] |
float GetImageBlurMultiplier | ( | TimeValue | t | ) | [inline, virtual] |
t | The time to retrieve the value. |
Reimplemented from INode.
{ return node->GetImageBlurMultiplier(t);}
void SetImageBlurMultiplier | ( | TimeValue | t, |
float | m | ||
) | [inline, virtual] |
t | The time to set the value. |
m | The value to set. |
Reimplemented from INode.
{node->SetImageBlurMultiplier(t,m); };
void SetImageBlurMultController | ( | Control * | cont | ) | [inline, virtual] |
cont | Points for the controller to use. |
Reimplemented from INode.
{ node->SetImageBlurMultController(cont); }
Control* GetImageBlurMultController | ( | ) | [inline, virtual] |
Reimplemented from INode.
{return node->GetImageBlurMultController(); }
BOOL GetMotBlurOnOff | ( | TimeValue | t | ) | [inline, virtual] |
t | The time to check. |
Reimplemented from INode.
{ return node->GetMotBlurOnOff(t); }
void SetMotBlurOnOff | ( | TimeValue | t, |
BOOL | m | ||
) | [inline, virtual] |
t | The time to set the value. |
m | TRUE for on; FALSE for off. |
Reimplemented from INode.
{ node->SetMotBlurOnOff(t,m); }
Control* GetMotBlurOnOffController | ( | ) | [inline, virtual] |
Reimplemented from INode.
{ return node->GetMotBlurOnOffController();}
void SetMotBlurOnOffController | ( | Control * | cont | ) | [inline, virtual] |
cont | Points to the controller to set. |
Reimplemented from INode.
{ node->SetMotBlurOnOffController(cont);}
void SetRenderable | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE for on; FALSE for off. |
Implements INode.
{ node->SetRenderable(onOff); }
int Renderable | ( | ) | [inline, virtual] |
Implements INode.
{ return node->Renderable(); }
void SetPrimaryVisibility | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE to enable the flag, FALSE to disable. |
Implements INode.
{ node->SetPrimaryVisibility(onOff); }
int GetPrimaryVisibility | ( | ) | [inline, virtual] |
Implements INode.
{ return node->GetPrimaryVisibility(); }
void SetSecondaryVisibility | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE to enable the flag, FALSE to disable. |
Implements INode.
{ node->SetSecondaryVisibility(onOff); }
int GetSecondaryVisibility | ( | ) | [inline, virtual] |
Implements INode.
{ return node->GetSecondaryVisibility(); }
void ShowBone | ( | int | boneVis | ) | [inline, virtual] |
boneVis | Specifies the display state: 0: Bones are not drawn. 1: Bones are drawn. 2: Only bones are shown. |
Implements INode.
void BoneAsLine | ( | int | onOff | ) | [inline, virtual] |
onOff | Nonzero if bones should be shown as lines only; 0 for normal display. |
Implements INode.
{node->BoneAsLine(onOff);}
BOOL IsBoneShowing | ( | ) | [inline, virtual] |
Implements INode.
{return node->IsBoneShowing();}
BOOL IsBoneOnly | ( | ) | [inline, virtual] |
Reimplemented from INode.
{ return node->IsBoneOnly(); }
DWORD GetWireColor | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetWireColor();}
void SetWireColor | ( | DWORD | newcol | ) | [inline, virtual] |
newcol | Specifies the new wire-frame color for the node. It may be specified using the RGB macro, for example: RGB(0,0,255); |
Implements INode.
{node->SetWireColor(newcol);}
int IsRootNode | ( | ) | [inline, virtual] |
Implements INode.
{return node->IsRootNode();}
int Selected | ( | ) | [inline, virtual] |
Implements INode.
int Dependent | ( | ) | [inline, virtual] |
Implements INode.
int IsTarget | ( | ) | [inline, virtual] |
Implements INode.
void SetIsTarget | ( | BOOL | b | ) | [inline, virtual] |
b | TRUE for set; FALSE for off. |
Implements INode.
{ node->SetIsTarget(b);}
BOOL GetTransformLock | ( | int | type, |
int | axis | ||
) | [inline, virtual] |
type | See transformLockTypes. |
axis | See Transform Lock Axis. |
Implements INode.
{return node->GetTransformLock(type,axis);}
void SetTransformLock | ( | int | type, |
int | axis, | ||
BOOL | onOff | ||
) | [inline, virtual] |
type | See Transform Lock Types. |
axis | See Transform Lock Axis. |
onOff | TRUE sets the lock on; FALSE sets the lock off. |
Implements INode.
{node->SetTransformLock(type,axis,onOff);}
INode* GetTarget | ( | ) | [inline, virtual] |
Implements INode.
INode* GetLookatNode | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetLookatNode();}
Matrix3 GetParentTM | ( | TimeValue | t | ) | [inline, virtual] |
t | Specifies the time to retrieve the transformation matrix. |
Implements INode.
{return node->GetParentTM(t);}
int GetTargetTM | ( | TimeValue | t, |
Matrix3 & | m | ||
) | [inline, virtual] |
t | Specifies the time to retrieve the transformation matrix. |
m | The result is stored here. |
Implements INode.
{return node->GetTargetTM(t,m);}
Object* GetObjectRef | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetObjectRef();}
void SetObjectRef | ( | Object * | o | ) | [inline, virtual] |
o | The object this node will reference. |
Implements INode.
{node->SetObjectRef(o);}
Object* GetObjOrWSMRef | ( | ) | [inline, virtual] |
Implements INode.
{ return node->GetObjOrWSMRef();}
Control* GetTMController | ( | ) | [inline, virtual] |
Control *c; c = node->GetTMController()->GetPositionController(); IKeyControl *ikeys = GetKeyControlInterface(c);
int num = ikeys->GetNumKeys();
Implements INode.
{return node->GetTMController();}
BOOL SetTMController | ( | Control * | m3cont | ) | [inline, virtual] |
m3cont | The Matrix3 transform controller to use. This controller must return a SuperClassID of CTRL_MATRIX3_CLASS_ID |
Implements INode.
{ return node->SetTMController(m3cont);}
Control* GetVisController | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetVisController();}
void SetVisController | ( | Control * | cont | ) | [inline, virtual] |
cont | The controller to use for visibility control. |
Implements INode.
{node->SetVisController(cont);}
float GetVisibility | ( | TimeValue | t, |
Interval * | valid = NULL |
||
) | [inline, virtual] |
t | The time to get the visibility value. |
valid | The validity interval to update based on the validity of the visibility. |
Implements INode.
{return node->GetVisibility(t,valid);}
void SetVisibility | ( | TimeValue | t, |
float | vis | ||
) | [inline, virtual] |
t | The time to set the visibility value. |
vis | The visibility of the node to set. This is treated like a boolean value where < 0 means off and > 0 means on. |
Implements INode.
{ node->SetVisibility(t,vis); }
float GetLocalVisibility | ( | TimeValue | t, |
Interval * | valid | ||
) | [inline, virtual] |
t | The time to get the local visibility value. |
valid | The validity interval to update based on the validity of the local visibility controller. |
Implements INode.
{ return node->GetLocalVisibility(t,valid); }
BOOL GetInheritVisibility | ( | ) | [inline, virtual] |
Implements INode.
{ return node->GetInheritVisibility(); }
void SetInheritVisibility | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | Pass TRUE to have the node inherit its visibility from its parent; otherwise pass FALSE and the node's visibility will be determine by the node itself (not its parent). |
Implements INode.
{ node->SetInheritVisibility(onOff); }
virtual void SetRenderOccluded | ( | BOOL | onOff | ) | [inline, virtual] |
onOff | TRUE for on; FALSE for off. |
Implements INode.
{ node->SetRenderOccluded(onOff); }
virtual BOOL GetRenderOccluded | ( | ) | [inline, virtual] |
Implements INode.
{ return node->GetRenderOccluded(); }
Mtl* GetMtl | ( | ) | [inline, virtual] |
Implements INode.
void SetMtl | ( | Mtl * | matl | ) | [inline, virtual] |
matl | The materials used to render the node. |
Implements INode.
Material* Mtls | ( | ) | [inline, virtual] |
Implements INode.
int NumMtls | ( | ) | [inline, virtual] |
RenderData* GetRenderData | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetRenderData();}
void SetRenderData | ( | RenderData * | rd | ) | [inline, virtual] |
rd | The render data to set. For additional overview information on these methods, see Custom node properties and application data. |
Implements INode.
{node->SetRenderData(rd);}
void SetObjOffsetPos | ( | Point3 | p | ) | [inline, virtual] |
p | Specifies the position portion of the object-offset. |
Implements INode.
{node->SetObjOffsetPos(p);}
Point3 GetObjOffsetPos | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetObjOffsetPos();}
void SetObjOffsetRot | ( | Quat | q | ) | [inline, virtual] |
q | The rotation offset. |
Implements INode.
{node->SetObjOffsetRot(q);}
Quat GetObjOffsetRot | ( | ) | [inline, virtual] |
Implements INode.
{return node->GetObjOffsetRot();}
void FlagForeground | ( | TimeValue | t, |
BOOL | notify =
TRUE |
||
) | [inline, virtual] |
t | The time to put the node in the foreground. |
notify | If TRUE, the reference message REFMSG_FLAGDEPENDENTS with PART_PUT_IN_FG is sent. |
Implements INode.
{node->FlagForeground(t,notify);}
int IsActiveGrid | ( | ) | [inline, virtual] |
Implements INode.
{return node->IsActiveGrid();}
void SetNodeLong | ( | LONG_PTR | l | ) | [inline, virtual] |
l | The data to store with the node. |
Implements INode.
{node->SetNodeLong(l);}
LONG_PTR GetNodeLong | ( | ) | [inline, virtual] |
void GetUserPropBuffer | ( | MSTR & | buf | ) | [inline, virtual] |
buf | The buffer to hold the user defined property text. |
Implements INode.
{node->GetUserPropBuffer(buf);}
void SetUserPropBuffer | ( | const MSTR & | buf | ) | [inline, virtual] |
buf | The buffer containing the user defined property text. |
Implements INode.
{node->SetUserPropBuffer(buf);}
key | The key (or name) of the user defined property text. |
string | Storage for the string to retrieve. |
Implements INode.
{return node->GetUserPropString(key,string);}
BOOL GetUserPropInt | ( | const MSTR & | key, |
int & | val | ||
) | [inline, virtual] |
key | The key (or name) of the data to retrieve. |
val | Storage for the integer value. |
Implements INode.
{return node->GetUserPropInt(key,val);}
BOOL GetUserPropFloat | ( | const MSTR & | key, |
float & | val | ||
) | [inline, virtual] |
key | The key (or name) of the data to retrieve. |
val | Storage for the float value. |
Implements INode.
{return node->GetUserPropFloat(key,val);}
BOOL GetUserPropBool | ( | const MSTR & | key, |
BOOL & | b | ||
) | [inline, virtual] |
key | The key (or name) of the data to retrieve. |
b | Storage for the boolean value. |
Implements INode.
{return node->GetUserPropBool(key,b);}
key | The key (or name) of the data to store. |
string | The string to store. |
Implements INode.
{node->SetUserPropString(key,string);}
void SetUserPropInt | ( | const MSTR & | key, |
int | val | ||
) | [inline, virtual] |
key | The key (or name) of the data to store. |
val | The value to store. |
Implements INode.
{node->SetUserPropInt(key,val);}
void SetUserPropFloat | ( | const MSTR & | key, |
float | val | ||
) | [inline, virtual] |
key | The key (or name) of the data to store. |
val | The value to store. |
Implements INode.
{node->SetUserPropFloat(key,val);}
void SetUserPropBool | ( | const MSTR & | key, |
BOOL | b | ||
) | [inline, virtual] |
key | The key (or name) of the data to store. |
b | The value to store. |
Implements INode.
{node->SetUserPropBool(key,b);}
BOOL UserPropExists | ( | const MSTR & | key | ) | [inline, virtual] |
key | The key string to search for. |
Implements INode.
{return node->UserPropExists(key);}
ULONG GetGBufID | ( | ) | [inline, virtual] |
Implements INode.
void SetGBufID | ( | ULONG | id | ) | [inline, virtual] |
id | The G-Buffer ID. |
Implements INode.
UWORD GetRenderID | ( | ) | [inline, virtual] |
Reimplemented from INode.
{ return node->GetRenderID(); }
void SetRenderID | ( | UWORD | id | ) | [inline, virtual] |
Reimplemented from INode.
{ node->SetRenderID(id); }
CoreExport void SetObjOffsetScale | ( | ScaleValue | sv | ) | [virtual] |
sv | The scale portion of the offset. See Class ScaleValue. |
Implements INode.
CoreExport ScaleValue GetObjOffsetScale | ( | ) | [virtual] |
Implements INode.
void CenterPivot | ( | TimeValue | t, |
BOOL | moveObject | ||
) | [inline, virtual] |
[in] | t | - not used |
[in] | moveObject | - If true, the object is moved to be centered on the pivot. If false, the pivot is centered on the object |
Implements INode.
{ node->CenterPivot(t,moveObject); }
void AlignPivot | ( | TimeValue | t, |
BOOL | moveObject | ||
) | [inline, virtual] |
[in] | t | - not used |
[in] | moveObject | - If true, the object is rotated to be aligned with the pivot. If false, the pivot rotation is reset to be realigned with the object |
Implements INode.
{ node->AlignPivot(t,moveObject); }
void WorldAlignPivot | ( | TimeValue | t, |
BOOL | moveObject | ||
) | [inline, virtual] |
[in] | t | - not used |
[in] | moveObject | - If true, the object is rotated to be aligned with the world. If false, the pivot rotation is set to be aligned with the world |
Implements INode.
{ node->WorldAlignPivot(t,moveObject); }
void AlignToParent | ( | TimeValue | t | ) | [inline, virtual] |
[in] | t | - not used |
Implements INode.
{ node->AlignToParent(t); }
void AlignToWorld | ( | TimeValue | t | ) | [inline, virtual] |
[in] | t | - not used |
Implements INode.
{ node->AlignToWorld(t); }
void ResetTransform | ( | TimeValue | t, |
BOOL | scaleOnly | ||
) | [inline, virtual] |
[in] | t | - not used |
[in] | scaleOnly | - If true, reset only the offset scale. Else reset the rotation and scale parts |
Implements INode.
{ node->ResetTransform(t,scaleOnly); }
void ResetPivot | ( | TimeValue | t | ) | [inline, virtual] |
[in] | t | - not used |
Implements INode.
{ node->ResetPivot(t); }
bool MayResetTransform | ( | ) | [inline, virtual] |
Implements INode.
{ return node->MayResetTransform(); }
void Move | ( | TimeValue | t, |
const Matrix3 & | tmAxis, | ||
const Point3 & | val, | ||
BOOL | localOrigin =
FALSE , |
||
BOOL | affectKids = TRUE , |
||
int | pivMode =
PIV_NONE , |
||
BOOL | ignoreLocks =
FALSE |
||
) | [inline, virtual] |
t | The time to transform the node. |
tmAxis | The axis system about which the node is transformed. |
val | The amount of the transformation relative to the axis system. |
localOrigin | If TRUE the transformation takes place about the nodes local origin; otherwise about the world origin. |
affectKids | TRUE If TRUE any child nodes are transformed along with the parent node. If FALSE any children of the node are counter transformed so they don't move. |
pivMode | One of the following values: PIV_NONE Move both the pivot point and the geometry of the object. PIV_PIVOT_ONLY Move the pivot point only. PIV_OBJECT_ONLY Move the geometry of the object only. |
ignoreLocks | If TRUE any transform locks associated with the node are ignored; otherwise the locks govern the application of the transformation. |
Implements INode.
void Rotate | ( | TimeValue | t, |
const Matrix3 & | tmAxis, | ||
const AngAxis & | val, | ||
BOOL | localOrigin =
FALSE , |
||
BOOL | affectKids = TRUE , |
||
int | pivMode =
PIV_NONE , |
||
BOOL | ignoreLocks =
FALSE |
||
) | [inline, virtual] |
t | The time to transform the node. |
tmAxis | The axis system about which the node is transformed. |
val | The amount of the transformation. |
localOrigin | If TRUE the transformation takes place about the nodes local origin; otherwise about the world origin. |
affectKids | If TRUE any child nodes are transformed along with the parent node. If FALSE any children of the node are counter transformed so they don't rotate. |
pivMode | One of the following values: PIV_NONE Move both the pivot point and the geometry of the object. PIV_PIVOT_ONLY Move the pivot point only. PIV_OBJECT_ONLY Move the geometry of the object only. |
ignoreLocks | If TRUE any transform locks associated with the node are ignored; otherwise the locks govern the application of the transformation. |
Implements INode.
void Rotate | ( | TimeValue | t, |
const Matrix3 & | tmAxis, | ||
const Quat & | val, | ||
BOOL | localOrigin =
FALSE , |
||
BOOL | affectKids = TRUE , |
||
int | pivMode =
PIV_NONE , |
||
BOOL | ignoreLocks =
FALSE |
||
) | [inline, virtual] |
t | The time to transform the node. |
tmAxis | The axis system about which the node is transformed. |
val | The amount of the transformation. |
localOrigin | If TRUE the transformation takes place about the nodes local origin; otherwise about the world origin. |
affectKids | If TRUE any child nodes are transformed along with the parent node. If FALSE any children of the node are counter transformed so they don't rotate. |
pivMode | One of the following values: PIV_NONE Move both the pivot point and the geometry of the object. PIV_PIVOT_ONLY Move the pivot point only. PIV_OBJECT_ONLY Move the geometry of the object only. |
ignoreLocks | If TRUE any transform locks associated with the node are ignored; otherwise the locks govern the application of the transformation. |
Implements INode.
void Scale | ( | TimeValue | t, |
const Matrix3 & | tmAxis, | ||
const Point3 & | val, | ||
BOOL | localOrigin =
FALSE , |
||
BOOL | affectKids = TRUE , |
||
int | pivMode =
PIV_NONE , |
||
BOOL | ignoreLocks =
FALSE |
||
) | [inline, virtual] |
t | The time to transform the node. |
tmAxis | The axis system about which the node is transformed. |
val | The amount of the transformation. |
localOrigin | If TRUE the transformation takes place about the nodes local origin; otherwise about the world origin. |
affectKids | If TRUE any child nodes are transformed along with the parent node. If FALSE any children of the node are counter transformed so they don't scale. |
pivMode | One of the following values: PIV_NONE Move both the pivot point and the geometry of the object. PIV_PIVOT_ONLY Move the pivot point only. PIV_OBJECT_ONLY Move the geometry of the object only. |
ignoreLocks | If TRUE any transform locks associated with the node are ignored; otherwise the locks govern the application of the transformation. |
Implements INode.
BOOL IsGroupMember | ( | ) | [inline, virtual] |
Implements INode.
{return node->IsGroupMember();}
BOOL IsGroupHead | ( | ) | [inline, virtual] |
Implements INode.
{ return node->IsGroupHead();}
BOOL IsOpenGroupMember | ( | ) | [inline, virtual] |
Reimplemented from INode.
{return node->IsOpenGroupMember();}
BOOL IsOpenGroupHead | ( | ) | [inline, virtual] |
Reimplemented from INode.
{return node->IsOpenGroupHead();}
void SetGroupMember | ( | BOOL | b | ) | [inline, virtual] |
b | TRUE to mark the node as a group member; FALSE to indicate it's not in a group. |
Reimplemented from INode.
{ node->SetGroupMember(b); }
void SetGroupHead | ( | BOOL | b | ) | [inline, virtual] |
b | TRUE to mark the node as a group head; FALSE to indicate it's not a group head. |
Reimplemented from INode.
{ node->SetGroupHead(b); }
void SetGroupMemberOpen | ( | BOOL | b | ) | [inline, virtual] |
b | TRUE to mark the node as a open; FALSE to indicate it's not open. |
Reimplemented from INode.
{ node->SetGroupMemberOpen(b); }
void SetGroupHeadOpen | ( | BOOL | b | ) | [inline, virtual] |
b | TRUE to mark the node as an open group head; FALSE to indicate it's not an open group head. |
Reimplemented from INode.
{ node->SetGroupHeadOpen(b); }
RefResult NotifyRefChanged | ( | Interval | changeInt, |
RefTargetHandle | hTarget, | ||
PartID & | partID, | ||
RefMessage | message | ||
) | [inline, virtual] |
Receives and responds to messages.
A plugin which makes references must implement a method to receive and respond to messages broadcast by its dependents. This is done by implementing NotifyRefChanged(). The plugin developer usually implements this method as a switch statement where each case is one of the messages the plugin needs to respond to. The Method StdNotifyRefChanged calls this, which can change the partID to new value. If it doesn't depend on the particular message& partID, it should return REF_DONTCARE.
changeInt | - This is the interval of time over which the message is active. Currently, all plug-ins will receive FOREVER for this interval. |
hTarget | - This is the handle of the reference target the message was sent by. The reference maker uses this handle to know specifically which reference target sent the message. |
partID | - This contains information specific to the message passed in. Some messages don't use the partID at all. See the section List of Reference Messages for more information about the meaning of the partID for some common messages. |
message | - The message parameters passed into this method is the specific message which needs to be handled. |
Implements ReferenceMaker.
{return REF_SUCCEED;}
void CopyProperties | ( | INode * | from | ) | [inline] |
Reimplemented from INode.
{node->CopyProperties(from);}