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

#include <GEO_PasteSurfDAG.h>

+ Inheritance diagram for GEO_PasteSurfDAG:

Public Member Functions

 GEO_PasteSurfDAG (void)
 
 GEO_PasteSurfDAG (GEO_PasteSurf *root)
 
 GEO_PasteSurfDAG (const GEO_PasteSurfDAG &srcdag)
 
 GEO_PasteSurfDAG (const GP_DomainDAG &srcdag)
 
virtual ~GEO_PasteSurfDAG (void)
 
virtual void clearAndDestroy (int total=1)
 
bool evaluate (fpreal u, fpreal v, GEO_Vertex result, GEO_AttributeHandleList &hlist, unsigned du=0, unsigned dv=0) const
 
bool evaluate (fpreal u, fpreal v, GA_Offset result, GA_AttributeRefMap &map, unsigned du=0, unsigned dv=0) const
 
int evaluate (float origu, float origv, UT_Vector4 &pos, unsigned du=0, unsigned dv=0) const
 
int evaluateNormal (float origu, float origv, UT_Vector3 &nml) const
 
int fillBreakMesh (int ustartidx, int ustopidx, int vstartidx, int vstopidx, int ulod, int vlod, UT_Vector4 *pos, int &vspans, int vbreakidx=-1, unsigned du=0, unsigned dv=0, UT_FloatArray *uval=0, UT_FloatArray *vval=0) const
 
int fillBreakMesh (int ustartidx, int ustopidx, int vstartidx, int vstopidx, int ulod, int vlod, GEO_Vertex **result, GEO_AttributeHandleList &hlist, int &vspans, int vbreakidx=-1, unsigned du=0, unsigned dv=0) const
 
int raiseOrderU (GEO_PasteSurf &child, int neworder, GA_AttributeRefMap &map)
 
int raiseOrderU (GEO_PasteSurf &child, int neworder)
 
int raiseOrderV (GEO_PasteSurf &child, int neworder, GA_AttributeRefMap &map)
 
int raiseOrderV (GEO_PasteSurf &child, int neworder)
 
int refineU (GEO_PasteSurf &c, float k, GA_AttributeRefMap &hlist, int r=1)
 
int refineU (GEO_PasteSurf &c, float k, int r=1)
 
int refineV (GEO_PasteSurf &c, float k, GA_AttributeRefMap &hlist, int r=1)
 
int refineV (GEO_PasteSurf &c, float k, int r=1)
 
int refineBelt (GEO_PasteSurf &child, float ubwidth=0.4F, float vbwidth=0.4F, int ubdivs=2, int vbdivs=2)
 
int unrefineU (GEO_PasteSurf &c, int kidx, GA_AttributeRefMap &hlist, int mult=0, float tol=1e-4F, GA_PointGroup *delgroup=0)
 
int unrefineU (GEO_PasteSurf &c, int kidx, int mult=0, float tol=1e-4F, GA_PointGroup *delgroup=0)
 
int unrefineV (GEO_PasteSurf &c, int kidx, GA_AttributeRefMap &hlist, int mult=0, float tol=1e-4F, GA_PointGroup *delgroup=0)
 
int unrefineV (GEO_PasteSurf &c, int kidx, int mult=0, float tol=1e-4F, GA_PointGroup *delgroup=0)
 
int reverseU (GEO_PasteSurf &child)
 
int reverseV (GEO_PasteSurf &child)
 
int reparameterizeU (GEO_PasteSurf &child, GA_ParameterizationType p)
 
int reparameterizeV (GEO_PasteSurf &child, GA_ParameterizationType p)
 
GEO_PasteSurfunpasteAt (GEO_PasteSurf &child, int preserveshape=0, int preservexform=0)
 
GEO_PasteSurfDAGunpasteFrom (GEO_PasteSurf &child, GP_NodeTree *ctree, int preserveshape=0, int preservexform=0)
 
int offsetAt (GEO_PasteSurf &surf, float height)
 
int offsetFrom (GEO_PasteSurf &surf, float height)
 
int height (float newheight)
 
int flipAt (GEO_PasteSurf &child)
 
int flipFrom (GEO_PasteSurf &child)
 
int flip (void)
 
void updateHierarchy (void)
 
void optimizeDisplacements (int update=1)
 
