GU_Brush Class Reference

#include <GU_Brush.h>

List of all members.

Public Member Functions

 GU_Brush ()
virtual ~GU_Brush ()
void buildCaches (GU_Detail *gdp, const GU_Detail *isectgdp, const GB_PrimitiveGroup *group, const GB_PointGroup *ptgroup, int usevisibility)
void buildVertexClasses ()
void clearCaches ()
bool hasValidCache ()
const GU_DetailgetIsectGdp () const
bool overrideColour (const char *name)
bool overrideAlpha (const char *name)
bool overrideNml (const char *name)
void useCaptureRegion (int captureidx, int normalizeweight, GEO_Detail::CaptureType capturetype=GEO_Detail::CAPTURE_BONE)
int defaultColour (bool create=0)
int defaultAlpha (bool create=0)
int defaultNormal (bool create=0)
int defaultTexture (bool create=0)
void visualizeColor (float low, float high, UT_ColorRamp mode)
int doVisualize () const
void setVisualizeCd (GEO_Point *pt, const UT_Vector3 &cd)
void clearVisualize ()
void applyVisualize (GU_Detail *gdp)
void applyVisualizeStencil (GU_Detail *gdp)
void getPointCd (const GEO_Point *pt, UT_Vector3 &cd) const
void getVertexCd (const GEO_Vertex *vtx, UT_Vector3 &cd) const
void addPrimPoints (const GEO_Primitive *prim, UT_BitArray &ptused, UT_Vector3Array &pts, UT_IntArray &idxlist)
void buildTrees (int usevisibility)
void addUVPrimPoints (const GEO_Primitive *prim, const GB_AttributeRef &uvoffset, UT_BitArray &ptused, UT_Vector3Array &uvpts, UT_IntArray &idxlist)
void buildUVTrees (int usevisibility)
void destroyTrees ()
GEO_PointTreegetPointTree ()
GEO_PointTreegetUVPointTree ()
void connectRingPts (const GEO_Point *pt1, const GEO_Point *pt2, bool doublevalence=false)
void connectRingVtx (int vtxnum, const GEO_Vertex *vtx2, bool doublevalence=false)
void addToRingCache (GEO_Primitive *prim)
void buildRingCache (int usevisibility)
void clearRingCache ()
void setWriteAlpha (int val)
int getWriteAlpha () const
int hasStencil () const
void clearStencil ()
void setMergeModeCallback (GU_BrushMergeModeCallback cb, void *data)
void applyMergeMode (GEO_Point *pt, GEO_Vertex *vtx, UT_Vector3 &result, const UT_Vector3 &src, const UT_Vector3 &dst, GU_BrushMergeMode mergemode)
void setStencil (float val, int usevisibility)
void colourStencil (GEO_Delta *delta, const UT_Vector3 &cd, GU_BrushMergeMode mergemode)
void stampColourStencil (GEO_Delta *delta, GU_BrushMergeMode mergemode)
void callbackStencil (GEO_Delta *delta, GU_BrushCallback cb, void *data)
void combNormals (GEO_Delta *delta, const UT_Vector3 &dir, float lift, int preservenmllen)
void dragTexture (GEO_Delta *delta, const UT_Vector3 &dir)
void scaleTexture (GEO_Delta *delat, float scale, const UT_Vector3 &orig)
void displaceNormals (GEO_Delta *delta, float amt)
void displaceVector (GEO_Delta *delta, const UT_Vector3 &dir, float amt)
void smoothPoints (GEO_Delta *delta)
void smoothAttribute (GEO_Delta *delta)
void smoothNormals (GEO_Delta *delta, int preservenmllen)
void smoothTexture (GEO_Delta *delta)
void eraseAttributes (GEO_Delta *old, GEO_Delta *change)
void erasePositions (GEO_Delta *old, GEO_Delta *change)
void eraseCapture (GEO_Delta *old, GEO_Delta *change)
int findUVSeedPtNum (const UT_Vector3 &orig)
void applyDab (GU_BrushNib *nib, float stencil_val, const UT_Vector3 &orig, const UT_Vector3 &dir, float rad, const GEO_Primitive *seed, const GEO_Point *seedpt, bool useconnectivity, bool inuv)
void getNormal (int primidx, UT_Vector3 &nml)
void getPtNormal (int ptidx, UT_Vector3 &nml)
void clearNormalCache ()

