HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WIRE_SimpleDetailReader.h File Reference
#include "WIRE_API.h"
#include <GU/GU_Detail.h>
#include <GA/GA_Handle.h>
#include <GA/GA_Types.h>
#include <UT/UT_Quaternion.h>
#include <SIM/SIM_Object.h>
+ Include dependency graph for WIRE_SimpleDetailReader.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WIRE_SimpleDetailReader
 

Macros

#define WIRE_SIMPLEDETAILREADER_GET_VT_F_INTERNAL(name)
 
#define WIRE_SIMPLEDETAILREADER_GET_VT_F(name)
 
#define WIRE_SIMPLEDETAILREADER_GET_VT_I(name)
 
#define WIRE_SIMPLEDETAILREADER_GET_PT_F(name)
 
#define WIRE_SIMPLEDETAILREADER_GET_VT_B(name)
 

Macro Definition Documentation

#define WIRE_SIMPLEDETAILREADER_GET_PT_F (   name)
Value:
public: fpreal get##name(GA_Index ptind) const \
{ \
fpreal retval = my##name##Default; \
if(my##name.isValid()) \
{ \
GA_Offset offset = myGdpConst->pointOffset(ptind); \
if (offset != GA_INVALID_OFFSET) \
retval *= my##name.get(offset); \
} \
return retval; \
}
#define GA_INVALID_OFFSET
Definition: GA_Types.h:654
GA_Size GA_Offset
Definition: GA_Types.h:617
GLintptr offset
Definition: glcorearb.h:664
GLuint const GLchar * name
Definition: glcorearb.h:785
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:611
double fpreal
Definition: SYS_Types.h:270
if(rank==1) return rank

Definition at line 72 of file WIRE_SimpleDetailReader.h.

#define WIRE_SIMPLEDETAILREADER_GET_VT_B (   name)
Value:
public: bool get##name(GA_Index primind, GA_Size vtx) const \
{ \
if(my##name##I.isValid()) \
return get##name##I(primind, vtx) != 0; \
if(my##name##F.isValid()) \
return get##name##FInternal(primind, vtx) > 0.5; \
return false; \
}
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:211
GLuint const GLchar * name
Definition: glcorearb.h:785
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:611
#define WIRE_SIMPLEDETAILREADER_GET_VT_I(name)
if(rank==1) return rank
#define WIRE_SIMPLEDETAILREADER_GET_VT_F_INTERNAL(name)

Definition at line 84 of file WIRE_SimpleDetailReader.h.

#define WIRE_SIMPLEDETAILREADER_GET_VT_F (   name)
Value:
public: fpreal get##name(GA_Index primind, GA_Size vtx) const \
{ \
fpreal result = my##name##Default; \
if(my##name.isValid()) \
result *= get##name##Internal(primind, vtx); \
return result; \
}
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:211
GLuint const GLchar * name
Definition: glcorearb.h:785
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:611
double fpreal
Definition: SYS_Types.h:270
if(rank==1) return rank
#define WIRE_SIMPLEDETAILREADER_GET_VT_F_INTERNAL(name)

Definition at line 39 of file WIRE_SimpleDetailReader.h.

#define WIRE_SIMPLEDETAILREADER_GET_VT_F_INTERNAL (   name)
Value:
private: fpreal get##name##Internal(GA_Index primind, GA_Size vtx) const \
{ \
const GA_Attribute *a = my##name.getAttribute(); \
GA_AttributeOwner owner = a->getOwner(); \
if (owner == GA_ATTRIB_DETAIL) \
return my##name.get(GA_DETAIL_OFFSET); \
if (primind >= myGdpConst->getNumPrimitives()) \
return 0; \
GA_Offset offset = myGdpConst->primitiveOffset(primind); \
return my##name.get(offset); \
const GEO_Primitive *prim = myGdpConst->getGEOPrimitive(offset); \
if (vtx >= prim->getVertexCount()) \
return 0; \
if (owner == GA_ATTRIB_VERTEX) \
return my##name.get(prim->getVertexOffset(vtx)); \
return my##name.get(prim->getPointOffset(vtx)); \
}
Definition of a geometry attribute.
Definition: GA_Attribute.h:190
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1221
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:211
GA_Size GA_Offset
Definition: GA_Types.h:617
GLintptr offset
Definition: glcorearb.h:664
GLuint const GLchar * name
Definition: glcorearb.h:785
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:611
GA_AttributeOwner
Definition: GA_Types.h:33
double fpreal
Definition: SYS_Types.h:270
if(rank==1) return rank
#define const
Definition: zconf.h:214
#define GA_DETAIL_OFFSET
Definition: GA_Types.h:658

Definition at line 20 of file WIRE_SimpleDetailReader.h.

#define WIRE_SIMPLEDETAILREADER_GET_VT_I (   name)
Value:
public: int get##name(GA_Index primind, GA_Size vtx) const \
{ \
const GA_Attribute *a = my##name.getAttribute(); \
if (!a) \
return 0; \
GA_AttributeOwner owner = a->getOwner(); \
if (owner == GA_ATTRIB_DETAIL) \
return my##name.get(GA_DETAIL_OFFSET); \
if (primind >= myGdpConst->getNumPrimitives()) \
return 0; \
GA_Offset offset = myGdpConst->primitiveOffset(primind); \
return my##name.get(offset); \
const GEO_Primitive *prim = myGdpConst->getGEOPrimitive(offset); \
if (vtx >= prim->getVertexCount()) \
return 0; \
if (owner == GA_ATTRIB_VERTEX) \
return my##name.get(prim->getVertexOffset(vtx)); \
return my##name.get(prim->getPointOffset(vtx)); \
}
Definition of a geometry attribute.
Definition: GA_Attribute.h:190
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1221
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:211
GA_Size GA_Offset
Definition: GA_Types.h:617
GLintptr offset
Definition: glcorearb.h:664
GLuint const GLchar * name
Definition: glcorearb.h:785
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:611
GA_AttributeOwner
Definition: GA_Types.h:33
if(rank==1) return rank
#define const
Definition: zconf.h:214
#define GA_DETAIL_OFFSET
Definition: GA_Types.h:658

Definition at line 50 of file WIRE_SimpleDetailReader.h.