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

Geometry fragment procedural. More...

#include <GU_PackedFragment.h>

+ Inheritance diagram for GU_PackedFragment:

Public Member Functions

 GU_PackedFragment ()
 
 GU_PackedFragment (const GU_PackedFragment &src)
 
 ~GU_PackedFragment () override
 
const GU_ConstDetailHandledetailPtr () const
 
GA_Range getPrimitiveRange () const
 
void setDetails (GU_PrimPacked *prim, const GU_ConstDetailHandle &d, const GA_Attribute *attrib, const UT_StringHolder &name)
 
void setDetails (GU_PrimPacked *prim, const GU_ConstDetailHandle &d, const GA_Attribute *attrib, const char *name)
 
void setDetails (GU_PrimPacked *prim, const GU_ConstDetailHandle &d, const GA_Attribute *attrib, exint id)
 
GU_PackedFactorygetFactory () const override
 
GU_PackedImplcopy () const override
 
bool isValid () const override
 
void clearData () override
 
bool load (GU_PrimPacked *prim, const UT_Options &options, const GA_LoadMap &map) override
 
bool supportsJSONLoad () const override
 
bool loadFromJSON (GU_PrimPacked *prim, const UT_JSONValueMap &options, const GA_LoadMap &map) override
 
void update (GU_PrimPacked *prim, const UT_Options &options) override
 
bool save (UT_Options &options, const GA_SaveMap &map) const override
 
bool getBounds (UT_BoundingBox &box) const override
 
bool getRenderingBounds (UT_BoundingBox &box) const override
 
void getVelocityRange (UT_Vector3 &min, UT_Vector3 &max) const override
 
void getWidthRange (fpreal &min, fpreal &max) const override
 
bool unpack (GU_Detail &destgdp, const UT_Matrix4D *transform) const override
 
void forceLoad () const override
 
bool isLoaded () const override
 
GU_ConstDetailHandle getPackedDetail (GU_PackedContext *context=0) const override
 
bool loadSharedData (int dtype, const GA_SharedLoadData *it) override
 
bool saveSharedData (UT_JSONWriter &w, GA_SaveMap &map, GA_GeometryIndex *geo_index) const override
 
int64 getMemoryUsage (bool inclusive) const override
 Report memory usage (includes all shared memory) More...
 
void countMemory (UT_MemoryCounter &counter, bool inclusive) const override
 
bool saveCachedBBox () const override
 
UT_StringHolder attribute () const
 
UT_StringHolder intrinsicAttribute (const GU_PrimPacked *prim) const
 
UT_StringHolder name () const
 
bool isIntValue () const
 
exint intValue () const
 
UT_StringHolder intrinsicName (const GU_PrimPacked *prim) const
 
void setAttribute (GU_PrimPacked *prim, const UT_StringHolder &f)
 
void setName (GU_PrimPacked *prim, const UT_StringHolder &f)
 
void setName (GU_PrimPacked *prim, exint f)
 
exint geometryId () const
 
exint intrinsicGeometryId (const GU_PrimPacked *prim) const
 
- Public Member Functions inherited from GU_PackedImpl
 GU_PackedImpl ()
 
virtual ~GU_PackedImpl ()
 
 GU_PackedImpl (const GU_PackedImpl &src)=default
 
GU_PackedImploperator= (const GU_PackedImpl &src)=default
 
virtual bool loadUnknownToken (const char *token, UT_JSONParser &p, const GA_LoadMap &map)
 
bool getBoundsCached (UT_BoundingBox &box) const
 
virtual bool getVisibleBounds (UT_BoundingBox &box) const
 
bool getVisibleBoundsCached (UT_BoundingBox &box) const
 
virtual void getPrimitiveName (const GU_PrimPacked *prim, UT_WorkBuffer &wbuf) const
 
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 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...
 
virtual void setFacesetAttribute (const UT_StringHolder &s)
 
virtual const UT_StringHolderfacesetAttribute () const
 
virtual void setAttributeNameMap (const GEO_PackedNameMapPtr &m)
 
virtual const
GEO_PackedNameMapPtr
attributeNameMap () const
 
virtual void setSharedNameMapData (GA_SharedDataHandlePtr s)
 
SYS_FORCE_INLINE bool isShared () const
 
SYS_FORCE_INLINE GU_PackedImplcopyIfShared ()
 
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)
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< GU_PackedImpl >
SYS_FORCE_INLINE UT_IntrusiveRefCounter () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

Static Public Member Functions

static void install (GA_PrimitiveFactory *prim)
 Install the procedural. More...
 
static GA_PrimitiveTypeId typeId ()
 Get the type ID for the GU_PackedFragment primitive type. More...
 
static GU_PrimPackedcreateFragment (GU_Detail &dest, const GU_ConstDetailHandle &src, const GA_Attribute *attrib, const UT_StringHolder &val, GA_Offset ptoff=GA_INVALID_OFFSET)
 