Protected Member Functions

int testPrimitive (const GEO_Primitive *test, const UT_Vector3 &orig, const UT_Vector3 &dir, float radius2, int seeddir)
int testPoint (int ptnum, const UT_Vector3 &orig, const UT_Vector3 &dir, float radius2, int seeddir)
void evaluateHullsNormal (const GEO_Hull *hull)
bool isPointEditable (int ptnum)

Protected Attributes

const GB_PrimitiveGroupmyGroup
const GB_PointGroupmyPointGroup
GU_DetailmyGdp
const GU_DetailmyIsectGdp
UT_BitArray myNmlSet
UT_Vector3Array myNmlCache
UT_BitArray myPtNmlSet
UT_Vector3Array myPtNmlCache
GEO_PointTreemyPointTree
GEO_PointTreemyUVPointTree
UT_Vector3Array myPointPos
UT_Vector3Array myUVPointPos
UT_PtrArray< UT_PtrArray
< const GEO_Primitive * > * > 
myPt2Prim
UT_PtrArray< const GEO_Vertex * > myIsectVtx
UT_PtrArray< GEO_Vertex * > myGeoVtx
UT_PtrArray< GEO_Primitive * > myVtx2Prim
UT_IntArray myVtx2PrimIdx
UT_PtrArray< UT_IntArray * > myPt2Vtx
UT_IntArray myVtxClass
UT_PtrArray< UT_PtrArray
< const GEO_Point * > * > 
myRingZero
UT_IntArray myRingValence
UT_PtrArray< UT_PtrArray
< const GEO_Vertex * > * > 
myVtxRingZero
UT_PtrArray< UT_IntArray * > myVtxRingClass
GB_AttributeRef myColorOffset
int myColorSize
bool myColorVertex
GB_AttributeRef myAlphaOffset
bool myAlphaVertex
GB_AttributeRef myTextureOffset
int myTextureSize
bool myTextureVertex
GB_AttributeRef myNormalOffset
GB_AttributeRef myVisualizeOffset
float myVisLow
float myVisHigh
UT_ColorRamp myVisMode
int myWriteAlpha
int myCaptureOffset
int myCaptureIdx
int myNormalizeWeight
GEO_Detail::CaptureType myCaptureType
bool myUseVisibility
GU_BrushMergeModeCallback myMergeModeCallback
void * myMergeModeCallbackData


Detailed Description

Definition at line 162 of file GU_Brush.h.


Constructor & Destructor Documentation

GU_Brush::GU_Brush (  ) 

virtual GU_Brush::~GU_Brush (  )  [virtual]


Member Function Documentation

void GU_Brush::addPrimPoints ( const GEO_Primitive prim,
UT_BitArray ptused,
UT_Vector3Array pts,
UT_IntArray idxlist 
)

void GU_Brush::addToRingCache ( GEO_Primitive prim  ) 

void GU_Brush::addUVPrimPoints ( const GEO_Primitive prim,
const GB_AttributeRef uvoffset,
UT_BitArray ptused,
UT_Vector3Array uvpts,
UT_IntArray idxlist 
)

void GU_Brush::applyDab ( GU_BrushNib nib,
float  stencil_val,
const UT_Vector3 orig,
const UT_Vector3 dir,
float  rad,
const GEO_Primitive seed,
const GEO_Point seedpt,
bool  useconnectivity,
bool  inuv 
)

void GU_Brush::applyMergeMode ( GEO_Point pt,
GEO_Vertex vtx,
UT_Vector3 result,
const UT_Vector3 src,
const UT_Vector3 dst,
GU_BrushMergeMode  mergemode 
)

void GU_Brush::applyVisualize ( GU_Detail gdp  ) 

void GU_Brush::applyVisualizeStencil ( GU_Detail gdp  ) 

void GU_Brush::buildCaches ( GU_Detail gdp,
const GU_Detail isectgdp,
const GB_PrimitiveGroup group,
const GB_PointGroup ptgroup,
int  usevisibility 
)

void GU_Brush::buildRingCache ( int  usevisibility  ) 

void GU_Brush::buildTrees ( int  usevisibility  ) 

