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

#include <GEO_PasteSurf.h>

+ Inheritance diagram for GEO_PasteSurf:

Public Member Functions

 GEO_PasteSurf ()
 
 GEO_PasteSurf (GEO_TPSurf &tpsurf, const GP_XformHandle &xform, int pasteup=1, float height=0)
 
 GEO_PasteSurf (const GEO_PasteSurf &d)
 
 ~GEO_PasteSurf () override
 
GP_Nodecopy () const override
 
GP_NodenewSpecies () const override
 
int save (std::ostream &os, int binary=0) const override
 
bool load (UT_IStream &is) override
 
bool saveJSONFields (UT_JSONWriter &w, const GA_SaveMap &map) const override
 
void initJSONLoad () override
 
bool loadJSONField (UT_JSONParser &p, const GA_LoadMap &map, const char *field_token) override
 
void findParents (GP_NodeList &stack, GP_NodeList &parents) override
 
void findParent (GP_Domain &parent) override
 
GP_Domainspawn (const UT_BoundingRect &brect, float ubwidth=0, float vbwidth=0, int ubdivs=2, int vbdivs=2, int newkey=0) override
 
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 updateDisplacements (int keepframes=1)
 
void updateDisplacement (int r, int c)
 
void optimizeDisplacements (int update=1)
 
void setBases (GEO_PasteSurf *base=0)
 
void affineBasis ()
 
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 () const
 
void height (float h)
 
void sterilize (int mutual=1)
 
void pregnant (GEO_TPSurf &s, int mutual=1, int rebuild=1)
 
int pastedUp () const
 
void pasteUp (int updt=1)
 
void pasteDown (int updt=1)
 
const GP_Frameframe () const
 
const GEO_TPSurfsurface () const
 
int hasSurface () const
 
GEO_PasteSurfDAGhierarchy () const
 
int primNumber () const
 
- Public Member Functions inherited from GP_Domain
 GP_Domain ()
 
 GP_Domain (const UT_BoundingRect &original, const GP_XformHandle &xform, int key=0)
 
 GP_Domain (const GP_Domain &d)
 
 ~GP_Domain () override
 
GP_Nodecopy () const override
 
GP_FrameHierarchyframes () const
 
void frames (GP_FrameHierarchy *f)
 
GP_DomainDAGdag () const
 
void update ()
 
void polygon (GP_Point &p1, GP_Point &p2, GP_Point &p3, GP_Point &p4)
 
GP_DomainparentDomain () 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 () 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 ()
 
virtual int copyOutNodes (const GP_Node &src, const GP_NodeTree &destpool)
 
void removeInEdges ()
 
void removeOutEdges ()
 
GP_NodeTreedescendents () const
 
int inDegree () const
 
int outDegree () const
 
int key () const
 
void key (int k)
 
GP_NodeTreeinNodes ()
 
const GP_NodeTreeinNodes () const
 
GP_NodeTreeoutNodes ()
 
const GP_NodeTreeoutNodes () const
 

Protected Member Functions

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

Friends

class GEO_PasteSurfDAG
 

Detailed Description

Definition at line 32 of file GEO_PasteSurf.h.

Constructor & Destructor Documentation

GEO_PasteSurf::GEO_PasteSurf ( )
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)
GEO_PasteSurf::~GEO_PasteSurf ( )
override

Member Function Documentation

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

Reimplemented from GP_Node.

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

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
void GEO_PasteSurf::findParent ( GP_Domain parent)
overridevirtual

Implements GP_Domain.

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

Implements GP_Domain.

const GP_Frame& GEO_PasteSurf::frame ( ) const
inline

Definition at line 163 of file GEO_PasteSurf.h.

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

Definition at line 167 of file GEO_PasteSurf.h.

float GEO_PasteSurf::height ( ) const
inline

Definition at line 147 of file GEO_PasteSurf.h.

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

Reimplemented from GP_Domain.

bool GEO_PasteSurf::load ( UT_IStream is)
overridevirtual

Reimplemented from GP_Domain.

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

Reimplemented from GP_Domain.

GP_Node* GEO_PasteSurf::newSpecies ( ) const
overridevirtual

Reimplemented from GP_Node.

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

Definition at line 160 of file GEO_PasteSurf.h.

int GEO_PasteSurf::pastedUp ( ) const
inline

Definition at line 158 of file GEO_PasteSurf.h.

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

Definition at line 159 of file GEO_PasteSurf.h.

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

Definition at line 173 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.

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

Reimplemented from GP_Domain.

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

Reimplemented from GP_Domain.

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

Implements GP_Domain.

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

Definition at line 164 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 ( )

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: