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:687
GA_Size GA_Offset
Definition: GA_Types.h:646
GLintptr offset
Definition: glcorearb.h:665
GLuint const GLchar * name
Definition: glcorearb.h:786
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:640
fpreal64 fpreal
Definition: SYS_Types.h:277
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697

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:236
GLuint const GLchar * name
Definition: glcorearb.h:786
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:640
#define WIRE_SIMPLEDETAILREADER_GET_VT_I(name)
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#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 \
{ \
if(my##name.isValid()) \
result *= get##name##Internal(primind, vtx); \
return result; \
}
**But if you need a result
Definition: thread.h:613
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:236
GLuint const GLchar * name
Definition: glcorearb.h:786
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:640
fpreal64 fpreal
Definition: SYS_Types.h:277
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#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:198
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:236
GA_Size GA_Offset
Definition: GA_Types.h:646
GLintptr offset
Definition: glcorearb.h:665
GLuint const GLchar * name
Definition: glcorearb.h:786
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:640
GA_AttributeOwner
Definition: GA_Types.h:35
fpreal64 fpreal
Definition: SYS_Types.h:277
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#define GA_DETAIL_OFFSET
Definition: GA_Types.h:691

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:198
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
exint GA_Size
Defines the bit width for index and offset types in GA.
Definition: GA_Types.h:236
GA_Size GA_Offset
Definition: GA_Types.h:646
GLintptr offset
Definition: glcorearb.h:665
GLuint const GLchar * name
Definition: glcorearb.h:786
GA_Size GA_Index
Define the strictness of GA_Offset/GA_Index.
Definition: GA_Types.h:640
GA_AttributeOwner
Definition: GA_Types.h:35
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#define GA_DETAIL_OFFSET
Definition: GA_Types.h:691

Definition at line 50 of file WIRE_SimpleDetailReader.h.