void GU_Brush::buildUVTrees ( int  usevisibility  ) 

void GU_Brush::buildVertexClasses (  ) 

void GU_Brush::callbackStencil ( GEO_Delta delta,
GU_BrushCallback  cb,
void *  data 
)

void GU_Brush::clearCaches (  ) 

void GU_Brush::clearNormalCache (  ) 

void GU_Brush::clearRingCache (  ) 

void GU_Brush::clearStencil (  ) 

void GU_Brush::clearVisualize (  )  [inline]

Definition at line 207 of file GU_Brush.h.

void GU_Brush::colourStencil ( GEO_Delta delta,
const UT_Vector3 cd,
GU_BrushMergeMode  mergemode 
)

void GU_Brush::combNormals ( GEO_Delta delta,
const UT_Vector3 dir,
float  lift,
int  preservenmllen 
)

void GU_Brush::connectRingPts ( const GEO_Point pt1,
const GEO_Point pt2,
bool  doublevalence = false 
)

void GU_Brush::connectRingVtx ( int  vtxnum,
const GEO_Vertex vtx2,
bool  doublevalence = false 
)

int GU_Brush::defaultAlpha ( bool  create = 0  ) 

int GU_Brush::defaultColour ( bool  create = 0  ) 

int GU_Brush::defaultNormal ( bool  create = 0  ) 

int GU_Brush::defaultTexture ( bool  create = 0  ) 

void GU_Brush::destroyTrees (  ) 

void GU_Brush::displaceNormals ( GEO_Delta delta,
float  amt 
)

void GU_Brush::displaceVector ( GEO_Delta delta,
const UT_Vector3 dir,
float  amt 
)

int GU_Brush::doVisualize (  )  const [inline]

Examples:
SOP/SOP_BrushHairLen.C.

Definition at line 205 of file GU_Brush.h.

void GU_Brush::dragTexture ( GEO_Delta delta,
const UT_Vector3 dir 
)

void GU_Brush::eraseAttributes ( GEO_Delta old,
GEO_Delta change 
)

void GU_Brush::eraseCapture ( GEO_Delta old,
GEO_Delta change 
)

void GU_Brush::erasePositions ( GEO_Delta old,
GEO_Delta change 
)

void GU_Brush::evaluateHullsNormal ( const GEO_Hull hull  )  [protected]

int GU_Brush::findUVSeedPtNum ( const UT_Vector3 orig  ) 

const GU_Detail* GU_Brush::getIsectGdp (  )  const [inline]

Definition at line 180 of file GU_Brush.h.

void GU_Brush::getNormal ( int  primidx,
UT_Vector3 nml 
)

void GU_Brush::getPointCd ( const GEO_Point pt,
UT_Vector3 cd 
) const

GEO_PointTree* GU_Brush::getPointTree (  )  [inline]

Definition at line 227 of file GU_Brush.h.

void GU_Brush::getPtNormal ( int  ptidx,
UT_Vector3 nml 
)

GEO_PointTree* GU_Brush::getUVPointTree (  )  [inline]

Definition at line 228 of file GU_Brush.h.

void GU_Brush::getVertexCd ( const GEO_Vertex vtx,
UT_Vector3 cd 
) const

int GU_Brush::getWriteAlpha (  )  const [inline]

Definition at line 245 of file GU_Brush.h.

int GU_Brush::hasStencil (  )  const

bool GU_Brush::hasValidCache (  )  [inline]

Definition at line 178 of file GU_Brush.h.

bool GU_Brush::isPointEditable ( int  ptnum  )  [protected]

bool GU_Brush::overrideAlpha ( const char *  name  ) 

bool GU_Brush::overrideColour ( const char *  name  ) 

bool GU_Brush::overrideNml ( const char *  name  ) 

void GU_Brush::scaleTexture ( GEO_Delta delat,
float  scale,
const UT_Vector3 orig 
)

void GU_Brush::setMergeModeCallback ( GU_BrushMergeModeCallback  cb,
void *  data 
) [inline]

Definition at line 251 of file GU_Brush.h.

void GU_Brush::setStencil ( float  val,
int  usevisibility 
)

void GU_Brush::setVisualizeCd ( GEO_Point pt,
const UT_Vector3 cd 
)

void GU_Brush::setWriteAlpha ( int  val  )  [inline]

