HDK
|
Keeps a list of GU_Detail pointers. More...
#include <GT_GEODetailList.h>
Classes | |
class | iterator |
Class to traverse over the geometry for each segment. More... | |
Public Types | |
enum | GT_GEOIncludePoint { GEO_SKIP_POINT = false, GEO_INCLUDE_POINT = true } |
enum | GT_GEOIncludePrimitive { GEO_SKIP_PRIMITIVE = false, GEO_INCLUDE_PRIMITIVE = true } |
enum | GT_GEOIncludeDetail { GEO_SKIP_DETAIL = false, GEO_INCLUDE_DETAIL = true } |
Keeps a list of GU_Detail pointers.
Definition at line 28 of file GT_GEODetailList.h.
Whether to include detail attributes when creating vertex/primitive attribute lists
Enumerator | |
---|---|
GEO_SKIP_DETAIL | |
GEO_INCLUDE_DETAIL |
Definition at line 202 of file GT_GEODetailList.h.
Whether to include point attributes when creating vertex attribute lists
Enumerator | |
---|---|
GEO_SKIP_POINT | |
GEO_INCLUDE_POINT |
Definition at line 188 of file GT_GEODetailList.h.
Whether to include primitive attributes when creating vertex attribute lists
Enumerator | |
---|---|
GEO_SKIP_PRIMITIVE | |
GEO_INCLUDE_PRIMITIVE |
Definition at line 195 of file GT_GEODetailList.h.
|
inline |
Default constructor.
Definition at line 32 of file GT_GEODetailList.h.
|
inline |
Useful constructor.
Definition at line 40 of file GT_GEODetailList.h.
|
inline |
Definition at line 62 of file GT_GEODetailList.h.
|
inline |
Copy constructor.
Definition at line 72 of file GT_GEODetailList.h.
|
inline |
Definition at line 81 of file GT_GEODetailList.h.
Definition at line 184 of file GT_GEODetailList.h.
|
inline |
Build face sets. Please see GT_RefineParms for the values for faceset_mode
Definition at line 256 of file GT_GEODetailList.h.
GT_ElementSetMapPtr GT_GEODetailList::buildPointSets | ( | const GT_DataArrayHandle & | point_ids, |
int | faceset_mode | ||
) | const |
Build point sets from point groups. Please see GT_RefineParms for the values for faceset_mode.
GT_ElementSetMapPtr GT_GEODetailList::buildPrimitiveSets | ( | const GT_GEOOffsetList & | prim_offsets, |
int | faceset_mode | ||
) | const |
Build primitive sets. Please see GT_RefineParms for the values for faceset_mode
|
inline |
Create detail attributes for this geometry.
Definition at line 312 of file GT_GEODetailList.h.
|
static |
Create a detail attribute list for a list of primitives.
|
inline |
Create primitive attributes for a list of primitives for this geometry, optionally including detail attributes for the list.
Definition at line 300 of file GT_GEODetailList.h.
|
static |
Create primitive attributes for a list of primitives, optionally including detail attributes for the list.
|
inline |
Create primitive & vertex attributes for a list of primitives of this geometry.
Definition at line 287 of file GT_GEODetailList.h.
|
static |
Create primitive & vertex attributes for a list of primitives. Each primitive should have a single vertex. If the user requests to include_point_attributes
, these attributes will be included in the list of returned attributes.
|
inline |
Create vertex attributes for a list of primitives for this geometry.
Definition at line 277 of file GT_GEODetailList.h.
|
static |
Create vertex attributes for a list of primitives. This will verify that all primitives have the same number and offsets of vertices. If this is not the case, the method will return an empty handle. If the user requests to include_point_attributes
, these attributes will be included in the list of returned attributes.
|
inline |
Return a list of all the GU_ConstDetailHandles associated with this list.
Definition at line 122 of file GT_GEODetailList.h.
|
inline |
Return number of details in the list.
Definition at line 101 of file GT_GEODetailList.h.
|
static |
Create a data array containing the value of primitive intrinsic attributes. The code handles the case where the attribute name is prefixed with "intrinsic:". The method uses the __primitive_id to perform the value lookup.
bool GT_GEODetailList::fillPrimitiveSegments | ( | const GEO_Primitive ** | list, |
GA_Offset | prim_offset | ||
) | const |
Fill the primitive list for the given offset. Returns false if there are mis-matched primitives:
|
static |
Check intrinsic information for a given primtiive. Like fillPrimitiveIntrinsic(), this uses the __primtiive_id to perform the checks.
GT_AttributeListHandle GT_GEODetailList::getDetailAttributes | ( | const GT_GEOAttributeFilter & | filter, |
bool | add_topology_data_id = true , |
||
GT_DataArrayHandle | mat_id = NULL , |
||
GT_DataArrayHandle | mat_remap = NULL |
||
) | const |
Get the attribute list handle for the detail attributes.
|
inline |
Return a specific element.
Definition at line 125 of file GT_GEODetailList.h.
|
inline |
Return number of details in the list.
Definition at line 105 of file GT_GEODetailList.h.
GT_AttributeListHandle GT_GEODetailList::getPointAttributes | ( | const GT_GEOAttributeFilter & | filter, |
const GT_GEOOffsetList * | pt_offsets = NULL , |
||
bool | add_point_id_attribute = false , |
||
bool | add_point_normals_if_missing = false |
||
) | const |
Get an attribute handle list for point attributes.
GT_AttributeListHandle GT_GEODetailList::getPrimitiveAttributes | ( | const GT_GEOAttributeFilter & | filter, |
const GT_GEOOffsetList * | prim_offsets = NULL , |
||
GT_GEOIncludeDetail | det = GEO_SKIP_DETAIL , |
||
bool | add_topology_data_id = true , |
||
GT_DataArrayHandle | mat_id = NULL , |
||
GT_DataArrayHandle | mat_remap = NULL |
||
) | const |
Get attribute handle for the primitive attributes.
GT_AttributeListHandle GT_GEODetailList::getPrimitiveVertexAttributes | ( | const GT_GEOAttributeFilter & | filter, |
const GT_GEOOffsetList & | prim_offsets, | ||
const GT_GEOOffsetList & | vertex_offsets, | ||
GT_GEOIncludePoint | pt = GEO_SKIP_POINT , |
||
GT_GEOIncludeDetail | det = GEO_SKIP_DETAIL , |
||
GT_DataArrayHandle | mat_id = NULL , |
||
GT_DataArrayHandle | mat_remap = NULL |
||
) | const |
Return the attribute list for primitives that have a single vertex.
GT_AttributeListHandle GT_GEODetailList::getVertexAttributes | ( | const GT_GEOAttributeFilter & | filter, |
const GT_GEOOffsetList * | vtx_offsets = NULL , |
||
GT_GEOIncludePoint | pt = GEO_SKIP_POINT , |
||
GA_AttributeOwner | add_normals_to_if_missing = GA_ATTRIB_INVALID , |
||
float | cusp_angle = GEO_DEFAULT_ADJUSTED_CUSP_ANGLE |
||
) | const |
Get an attribute handle list for vertex attributes.
|
inline |
() operator
Definition at line 129 of file GT_GEODetailList.h.
|
inline |
Assignment operator.
Definition at line 87 of file GT_GEODetailList.h.
|
inline |
Access to primitive/vertex/point offset overrides
Definition at line 116 of file GT_GEODetailList.h.
|
inline |
Access to primitive/vertex/point offset overrides
Definition at line 110 of file GT_GEODetailList.h.
Access to primitive/vertex/point offset overrides
Definition at line 117 of file GT_GEODetailList.h.
Access to primitive/vertex/point offset overrides
Definition at line 111 of file GT_GEODetailList.h.
Access to primitive/vertex/point offset overrides
Definition at line 114 of file GT_GEODetailList.h.
|
inline |
Access to primitive/vertex/point offset overrides
Definition at line 113 of file GT_GEODetailList.h.