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

#include <GEO_PasteSurf.h>

+ Inheritance diagram for GEO_PasteSurf:

Public Member Functions

 GEO_PasteSurf (void)
 
 GEO_PasteSurf (GEO_TPSurf &tpsurf, const GP_XformHandle &xform, int pasteup=1, float height=0)
 
 GEO_PasteSurf (const GEO_PasteSurf &d)
 
virtual ~GEO_PasteSurf (void)
 
virtual GP_Nodecopy (void) const
 
virtual GP_NodenewSpecies (void) const
 
virtual int save (std::ostream &os, int binary=0) const
 
virtual bool load (UT_IStream &is)
 
virtual bool saveJSONFields (UT_JSONWriter &w, const GA_SaveMap &map) const
 
virtual void initJSONLoad ()
 
virtual bool loadJSONField (UT_JSONParser &p, const GA_LoadMap &map, const char *field_token)
 
virtual void findParents (GP_NodeList &stack, GP_NodeList &parents)
 
virtual void findParent (GP_Domain &parent)
 
virtual GP_Domainspawn (const UT_BoundingRect &brect, float ubwidth=0, float vbwidth=0, int ubdivs=2, int vbdivs=2, int newkey=0)
 
bool evaluate (fpreal worldu, fpreal worldv, GEO_Vertex result, GEO_AttributeHandleList &hlist, unsigned du=0, unsigned dv=0) const
 
bool evaluate (fpreal worldu, fpreal worldv, GA_Offset result, GA_AttributeRefMap &map, unsigned du=0, unsigned dv=0) const
 
int evaluate (float worldu, float worldv, UT_Vector4 &pos, unsigned du=0, unsigned dv=0) const
 
void independentVertices (int preserve_shape=1)
 
void translateVertices (const UT_Vector3 &delta)
 
void updateTranslation (const UT_Vector3 &delta)
 
void updateVertices (void)
 
void updateDisplacements (int keepframes=1)
 
void updateDisplacement (int r, int c)
 
void optimizeDisplacements (int update=1)
 
void setBases (GEO_PasteSurf *base=0)
 
void affineBasis (void)
 
bool rowColTexture (const GA_RWHandleV3 &txth, bool ptattrib=true)
 
bool uniformTexture (const GA_RWHandleV3 &txth, bool ptattrib=true)
 
bool grevilleTexture (const GA_RWHandleV3 &txth, bool ptattrib=true)
 
bool chordLenTexture (const GA_RWHandleV3 &txth, bool ptattrib=true)
 
void trimUnder (float scale=1.0f, int keepoutside=1)
 
float height (void) const
 
void height (float h)
 
void sterilize (int mutual=1)
 
void pregnant (GEO_TPSurf &s, int mutual=1, int rebuild=1)
 
int pastedUp (void) const
 
void pasteUp (int updt=1)
 
void pasteDown (int updt=1)
 
const GP_Frameframe (void) const
 
const GEO_TPSurfsurface (void) const
 
int hasSurface (void) const
 
GEO_PasteSurfDAGhierarchy (void) const
 
int primNumber (void) const
 
- Public Member Functions inherited from GP_Domain
 GP_Domain (void)
 
 GP_Domain (const UT_BoundingRect &original, const GP_XformHandle &xform, int key=0)
 
 GP_Domain (const GP_Domain &d)
 
virtual ~GP_Domain (void)
 
GP_FrameHierarchyframes (void) const
 
void frames (GP_FrameHierarchy *f)
 
GP_DomainDAGdag (void) const
 
void update (void)
 
void polygon (GP_Point &p1, GP_Point &p2, GP_Point &p3, GP_Point &p4)
 
GP_DomainparentDomain (void) const
 
int fromWorld (GP_Point &p) const
 
int contains (const GP_Point &worldp, int quick=0) const
 
int contains (const GP_Domain &d, int quick=0) const
 
int intersects (const GP_Domain &d, int quick=0) const
 
float intersect (const GP_Point &a, const GP_Point &b) const
 
int isFeature () const
 
GP_Domainrelative (void) const
 
void relative (GP_Domain *d)
 
const UT_BoundingRectoriginalBRect () const
 
void originalBRect (const UT_BoundingRect &brect)
 
void safeOriginalBRect (const UT_BoundingRect &)
 
const UT_BoundingRectworldBRect () const
 
const UT_BoundingRectworldBRect ()
 
- Public Member Functions inherited from GP_Node
 GP_Node (int akey=0)
 
 GP_Node (const GP_Node &node)
 
virtual ~GP_Node (void)
 
virtual int copyOutNodes (const GP_Node &src, const GP_NodeTree &destpool)
 
void removeInEdges (void)
 
void removeOutEdges (void)
 
GP_NodeTreedescendents (void) const
 
int inDegree (void) const
 
int outDegree (void) const
 
int key (void) const
 
void key (int k)
 
GP_NodeTreeinNodes (void)
 
const GP_NodeTreeinNodes (void) const
 
GP_NodeTreeoutNodes (void)
 
const GP_NodeTreeoutNodes (void) const
 

Protected Member Functions

virtual int copyInNodes (const GP_Node &src, const GP_NodeTree &destpool)
 
- Protected Member Functions inherited from GP_Domain
void updatePolygon (void)
 

Friends

class GEO_PasteSurfDAG
 

Detailed Description

Definition at line 32 of file GEO_PasteSurf.h.

Constructor & Destructor Documentation

