HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_PackedDisk Class Reference

Geometry File procedural. More...

#include <GU_PackedDisk.h>

+ Inheritance diagram for GU_PackedDisk:

Classes

class  CacheItem
 

Public Member Functions

 GU_PackedDisk ()
 
 GU_PackedDisk (const GU_PackedDisk &src)
 
virtual ~GU_PackedDisk ()
 
GU_ConstDetailHandle getPointCloud () const
 Load the point geometry into the given detail. More...
 
virtual GU_PackedFactorygetFactory () const
 
virtual GU_PackedImplcopy () const
 
virtual void clearData ()
 
virtual bool isValid () const
 
virtual bool load (GU_PrimPacked *prim, const UT_Options &options, const GA_LoadMap &map)
 
virtual bool supportsJSONLoad () const
 
virtual bool loadFromJSON (GU_PrimPacked *prim, const UT_JSONValueMap &options, const GA_LoadMap &map)
 
virtual void update (GU_PrimPacked *prim, const UT_Options &options)
 
virtual bool save (UT_Options &options, const GA_SaveMap &map) const
 
virtual bool getBounds (UT_BoundingBox &box) const
 
virtual bool getRenderingBounds (UT_BoundingBox &box) const
 
virtual void getVelocityRange (UT_Vector3 &min, UT_Vector3 &max) const
 
virtual void getWidthRange (fpreal &wmin, fpreal &wmax) const
 
virtual void getPrimitiveName (const GU_PrimPacked *prim, UT_WorkBuffer &wbuf) const
 
virtual bool unpack (GU_Detail &destgdp, const UT_Matrix4D *transform) const
 
virtual bool isLoaded () const
 
virtual GU_ConstDetailHandle getPackedDetail (GU_PackedContext *context=0) const
 
virtual int64 getMemoryUsage (bool inclusive) const
 Report memory usage (includes all shared memory) More...
 
virtual void countMemory (UT_MemoryCounter &counter, bool inclusive) const
 
UT_StringHolder filename () const
 
UT_StringHolder intrinsicFilename (const GU_PrimPacked *prim) const
 
UT_StringHolder unexpanded () const
 
UT_StringHolder intrinsicUnexpanded (const GU_PrimPacked *prim) const
 
void setUnexpanded (GU_PrimPacked *prim, const UT_StringHolder &f)
 
fpreal expandFrame () const
 
fpreal intrinsicExpandFrame (const GU_PrimPacked *prim) const
 
void setExpandFrame (GU_PrimPacked *prim, fpreal f)
 
bool expandFilename () const
 
bool intrinsicExpandFilename (const GU_PrimPacked *prim) const
 
void setExpandFilename (GU_PrimPacked *prim, bool b)
 
- Public Member Functions inherited from GU_PackedImpl
 GU_PackedImpl ()
 
 GU_PackedImpl (const GU_PackedImpl &src)
 
virtual ~GU_PackedImpl ()
 
virtual bool saveSharedData (UT_JSONWriter &w, GA_SaveMap &map, GA_GeometryIndex *geometryIndex) const
 
virtual bool loadSharedData (int load_data_type, const GA_SharedLoadData *item)
 
virtual bool loadUnknownToken (const char *token, UT_JSONParser &p, const GA_LoadMap &map)
 
virtual bool getLocalTransform (UT_Matrix4D &m) const
 
virtual bool unpackWithContext (GU_Detail &destgdp, GU_PackedContext &context, const GU_PrimPacked *prim) const
 
bool unpack (GU_Detail &destgdp, const GU_PrimPacked *prim) const
 
virtual bool unpackWithStyler (GU_Detail &destgdp, STY_StylerGroup &prim_styler_group, const STY_Styler &parent_styler, const GU_PrimPacked *prim) const
 
virtual void forceLoad () const
 
virtual bool unpackUsingPolygons (GU_Detail &destgdp, const GU_PrimPacked *prim) const
 
bool pointInstanceTransform () const
 
bool intrinsicPointInstanceTransform (const GU_PrimPacked *prim) const
 
void setPointInstanceTransform (GU_PrimPacked *prim, bool b)
 Set whether point instancing should be used. More...
 
void topologyDirty ()
 Indicate that topology and attributes are dirty. More...
 
GU_PrimPackedgetPrim ()
 
const GU_PrimPackedgetPrim () const
 
virtual bool saveCachedBBox () const
 
int64 intrinsic3Tuple (const GU_PrimPacked *prim) const
 
int64 intrinsic6Tuple (const GU_PrimPacked *prim) const
 
int64 intrinsic9Tuple (const GU_PrimPacked *prim) const
 
int64 intrinsic16Tuple (const GU_PrimPacked *prim) const
 
std::string intrinsicPrimitiveName (const GU_PrimPacked *prim) const
 
const char * intrinsicFactoryName (const GU_PrimPacked *prim) const
 
const char * intrinsicFactoryLabel (const GU_PrimPacked *prim) const
 
void intrinsicPackedBox (const GU_PrimPacked *prim, fpreal64 *vals, exint sz) const
 
void intrinsicPackedRenderBox (const GU_PrimPacked *prim, fpreal64 *vals, exint sz) const
 
void intrinsicPivot (const GU_PrimPacked *prim, fpreal64 *vals, exint sz) const
 
void intrinsicSetPivot (GU_PrimPacked *prim, const fpreal64 *vals, exint sz)
 
void intrinsicPrimTransform (const GU_PrimPacked *prim, fpreal64 *vals, exint sz) const
 
void intrinsicSetPrimTransform (GU_PrimPacked *prim, const fpreal64 *v, exint sz)
 
void intrinsicPackedTransform (const GU_PrimPacked *prim, fpreal64 *v, exint sz) const
 
void intrinsicFullTransform (const GU_PrimPacked *prim, fpreal64 *v, exint sz) const
 
const char * intrinsicViewportLOD (const GU_PrimPacked *prim) const
 
void intrinsicSetViewportLOD (GU_PrimPacked *prim, const char *lod)
 

Static Public Member Functions

static GU_PrimPackedpackedDisk (GU_Detail &dest, const char *filename, bool do_expanding, fpreal expand_frame)
 
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 Public Member Functions inherited from GU_PackedImpl
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...
 
- Protected Member Functions inherited from GU_PackedImpl
void copyPrimitiveGroups (GU_Detail &dest, bool force=false) const
 
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...
 

Protected Attributes

CacheItem myCache
 
UT_StringHolder myUnexpanded
 
fpreal myExpandFrame
 
bool myExpandFilename
 

Friends

class CacheItem
 

Additional Inherited Members

- Public Types inherited from GU_PackedImpl
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 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 std::string(GU_PackedImpl::* StdStringTupleGetter )(const GU_PrimPacked *, exint) const
 
typedef void(GU_PackedImpl::* StdStringTupleSetter )(GU_PrimPacked *, exint, const std::string &)
 
typedef 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 &)
 
- Static Protected Member Functions inherited from GU_PackedImpl
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)
 

Detailed Description

Geometry File procedural.

Definition at line 21 of file GU_PackedDisk.h.

Constructor & Destructor Documentation

GU_PackedDisk::GU_PackedDisk ( )
GU_PackedDisk::GU_PackedDisk ( const GU_PackedDisk src)
virtual GU_PackedDisk::~GU_PackedDisk ( )
virtual

Member Function Documentation

virtual void GU_PackedDisk::clearData ( )
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

static exint GU_PackedDisk::clearDiskCache ( )
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.

virtual GU_PackedImpl* GU_PackedDisk::copy ( ) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

virtual void GU_PackedDisk::countMemory ( UT_MemoryCounter counter,
bool  inclusive 
) const
virtual

Count memory usage using a UT_MemoryCounter in order to count shared memory correctly.

Implements GU_PackedImpl.

bool GU_PackedDisk::expandFilename ( ) const
inline

Member data accessors for intrinsics

Definition at line 106 of file GU_PackedDisk.h.

fpreal GU_PackedDisk::expandFrame ( ) const
inline

Member data accessors for intrinsics

Definition at line 98 of file GU_PackedDisk.h.

UT_StringHolder GU_PackedDisk::filename ( ) const
inline

Member data accessors for intrinsics

Definition at line 89 of file GU_PackedDisk.h.

virtual bool GU_PackedDisk::getBounds ( UT_BoundingBox box) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

static exint GU_PackedDisk::getCacheVersion ( )
static
virtual GU_PackedFactory* GU_PackedDisk::getFactory ( ) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

virtual int64 GU_PackedDisk::getMemoryUsage ( bool  inclusive) const
virtual

Report memory usage (includes all shared memory)

Implements GU_PackedImpl.

virtual GU_ConstDetailHandle GU_PackedDisk::getPackedDetail ( GU_PackedContext context = 0) const
virtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

GU_ConstDetailHandle GU_PackedDisk::getPointCloud ( ) const

Load the point geometry into the given detail.

virtual void GU_PackedDisk::getPrimitiveName ( const GU_PrimPacked prim,
UT_WorkBuffer wbuf 
) const
virtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

