HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Group Class Referenceabstract

#include <GU_Group.h>

+ Inheritance diagram for GU_Group:

Public Member Functions

 GU_Group (GU_Detail *gdp)
 
virtual ~GU_Group ()
 
virtual GA_GroupnewGroup (const char *)=0
 
virtual GA_Groupfind (const char *) const =0
 
virtual void destroy ()=0
 
GA_Groupgroup () const
 
virtual bool boolean (GU_GroupBoolOp boolop, const UT_String &group1, bool negate1, const UT_String &group2, bool negate2) const
 
virtual bool boolean (GU_GroupBoolOp boolop, GA_Group *group1, bool negate1, GA_Group *group2, bool negate2) const
 

Protected Member Functions

virtual void generateGroup (const GU_GroupParms &parms)=0
 
virtual void range (int, int, int, int, int, int) const =0
 
void getRangeValues (int, int &, int &, int &, int &) const
 
virtual void pattern (const char *pattern, int nelements, int order) const =0
 
virtual void patternGroup (const char *pattern, bool order) const =0
 
virtual int boundingBox (float, float, float, float, float, float, float, float, float, bool)
 
virtual void boundingSphere (float, float, float, float, float, float, bool) const =0
 
virtual void normal (UT_Vector3 &nml, float angle) const =0
 
virtual void degenerate (bool degenerate, bool zaf, bool doOpen, float tol) const =0
 
virtual void randomChance (float seed, float frac, bool use_attrib, const char *attrib_name) const =0
 
bool pointInsideSphere (const GU_Detail *gdp, GA_Offset ptoff, float a, float b, float c, float tx, float ty, float tz) const
 
bool shouldKeepRandom (exint num, float globalseed, float frac) const
 
GU_Detailgdp () const
 
UT_BoundingBoxgetBBox () const
 
void setGroup (GA_Group *grp)
 
void deleteBBox ()
 

Static Protected Member Functions

static int isBackface (UT_Vector3 pos, UT_Vector3 nml, UT_Vector3 eye)
 

Detailed Description

Definition at line 129 of file GU_Group.h.

Constructor & Destructor Documentation

GU_Group::GU_Group ( GU_Detail gdp)
virtual GU_Group::~GU_Group ( )
virtual

Member Function Documentation

virtual bool GU_Group::boolean ( GU_GroupBoolOp  boolop,
const UT_String group1,
bool  negate1,
const UT_String group2,
bool  negate2 
) const
virtual

Reimplemented in GU_EdgeGroup, and GU_ElementGroup.

virtual bool GU_Group::boolean ( GU_GroupBoolOp  boolop,
GA_Group group1,
bool  negate1,
GA_Group group2,
bool  negate2 
) const
virtual

Reimplemented in GU_EdgeGroup, and GU_ElementGroup.

virtual int GU_Group::boundingBox ( float  ,
float  ,
float  ,
float  ,
float  ,
float  ,
float  ,
float  ,
float  ,
bool   
)
protectedvirtual
virtual void GU_Group::boundingSphere ( float  ,
float  ,
float  ,
float  ,
float  ,
float  ,
bool   
) const
protectedpure virtual
virtual void GU_Group::degenerate ( bool  degenerate,
bool  zaf,
bool  doOpen,
float  tol 
) const
protectedpure virtual

Select just those items that are degenerate, or are zero area faces. Set degenerate flag to select degenerates. Set the zaf flag to select zero area faces. Set the doOpen flag to treat open faces as closed. Set tol for a tolerance used in detecting degeneracies.

Implemented in GU_PrimGroup, GU_EdgeGroup, GU_PointGroup, and GU_VertexGroup.

void GU_Group::deleteBBox ( )
protected
virtual void GU_Group::destroy ( )
pure virtual
virtual GA_Group* GU_Group::find ( const char *  ) const
pure virtual
GU_Detail* GU_Group::gdp ( ) const
inlineprotected

Definition at line 220 of file GU_Group.h.

virtual void GU_Group::generateGroup ( const GU_GroupParms parms)
protectedpure virtual
UT_BoundingBox* GU_Group::getBBox ( ) const
inlineprotected

Definition at line 221 of file GU_Group.h.

void GU_Group::getRangeValues ( int  ,
int ,
int ,
int ,
int  
) const
protected
GA_Group* GU_Group::group ( ) const
inline

Definition at line 140 of file GU_Group.h.

static int GU_Group::isBackface ( UT_Vector3  pos,
UT_Vector3  nml,
UT_Vector3  eye 
)
staticprotected
virtual GA_Group* GU_Group::newGroup ( const char *  )
pure virtual
virtual void GU_Group::normal ( UT_Vector3 nml,
float  angle 
) const
protectedpure virtual
virtual void GU_Group::pattern ( const char *  pattern,
int  nelements,
int  order 
) const
protectedpure virtual
virtual void GU_Group::patternGroup ( const char *  pattern,
bool  order 
) const
protectedpure virtual
bool GU_Group::pointInsideSphere ( const GU_Detail gdp,
GA_Offset  ptoff,
float  a,
float  b,
float  c,
float  tx,
float  ty,
float  tz 
) const
protected
virtual void GU_Group::randomChance ( float  seed,
float  frac,
bool  use_attrib,
const char *  attrib_name 
) const
protectedpure virtual
virtual void GU_Group::range ( int  ,
int  ,
int  ,
int  ,
int  ,
int   
) const
protectedpure virtual
void GU_Group::setGroup ( GA_Group grp)
inlineprotected

Definition at line 224 of file GU_Group.h.

bool GU_Group::shouldKeepRandom ( exint  num,
float  globalseed,
float  frac 
) const
protected

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