static GU_PrimPackedcreateFragment (GU_Detail &dest, const GU_ConstDetailHandle &src, const GA_Attribute *attrib, const char *val, GA_Offset ptoff=GA_INVALID_OFFSET)
 
static GU_PrimPackedcreateFragment (GU_Detail &dest, const GU_ConstDetailHandle &src, const GA_Attribute *attrib, exint val, GA_Offset ptoff=GA_INVALID_OFFSET)
 
- 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

void makeEmbeddedname ()
 Returns if the filename has changed. More...
 
template<typename T >
bool loadFrom (GU_PrimPacked *prim, const T &options, const GA_LoadMap &map)
 
template<typename T >
void updateFrom (GU_PrimPacked *prim, const T &options)
 
virtual bool loadPackedGeometry () const
 
- Protected Member Functions inherited from GU_PackedImpl
virtual bool unpackWithPrim (GU_Detail &destgdp, const UT_Matrix4D *transform, const GU_PrimPacked *prim) const
 
const UT_BoundingBoxboxCache () 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...
 
- Protected Member Functions inherited from UT_IntrusiveRefCounter< GU_PackedImpl >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Protected Attributes

UT_StringHolder myAttribName
 
UT_StringHolder myAttribValue
 
exint myAttribIntValue
 
GA_AttributeOwner myAttribOwner
 
bool myIsIntegerAttrib
 
GU_ConstDetailHandle myDetail
 
const GA_AttributemyCachedAttrib
 
GA_SharedDataHandlePtr mySharedData
 
UT_Lock mySharedDataLock
 
UT_UniquePtr< fpreal64[]> myBoundingBox
 

Static Protected Attributes

static GA_PrimitiveTypeId theTypeId
 
- Static Protected Attributes inherited from GU_PackedImpl
static const GEO_PackedNameMapPtr theNullPackedNameMapPtr
 

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 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 Protected Member Functions inherited from GU_PackedImpl
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)
 

Detailed Description

Geometry fragment procedural.

Definition at line 22 of file GU_PackedFragment.h.

Constructor & Destructor Documentation

GU_PackedFragment::GU_PackedFragment ( )
GU_PackedFragment::GU_PackedFragment ( const GU_PackedFragment src)
GU_PackedFragment::~GU_PackedFragment ( )
override

Member Function Documentation

UT_StringHolder GU_PackedFragment::attribute ( ) const
inline

Member data accessors for intrinsics

Definition at line 156 of file GU_PackedFragment.h.

void GU_PackedFragment::clearData ( )
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

GU_PackedImpl* GU_PackedFragment::copy ( ) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

void GU_PackedFragment::countMemory ( UT_MemoryCounter counter,
bool  inclusive 
) const
overridevirtual

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

Implements GU_PackedImpl.

static GU_PrimPacked* GU_PackedFragment::createFragment ( GU_Detail dest,
const GU_ConstDetailHandle src,
const GA_Attribute attrib,
const UT_StringHolder val,
GA_Offset  ptoff = GA_INVALID_OFFSET 
)
static

Convenience method to create a packed fragment primitive in the destination detail. The packed fragment primitive will embed the entire source detail but represent just the subset of the source detail with primitive attribute "ref" having a value of "val". The source detail will be copied into the embedded detail.

The dest detail is the detail in which the packed fragment will be created. The GU_ConstDetailHandle for the src will add a reference to the detail handle (sharing it between multiple fragments). The attrib refers to a primitive string attribute (i.e. "name") which is used to specify the houdini primitives which compose the fragment. The val is used to match the attribute to determine selection of the primitives of the fragment. For example:

const GU_Detail *srcgdp = rlock.getGdp();
exint nstrings = srcgdp->getUniqueValueCount(aref);
for (exint i = 0; i < nstrings; ++i)
{
GU_PrimFragment *prim;
const char *val = srcgdp->getUniqueStringValue(aref, i);
// Create a primitive in the @c dest detail
prim = GU_PackedFragment::createFragment(dest, src, aref, val);
}

Returns a NULL pointer if the process fails.

NOTE: The const char* overload is to try to avoid ambiguity if some code passes nullptr.

Examples:
packedprim/packedprim.C.
static GU_PrimPacked* GU_PackedFragment::createFragment ( GU_Detail dest,
const GU_ConstDetailHandle src,
const GA_Attribute attrib,
const char *  val,
GA_Offset  ptoff = GA_INVALID_OFFSET 
)
static

Convenience method to create a packed fragment primitive in the destination detail. The packed fragment primitive will embed the entire source detail but represent just the subset of the source detail with primitive attribute "ref" having a value of "val". The source detail will be copied into the embedded detail.