virtual bool GU_PackedDisk::getRenderingBounds ( UT_BoundingBox box) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

virtual void GU_PackedDisk::getVelocityRange ( UT_Vector3 min,
UT_Vector3 max 
) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

virtual void GU_PackedDisk::getWidthRange ( fpreal wmin,
fpreal wmax 
) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

static void GU_PackedDisk::install ( GA_PrimitiveFactory prim)
static

Install the procedural.

bool GU_PackedDisk::intrinsicExpandFilename ( const GU_PrimPacked prim) const
inline

Member data accessors for intrinsics

Definition at line 107 of file GU_PackedDisk.h.

fpreal GU_PackedDisk::intrinsicExpandFrame ( const GU_PrimPacked prim) const
inline

Member data accessors for intrinsics

Definition at line 99 of file GU_PackedDisk.h.

UT_StringHolder GU_PackedDisk::intrinsicFilename ( const GU_PrimPacked prim) const
inline

Member data accessors for intrinsics

Definition at line 90 of file GU_PackedDisk.h.

UT_StringHolder GU_PackedDisk::intrinsicUnexpanded ( const GU_PrimPacked prim) const
inline

Member data accessors for intrinsics

Definition at line 92 of file GU_PackedDisk.h.

virtual bool GU_PackedDisk::isLoaded ( ) const
virtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

virtual bool GU_PackedDisk::isValid ( ) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

virtual bool GU_PackedDisk::load ( GU_PrimPacked prim,
const UT_Options options,
const GA_LoadMap map 
)
inlinevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

Definition at line 59 of file GU_PackedDisk.h.

template<typename T >
bool GU_PackedDisk::loadFrom ( GU_PrimPacked prim,
const T options,
const GA_LoadMap map 
)
protected
virtual bool GU_PackedDisk::loadFromJSON ( GU_PrimPacked prim,
const UT_JSONValueMap options,
const GA_LoadMap map 
)
inlinevirtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

Definition at line 62 of file GU_PackedDisk.h.

void GU_PackedDisk::makeFilename ( GU_PrimPacked prim)
protected

Returns if the filename has changed.

static GU_PrimPacked* GU_PackedDisk::packedDisk ( GU_Detail dest,
const char *  filename,
bool  do_expanding,
fpreal  expand_frame 
)
static

Convenience method to create a packed primitive in the destination detail.

Returns a NULL pointer if the process fails.

virtual bool GU_PackedDisk::save ( UT_Options options,
const GA_SaveMap map 
) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

void GU_PackedDisk::setExpandFilename ( GU_PrimPacked prim,
bool  b 
)
inline

Member data accessors for intrinsics

Definition at line 108 of file GU_PackedDisk.h.

void GU_PackedDisk::setExpandFrame ( GU_PrimPacked prim,
fpreal  f 
)
inline

Member data accessors for intrinsics

Definition at line 101 of file GU_PackedDisk.h.

void GU_PackedDisk::setUnexpanded ( GU_PrimPacked prim,
const UT_StringHolder f 
)
inline

Member data accessors for intrinsics

Definition at line 93 of file GU_PackedDisk.h.

virtual bool GU_PackedDisk::supportsJSONLoad ( ) const
inlinevirtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

Definition at line 61 of file GU_PackedDisk.h.

static GA_PrimitiveTypeId GU_PackedDisk::typeId ( )
inlinestatic

Get the type ID for the GU_PackedDisk primitive type.

Definition at line 47 of file GU_PackedDisk.h.

UT_StringHolder GU_PackedDisk::unexpanded ( ) const
inline

Member data accessors for intrinsics

Definition at line 91 of file GU_PackedDisk.h.

virtual bool GU_PackedDisk::unpack ( GU_Detail destgdp,
const UT_Matrix4D transform 
) const
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

virtual void GU_PackedDisk::update ( GU_PrimPacked prim,
const UT_Options options 
)
virtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

Friends And Related Function Documentation

friend class CacheItem
friend

Definition at line 232 of file GU_PackedDisk.h.

Member Data Documentation

CacheItem GU_PackedDisk::myCache
protected

Definition at line 226 of file GU_PackedDisk.h.

bool GU_PackedDisk::myExpandFilename
protected

Definition at line 229 of file GU_PackedDisk.h.

fpreal GU_PackedDisk::myExpandFrame
protected

Definition at line 228 of file GU_PackedDisk.h.

UT_StringHolder GU_PackedDisk::myUnexpanded
protected

Definition at line 227 of file GU_PackedDisk.h.


The documentation for this class was generated from the following file: