#include <GEO_MetaExpr.h>
|
| GEO_MetaExpression () |
|
| GEO_MetaExpression (const GEO_Detail *gdp, const GA_PrimitiveGroup *primgroup=NULL) |
|
| GEO_MetaExpression (const GEO_Detail *gdp, const GA_Range &prim_range) |
|
| ~GEO_MetaExpression () |
|
int64 | getMemoryUsage (bool inclusive) const |
| Compute memory usage (includes all shared memory) More...
|
|
void | countMemory (UT_MemoryCounter &counter, bool inclusive) const |
|
TS_MetaExpressionPtr | preCompute (const GEO_Detail *gdp, const GA_PrimitiveGroup *prims=nullptr) |
|
TS_MetaExpressionPtr | preCompute (const GEO_Detail *gdp, const GA_Range &prim_range) |
|
const TS_MetaExpressionPtr & | getTSExpression () const |
|
void | computeAttributes (const UT_Vector3 &pos, GA_Offset result, const GA_AttributeRefMap &map) const |
|
void | sumPointAttributes (const UT_Vector3 &pos, GA_Offset resultptoff, const GA_AttributeRefMap &map, GA_WeightedSum &sum) const |
|
void | computeNormalizedAttributes (const UT_Vector3 &pos, GA_Offset result, const GA_AttributeRefMap &map) const |
|
void | computeAttribute (const UT_Vector3 &pos, float *data, const GA_ROAttributeRef &ref, int size) const |
|
UT_Array< const GEO_Primitive * > & | getList () |
|
const UT_Array< const
GEO_Primitive * > & | getList () const |
|
|
static TS_MetaExpressionPtr | getExpression (const GEO_Detail *gdp) |
|
static TS_MetaExpressionPtr | getExpression (const GEO_Detail *gdp, const GA_Range &prim_range, UT_Array< const GEO_Primitive * > *p=nullptr) |
|
|
static void | serialize (const TS_MetaExpression *expr, UT_Int32Array &opcodes, exint nprimitives) |
|
static void | serialize (const TS_MetaExpression *expr, UT_Int64Array &opcodes, exint nprimitives) |
|
|
static bool | unserialize (UT_WorkBuffer &expr, const UT_Int32Array &opcodes) |
|
static bool | unserialize (UT_WorkBuffer &expr, const UT_Int64Array &opcodes) |
|
static bool | unserialize (UT_WorkBuffer &expr, const int32 *array, exint size) |
|
static bool | unserialize (UT_WorkBuffer &expr, const int64 *array, exint size) |
|
Definition at line 33 of file GEO_MetaExpr.h.
GEO_MetaExpression::GEO_MetaExpression |
( |
| ) |
|
|
inline |
GEO_MetaExpression::GEO_MetaExpression |
( |
const GEO_Detail * |
gdp, |
|
|
const GA_Range & |
prim_range |
|
) |
| |
|
inline |
GEO_MetaExpression::~GEO_MetaExpression |
( |
| ) |
|
Count memory usage using a UT_MemoryCounter in order to count shared memory correctly. If inclusive is true, the size of this object is counted, else only memory owned by this object is counted. If this is pointed to by the calling object, inclusive should be true. If this is contained in the calling object, inclusive should be false. (Its memory was already counted in the size of the calling object.)
Create a TS metaball expression given the gdp NOTE: ref() has not been called on the TS_MetaExpression returned.
Create a TS metaball expression given the gdp and primitive range NOTE: ref() has not been called on the TS_MetaExpression returned.
int64 GEO_MetaExpression::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
Compute memory usage (includes all shared memory)
Serialize into an integer array. Nodes in the graph are stored as:
id operator count primlist
Where the id can be used to reference a sub-expression in other expressions. The first id is based on the number of primitives in the gdp. For example: "sum(1, max(0, 1), 2)", in a gdp with 10 primitives will be stored as:
Definition at line 115 of file GEO_MetaExpr.h.
Serialize into an integer array. Nodes in the graph are stored as:
id operator count primlist
Where the id can be used to reference a sub-expression in other expressions. The first id is based on the number of primitives in the gdp. For example: "sum(1, max(0, 1), 2)", in a gdp with 10 primitives will be stored as:
Definition at line 119 of file GEO_MetaExpr.h.
Create an expression for the given serialization
Definition at line 126 of file GEO_MetaExpr.h.
Create an expression for the given serialization
Definition at line 131 of file GEO_MetaExpr.h.
Create an expression for the given serialization
Definition at line 136 of file GEO_MetaExpr.h.
Create an expression for the given serialization
Definition at line 138 of file GEO_MetaExpr.h.
The documentation for this class was generated from the following file: