MAXNodeUtils |
This class contains utilities to manipulate 3D Studio MAX§ nodes.
|
Interface Methods |
Description |
|
Constructor |
|
|
Destructor |
|
|
Sets the node utils up for use |
|
|
Check a MAX node to see if it is a valid mesh |
|
|
Converts MAX node to a tri-mesh |
|
|
Performs cleanup on a MAX mesh |
|
|
Tests whether an INode belongs to the specified class |
|
|
Gets the MAX node ID |
|
|
Tests a MAX node to see if it has in children that are geometry |
|
|
Tests whether a node is a MAX tri-Mesh |
|
|
Determines if a m_BoneNode can be converted to a tri-mesh |
|
|
Tests a MAX node to see if it is a MAX Biped node |
|
|
Tests whether a MAX node is MAX Biped node |
|
|
Tests a MAX node to see whether it is a MAX biped bone node |
|
|
Checks whether a given MAX INode is the root of the biped |
|
|
Tests the given MAX INode to see if it is a leaf node in the biped hierarchy |
|
|
Tests a given MAX INode to see if it is a MAX bone node |
|
|
Tests a given MAX INode to see if it is a MAX bone node |
|
|
Tests a given MAX INode to see if it is a MAX dummy node |
|
|
Tests a given MAX INode to see if it is a MAX dummy node. |
|
|
Tests a given MAX INode to see if it is a MAX Root bone node. |
|
|
Searches a list of MAX bones to find the root bone |
|
|
Throws a biped model into reference mode |
|
|
Removes a Biped model from reference mode |
|
|
Removes the non-uniform scaling from a biped |
|
|
Restores the non-uniform scale to a biped |
|
|
Is called when all Biped type exporting is done on a model |
|
|
Gets the MAX Biped Interface |
|
|
Asks whether the Find BipedRoot been called successfully |
|
|
Tests a metrix to see if it has negative scaling applied to it |
|
|
Checks a node hiearchy to see if it has a biped root |
|
|
Checks a node hiearchy for the MAX class ID |
|
|
Selects a Node in the MAX Interface |
|
|
Checks a Node to see if the MAX Physique Modifier has been applied to it |
|
|
Converts MAX node to a tri-mesh |
|
|
Checks to see if a bone node if of the same class ID as the one specified |
|
|
Checks to see if vertex counts for object at end of pipeline and object as viewed by Physique both match |
|
|
Gets the pointer to the MAX Interface |
Constructor method.
Parameters:
None
Return Values:
None
Destructor method.
Parameters:
None
Return Values:
None
This method is called when all Biped type exporting is completed on a model.
Parameters:
None
This method throws a biped model into reference mode.
Parameters:
None
Comments:
Must be called after a successful call to FindBipedRoot.
This method removes a Biped model from reference mode.
Parameters:
None
Comments:
Complementry call to BipedIntoReferenceMode. Should be called after the bone export is done.
This method removes the non-uniform scaling from a biped.
Parameters:
None
Comments:
Must be called after a successful call to FindBipedRoot.
Restores the non-uniform scale to a biped.
Parameters:
None
Comments:
Complementry call to BipedIntoReferenceMode. Should be called after the bone export is done.
This method tests whether an INode belongs to the specified class.
Parameters:
|
pNode |
The node to test |
|
ulClassID |
The class ID to test for |
|
pIsOne |
Boolean result returned |
BOOL
This method checks a MAX node to see if it is a valid mesh.
Parameters:
|
pNode |
The node to test |
BOOL
This method tests whether an INode has a MAX class ID.
Parameters:
|
pNode |
The node to test |
|
ulClassID |
The class ID to test for |
BOOL
This method converts a MAX node to a tri-mesh.
Parameters:
|
node |
The node to convert |
|
t |
Time at which to convert it |
|
deleteIt |
Indicates whether the Node needs to be deleted after usage |
Return Values:
|
TriObject |
Pointer to tri-mesh |
This method searches a list of MAX bones to find the root bone. It sets the root bone variable on this object.
Parameters:
|
pMAXNodeList |
The list of MAX nodes to search |
This method performs clean up on a MAX Mesh.
Parameters:
|
pMesh |
The mesh to clean up |
Comments:
The mesh to clean up should not be an active MAX mesh. This method causes the mesh geometry to change.
This method gets the MAX Biped Interface.
Parameters:
None
This method gets the pointer to the MAX Interface.
Parameters:
None
Return Values:
|
Interface* |
The MAX Core interface |
This method gets the MAX node ID.
Parameters:
|
pMAXNode |
The node to query |
|
pMAXNodeType |
The node type |
This method converts a MAX node to a tri-mesh. It queries the INode passed in and converts it to a MAX tri-mesh, if posssible.
Parameters:
|
pNode |
The node to be converted |
|
ppMaxObject |
The MAX object from the INode |
|
ppTriObject |
The MAX tri-mesh object from the INode |
Comments:
Use the following code to clean up the tri-object retrieved from this call,
ir =
m_pNodeUtils->GetMAXTriObject(in_pMAXNode, &pObj, &pTriObj);
Do Stuff
if(pObj != (Object *)pTriObj) {
pTriObj->DeleteMe(); }
This method checks a Node to see if the MAX Physique Modifier has been applied to it.
Parameters:
|
pNode |
The node to test |
This method tests a MAX node to see if it has any children that are geometry.
Parameters:
|
pCurrentMAXNode |
The node to test |
|
pHasGeomChildren |
Indicates whether geometry children exist |
This method indicates if the Find BipedRoot been called successfully.
Parameters:
None
This method sets up the node utils for use.
Parameters:
None
This method tests the given MAX INode to see if it is a leaf node in the biped heirarchy.
Parameters:
|
m_BoneNode |
The MAX node to test |
Return Values:
|
BOOL |
True if it is a leaf node, False otherwise |
This method tests whether a MAX node is a MAX Biped node.
Parameters:
|
m_BoneNode |
The node to test |
Return Values:
|
BOOL |
True if it is a leaf node, False otherwise |
This method checks whether a given MAX INode is the root of the biped.
Parameters:
|
node |
The node to test |
Return Values:
|
BOOL |
True if it is a leaf node, False otherwise |
This method tests a given MAX INode to see if it is a MAX bone node.
Parameters:
|
m_BoneNode |
The MAX node to test |
Return Values:
|
BOOL |
True if it is a leaf node, False otherwise |
This method tests a given MAX INode to see if it is a MAX dummy node.
Parameters:
|
m_BoneNode |
The MAX node to test |
Return Values:
|
BOOL |
True if it is a leaf node, False otherwise |
This method tests a MAX node to see if it is a MAX biped bone node.
Parameters:
|
pNode |
The Node to test |
|
pItIs |
Returns whether it is a bone node |
This method tests a MAX node to see if it is a MAX Biped node.
Parameters:
|
pNode |
The Node to test |
|
pItIs |
Returns whether it is a biped |
This method tests a given MAX INode to see if it is a MAX bone node.
Parameters:
|
pNode |
The node to test |
|
pIsOne |
Returns TRUE (1) if it is |
This method tests a given MAX INode to see if it is a MAX dummy node.
Parameters:
|
pNode |
The node to test |
|
pIsOne |
Returns TRUE (1) if it is |
This method tests whether a node is a Max tri-mesh.
Parameters:
|
pNode |
The node to test |
|
pIsOne |
Returns TRUE (1) if it is a tri-mesh |
This method tests a given MAX INode to see if it is a MAX bone node.
Parameters:
|
m_BoneNode |
The node to test |
Return Values:
|
BOOL |
TRUE if it is, FALSE otherwise |
This method tests a given MAX INode to see if it is a MAX Root bone node.
Parameters:
|
bone_node |
The MAX node to test |
Return Values:
|
BOOL |
True if it is, False otherwise |
This method determines if an m_BoneNode can be converted to a tri-mesh.
Parameters:
|
m_BoneNode |
The node to test |
Return Values:
|
BOOL |
True if it is, False otherwise |
This method selects a node in the Max Interface.
Parameters:
|
bone_node |
The node to select |
Return Values:
None
This method tests a matrix to see if it has negative scaling applied to it.
Parameters:
|
m |
Reference to the matrix to test |
Return Values:
BOOL
This method checks a node hierarchy to see if it has a biped root. It recursively scans all children of this node to determine if any one of those children is a biped root node. If one is found, then TRUE is returned.
Parameters:
|
pCurrentMAXNode |
Pointer to the Max node in question |
|
pHasBipedRoot |
Whether or not a biped root exists |
Return Values:
BOOL
Comments:
This method stops traversing if it comes to a light node, a view node or a group node. In other words, this method scans all child nodes that are part of the MAX node list whose parent node is the grouphead.
This method checks to see if a m_BoneNode if of the same class ID as the one specified. Because of the possibility that the m_BoneNode may be part of a modifier stack, it is not immediately identified as the desired type. The m_BoneNode's modifier stack is checked for a m_BoneNode of the desired type.
Parameters:
|
pNode |
Pointer to the Max node in question |
|
ulClassID |
ClassID to check against |
Return Values:
BOOL
This method checks to see if vertex counts for object at end of pipeline and object as viewed by Physique both match.
Parameters:
|
in_pMAXNodeList |
MAX node list to be scanned |
|
in_pAuthConstraints |
Warnings dialog class instance |
|
out_pOK |
Status of whether any topological problems were found (False = problems found) |
§See asterisked (*) statement at Legal Information © 2001 Intel Corporation.