The dest detail is the detail in which the packed fragment will be created. The GU_ConstDetailHandle for the src will add a reference to the detail handle (sharing it between multiple fragments). The attrib refers to a primitive string attribute (i.e. "name") which is used to specify the houdini primitives which compose the fragment. The val is used to match the attribute to determine selection of the primitives of the fragment. For example:

const GU_Detail *srcgdp = rlock.getGdp();
exint nstrings = srcgdp->getUniqueValueCount(aref);
for (exint i = 0; i < nstrings; ++i)
{
GU_PrimFragment *prim;
const char *val = srcgdp->getUniqueStringValue(aref, i);
// Create a primitive in the @c dest detail
prim = GU_PackedFragment::createFragment(dest, src, aref, val);
}

Returns a NULL pointer if the process fails.

NOTE: The const char* overload is to try to avoid ambiguity if some code passes nullptr.

static GU_PrimPacked* GU_PackedFragment::createFragment ( GU_Detail dest,
const GU_ConstDetailHandle src,
const GA_Attribute attrib,
exint  val,
GA_Offset  ptoff = GA_INVALID_OFFSET 
)
static

Convenience method to create a packed fragment primitive in the destination detail. The packed fragment primitive will embed the entire source detail but represent just the subset of the source detail with primitive attribute "ref" having a value of "val". The source detail will be copied into the embedded detail.

The dest detail is the detail in which the packed fragment will be created. The GU_ConstDetailHandle for the src will add a reference to the detail handle (sharing it between multiple fragments). The attrib refers to a primitive string attribute (i.e. "name") which is used to specify the houdini primitives which compose the fragment. The val is used to match the attribute to determine selection of the primitives of the fragment. For example:

const GU_Detail *srcgdp = rlock.getGdp();
exint nstrings = srcgdp->getUniqueValueCount(aref);
for (exint i = 0; i < nstrings; ++i)
{
GU_PrimFragment *prim;
const char *val = srcgdp->getUniqueStringValue(aref, i);
// Create a primitive in the @c dest detail
prim = GU_PackedFragment::createFragment(dest, src, aref, val);
}

Returns a NULL pointer if the process fails.

NOTE: The const char* overload is to try to avoid ambiguity if some code passes nullptr.

const GU_ConstDetailHandle& GU_PackedFragment::detailPtr ( ) const
inline

Definition at line 196 of file GU_PackedFragment.h.

void GU_PackedFragment::forceLoad ( ) const
overridevirtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

exint GU_PackedFragment::geometryId ( ) const
inline

Member data accessors for intrinsics

Definition at line 183 of file GU_PackedFragment.h.

bool GU_PackedFragment::getBounds ( UT_BoundingBox box) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

GU_PackedFactory* GU_PackedFragment::getFactory ( ) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

int64 GU_PackedFragment::getMemoryUsage ( bool  inclusive) const
overridevirtual

Report memory usage (includes all shared memory)

Implements GU_PackedImpl.

GU_ConstDetailHandle GU_PackedFragment::getPackedDetail ( GU_PackedContext context = 0) const
overridevirtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

GA_Range GU_PackedFragment::getPrimitiveRange ( ) const
bool GU_PackedFragment::getRenderingBounds ( UT_BoundingBox box) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

void GU_PackedFragment::getVelocityRange ( UT_Vector3 min,
UT_Vector3 max 
) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

void GU_PackedFragment::getWidthRange ( fpreal min,
fpreal max 
) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

static void GU_PackedFragment::install ( GA_PrimitiveFactory prim)
static

Install the procedural.

UT_StringHolder GU_PackedFragment::intrinsicAttribute ( const GU_PrimPacked prim) const
inline

Member data accessors for intrinsics

Definition at line 157 of file GU_PackedFragment.h.

exint GU_PackedFragment::intrinsicGeometryId ( const GU_PrimPacked prim) const
inline

Member data accessors for intrinsics

Definition at line 190 of file GU_PackedFragment.h.

UT_StringHolder GU_PackedFragment::intrinsicName ( const GU_PrimPacked prim) const
inline

Member data accessors for intrinsics

Definition at line 171 of file GU_PackedFragment.h.

exint GU_PackedFragment::intValue ( ) const
inline

Member data accessors for intrinsics

Definition at line 170 of file GU_PackedFragment.h.

bool GU_PackedFragment::isIntValue ( ) const
inline

Member data accessors for intrinsics

Definition at line 169 of file GU_PackedFragment.h.

bool GU_PackedFragment::isLoaded ( ) const
overridevirtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

bool GU_PackedFragment::isValid ( ) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

bool GU_PackedFragment::load ( GU_PrimPacked prim,
const UT_Options options,
const GA_LoadMap map 
)
inlineoverridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

Definition at line 97 of file GU_PackedFragment.h.

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

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

