HDK
|
The base class for a sequence of packed geometry. More...
#include <GU_PackedSequence.h>
Classes | |
class | InstanceKey |
class | SingleItemKey |
class | TimeSample |
Public Types | |
enum | WrapMode { WRAP_CYCLE, WRAP_CLAMP, WRAP_STRICT, WRAP_MIRROR } |
![]() | |
typedef fpreal(GU_PackedImpl::* | FloatGetter )(const GU_PrimPacked *) const |
typedef void(GU_PackedImpl::* | FloatSetter )(const GU_PrimPacked *, fpreal) |
typedef GA_Size(GU_PackedImpl::* | IntGetter )(const GU_PrimPacked *) const |
typedef void(GU_PackedImpl::* | IntSetter )(GU_PrimPacked *, GA_Size) |
typedef bool(GU_PackedImpl::* | BoolGetter )(const GU_PrimPacked *) const |
typedef void(GU_PackedImpl::* | BoolSetter )(GU_PrimPacked *, bool) |
typedef const char *(GU_PackedImpl::* | StringGetter )(const GU_PrimPacked *) const |
typedef void(GU_PackedImpl::* | StringSetter )(GU_PrimPacked *, const char *) |
typedef UT_OptionsHolder(GU_PackedImpl::* | DictGetter )(const GU_PrimPacked *) const |
typedef void(GU_PackedImpl::* | DictSetter )(GU_PrimPacked *, const UT_OptionsHolder &) |
typedef std::string(GU_PackedImpl::* | StdStringGetter )(const GU_PrimPacked *) const |
typedef void(GU_PackedImpl::* | StdStringSetter )(GU_PrimPacked *, const std::string &) |
typedef UT_StringHolder(GU_PackedImpl::* | StringHolderGetter )(const GU_PrimPacked *) const |
typedef void(GU_PackedImpl::* | StringHolderSetter )(GU_PrimPacked *, const UT_StringHolder &) |
typedef fpreal(GU_PackedImpl::* | FloatTupleGetter )(const GU_PrimPacked *, exint) const |
typedef void(GU_PackedImpl::* | FloatTupleSetter )(GU_PrimPacked *, exint, fpreal) |
typedef GA_Size(GU_PackedImpl::* | IntTupleGetter )(const GU_PrimPacked *, exint) const |
typedef void(GU_PackedImpl::* | IntTupleSetter )(GU_PrimPacked *, exint, GA_Size) |
typedef bool(GU_PackedImpl::* | BoolTupleGetter )(const GU_PrimPacked *, exint) const |
typedef void(GU_PackedImpl::* | BoolTupleSetter )(GU_PrimPacked *, exint, bool) |
typedef const char *(GU_PackedImpl::* | StringTupleGetter )(const GU_PrimPacked *, exint) const |
typedef void(GU_PackedImpl::* | StringTupleSetter )(GU_PrimPacked *, exint, const char *) |
typedef UT_OptionsHolder(GU_PackedImpl::* | DictTupleGetter )(const GU_PrimPacked *, exint) const |
typedef void(GU_PackedImpl::* | DictTupleSetter )(GU_PrimPacked *, exint, const UT_OptionsHolder &) |
typedef const std::string &(GU_PackedImpl::* | StdStringTupleGetter )(const GU_PrimPacked *, exint) const |
typedef void(GU_PackedImpl::* | StdStringTupleSetter )(GU_PrimPacked *, exint, const std::string &) |
typedef const UT_StringHolder &(GU_PackedImpl::* | StringHolderTupleGetter )(const GU_PrimPacked *, exint) const |
typedef void(GU_PackedImpl::* | StringHolderTupleSetter )(GU_PrimPacked *, exint, const UT_StringHolder &) |
typedef void(GU_PackedImpl::* | F32VectorGetter )(const GU_PrimPacked *, fpreal32 *, exint) const |
typedef void(GU_PackedImpl::* | F32VectorSetter )(GU_PrimPacked *, const fpreal32 *, exint) |
typedef void(GU_PackedImpl::* | F64VectorGetter )(const GU_PrimPacked *, fpreal64 *, exint) const |
typedef void(GU_PackedImpl::* | F64VectorSetter )(GU_PrimPacked *, const fpreal64 *, exint) |
typedef void(GU_PackedImpl::* | I32VectorGetter )(const GU_PrimPacked *, int32 *, exint) const |
typedef void(GU_PackedImpl::* | I32VectorSetter )(GU_PrimPacked *, const int32 *, exint) |
typedef void(GU_PackedImpl::* | I64VectorGetter )(const GU_PrimPacked *, int64 *, exint) const |
typedef void(GU_PackedImpl::* | I64VectorSetter )(GU_PrimPacked *, const int64 *, exint) |
typedef void(GU_PackedImpl::* | BVectorGetter )(const GU_PrimPacked *, bool *, exint) const |
typedef void(GU_PackedImpl::* | BVectorSetter )(GU_PrimPacked *, const bool *, exint) |
typedef void(GU_PackedImpl::* | StringArrayGetter )(const GU_PrimPacked *, UT_StringArray &) const |
typedef void(GU_PackedImpl::* | StringArraySetter )(GU_PrimPacked *, const UT_StringArray &) |
typedef void(GU_PackedImpl::* | DictArrayGetter )(const GU_PrimPacked *, UT_Array< UT_OptionsHolder > &) const |
typedef void(GU_PackedImpl::* | DictArraySetter )(GU_PrimPacked *, const UT_Array< UT_OptionsHolder > &) |
Protected Member Functions | |
bool | getTimeSample (TimeSample &sample, fpreal t) const |
bool | getTimeSample (TimeSample &sample) const |
virtual GU_ConstDetailHandle | sequencePointCloud (exint index) const =0 |
Subclass method to get point geometry for the n'th item. More... | |
virtual GU_ConstDetailHandle | sequenceGeometry (exint index) const =0 |
Subclass to return the geometry for the n'th item. More... | |
void | storeData (UT_Options &options) const |
virtual bool | sequenceBounds (exint index, UT_BoundingBox &box) const =0 |
virtual bool | sequenceVisibleBounds (exint index, UT_BoundingBox &box) const =0 |
virtual void | sequenceVelocityRange (exint index, UT_Vector3 &min, UT_Vector3 &max) const =0 |
virtual void | sequenceWidthRange (exint index, fpreal &min, fpreal &max) const =0 |
bool | updateData (GU_PrimPacked *prim, const UT_JSONValueMap &options) |
bool | updateData (GU_PrimPacked *prim, const UT_Options &options) |
![]() | |
virtual bool | unpackWithPrim (GU_Detail &destgdp, const UT_Matrix4D *transform, const GU_PrimPacked *prim) const |
const UT_BoundingBox & | boxCache () const |
void | setBoxCache (const UT_BoundingBox &b) |
template<typename T > | |
void | setBoxCache (const T b[6]) |
void | clearBoxCache () |
bool | unpackToDetail (GU_Detail &destgdp, GU_Detail *src, const UT_Matrix4D *transform) const |
bool | unpackToDetail (GU_Detail &destgdp, const GU_Detail *src, const UT_Matrix4D *transform) const |
bool | unpackToDetail (GU_Detail &destgdp, const GU_ConstDetailHandle &gdh, const UT_Matrix4D *transform) const |
Unpack the source detail handle. More... | |
virtual UT_Vector3 | getBaryCenter () const |
Optional method to compute centroid (default uses bounding box) More... | |
virtual fpreal | computeVolume (const UT_Vector3 &refpt) const |
Optional method to calculate volume (default uses bounding box) More... | |
virtual fpreal | computeArea () const |
Optional method to calculate surface area (default uses bounding box) More... | |
virtual fpreal | computePerimeter () const |
Optional method to calculate perimeter (default uses bounding box) More... | |
![]() | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Additional Inherited Members | |
![]() | |
static bool | computeVelocityRange (const GU_Detail *gdp, UT_Vector3 &vmin, UT_Vector3 &vmax) |
static bool | computeWidthRange (const GU_Detail *gdp, fpreal &wmin, fpreal &wmax) |
![]() | |
static void | copyPrimitiveGroups (GU_Detail &dest, const GU_Detail &src, GA_Offset src_offset, bool force=false) |
template<typename T > | |
static bool | import (const UT_JSONValueMap &options, const UT_StringRef &key, T &value) |
template<typename T > | |
static bool | import (const UT_Options &options, const UT_StringRef &key, T &value) |
![]() | |
static const GEO_PackedNameMapPtr | theNullPackedNameMapPtr |
The base class for a sequence of packed geometry.
Definition at line 22 of file GU_PackedSequence.h.
Enumerator | |
---|---|
WRAP_CYCLE | |
WRAP_CLAMP | |
WRAP_STRICT | |
WRAP_MIRROR |
Definition at line 25 of file GU_PackedSequence.h.
GU_PackedSequence::GU_PackedSequence | ( | ) |
|
inline |
Definition at line 125 of file GU_PackedSequence.h.
|
override |
GU_ConstDetailHandle GU_PackedSequence::getBlendedDetail | ( | fpreal | t | ) | const |
Get a detail handle representing the interpolated sub-frame geometry.
|
overridevirtual |
Implementation of API on GU_PackedImpl
Implements GU_PackedImpl.
|
virtual |
Method to get an identifying key for the item. This is used to create shared instances where possible. By default, the key will be a unique string.
Reimplemented in GU_PackedDiskSequence.
|
overridevirtual |
Implementation of API on GU_PackedImpl
Reimplemented from GU_PackedImpl.
|
overridevirtual |
Implementation of API on GU_PackedImpl
Implements GU_PackedImpl.
|
protected |
Get time sample. Returns false if the index is invalid. The time sample will be initialized with the two indices for blending as well as the blending amount.
|
inlineprotected |
Definition at line 191 of file GU_PackedSequence.h.
InstanceKey GU_PackedSequence::getUniqueInstanceKey | ( | exint | quantize_steps | ) | const |
Make a unique instance key for this primitive. This can be used to prevent any possible sharing of
|
overridevirtual |
Implementation of API on GU_PackedImpl
Implements GU_PackedImpl.
Implementation of API on GU_PackedImpl
Implements GU_PackedImpl.
|
inline |
Member data accessors for intrinsics
Definition at line 169 of file GU_PackedSequence.h.
|
inline |
Member data accessors for intrinsics
Definition at line 176 of file GU_PackedSequence.h.
|
inline |
Definition at line 136 of file GU_PackedSequence.h.
|
inline |
Member data accessors for intrinsics
Definition at line 178 of file GU_PackedSequence.h.
|
overridevirtual |
Implementation of API on GU_PackedImpl
Implements GU_PackedImpl.
|
protectedpure virtual |
Methods to get information about individual items in the sequence Subclass method to query the bounding box for the given item
Implemented in GU_PackedDiskSequence.
|
protectedpure virtual |
Subclass to return the geometry for the n'th item.
Implemented in GU_PackedDiskSequence.
|
protectedpure virtual |
Subclass method to get point geometry for the n'th item.
Implemented in GU_PackedDiskSequence.
|
pure virtual |
Subclass returns the number of pieces of geometry in the sequence.
Implemented in GU_PackedDiskSequence.
|
protectedpure virtual |
Methods to get information about individual items in the sequence Subclass method to query the bounding box for the given item
Implemented in GU_PackedDiskSequence.
|
protectedpure virtual |
Methods to get information about individual items in the sequence Subclass method to query the bounding box for the given item
Implemented in GU_PackedDiskSequence.
|
protectedpure virtual |
Methods to get information about individual items in the sequence Subclass method to query the bounding box for the given item
Implemented in GU_PackedDiskSequence.
void GU_PackedSequence::setIndex | ( | GU_PrimPacked * | prim, |
fpreal | f | ||
) |
Member data accessors for intrinsics
void GU_PackedSequence::setWrapMode | ( | GU_PrimPacked * | prim, |
WrapMode | w | ||
) |
Member data accessors for intrinsics
void GU_PackedSequence::setWrapMode | ( | GU_PrimPacked * | prim, |
const UT_StringHolder & | mode | ||
) |
Member data accessors for intrinsics
|
protected |
|
overridevirtual |
Implementation of API on GU_PackedImpl
Implements GU_PackedImpl.
|
protected |
update index/wrap from the options (returns true if data changed)
|
protected |
update index/wrap from the options (returns true if data changed)
|
inline |
Member data accessors for intrinsics
Definition at line 180 of file GU_PackedSequence.h.
UT_StringHolder GU_PackedSequence::wrapModeLabel | ( | ) | const |
Member data accessors for intrinsics
|
inline |
Member data accessors for intrinsics
Definition at line 170 of file GU_PackedSequence.h.