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

#include <GEO_Vertex.h>

+ Inheritance diagram for GA_GBVertex:

Public Member Functions

GA_Offset getPointOffset () const
 
void setPointOffset (GA_Offset)
 
GA_Index getPointIndex () const
 
void copyVertex (const GA_GBVertex &src, GA_Offset offset, const GA_AttributeSet &dict)
 
void copyVertex (const GA_GBVertex &src, GA_GBElement *pt, const GA_AttributeSet &dict)
 
void copyVertex (const GA_GBVertex &src, const GA_AttributeSet &dict)
 
GA_GBVertexoperator= (const GA_GBVertex &src)
 
bool operator== (const GA_GBVertex &src) const
 
- Public Member Functions inherited from GA_GBElement
GA_DetailgetDetail () const
 Provide access to the GA_Detail containing this element. More...
 
const GA_IndexMapgetIndexMap () const
 Provide access to the GA_IndexMap containing this element. More...
 
GA_Offset getMapOffset () const
 
GA_Index getMapIndex () const
 Provide the ordered GA_Index of this element in its GA_IndexMap. More...
 
bool isGAValid () const
 Test to see whether the GA_GBElement is bound to a valid offset. More...
 
void copyAttributeData (const GA_RWAttributeRef &dstref, const GA_GBElement &src, const GA_ROAttributeRef &srcref)
 Copy a single attribute over. More...
 
void swapOffsetValue (const GA_Defragment &defrag)
 For defragmentation, we need to update the offset. More...
 
GA_Index getNum () const
 
bool isPrimary () const
 
void copyAttribData (const GA_GBElement &src, const GA_AttributeSet &src_dict, const GA_AttributeSet &dest_dict, bool copy_point_P=false)
 
void copyAttribData (const GA_GBElement &src, const GA_AttributeSet &dict, bool copy_point_P=false)
 
void copyAttributeValues (const GA_GBElement &src, const GA_AttributeSet &dict, bool copy_point_P=false)
 
void scaleAttributeValues (fpreal scale, const GA_AttributeSet &dest_dict, bool scale_point_P=false)
 
void addAttributeValues (const GA_GBElement &src, const GA_AttributeSet &src_dict, const GA_AttributeSet &dest_dict, fpreal scale=1, bool add_point_P=false)
 
void addAttributeValues (const GA_GBElement &src, const GA_AttributeSet &dict, fpreal scale=1, bool add_point_P=false)
 
void lerpAttributeValues (const GA_GBElement &v0, const GA_GBElement &v1, fpreal bias, const GA_AttributeSet &src_dict, const GA_AttributeSet &dest_dict, bool lerp_point_P=false)
 
void lerpAttributeValues (const GA_GBElement &v0, const GA_GBElement &v1, fpreal bias, const GA_AttributeSet &dict, bool lerp_point_P=false)
 
const char * getString (const GA_ROAttributeRef &h, int index=0) const
 
void setString (const GA_WOAttributeRef &h, const char *str, int index=0)
 
template<typename T >
T getValue (const GA_ROAttributeRef &h, int index=0) const
 
template<typename T >
void setValue (const GA_WOAttributeRef &h, const T &val, int index=0)
 
template<typename T >
void get (const GA_ROAttributeRef &h, T &val, int index=0) const
 
template<typename T >
void get (const GA_ROAttributeRef &h, T *val, int count) const
 
template<typename T >
void set (const GA_WOAttributeRef &h, const T *val, int count)
 

Protected Member Functions

 GA_GBVertex (const GA_IndexMap &index_map, GA_Offset offset)
 
 GA_GBVertex ()
 
 GA_GBVertex (const GA_GBVertex &src)
 
 ~GA_GBVertex ()
 
void setPos3D (const UT_Vector4 &P)
 
void setPos3D (const UT_Vector3 &P)
 
void setPos3D (const UT_Vector3 &P, float w)
 
void setPos3D (float x, float y, float z, float w)
 
void setPos2D (const UT_Vector3 &P)
 
void setPos2D (const UT_Vector2 &P)
 
void setPos2D (const UT_Vector2 &P, float w)
 
void setPos2D (float x, float y, float w)
 
void setPw (float w)
 
const UT_Vector4 getPos3D () const
 
const UT_Vector3 getPos2D () const
 
const UT_Vector2 getPos2 () const
 
float getPw () const
 
- Protected Member Functions inherited from GA_GBElement
 GA_GBElement (const GA_IndexMap &index_map, GA_Offset offset)
 
 GA_GBElement ()
 Default c-tor. More...
 
 GA_GBElement (const GA_GBElement &src)
 Copy c-tor. More...
 
 ~GA_GBElement ()
 
void gaCopyAttribData (const GA_GBElement *src, const GA_Attribute *skip=NULL)
 