GEO_PasteSurfDAGoperator= (const GEO_PasteSurfDAG &src)
 
GEO_PasteSurfDAGoperator= (const GP_DomainDAG &src)
 
virtual void link (GP_Domain &child, GP_NodeList &parents, int keepshape=0)
 
virtual void link (GP_Domain &child, GP_Domain &parent, int withcorrection=1)
 
virtual int updateDescendents (GP_Domain &child, int including_child=0)
 
virtual int updateDisplacements (GP_Domain &child, int keepframes=1)
 
int pasteInPlace (GEO_PasteSurf &ps, GEO_TPSurf &tpsurf)
 
bool rowColTexture (const GA_RWHandleV3 &txth, bool ptattrib)
 
bool uniformTexture (const GA_RWHandleV3 &txth, bool ptattrib)
 
bool grevilleTexture (const GA_RWHandleV3 &txth, bool ptattrib)
 
bool chordLenTexture (const GA_RWHandleV3 &txth, bool ptattrib)
 
int traverse (int(*f)(const GEO_PasteSurf *, void *), void *d) const
 
int traverseBackward (int(*f)(const GEO_PasteSurf *, void *), void *d) const
 
const GEO_PasteSurfrootSurface () const
 
bool outToH9 (std::ostream &os, int binary=0) const
 
bool inFromH9 (UT_IStream &is)
 
bool saveHierarchy (UT_JSONWriter &w, const GA_SaveMap &map) const
 
bool loadHierarchy (UT_JSONParser &p, const GA_LoadMap &map)
 
- Public Member Functions inherited from GP_DomainDAG
 GP_DomainDAG (void)
 
 GP_DomainDAG (GP_Domain *root)
 
 GP_DomainDAG (const GP_DomainDAG &)
 
virtual ~GP_DomainDAG (void)
 
virtual void clear (void)
 
void copyFrom (const GP_DomainDAG &srcdag)
 
GP_DomainDAGoperator= (const GP_DomainDAG &src)
 
int canPaste (GP_Domain &d)
 
int canPaste (GP_Domain &d, GP_NodeList &parents)
 
int canPaste (GP_DomainDAG &dag)
 
int canPaste (GP_DomainDAG &dag, GP_NodeList &parents)
 
int canPaste (GP_DomainDAG &dag, GP_Domain &parent, const UT_BoundingRect &brect)
 
int isPasted () const
 
GP_Domainpaste (GP_DomainDAG &child, int keepshape=0)
 
GP_Domainpaste (GP_DomainDAG &child, GP_NodeList &parents, int keepshape=0)
 
GP_Domainpaste (GP_DomainDAG &srcdag, const GP_Point &b1, const GP_Point &b2, const GP_Point &b3, const GP_Point &b4)
 
GP_DomainunpasteAt (GP_Domain &child)
 
GP_DomainDAGunpasteFrom (GP_Domain &child, GP_NodeTree *ctree=0)
 
int destroyAt (GP_Domain &child)
 
int destroyFrom (GP_Domain &child, GP_NodeTree *ctree=0)
 
GP_DomainreplaceAt (GP_Domain &child, GP_DomainDAG &dag)
 
GP_DomainreplaceFrom (GP_Domain &child, GP_DomainDAG &dag, GP_NodeTree *ctree=0)
 
GP_DomainoverlayAt (GP_Domain &child, GP_DomainDAG &dag, int keepshape=0)
 
GP_DomainoverlayAt (GP_Domain &child, GP_DomainDAG &srcdag, const UT_BoundingRect &brect)
 
GP_DomainoverlayAt (GP_Domain &child, GP_DomainDAG &srcdag, const GP_Point &b1, const GP_Point &b2, const GP_Point &b3, const GP_Point &b4)
 
GP_DomainoverlayFrom (GP_Domain &child, GP_DomainDAG &dag, GP_NodeTree *ctree=0, int keepshape=0)
 
GP_DomainoverlayFrom (GP_Domain &child, GP_DomainDAG &dag, const GP_Point &b1, const GP_Point &b2, const GP_Point &b3, const GP_Point &b4, GP_NodeTree *ctree=0)
 
GP_DomainremoveAt (GP_Domain &child)
 
