HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_QuadLayout Class Reference

#include <GU_QuadLayout.h>

Public Types

enum  ArcOrientation { UNASSIGNED = 0, ROW, COL }
 
using HedgeArray = UT_Array< GEO_Hedge >
 

Public Member Functions

 GU_QuadLayout (const GU_Detail *gdp, const GA_PrimitiveGroup *group=nullptr, const GA_EdgeGroup *separator_edges=nullptr, const GA_PointGroup *forced_nodes=nullptr, const GA_Attribute *poly_island=nullptr, const GEO_DetachedHedgeInterface *hip=nullptr)
 
int numBlocks () const
 
int numArcs () const
 
SYS_FORCE_INLINE int polyBlock (GA_Offset poly) const
 
SYS_FORCE_INLINE int hedgeBlock (GEO_Hedge h) const
 
SYS_FORCE_INLINE bool isSingular (GA_Offset vtx) const
 
SYS_FORCE_INLINE bool isNode (GA_Offset vtx) const
 
SYS_FORCE_INLINE bool isOnArc (GEO_Hedge h) const
 
SYS_FORCE_INLINE bool isValidArc (int a) const
 
SYS_FORCE_INLINE bool isValidBlock (int b) const
 
SYS_FORCE_INLINE bool isFreeBlock (int b) const
 
SYS_FORCE_INLINE int blockArc (int b, int a=0) const
 
SYS_FORCE_INLINE int arcBlock (int a) const
 
SYS_FORCE_INLINE int arcSym (int a) const
 
SYS_FORCE_INLINE int arcLnext (int a) const
 
SYS_FORCE_INLINE int arcLprev (int a) const
 
SYS_FORCE_INLINE GEO_Hedge arcStart (int a) const
 
SYS_FORCE_INLINE GEO_Hedge arcEnd (int a) const
 
SYS_FORCE_INLINE GEO_Hedge hedgeSucc (GEO_Hedge h) const
 
GEO_Hedge trace (GEO_Hedge h, HedgeArray *hedges=nullptr) const
 
void orientArcs ()
 
SYS_FORCE_INLINE ArcOrientation arcOrientation (int a) const
 
SYS_FORCE_INLINE int blockComponent (int b) const
 
SYS_FORCE_INLINE int numBlockComponents () const
 
template<typename T >
int foreachBlockPoly (int b, const T &func) const
 

Detailed Description

Definition at line 49 of file GU_QuadLayout.h.

Member Typedef Documentation

Definition at line 164 of file GU_QuadLayout.h.

Member Enumeration Documentation

Enumerator
UNASSIGNED 
ROW 
COL 

Definition at line 69 of file GU_QuadLayout.h.

Constructor & Destructor Documentation

GU_QuadLayout::GU_QuadLayout ( const GU_Detail gdp,
const GA_PrimitiveGroup group = nullptr,
const GA_EdgeGroup separator_edges = nullptr,
const GA_PointGroup forced_nodes = nullptr,
const GA_Attribute poly_island = nullptr,
const GEO_DetachedHedgeInterface hip = nullptr 
)
explicit

Member Function Documentation

SYS_FORCE_INLINE int GU_QuadLayout::arcBlock ( int  a) const
inline

Definition at line 134 of file GU_QuadLayout.h.

SYS_FORCE_INLINE GEO_Hedge GU_QuadLayout::arcEnd ( int  a) const
SYS_FORCE_INLINE int GU_QuadLayout::arcLnext ( int  a) const
inline

Definition at line 143 of file GU_QuadLayout.h.

SYS_FORCE_INLINE int GU_QuadLayout::arcLprev ( int  a) const
inline

Definition at line 148 of file GU_QuadLayout.h.

SYS_FORCE_INLINE ArcOrientation GU_QuadLayout::arcOrientation ( int  a) const
inline

Definition at line 179 of file GU_QuadLayout.h.

SYS_FORCE_INLINE GEO_Hedge GU_QuadLayout::arcStart ( int  a) const
inline

Definition at line 153 of file GU_QuadLayout.h.

SYS_FORCE_INLINE int GU_QuadLayout::arcSym ( int  a) const
inline

Definition at line 139 of file GU_QuadLayout.h.

SYS_FORCE_INLINE int GU_QuadLayout::blockArc ( int  b,
int  a = 0 
) const
inline

Definition at line 130 of file GU_QuadLayout.h.

SYS_FORCE_INLINE int GU_QuadLayout::blockComponent ( int  b) const
inline

Definition at line 185 of file GU_QuadLayout.h.

template<typename T >
int GU_QuadLayout::foreachBlockPoly ( int  b,
const T func 
) const

Definition at line 386 of file GU_QuadLayout.h.

SYS_FORCE_INLINE int GU_QuadLayout::hedgeBlock ( GEO_Hedge  h) const
inline

Definition at line 88 of file GU_QuadLayout.h.

SYS_FORCE_INLINE GEO_Hedge GU_QuadLayout::hedgeSucc ( GEO_Hedge  h) const
inline

Definition at line 161 of file GU_QuadLayout.h.

bool GU_QuadLayout::isFreeBlock ( int  b) const

Definition at line 368 of file GU_QuadLayout.h.

SYS_FORCE_INLINE bool GU_QuadLayout::isNode ( GA_Offset  vtx) const
inline

Definition at line 100 of file GU_QuadLayout.h.

SYS_FORCE_INLINE bool GU_QuadLayout::isOnArc ( GEO_Hedge  h) const
inline

Definition at line 105 of file GU_QuadLayout.h.

SYS_FORCE_INLINE bool GU_QuadLayout::isSingular ( GA_Offset  vtx) const
inline

Definition at line 94 of file GU_QuadLayout.h.

SYS_FORCE_INLINE bool GU_QuadLayout::isValidArc ( int  a) const
inline

Definition at line 111 of file GU_QuadLayout.h.

bool GU_QuadLayout::isValidBlock ( int  b) const

Definition at line 361 of file GU_QuadLayout.h.

int GU_QuadLayout::numArcs ( ) const
inline

Definition at line 77 of file GU_QuadLayout.h.

SYS_FORCE_INLINE int GU_QuadLayout::numBlockComponents ( ) const
inline

Definition at line 189 of file GU_QuadLayout.h.

int GU_QuadLayout::numBlocks ( ) const
inline

Definition at line 72 of file GU_QuadLayout.h.

void GU_QuadLayout::orientArcs ( )
SYS_FORCE_INLINE int GU_QuadLayout::polyBlock ( GA_Offset  poly) const
inline

Definition at line 81 of file GU_QuadLayout.h.

GEO_Hedge GU_QuadLayout::trace ( GEO_Hedge  h,
HedgeArray hedges = nullptr 
) const

The documentation for this class was generated from the following file: