HDK
|
Geometry File procedural. More...
#include <GU_PackedDisk.h>
Classes | |
class | CacheItem |
Static Public Member Functions | |
static GU_PrimPacked * | packedDisk (GU_Detail &dest, const char *filename, bool do_expanding, fpreal expand_frame, GA_Offset ptoff=GA_INVALID_OFFSET) |
static exint | clearDiskCache () |
static void | install (GA_PrimitiveFactory *prim) |
Install the procedural. More... | |
static GA_PrimitiveTypeId | typeId () |
Get the type ID for the GU_PackedDisk primitive type. More... | |
static exint | getCacheVersion () |
![]() | |
static bool | computeVelocityRange (const GU_Detail *gdp, UT_Vector3 &vmin, UT_Vector3 &vmax) |
static bool | computeWidthRange (const GU_Detail *gdp, fpreal &wmin, fpreal &wmax) |
Protected Member Functions | |
template<typename T > | |
bool | loadFrom (GU_PrimPacked *prim, const T &options, const GA_LoadMap &map) |
void | makeFilename (GU_PrimPacked *prim) |
Returns if the filename has changed. More... | |
![]() | |
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... | |
Protected Attributes | |
CacheItem | myCache |
UT_StringHolder | myUnexpanded |
fpreal | myExpandFrame |
bool | myExpandFilename |
bool | myFullTopology |
bool | myTreatAsFolder |
Friends | |
class | CacheItem |
Additional Inherited Members | |
![]() | |
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 > &) |
![]() | |
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 |
Geometry File procedural.
Definition at line 21 of file GU_PackedDisk.h.
GU_PackedDisk::GU_PackedDisk | ( | ) |
GU_PackedDisk::GU_PackedDisk | ( | const GU_PackedDisk & | src | ) |
|
override |
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
static |
Clear the disk cache. This will clear the cache, but not dirty any existing primitives. This is what gets invoked when calling GU_PrimPacked::clearCachedGeometry(). The method returns the number of items cleared.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
overridevirtual |
Count memory usage using a UT_MemoryCounter in order to count shared memory correctly.
Implements GU_PackedImpl.
|
inline |
Member data accessors for intrinsics
Definition at line 129 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 121 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 112 of file GU_PackedDisk.h.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
static |
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
overridevirtual |
Report memory usage (includes all shared memory)
Implements GU_PackedImpl.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Reimplemented from GU_PackedImpl.
GU_ConstDetailHandle GU_PackedDisk::getPointCloud | ( | ) | const |
Load the point geometry into the given detail.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Reimplemented from GU_PackedImpl.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Reimplemented from GU_PackedImpl.
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
static |
Install the procedural.
|
inline |
Member data accessors for intrinsics
Definition at line 130 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 122 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 113 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 140 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 136 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 115 of file GU_PackedDisk.h.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Reimplemented from GU_PackedImpl.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
inlineoverridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
Definition at line 60 of file GU_PackedDisk.h.
|
protected |
|
inlineoverridevirtual |
Implementation of GU_PackedImpl interface
Reimplemented from GU_PackedImpl.
Definition at line 65 of file GU_PackedDisk.h.
|
protected |
Returns if the filename has changed.
|
static |
Convenience method to create a packed primitive in the destination detail.
Returns a NULL pointer if the process fails.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
inline |
Member data accessors for intrinsics
Definition at line 131 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 124 of file GU_PackedDisk.h.
|
inline |
Treat as folder gives hint to UI that this packed geometry primitive should be treated as a "folder"/"directory".
Definition at line 107 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 116 of file GU_PackedDisk.h.
|
inlineoverridevirtual |
Implementation of GU_PackedImpl interface
Reimplemented from GU_PackedImpl.
Definition at line 63 of file GU_PackedDisk.h.
|
inline |
Treat as folder gives hint to UI that this packed geometry primitive should be treated as a "folder"/"directory".
Definition at line 106 of file GU_PackedDisk.h.
|
inlinestatic |
Get the type ID for the GU_PackedDisk primitive type.
Definition at line 48 of file GU_PackedDisk.h.
|
inline |
Member data accessors for intrinsics
Definition at line 114 of file GU_PackedDisk.h.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
|
overridevirtual |
Implementation of GU_PackedImpl interface
Implements GU_PackedImpl.
Definition at line 264 of file GU_PackedDisk.h.
|
protected |
Definition at line 256 of file GU_PackedDisk.h.
|
protected |
Definition at line 259 of file GU_PackedDisk.h.
|
protected |
Definition at line 258 of file GU_PackedDisk.h.
|
protected |
Definition at line 260 of file GU_PackedDisk.h.
|
protected |
Definition at line 261 of file GU_PackedDisk.h.
|
protected |
Definition at line 257 of file GU_PackedDisk.h.