void gaCopyAttribData (const GA_GBElement &src, const GA_AttributeSet &src_dict, const GA_AttributeSet &dest_dict, const GA_Attribute *skip=NULL)
 
void gaCopyAttribData (const GA_GBElement &src, const GA_AttributeDict &src_dict, const GA_AttributeDict &dest_dict, const GA_Attribute *skip=NULL)
 
GA_GBElementoperator= (const GA_GBElement &src)
 
bool operator== (const GA_GBElement &src) const
 

Detailed Description

Base class for GEO_Vertex.

Definition at line 29 of file GEO_Vertex.h.

Constructor & Destructor Documentation

GA_GBVertex::GA_GBVertex ( const GA_IndexMap index_map,
GA_Offset  offset 
)
inlineprotected

Protect the constructors as this is only a base class and cannot itself be instantiated.

Definition at line 34 of file GEO_Vertex.h.

GA_GBVertex::GA_GBVertex ( )
inlineprotected

Definition at line 36 of file GEO_Vertex.h.

GA_GBVertex::GA_GBVertex ( const GA_GBVertex src)
inlineprotected

Definition at line 38 of file GEO_Vertex.h.

GA_GBVertex::~GA_GBVertex ( )
inlineprotected

We protect the destructor as nobody has any business using a reference to this class to delete an instance of a class derived from us.

Definition at line 43 of file GEO_Vertex.h.

Member Function Documentation

void GA_GBVertex::copyVertex ( const GA_GBVertex src,
GA_Offset  offset,
const GA_AttributeSet dict 
)
inline

Definition at line 80 of file GEO_Vertex.h.

void GA_GBVertex::copyVertex ( const GA_GBVertex src,
GA_GBElement pt,
const GA_AttributeSet dict 
)
inline

Definition at line 88 of file GEO_Vertex.h.

void GA_GBVertex::copyVertex ( const GA_GBVertex src,
const GA_AttributeSet dict 
)
inline

Definition at line 95 of file GEO_Vertex.h.

GA_Index GA_GBVertex::getPointIndex ( ) const
GA_Offset GA_GBVertex::getPointOffset ( ) const
const UT_Vector2 GA_GBVertex::getPos2 ( ) const
inlineprotected

Get de-homogenized position (that is, without the homogeneous coordinate multiplied through).

Definition at line 137 of file GEO_Vertex.h.

const UT_Vector3 GA_GBVertex::getPos2D ( ) const
inlineprotected

Get de-homogenized position (that is, without the homogeneous coordinate multiplied through).

Definition at line 131 of file GEO_Vertex.h.

const UT_Vector4 GA_GBVertex::getPos3D ( ) const
inlineprotected

Get de-homogenized position (that is, without the homogeneous coordinate multiplied through).

Definition at line 125 of file GEO_Vertex.h.

float GA_GBVertex::getPw ( ) const
inlineprotected

Get de-homogenized position (that is, without the homogeneous coordinate multiplied through).

Definition at line 143 of file GEO_Vertex.h.

GA_GBVertex& GA_GBVertex::operator= ( const GA_GBVertex src)
inline

Copy/Compare the vertex handle (not the vertex contents)

Definition at line 62 of file GEO_Vertex.h.

bool GA_GBVertex::operator== ( const GA_GBVertex src) const
inline

Copy/Compare the vertex handle (not the vertex contents)

Definition at line 68 of file GEO_Vertex.h.

void GA_GBVertex::setPointOffset ( GA_Offset  )
void GA_GBVertex::setPos2D ( const UT_Vector3 P)
inlineprotected

Definition at line 177 of file GEO_Vertex.h.

void GA_GBVertex::setPos2D ( const UT_Vector2 P)
inlineprotected

Definition at line 183 of file GEO_Vertex.h.

void GA_GBVertex::setPos2D ( const UT_Vector2 P,
float  w 
)
inlineprotected

Definition at line 189 of file GEO_Vertex.h.

void GA_GBVertex::setPos2D ( float  x,
float  y,
float  w 
)
inlineprotected

Definition at line 196 of file GEO_Vertex.h.

void GA_GBVertex::setPos3D ( const UT_Vector4 P)
inlineprotected

Definition at line 149 of file GEO_Vertex.h.

void GA_GBVertex::setPos3D ( const UT_Vector3 P)
inlineprotected

Definition at line 155 of file GEO_Vertex.h.

void GA_GBVertex::setPos3D ( const UT_Vector3 P,
float  w 
)
inlineprotected

Definition at line 161 of file GEO_Vertex.h.

void GA_GBVertex::setPos3D ( float  x,
float  y,
float  z,
float  w 
)
inlineprotected

Definition at line 169 of file GEO_Vertex.h.

void GA_GBVertex::setPw ( float  w)
inlineprotected

Definition at line 203 of file GEO_Vertex.h.


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