Class IGraphNode

3DS Max Plug-In SDK

Class IGraphNode

See Also: Class IGraphObjectManager, Class Object, Class Animatable.

class IGraphNode

Description:

This class is available in release 3.0 and later only.

This class represents a node in the schematic view graph and provides a few methods for querying information about the node.

Methods:

public:

Prototype:

virtual Animatable *GetAnim()=0;

Remarks:

Returns the Animatable associated with this node.

Prototype:

virtual IGraphNode *GetParentNode()=0;

Remarks:

Returns the "primary parent" of this node. Nodes can have multiple parents (objects referencing this node) so this function is not strictly accurate. That said, many nodes have the concept of an owner node, which is what this function returns.

Prototype:

virtual bool IsObjectOrModifier()=0;

Remarks:

Returns true if this node represents a 3ds max object or modifier; otherwise false.

Prototype:

virtual bool IsMaterial()=0;

Remarks:

Returns true if this node represents a 3ds max material or texmap; otherwise false.

Prototype:

virtual Animatable *GetOwner()=0;

Remarks:

Returns the "owner" of this node. Some nodes have multiple owners. When this is the case, this function returns the "first" owner (the object that first added this node to the schematic view).

Prototype:

virtual int GetID()=0;

Remarks:

Return the ID of this node. When nodes are added to the schematic view (via the IGraphObjectManager::AddAnimatable(...) method), an integer is provided. This value is not used internally by the schematic view. Rather, it is available to implementers of the Animatable::Sv*() methods to aid in identifying the node.