GEO_PasteSurf::GEO_PasteSurf ( void  )
GEO_PasteSurf::GEO_PasteSurf ( GEO_TPSurf tpsurf,
const GP_XformHandle xform,
int  pasteup = 1,
float  height = 0 
)
GEO_PasteSurf::GEO_PasteSurf ( const GEO_PasteSurf d)
virtual GEO_PasteSurf::~GEO_PasteSurf ( void  )
virtual

Member Function Documentation

void GEO_PasteSurf::affineBasis ( void  )
bool GEO_PasteSurf::chordLenTexture ( const GA_RWHandleV3 txth,
bool  ptattrib = true 
)
virtual GP_Node* GEO_PasteSurf::copy ( void  ) const
virtual

Reimplemented from GP_Domain.

virtual int GEO_PasteSurf::copyInNodes ( const GP_Node src,
const GP_NodeTree destpool 
)
protectedvirtual

Reimplemented from GP_Node.

bool GEO_PasteSurf::evaluate ( fpreal  worldu,
fpreal  worldv,
GEO_Vertex  result,
GEO_AttributeHandleList hlist,
unsigned  du = 0,
unsigned  dv = 0 
) const
bool GEO_PasteSurf::evaluate ( fpreal  worldu,
fpreal  worldv,
GA_Offset  result,
GA_AttributeRefMap map,
unsigned  du = 0,
unsigned  dv = 0 
) const
int GEO_PasteSurf::evaluate ( float  worldu,
float  worldv,
UT_Vector4 pos,
unsigned  du = 0,
unsigned  dv = 0 
) const
virtual void GEO_PasteSurf::findParent ( GP_Domain parent)
virtual

Implements GP_Domain.

virtual void GEO_PasteSurf::findParents ( GP_NodeList stack,
GP_NodeList parents 
)
virtual

Implements GP_Domain.

const GP_Frame& GEO_PasteSurf::frame ( void  ) const
inline

Definition at line 162 of file GEO_PasteSurf.h.

bool GEO_PasteSurf::grevilleTexture ( const GA_RWHandleV3 txth,
bool  ptattrib = true 
)
int GEO_PasteSurf::hasSurface ( void  ) const
inline

Definition at line 166 of file GEO_PasteSurf.h.

float GEO_PasteSurf::height ( void  ) const
inline

Definition at line 146 of file GEO_PasteSurf.h.

void GEO_PasteSurf::height ( float  h)
GEO_PasteSurfDAG* GEO_PasteSurf::hierarchy ( void  ) const
void GEO_PasteSurf::independentVertices ( int  preserve_shape = 1)
virtual void GEO_PasteSurf::initJSONLoad ( )
virtual

Reimplemented from GP_Domain.

virtual bool GEO_PasteSurf::load ( UT_IStream is)
virtual

Reimplemented from GP_Domain.

virtual bool GEO_PasteSurf::loadJSONField ( UT_JSONParser p,
const GA_LoadMap map,
const char *  field_token 
)
virtual

Reimplemented from GP_Domain.

virtual GP_Node* GEO_PasteSurf::newSpecies ( void  ) const
virtual

Reimplemented from GP_Node.

void GEO_PasteSurf::optimizeDisplacements ( int  update = 1)
void GEO_PasteSurf::pasteDown ( int  updt = 1)
inline

Definition at line 159 of file GEO_PasteSurf.h.

int GEO_PasteSurf::pastedUp ( void  ) const
inline

Definition at line 157 of file GEO_PasteSurf.h.

void GEO_PasteSurf::pasteUp ( int  updt = 1)
inline

Definition at line 158 of file GEO_PasteSurf.h.

void GEO_PasteSurf::pregnant ( GEO_TPSurf s,
int  mutual = 1,
int  rebuild = 1 
)
int GEO_PasteSurf::primNumber ( void  ) const
inline

Definition at line 172 of file GEO_PasteSurf.h.

bool GEO_PasteSurf::rowColTexture ( const GA_RWHandleV3 txth,
bool  ptattrib = true 
)

Compute the texture coordinates either uniformly of chord length. If ptattrib is true we deal with points, else with vertices. Return the texture offset or -1 if problems.

virtual int GEO_PasteSurf::save ( std::ostream &  os,
int  binary = 0 
) const
virtual

Reimplemented from GP_Domain.

virtual bool GEO_PasteSurf::saveJSONFields ( UT_JSONWriter w,
const GA_SaveMap map 
) const
virtual

Reimplemented from GP_Domain.

void GEO_PasteSurf::setBases ( GEO_PasteSurf base = 0)
virtual GP_Domain* GEO_PasteSurf::spawn ( const UT_BoundingRect brect,
float  ubwidth = 0,
float  vbwidth = 0,
int  ubdivs = 2,
int  vbdivs = 2,
int  newkey = 0 
)
virtual

Implements GP_Domain.

void GEO_PasteSurf::sterilize ( int  mutual = 1)
const GEO_TPSurf& GEO_PasteSurf::surface ( void  ) const
inline

Definition at line 163 of file GEO_PasteSurf.h.

void GEO_PasteSurf::translateVertices ( const UT_Vector3 delta)
void GEO_PasteSurf::trimUnder ( float  scale = 1.0f,
int  keepoutside = 1 
)
bool GEO_PasteSurf::uniformTexture ( const GA_RWHandleV3 txth,
bool  ptattrib = true 
)
void GEO_PasteSurf::updateDisplacement ( int  r,
int  c 
)
void GEO_PasteSurf::updateDisplacements ( int  keepframes = 1)
void GEO_PasteSurf::updateTranslation ( const UT_Vector3 delta)
void GEO_PasteSurf::updateVertices ( void  )

Friends And Related Function Documentation

friend class GEO_PasteSurfDAG
friend

Definition at line 34 of file GEO_PasteSurf.h.


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