int modifyBasis (GP_Domain &child, int(*apply)(void *tpsurf, void *d), void *data=0, int standalone=0)
 
GP_Domainspawn (GP_Domain &child, const UT_BoundingRect &brect, float ubwidth=0, float vbwidth=0, int ubdivs=2, int vbdivs=2)
 
int contains (const GP_Point &worldp, int quick=0) const
 
int contains (const GP_Domain &d) const
 
GP_DomainkeyUp (GP_Domain &domain)
 
void keyUpFast (GP_Domain &domain)
 
GP_DomaintopDomain (const GP_Point &worldp) const
 
void changeRootXform (const GP_XformHandle &handle)
 
void changeRootXform (GP_Domain &d)
 
const GP_Domainroot (void) const
 
void raiseBridges (GP_Domain &d, GP_NodeTree *bridges)
 
GP_NodeListunderDomains (GP_Domain &d, GP_NodeList &parents)
 
- Public Member Functions inherited from GP_Graph
 GP_Graph (void)
 
 GP_Graph (GP_NodeTree &cnodes)
 
 GP_Graph (const GP_Graph &graph)
 
virtual ~GP_Graph (void)
 
GP_NodecopyFrom (const GP_Graph &src, const GP_Node *=0)
 
GP_Graphoperator= (const GP_Graph &src)
 
GP_Graphoperator+= (const GP_Graph &src)
 
void merge (const GP_Graph &src)
 
GP_Noderemove (GP_Node &node)
 
GP_Noderekey (GP_Node &node, int newkey)
 
const GP_NodeTreenodes (void) const
 
int entries (void) const
 

Protected Member Functions

virtual void changedRoot (void)
 
GEO_PasteSurfrootSurface ()
 
virtual GEO_PasteSurfDAGnewDAGSpecies (void) const
 
int fillVCurve (float u, int uidx, int vstartidx, int vstopidx, int density, UT_Vector4 *pos, int pvoffset, int rbound, unsigned du, unsigned dv) const
 
int fillVCurve (float u, int uidx, int vstartidx, int vstopidx, int density, GEO_Vertex **result, GEO_AttributeHandleList &hlist, int pvoffset, int rbound, unsigned du, unsigned dv) const
 
- Protected Member Functions inherited from GP_DomainDAG
virtual void obsolete (void)
 
GP_NodeTreecontainedDomains (const GP_Domain &base) const
 
GP_DomaininsertRoot (GP_Domain &root)
 
void insertDomain (GP_Domain &domain)
 
void relabel (int start=INT_MIN)
 
int pasteInPlace (GP_Domain &child)
 
GP_Domainroot (void)
 
- Protected Member Functions inherited from GP_Graph
GP_NodeTreenodes (void)
 

Detailed Description

Definition at line 29 of file GEO_PasteSurfDAG.h.

Constructor & Destructor Documentation

GEO_PasteSurfDAG::GEO_PasteSurfDAG ( void  )
GEO_PasteSurfDAG::GEO_PasteSurfDAG ( GEO_PasteSurf root)
GEO_PasteSurfDAG::GEO_PasteSurfDAG ( const GEO_PasteSurfDAG srcdag)
GEO_PasteSurfDAG::GEO_PasteSurfDAG ( const GP_DomainDAG srcdag)
virtual GEO_PasteSurfDAG::~GEO_PasteSurfDAG ( void  )
virtual

Member Function Documentation

virtual void GEO_PasteSurfDAG::changedRoot ( void  )
protectedvirtual

Reimplemented from GP_DomainDAG.

bool GEO_PasteSurfDAG::chordLenTexture ( const GA_RWHandleV3 txth,
bool  ptattrib 
)
virtual void GEO_PasteSurfDAG::clearAndDestroy ( int  total = 1)
virtual

Reimplemented from GP_DomainDAG.

bool GEO_PasteSurfDAG::evaluate ( fpreal  u,
fpreal  v,
GEO_Vertex  result,
GEO_AttributeHandleList hlist,
unsigned  du = 0,
unsigned  dv = 0 
) const
bool GEO_PasteSurfDAG::evaluate ( fpreal  u,
fpreal  v,
GA_Offset  result,
GA_AttributeRefMap map,
unsigned  du = 0,
unsigned  dv = 0 
) const
int GEO_PasteSurfDAG::evaluate ( float  origu,
float  origv,
UT_Vector4 pos,
unsigned  du = 0,
unsigned  dv = 0 
) const
int GEO_PasteSurfDAG::evaluateNormal ( float  origu,
float  origv,
UT_Vector3 nml 
) const
int GEO_PasteSurfDAG::fillBreakMesh ( int  ustartidx,
int  ustopidx,
int  vstartidx,
int  vstopidx,
int  ulod,
int  vlod,
UT_Vector4 pos,
int vspans,
int  vbreakidx = -1,
unsigned  du = 0,
unsigned  dv = 0,
UT_FloatArray uval = 0,
UT_FloatArray vval = 0 
) const
int GEO_PasteSurfDAG::fillBreakMesh ( int  ustartidx,
int  ustopidx,
int  vstartidx,
int  vstopidx,
int  ulod,
int  vlod,
GEO_Vertex **  result,
GEO_AttributeHandleList hlist,
int vspans,
int  vbreakidx = -1,
unsigned  du = 0,
unsigned  dv = 0 
) const
int GEO_PasteSurfDAG::fillVCurve ( float  u,
int  uidx,
int  vstartidx,
int  vstopidx,
int  density,
UT_Vector4 pos,
int  pvoffset,
int  rbound,
unsigned  du,
unsigned  dv 
) const
protected
int GEO_PasteSurfDAG::fillVCurve ( float  u,
int  uidx,
int  vstartidx,
int  vstopidx,
int  density,
GEO_Vertex **  result,
GEO_AttributeHandleList hlist,
int  pvoffset,
int  rbound,
unsigned  du,
unsigned  dv 
) const
protected
int GEO_PasteSurfDAG::flip ( void  )
inline

Definition at line 175 of file GEO_PasteSurfDAG.h.

int GEO_PasteSurfDAG::flipAt ( GEO_PasteSurf child)
int GEO_PasteSurfDAG::flipFrom ( GEO_PasteSurf child)
bool GEO_PasteSurfDAG::grevilleTexture ( const GA_RWHandleV3 txth,
bool  ptattrib 
)
int GEO_PasteSurfDAG::height ( float  newheight)
inline

Definition at line 164 of file GEO_PasteSurfDAG.h.

bool GEO_PasteSurfDAG::inFromH9 ( UT_IStream is)
virtual void GEO_PasteSurfDAG::link ( GP_Domain child,
GP_NodeList parents,
int  keepshape = 0 
)
virtual

Reimplemented from GP_DomainDAG.

virtual void GEO_PasteSurfDAG::link ( GP_Domain child,
GP_Domain parent,
int  withcorrection = 1 
)
virtual

Reimplemented from GP_DomainDAG.

bool GEO_PasteSurfDAG::loadHierarchy ( UT_JSONParser p,
const GA_LoadMap map 
)
virtual GEO_PasteSurfDAG* GEO_PasteSurfDAG::newDAGSpecies ( void  ) const
protectedvirtual

Reimplemented in GU_PrimPasteDAG.

