HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Hierarchy Namespace Reference

Enumerations

enum  ComputeHierarchyResult {
  ComputeHierarchyResult::Success = 0, ComputeHierarchyResult::NoRoots, ComputeHierarchyResult::BadRoot, ComputeHierarchyResult::FoundCycle,
  ComputeHierarchyResult::IncompleteTraversal
}
 

Functions

GU_API GA_Offset getParent (const GU_Detail *gdp, const GA_Offset &node)
 
GU_API GA_Offset getParentVertex (const GU_Detail *gdp, const GA_Offset &node)
 
GU_API void getParents (const GU_Detail *gdp, const GA_Offset &node, GA_OffsetArray &children)
 
GU_API void getParents (const GU_Detail *gdp, const GA_Offset &node, UT_Set< GA_Offset > &children)
 
GU_API GA_OffsetArray getChildren (const GU_Detail *gdp, const GA_Offset &node, bool recurse=false)
 
GU_API void getChildren (const GU_Detail *gdp, const GA_Offset &node, GA_OffsetArray &children, bool recurse=false)
 
GU_API void getChildren (const GU_Detail *gdp, const GA_Offset &node, UT_Set< GA_Offset > &children, bool recurse=false)
 
GU_API const UT_StringHoldergetComputeHierarchyMessage (ComputeHierarchyResult result)
 Returns a descriptive message for the ComputeHierarchyResult. More...
 
GU_API ComputeHierarchyResult traverse (const GU_Detail *gdp, GA_OffsetArray &roots, GA_OffsetArray &nodes, GA_OffsetArray &parents, UT_Map< GA_Offset, GA_OffsetArray > *children=nullptr)
 
GU_API bool findRoots (const GU_Detail *gdp, GA_OffsetArray &roots)
 
GU_API void computeLocalTransform (const GU_Detail *gdp, const GA_OffsetArray &nodes, const GA_OffsetArray &parents, const UT_Vector3DArray &P, const UT_Matrix3DArray &transform, UT_Matrix4DArray &local, UT_Matrix4DArray &effective_local, const UT_IntArray &model)
 
GU_API void computeWorldTransform (const GU_Detail *gdp, const GA_OffsetArray &nodes, const GA_OffsetArray &parents, UT_Vector3DArray &P, UT_Matrix3DArray &transform, const UT_Matrix4DArray &local, UT_Matrix4DArray &effective_local, const UT_IntArray &model, const GA_PointGroup *constrain_grp, const UT_Array< int > *flags, bool constrain_all)
 

Enumeration Type Documentation

Enumerator
Success 
NoRoots 
BadRoot 
FoundCycle 
IncompleteTraversal 

Definition at line 44 of file GU_Hierarchy.h.

Function Documentation

GU_API void GU_Hierarchy::computeLocalTransform ( const GU_Detail gdp,
const GA_OffsetArray nodes,
const GA_OffsetArray parents,
const UT_Vector3DArray P,
const UT_Matrix3DArray transform,
UT_Matrix4DArray local,
UT_Matrix4DArray effective_local,
const UT_IntArray model 
)
GU_API void GU_Hierarchy::computeWorldTransform ( const GU_Detail gdp,
const GA_OffsetArray nodes,
const GA_OffsetArray parents,
UT_Vector3DArray P,
UT_Matrix3DArray transform,
const UT_Matrix4DArray local,
UT_Matrix4DArray effective_local,
const UT_IntArray model,
const GA_PointGroup constrain_grp,
const UT_Array< int > *  flags,
bool  constrain_all 
)
GU_API bool GU_Hierarchy::findRoots ( const GU_Detail gdp,
GA_OffsetArray roots 
)
GU_API GA_OffsetArray GU_Hierarchy::getChildren ( const GU_Detail gdp,
const GA_Offset node,
bool  recurse = false 
)
GU_API void GU_Hierarchy::getChildren ( const GU_Detail gdp,
const GA_Offset node,
GA_OffsetArray children,
bool  recurse = false 
)
GU_API void GU_Hierarchy::getChildren ( const GU_Detail gdp,
const GA_Offset node,
UT_Set< GA_Offset > &  children,
bool  recurse = false 
)
GU_API const UT_StringHolder& GU_Hierarchy::getComputeHierarchyMessage ( ComputeHierarchyResult  result)

Returns a descriptive message for the ComputeHierarchyResult.

GU_API GA_Offset GU_Hierarchy::getParent ( const GU_Detail gdp,
const GA_Offset node 
)
GU_API void GU_Hierarchy::getParents ( const GU_Detail gdp,
const GA_Offset node,
GA_OffsetArray children 
)
GU_API void GU_Hierarchy::getParents ( const GU_Detail gdp,
const GA_Offset node,
UT_Set< GA_Offset > &  children 
)
GU_API GA_Offset GU_Hierarchy::getParentVertex ( const GU_Detail gdp,
const GA_Offset node 
)
GU_API ComputeHierarchyResult GU_Hierarchy::traverse ( const GU_Detail gdp,
GA_OffsetArray roots,
GA_OffsetArray nodes,
GA_OffsetArray parents,
UT_Map< GA_Offset, GA_OffsetArray > *  children = nullptr 
)