Definition at line 101 of file GU_PackedFragment.h.

virtual bool GU_PackedFragment::loadPackedGeometry ( ) const
protectedvirtual
bool GU_PackedFragment::loadSharedData ( int  dtype,
const GA_SharedLoadData it 
)
inlineoverridevirtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

Definition at line 127 of file GU_PackedFragment.h.

void GU_PackedFragment::makeEmbeddedname ( )
protected

Returns if the filename has changed.

UT_StringHolder GU_PackedFragment::name ( ) const
inline

Member data accessors for intrinsics

Definition at line 158 of file GU_PackedFragment.h.

bool GU_PackedFragment::save ( UT_Options options,
const GA_SaveMap map 
) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

bool GU_PackedFragment::saveCachedBBox ( ) const
inlineoverridevirtual

We will be saving the contents in the same file so we don't have to worry about them changing. This avoids having to seek & stat to restore as bbox.

Reimplemented from GU_PackedImpl.

Definition at line 150 of file GU_PackedFragment.h.

bool GU_PackedFragment::saveSharedData ( UT_JSONWriter w,
GA_SaveMap map,
GA_GeometryIndex geo_index 
) const
overridevirtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

void GU_PackedFragment::setAttribute ( GU_PrimPacked prim,
const UT_StringHolder f 
)
inline

Member data accessors for intrinsics

Definition at line 172 of file GU_PackedFragment.h.

void GU_PackedFragment::setDetails ( GU_PrimPacked prim,
const GU_ConstDetailHandle d,
const GA_Attribute attrib,
const UT_StringHolder name 
)
void GU_PackedFragment::setDetails ( GU_PrimPacked prim,
const GU_ConstDetailHandle d,
const GA_Attribute attrib,
const char *  name 
)
void GU_PackedFragment::setDetails ( GU_PrimPacked prim,
const GU_ConstDetailHandle d,
const GA_Attribute attrib,
exint  id 
)
void GU_PackedFragment::setName ( GU_PrimPacked prim,
const UT_StringHolder f 
)
inline

Member data accessors for intrinsics

Definition at line 173 of file GU_PackedFragment.h.

void GU_PackedFragment::setName ( GU_PrimPacked prim,
exint  f 
)
inline

Member data accessors for intrinsics

Definition at line 178 of file GU_PackedFragment.h.

bool GU_PackedFragment::supportsJSONLoad ( ) const
inlineoverridevirtual

Implementation of GU_PackedImpl interface

Reimplemented from GU_PackedImpl.

Definition at line 100 of file GU_PackedFragment.h.

static GA_PrimitiveTypeId GU_PackedFragment::typeId ( )
inlinestatic

Get the type ID for the GU_PackedFragment primitive type.

Definition at line 85 of file GU_PackedFragment.h.

bool GU_PackedFragment::unpack ( GU_Detail destgdp,
const UT_Matrix4D transform 
) const
overridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

void GU_PackedFragment::update ( GU_PrimPacked prim,
const UT_Options options 
)
inlineoverridevirtual

Implementation of GU_PackedImpl interface

Implements GU_PackedImpl.

Definition at line 106 of file GU_PackedFragment.h.

template<typename T >
void GU_PackedFragment::updateFrom ( GU_PrimPacked prim,
const T options 
)
protected

Member Data Documentation

exint GU_PackedFragment::myAttribIntValue
protected

Definition at line 218 of file GU_PackedFragment.h.

UT_StringHolder GU_PackedFragment::myAttribName
protected

Definition at line 216 of file GU_PackedFragment.h.

GA_AttributeOwner GU_PackedFragment::myAttribOwner
protected

Definition at line 219 of file GU_PackedFragment.h.

UT_StringHolder GU_PackedFragment::myAttribValue
protected

Definition at line 217 of file GU_PackedFragment.h.

UT_UniquePtr<fpreal64[]> GU_PackedFragment::myBoundingBox
protected

Definition at line 225 of file GU_PackedFragment.h.

const GA_Attribute* GU_PackedFragment::myCachedAttrib
mutableprotected

Definition at line 222 of file GU_PackedFragment.h.

GU_ConstDetailHandle GU_PackedFragment::myDetail
mutableprotected

Definition at line 221 of file GU_PackedFragment.h.

bool GU_PackedFragment::myIsIntegerAttrib
protected

Definition at line 220 of file GU_PackedFragment.h.

GA_SharedDataHandlePtr GU_PackedFragment::mySharedData
mutableprotected

Definition at line 223 of file GU_PackedFragment.h.

UT_Lock GU_PackedFragment::mySharedDataLock
mutableprotected

Definition at line 224 of file GU_PackedFragment.h.

GA_PrimitiveTypeId GU_PackedFragment::theTypeId
staticprotected

Definition at line 227 of file GU_PackedFragment.h.


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