int GEO_PasteSurfDAG::offsetAt ( GEO_PasteSurf surf,
float  height 
)
int GEO_PasteSurfDAG::offsetFrom ( GEO_PasteSurf surf,
float  height 
)
GEO_PasteSurfDAG& GEO_PasteSurfDAG::operator= ( const GEO_PasteSurfDAG src)
GEO_PasteSurfDAG& GEO_PasteSurfDAG::operator= ( const GP_DomainDAG src)
void GEO_PasteSurfDAG::optimizeDisplacements ( int  update = 1)
bool GEO_PasteSurfDAG::outToH9 ( std::ostream &  os,
int  binary = 0 
) const
int GEO_PasteSurfDAG::pasteInPlace ( GEO_PasteSurf ps,
GEO_TPSurf tpsurf 
)
int GEO_PasteSurfDAG::raiseOrderU ( GEO_PasteSurf child,
int  neworder,
GA_AttributeRefMap map 
)
int GEO_PasteSurfDAG::raiseOrderU ( GEO_PasteSurf child,
int  neworder 
)
int GEO_PasteSurfDAG::raiseOrderV ( GEO_PasteSurf child,
int  neworder,
GA_AttributeRefMap map 
)
int GEO_PasteSurfDAG::raiseOrderV ( GEO_PasteSurf child,
int  neworder 
)
int GEO_PasteSurfDAG::refineBelt ( GEO_PasteSurf child,
float  ubwidth = 0.4F,
float  vbwidth = 0.4F,
int  ubdivs = 2,
int  vbdivs = 2 
)
int GEO_PasteSurfDAG::refineU ( GEO_PasteSurf c,
float  k,
GA_AttributeRefMap hlist,
int  r = 1 
)
int GEO_PasteSurfDAG::refineU ( GEO_PasteSurf c,
float  k,
int  r = 1 
)
int GEO_PasteSurfDAG::refineV ( GEO_PasteSurf c,
float  k,
GA_AttributeRefMap hlist,
int  r = 1 
)
int GEO_PasteSurfDAG::refineV ( GEO_PasteSurf c,
float  k,
int  r = 1 
)
int GEO_PasteSurfDAG::reparameterizeU ( GEO_PasteSurf child,
GA_ParameterizationType  p 
)
int GEO_PasteSurfDAG::reparameterizeV ( GEO_PasteSurf child,
GA_ParameterizationType  p 
)
int GEO_PasteSurfDAG::reverseU ( GEO_PasteSurf child)
int GEO_PasteSurfDAG::reverseV ( GEO_PasteSurf child)
const GEO_PasteSurf* GEO_PasteSurfDAG::rootSurface ( ) const
inline

Definition at line 238 of file GEO_PasteSurfDAG.h.

GEO_PasteSurf* GEO_PasteSurfDAG::rootSurface ( )
inlineprotected

Definition at line 263 of file GEO_PasteSurfDAG.h.

bool GEO_PasteSurfDAG::rowColTexture ( const GA_RWHandleV3 txth,
bool  ptattrib 
)

Compute the texture coordinates either uniformly of chord length. If the attribute is invalid, the methods find it and create the attribute if necessary. If ptattrib is true we deal with points, else with vertices. Returns false iff problems.

bool GEO_PasteSurfDAG::saveHierarchy ( UT_JSONWriter w,
const GA_SaveMap map 
) const
int GEO_PasteSurfDAG::traverse ( int(*)(const GEO_PasteSurf *, void *)  f,
void d 
) const
int GEO_PasteSurfDAG::traverseBackward ( int(*)(const GEO_PasteSurf *, void *)  f,
void d 
) const
bool GEO_PasteSurfDAG::uniformTexture ( const GA_RWHandleV3 txth,
bool  ptattrib 
)
GEO_PasteSurf* GEO_PasteSurfDAG::unpasteAt ( GEO_PasteSurf child,
int  preserveshape = 0,
int  preservexform = 0 
)
GEO_PasteSurfDAG* GEO_PasteSurfDAG::unpasteFrom ( GEO_PasteSurf child,
GP_NodeTree ctree,
int  preserveshape = 0,
int  preservexform = 0 
)
int GEO_PasteSurfDAG::unrefineU ( GEO_PasteSurf c,
int  kidx,
GA_AttributeRefMap hlist,
int  mult = 0,
float  tol = 1e-4F,
GA_PointGroup delgroup = 0 
)
int GEO_PasteSurfDAG::unrefineU ( GEO_PasteSurf c,
int  kidx,
int  mult = 0,
float  tol = 1e-4F,
GA_PointGroup delgroup = 0 
)
int GEO_PasteSurfDAG::unrefineV ( GEO_PasteSurf c,
int  kidx,
GA_AttributeRefMap hlist,
int  mult = 0,
float  tol = 1e-4F,
GA_PointGroup delgroup = 0 
)
int GEO_PasteSurfDAG::unrefineV ( GEO_PasteSurf c,
int  kidx,
int  mult = 0,
float  tol = 1e-4F,
GA_PointGroup delgroup = 0 
)
virtual int GEO_PasteSurfDAG::updateDescendents ( GP_Domain child,
int  including_child = 0 
)
virtual

Reimplemented from GP_DomainDAG.

virtual int GEO_PasteSurfDAG::updateDisplacements ( GP_Domain child,
int  keepframes = 1 
)
virtual

Reimplemented from GP_DomainDAG.

void GEO_PasteSurfDAG::updateHierarchy ( void  )

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