#include <GEO_PrimMetaBall.h>

Public Member Functions | |
| GEO_PrimMetaBall (GEO_Detail *d, GA_Offset offset=GA_INVALID_OFFSET) | |
| virtual | ~GEO_PrimMetaBall () |
| virtual int64 | getMemoryUsage () const |
| Report approximate memory usage. | |
| virtual void | copyPrimitive (const GEO_Primitive *src, GEO_Point **ptredirect) |
| virtual bool | isDegenerate () const |
| Is the primitive degenerate. | |
| virtual GEO_Primitive * | copy (int preserve_shared_pts=0) const |
| virtual void | copyUnwiredForMerge (const GA_Primitive *src, const GA_MergeMap &map) |
| virtual void | initTSdata () |
| virtual TS_MetaPrimitive * | getMetaPrim () |
| virtual TS_MetaPrimitive * | getNewMetaPrim () |
| virtual GEO_MetaPrim * | castToMetaPrim () |
| virtual const GEO_MetaPrim * | castToMetaPrim () const |
| virtual void | stashed (int onoff, GA_Offset offset=GA_INVALID_OFFSET) |
| virtual const GA_PrimitiveJSON * | getJSON () const |
Protected Member Functions | |
| GEO_PrimMetaBall (const GA_MergeMap &map, GEO_Detail &detail, GA_Offset offset, const GEO_PrimMetaBall &src) | |
| virtual void | copyOffsetPrimitive (const GEO_Primitive *src, int basept) |
| virtual bool | savePrivateH9 (ostream &os, bool binary) const |
| virtual bool | loadPrivateH9 (UT_IStream &is) |
| virtual int | localIntrinsicTupleSize (const GA_IntrinsicEval &eval) const |
| virtual int | localGetIntrinsicS (const GA_IntrinsicEval &eval, UT_String &value) const |
| virtual int | localGetIntrinsicSA (const GA_IntrinsicEval &eval, UT_StringArray &value) const |
| virtual int | localGetIntrinsicI (const GA_IntrinsicEval &eval, int64 *value, GA_Size size) const |
| virtual int | localGetIntrinsicF (const GA_IntrinsicEval &eval, fpreal *value, GA_Size size) const |
| virtual int | localSetIntrinsicSA (const GA_IntrinsicEval &eval, const UT_StringArray &value) |
| virtual int | localSetIntrinsicSS (const GA_IntrinsicEval &eval, const char **value, GA_Size size) |
| virtual int | localSetIntrinsicI (const GA_IntrinsicEval &eval, const int64 *value, GA_Size size) |
| virtual int | localSetIntrinsicF (const GA_IntrinsicEval &eval, const fpreal *value, GA_Size size) |
Static Protected Member Functions | |
| static GA_PrimitiveFamilyMask | buildFamilyMask () |
| We explicitly do not include the mask from the GEO_PrimSphere base. | |
| static GA_IntrinsicManager::Registrar | registerIntrinsics (GA_PrimitiveDefinition &defn) |
Definition at line 30 of file GEO_PrimMetaBall.h.
| GEO_PrimMetaBall::GEO_PrimMetaBall | ( | GEO_Detail * | d, | |
| GA_Offset | offset = GA_INVALID_OFFSET | |||
| ) |
| virtual GEO_PrimMetaBall::~GEO_PrimMetaBall | ( | ) | [virtual] |
| GEO_PrimMetaBall::GEO_PrimMetaBall | ( | const GA_MergeMap & | map, | |
| GEO_Detail & | detail, | |||
| GA_Offset | offset, | |||
| const GEO_PrimMetaBall & | src | |||
| ) | [protected] |
| static GA_PrimitiveFamilyMask GEO_PrimMetaBall::buildFamilyMask | ( | ) | [inline, static, protected] |
We explicitly do not include the mask from the GEO_PrimSphere base.
Reimplemented from GEO_PrimSphere.
Definition at line 71 of file GEO_PrimMetaBall.h.
| virtual const GEO_MetaPrim* GEO_PrimMetaBall::castToMetaPrim | ( | ) | const [virtual] |
Reimplemented from GEO_Primitive.
| virtual GEO_MetaPrim* GEO_PrimMetaBall::castToMetaPrim | ( | ) | [virtual] |
Reimplemented from GEO_Primitive.
| virtual GEO_Primitive* GEO_PrimMetaBall::copy | ( | int | preserve_shared_pts = 0 |
) | const [virtual] |
Reimplemented from GEO_Quadric.
| virtual void GEO_PrimMetaBall::copyOffsetPrimitive | ( | const GEO_Primitive * | src, | |
| int | basept | |||
| ) | [protected, virtual] |
Reimplemented from GEO_Quadric.
| virtual void GEO_PrimMetaBall::copyPrimitive | ( | const GEO_Primitive * | src, | |
| GEO_Point ** | ptredirect | |||
| ) | [virtual] |
Reimplemented from GEO_Quadric.
| virtual void GEO_PrimMetaBall::copyUnwiredForMerge | ( | const GA_Primitive * | src, | |
| const GA_MergeMap & | map | |||
| ) | [virtual] |
Copy the specified primitive as part of the merge. The source primitive will be of the same type.
Since the vertex offsets will change for the merged geometry, the map should be used to lookup the new vertex offsets. For example
map.mapDestFromSource( GA_ATTRIB_VERTEX, source_vertex );
Reimplemented from GEO_Quadric.
| virtual const GA_PrimitiveJSON* GEO_PrimMetaBall::getJSON | ( | ) | const [virtual] |
This method returns the JSON interface for saving/loading the primitive If the method returns a NULL pointer, then the primitive will not be saved to geometry files (and thus cannot be loaded).
Reimplemented from GEO_PrimSphere.
| virtual int64 GEO_PrimMetaBall::getMemoryUsage | ( | ) | const [virtual] |
| virtual TS_MetaPrimitive* GEO_PrimMetaBall::getMetaPrim | ( | ) | [virtual] |
Implements GEO_MetaPrim.
| virtual TS_MetaPrimitive* GEO_PrimMetaBall::getNewMetaPrim | ( | ) | [virtual] |
Implements GEO_MetaPrim.
| virtual void GEO_PrimMetaBall::initTSdata | ( | ) | [virtual] |
Implements GEO_MetaPrim.
| virtual bool GEO_PrimMetaBall::isDegenerate | ( | ) | const [virtual] |
| virtual bool GEO_PrimMetaBall::loadPrivateH9 | ( | UT_IStream & | is | ) | [protected, virtual] |
Reimplemented from GEO_Quadric.
| virtual int GEO_PrimMetaBall::localGetIntrinsicF | ( | const GA_IntrinsicEval & | eval, | |
| fpreal * | value, | |||
| GA_Size | size | |||
| ) | const [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GEO_Quadric.
| virtual int GEO_PrimMetaBall::localGetIntrinsicI | ( | const GA_IntrinsicEval & | eval, | |
| int64 * | value, | |||
| GA_Size | size | |||
| ) | const [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GA_Primitive.
| virtual int GEO_PrimMetaBall::localGetIntrinsicS | ( | const GA_IntrinsicEval & | eval, | |
| UT_String & | value | |||
| ) | const [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GA_Primitive.
| virtual int GEO_PrimMetaBall::localGetIntrinsicSA | ( | const GA_IntrinsicEval & | eval, | |
| UT_StringArray & | value | |||
| ) | const [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GA_Primitive.
| virtual int GEO_PrimMetaBall::localIntrinsicTupleSize | ( | const GA_IntrinsicEval & | eval | ) | const [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GEO_Quadric.
| virtual int GEO_PrimMetaBall::localSetIntrinsicF | ( | const GA_IntrinsicEval & | eval, | |
| const fpreal * | value, | |||
| GA_Size | size | |||
| ) | [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GEO_Quadric.
| virtual int GEO_PrimMetaBall::localSetIntrinsicI | ( | const GA_IntrinsicEval & | eval, | |
| const int64 * | value, | |||
| GA_Size | size | |||
| ) | [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GA_Primitive.
| virtual int GEO_PrimMetaBall::localSetIntrinsicSA | ( | const GA_IntrinsicEval & | eval, | |
| const UT_StringArray & | value | |||
| ) | [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GA_Primitive.
| virtual int GEO_PrimMetaBall::localSetIntrinsicSS | ( | const GA_IntrinsicEval & | eval, | |
| const char ** | value, | |||
| GA_Size | size | |||
| ) | [protected, virtual] |
As this is a multiple-base class off GEO_MetaPrim, all intrinsic methods need to be defined (since the meta primitive intrinsics need to be considered).
Further sub-classes may simply override the specific methods for their attributes.
Reimplemented from GA_Primitive.
| static GA_IntrinsicManager::Registrar GEO_PrimMetaBall::registerIntrinsics | ( | GA_PrimitiveDefinition & | defn | ) | [static, protected] |
All subclasses should call this method to register the metaball intrinsics.
Reimplemented from GEO_PrimSphere.
| virtual bool GEO_PrimMetaBall::savePrivateH9 | ( | ostream & | os, | |
| bool | binary | |||
| ) | const [protected, virtual] |
Reimplemented from GEO_Quadric.
| virtual void GEO_PrimMetaBall::stashed | ( | int | onoff, | |
| GA_Offset | offset = GA_INVALID_OFFSET | |||
| ) | [virtual] |
Stash (deactivate) or unstash (reactivate) the primitive.
Stashing a primitive will set its offset to that specified, typically GA_INVALID_OFFSET. Primitives are only stashed as part of clearing a detail, so there is no need to explicitly deallocate vertices. It is safe to delete a stashed primitive.
Unstashing a primitive will re-register that primitive with its parent detail at the specified offset (or a new offset if GA_INVALID_OFFSET).
Reimplemented from GEO_Quadric.
1.5.9