Definition at line 244 of file GU_Brush.h.

void GU_Brush::smoothAttribute ( GEO_Delta delta  ) 

void GU_Brush::smoothNormals ( GEO_Delta delta,
int  preservenmllen 
)

void GU_Brush::smoothPoints ( GEO_Delta delta  ) 

void GU_Brush::smoothTexture ( GEO_Delta delta  ) 

void GU_Brush::stampColourStencil ( GEO_Delta delta,
GU_BrushMergeMode  mergemode 
)

int GU_Brush::testPoint ( int  ptnum,
const UT_Vector3 orig,
const UT_Vector3 dir,
float  radius2,
int  seeddir 
) [protected]

int GU_Brush::testPrimitive ( const GEO_Primitive test,
const UT_Vector3 orig,
const UT_Vector3 dir,
float  radius2,
int  seeddir 
) [protected]

void GU_Brush::useCaptureRegion ( int  captureidx,
int  normalizeweight,
GEO_Detail::CaptureType  capturetype = GEO_Detail::CAPTURE_BONE 
)

void GU_Brush::visualizeColor ( float  low,
float  high,
UT_ColorRamp  mode 
)


Member Data Documentation

Definition at line 380 of file GU_Brush.h.

bool GU_Brush::myAlphaVertex [protected]

Definition at line 381 of file GU_Brush.h.

int GU_Brush::myCaptureIdx [protected]

Definition at line 391 of file GU_Brush.h.

int GU_Brush::myCaptureOffset [protected]

Definition at line 390 of file GU_Brush.h.

Definition at line 392 of file GU_Brush.h.

Definition at line 377 of file GU_Brush.h.

int GU_Brush::myColorSize [protected]

Definition at line 378 of file GU_Brush.h.

bool GU_Brush::myColorVertex [protected]

Definition at line 379 of file GU_Brush.h.

GU_Detail* GU_Brush::myGdp [protected]

Definition at line 341 of file GU_Brush.h.

Definition at line 356 of file GU_Brush.h.

Definition at line 339 of file GU_Brush.h.

const GU_Detail* GU_Brush::myIsectGdp [protected]

Definition at line 342 of file GU_Brush.h.

Definition at line 355 of file GU_Brush.h.

Definition at line 395 of file GU_Brush.h.

Definition at line 396 of file GU_Brush.h.

Definition at line 345 of file GU_Brush.h.

Definition at line 344 of file GU_Brush.h.

int GU_Brush::myNormalizeWeight [protected]

Definition at line 391 of file GU_Brush.h.

Definition at line 385 of file GU_Brush.h.

Definition at line 340 of file GU_Brush.h.

Definition at line 351 of file GU_Brush.h.

Definition at line 349 of file GU_Brush.h.

Definition at line 354 of file GU_Brush.h.

Definition at line 359 of file GU_Brush.h.

Definition at line 347 of file GU_Brush.h.

Definition at line 346 of file GU_Brush.h.

Definition at line 372 of file GU_Brush.h.

Definition at line 368 of file GU_Brush.h.

Definition at line 382 of file GU_Brush.h.

int GU_Brush::myTextureSize [protected]

Definition at line 383 of file GU_Brush.h.

bool GU_Brush::myTextureVertex [protected]

Definition at line 384 of file GU_Brush.h.

bool GU_Brush::myUseVisibility [protected]

Definition at line 393 of file GU_Brush.h.

Definition at line 352 of file GU_Brush.h.

Definition at line 350 of file GU_Brush.h.

float GU_Brush::myVisHigh [protected]

Definition at line 387 of file GU_Brush.h.

float GU_Brush::myVisLow [protected]

Definition at line 387 of file GU_Brush.h.

Definition at line 388 of file GU_Brush.h.

Definition at line 386 of file GU_Brush.h.

Definition at line 357 of file GU_Brush.h.

Definition at line 358 of file GU_Brush.h.

Definition at line 365 of file GU_Brush.h.

Definition at line 375 of file GU_Brush.h.

Definition at line 374 of file GU_Brush.h.

int GU_Brush::myWriteAlpha [protected]

Definition at line 389 of file GU_Brush.h.


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

Generated on Mon Jan 28 00:48:26 2013 for HDK by  doxygen 1.5.9