#include <GEO_PrimMetaSQuad.h>

Public Member Functions | |
| GEO_PrimMetaSQuad (GEO_Detail *d, GA_Offset offset=GA_INVALID_OFFSET) | |
| virtual | ~GEO_PrimMetaSQuad () |
| 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 GEO_MetaPrim * | castToMetaPrim () |
| virtual const GEO_MetaPrim * | castToMetaPrim () const |
| virtual TS_MetaPrimitive * | getNewMetaPrim () |
| void | setXYexp (float v) |
| void | setZexp (float v) |
| float | getXYexp (void) const |
| float | getZexp (void) const |
| virtual void | stashed (int onoff, GA_Offset offset=GA_INVALID_OFFSET) |
| virtual const GA_PrimitiveJSON * | getJSON () const |
Protected Member Functions | |
| GEO_PrimMetaSQuad (const GA_MergeMap &map, GEO_Detail &detail, GA_Offset offset, const GEO_PrimMetaSQuad &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_PrimMetaSQuad.h.
| GEO_PrimMetaSQuad::GEO_PrimMetaSQuad | ( | GEO_Detail * | d, | |
| GA_Offset | offset = GA_INVALID_OFFSET | |||
| ) |
| virtual GEO_PrimMetaSQuad::~GEO_PrimMetaSQuad | ( | ) | [virtual] |
| GEO_PrimMetaSQuad::GEO_PrimMetaSQuad | ( | const GA_MergeMap & | map, | |
| GEO_Detail & | detail, | |||
| GA_Offset | offset, | |||
| const GEO_PrimMetaSQuad & | src | |||
| ) | [protected] |
| static GA_PrimitiveFamilyMask GEO_PrimMetaSQuad::buildFamilyMask | ( | ) | [inline, static, protected] |
We explicitly do not include the mask from the GEO_PrimSphere base.
Reimplemented from GEO_PrimSphere.
Definition at line 75 of file GEO_PrimMetaSQuad.h.
| virtual const GEO_MetaPrim* GEO_PrimMetaSQuad::castToMetaPrim | ( | ) | const [virtual] |
Reimplemented from GEO_Primitive.
| virtual GEO_MetaPrim* GEO_PrimMetaSQuad::castToMetaPrim | ( | ) | [virtual] |
Reimplemented from GEO_Primitive.
| virtual GEO_Primitive* GEO_PrimMetaSQuad::copy | ( | int | preserve_shared_pts = 0 |
) | const [virtual] |
Reimplemented from GEO_Quadric.
| virtual void GEO_PrimMetaSQuad::copyOffsetPrimitive | ( | const GEO_Primitive * | src, | |
| int | basept | |||
| ) | [protected, virtual] |
Reimplemented from GEO_Quadric.
| virtual void GEO_PrimMetaSQuad::copyPrimitive | ( | const GEO_Primitive * | src, | |
| GEO_Point ** | ptredirect | |||
| ) | [virtual] |
Reimplemented from GEO_Quadric.
| virtual void GEO_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::getMemoryUsage | ( | ) | const [virtual] |
| virtual TS_MetaPrimitive* GEO_PrimMetaSQuad::getMetaPrim | ( | ) | [virtual] |
Implements GEO_MetaPrim.
| virtual TS_MetaPrimitive* GEO_PrimMetaSQuad::getNewMetaPrim | ( | ) | [virtual] |
Implements GEO_MetaPrim.
| float GEO_PrimMetaSQuad::getXYexp | ( | void | ) | const [inline] |
Definition at line 60 of file GEO_PrimMetaSQuad.h.
| float GEO_PrimMetaSQuad::getZexp | ( | void | ) | const [inline] |
Definition at line 61 of file GEO_PrimMetaSQuad.h.
| virtual void GEO_PrimMetaSQuad::initTSdata | ( | ) | [virtual] |
Implements GEO_MetaPrim.
| virtual bool GEO_PrimMetaSQuad::isDegenerate | ( | ) | const [virtual] |
| virtual bool GEO_PrimMetaSQuad::loadPrivateH9 | ( | UT_IStream & | is | ) | [protected, virtual] |
Reimplemented from GEO_Quadric.
| virtual int GEO_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::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_PrimMetaSQuad::registerIntrinsics | ( | GA_PrimitiveDefinition & | defn | ) | [static, protected] |
All subclasses should call this method to register the curve intrinsics.
Reimplemented from GEO_PrimSphere.
| virtual bool GEO_PrimMetaSQuad::savePrivateH9 | ( | ostream & | os, | |
| bool | binary | |||
| ) | const [protected, virtual] |
Reimplemented from GEO_Quadric.
| void GEO_PrimMetaSQuad::setXYexp | ( | float | v | ) | [inline] |
Definition at line 58 of file GEO_PrimMetaSQuad.h.
| void GEO_PrimMetaSQuad::setZexp | ( | float | v | ) | [inline] |
Definition at line 59 of file GEO_PrimMetaSQuad.h.
| virtual void GEO_PrimMetaSQuad::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