#include <POP_GenVar.h>

Static Public Attributes | |
| static CH_LocalVariable | myVariables [] |
| static OP_VariablePair | myVariablePair |
| static OP_TemplatePair | myTemplatePair |
Protected Member Functions | |
| POP_GenVar (OP_Network *net, const char *name, OP_Operator *entry) | |
| virtual | ~POP_GenVar (void) |
| void | birthFromPoints (int doVar, POP_ContextData *data, GU_Detail *gdp, GB_PointGroup *group, UT_Matrix4 *xform, UT_Matrix3 *xformv, POP_AttribMap *map, GB_AttributeData *inherit, GB_AttributeData *split, POP_IntFunc originIndex, int originUse, float *born, GEO_PrimParticle *part, GB_PointGroup *birthGroup, POP_FloatFunc lifetime, POP_FloatFunc probability, POP_BirthAttribFunc birthAttrib, int doRandom, POP_JitterFunc jitter=0, int maxAttempts=100) |
| void | birthFromPointVelocity (int doVar, POP_ContextData *data, GU_Detail *gdp, GB_PointGroup *group, UT_Matrix4 *xform, UT_Matrix3 *xformv, POP_AttribMap *map, GB_AttributeData *inherit, GB_AttributeData *split, POP_IntFunc originIndex, int originUse, float *born, GEO_PrimParticle *part, GB_PointGroup *birthGroup, POP_FloatFunc lifetime, POP_BirthAttribFunc birthAttrib, UT_Vector3 birthVelocity, UT_Vector3 birthAcceleration, fpreal velocityScale, fpreal particleSpacing) |
| void | birthFromPrimitives (int doVar, POP_ContextData *data, GU_Detail *gdp, GB_PrimitiveGroup *group, UT_Matrix4 *xform, UT_Matrix3 *xformv, POP_AttribMap *map, GB_AttributeData *inherit, GB_AttributeData *split, POP_IntFunc originIndex, int originUse, float *born, GEO_PrimParticle *part, GB_PointGroup *birthGroup, POP_FloatFunc lifetime, POP_FloatFunc probability, POP_BirthAttribFunc birthAttrib, int whereFrom, int checkTrim, POP_JitterFunc jitter=0, int doRandom=0, int maxAttempts=100) |
| void | birthFromMetaPrim (int doVar, POP_ContextData *data, GU_Detail *gdp, GB_PrimitiveGroup *group, UT_Matrix4 *xform, UT_Matrix3 *xformv, POP_AttribMap *map, GB_AttributeData *inherit, GB_AttributeData *split, POP_IntFunc originIndex, int originUse, float *born, GEO_PrimParticle *part, GB_PointGroup *birthGroup, POP_FloatFunc lifetime, POP_BirthAttribFunc birthAttrib, float threshold, float densityMin, int useDensityProb, POP_JitterFunc jitter=0, int maxAttempts=100) |
| void | birthFromDetail (int doVar, POP_ContextData *data, GU_Detail *gdp, UT_Matrix4 *xform, UT_Matrix3 *xformv, POP_AttribMap *map, GB_AttributeData *inherit, GB_AttributeData *split, POP_IntFunc originIndex, int originUse, float *born, GEO_PrimParticle *part, GB_PointGroup *birthGroup, POP_FloatFunc lifetime, POP_BirthAttribFunc birthAttrib, GU_RayIntersect *intersector, POP_JitterFunc jitter=0, int maxAttempts=100) |
| void | birthNonUniformlyFromRandomPrimitives (int doVar, POP_ContextData *data, GU_Detail *gdp, GB_PrimitiveGroup *group, UT_Matrix4 *xform, UT_Matrix3 *xformv, POP_AttribMap *map, GB_AttributeData *inherit, GB_AttributeData *split, POP_IntFunc originIndex, int originUse, float *born, GEO_PrimParticle *part, GB_PointGroup *birthGroup, POP_FloatFunc lifetime, POP_FloatFunc probability, POP_BirthAttribFunc birthAttrib, int whereFrom, int checkTrim, POP_JitterFunc jitter, const UT_String &distribAttrib, int maxAttempts) |
| void | buildVectorTransform (UT_Matrix3 &xformv, const UT_Matrix4 &xform) |
| virtual float | getVariableValue (int index, int thread) |
| void | setupVars (POP_ContextData *data, GU_Detail *gdp, const GB_Group *source=0) |
| bool | hasSourceAttributeVars () const |
| void | refreshSourceAttributeVars (GU_Detail *gdp) |
| virtual int | isVarDependent (GU_Detail *gdp, POP_FParam param, float t, int thread) |
| virtual int | isVarDependent (GU_Detail *gdp, POP_IParam param, float t, int thread) |
| virtual int | isVarDependent (GU_Detail *gdp, POP_SParam param, float t, int thread) |
| virtual int | isVarDependent (GU_Detail *gdp, EV_EXPRESSION *expr, int thread) |
| void | allowVar (int val) |
| int | isAllowVar () const |
| int | isVarTest () const |
| void | setVarDependent (int val) |
| void | clearLastEmissionTime () |
Protected Attributes | |
| UT_Vector4 * | mySourcePos |
| GB_AttributeData * | mySourceAtt |
| int | mySourceIter |
| float | mySourceU |
| float | mySourceV |
| const GB_Element * | mySourceElem |
| UT_Vector3 * | mySourceNml |
Definition at line 23 of file POP_GenVar.h.
| POP_GenVar::POP_GenVar | ( | OP_Network * | net, | |
| const char * | name, | |||
| OP_Operator * | entry | |||
| ) | [protected] |
| virtual POP_GenVar::~POP_GenVar | ( | void | ) | [protected, virtual] |
| void POP_GenVar::allowVar | ( | int | val | ) | [inline, protected, virtual] |
| void POP_GenVar::birthFromDetail | ( | int | doVar, | |
| POP_ContextData * | data, | |||
| GU_Detail * | gdp, | |||
| UT_Matrix4 * | xform, | |||
| UT_Matrix3 * | xformv, | |||
| POP_AttribMap * | map, | |||
| GB_AttributeData * | inherit, | |||
| GB_AttributeData * | split, | |||
| POP_IntFunc | originIndex, | |||
| int | originUse, | |||
| float * | born, | |||
| GEO_PrimParticle * | part, | |||
| GB_PointGroup * | birthGroup, | |||
| POP_FloatFunc | lifetime, | |||
| POP_BirthAttribFunc | birthAttrib, | |||
| GU_RayIntersect * | intersector, | |||
| POP_JitterFunc | jitter = 0, |
|||
| int | maxAttempts = 100 | |||
| ) | [protected] |
| void POP_GenVar::birthFromMetaPrim | ( | int | doVar, | |
| POP_ContextData * | data, | |||
| GU_Detail * | gdp, | |||
| GB_PrimitiveGroup * | group, | |||
| UT_Matrix4 * | xform, | |||
| UT_Matrix3 * | xformv, | |||
| POP_AttribMap * | map, | |||
| GB_AttributeData * | inherit, | |||
| GB_AttributeData * | split, | |||
| POP_IntFunc | originIndex, | |||
| int | originUse, | |||
| float * | born, | |||
| GEO_PrimParticle * | part, | |||
| GB_PointGroup * | birthGroup, | |||
| POP_FloatFunc | lifetime, | |||
| POP_BirthAttribFunc | birthAttrib, | |||
| float | threshold, | |||
| float | densityMin, | |||
| int | useDensityProb, | |||
| POP_JitterFunc | jitter = 0, |
|||
| int | maxAttempts = 100 | |||
| ) | [protected] |
| void POP_GenVar::birthFromPoints | ( | int | doVar, | |
| POP_ContextData * | data, | |||
| GU_Detail * | gdp, | |||
| GB_PointGroup * | group, | |||
| UT_Matrix4 * | xform, | |||
| UT_Matrix3 * | xformv, | |||
| POP_AttribMap * | map, | |||
| GB_AttributeData * | inherit, | |||
| GB_AttributeData * | split, | |||
| POP_IntFunc | originIndex, | |||
| int | originUse, | |||
| float * | born, | |||
| GEO_PrimParticle * | part, | |||
| GB_PointGroup * | birthGroup, | |||
| POP_FloatFunc | lifetime, | |||
| POP_FloatFunc | probability, | |||
| POP_BirthAttribFunc | birthAttrib, | |||
| int | doRandom, | |||
| POP_JitterFunc | jitter = 0, |
|||
| int | maxAttempts = 100 | |||
| ) | [protected] |
| void POP_GenVar::birthFromPointVelocity | ( | int | doVar, | |
| POP_ContextData * | data, | |||
| GU_Detail * | gdp, | |||
| GB_PointGroup * | group, | |||
| UT_Matrix4 * | xform, | |||
| UT_Matrix3 * | xformv, | |||
| POP_AttribMap * | map, | |||
| GB_AttributeData * | inherit, | |||
| GB_AttributeData * | split, | |||
| POP_IntFunc | originIndex, | |||
| int | originUse, | |||
| float * | born, | |||
| GEO_PrimParticle * | part, | |||
| GB_PointGroup * | birthGroup, | |||
| POP_FloatFunc | lifetime, | |||
| POP_BirthAttribFunc | birthAttrib, | |||
| UT_Vector3 | birthVelocity, | |||
| UT_Vector3 | birthAcceleration, | |||
| fpreal | velocityScale, | |||
| fpreal | particleSpacing | |||
| ) | [protected] |
| void POP_GenVar::birthFromPrimitives | ( | int | doVar, | |
| POP_ContextData * | data, | |||
| GU_Detail * | gdp, | |||
| GB_PrimitiveGroup * | group, | |||
| UT_Matrix4 * | xform, | |||
| UT_Matrix3 * | xformv, | |||
| POP_AttribMap * | map, | |||
| GB_AttributeData * | inherit, | |||
| GB_AttributeData * | split, | |||
| POP_IntFunc | originIndex, | |||
| int | originUse, | |||
| float * | born, | |||
| GEO_PrimParticle * | part, | |||
| GB_PointGroup * | birthGroup, | |||
| POP_FloatFunc | lifetime, | |||
| POP_FloatFunc | probability, | |||
| POP_BirthAttribFunc | birthAttrib, | |||
| int | whereFrom, | |||
| int | checkTrim, | |||
| POP_JitterFunc | jitter = 0, |
|||
| int | doRandom = 0, |
|||
| int | maxAttempts = 100 | |||
| ) | [protected] |
| void POP_GenVar::birthNonUniformlyFromRandomPrimitives | ( | int | doVar, | |
| POP_ContextData * | data, | |||
| GU_Detail * | gdp, | |||
| GB_PrimitiveGroup * | group, | |||
| UT_Matrix4 * | xform, | |||
| UT_Matrix3 * | xformv, | |||
| POP_AttribMap * | map, | |||
| GB_AttributeData * | inherit, | |||
| GB_AttributeData * | split, | |||
| POP_IntFunc | originIndex, | |||
| int | originUse, | |||
| float * | born, | |||
| GEO_PrimParticle * | part, | |||
| GB_PointGroup * | birthGroup, | |||
| POP_FloatFunc | lifetime, | |||
| POP_FloatFunc | probability, | |||
| POP_BirthAttribFunc | birthAttrib, | |||
| int | whereFrom, | |||
| int | checkTrim, | |||
| POP_JitterFunc | jitter, | |||
| const UT_String & | distribAttrib, | |||
| int | maxAttempts | |||
| ) | [protected] |
| void POP_GenVar::buildVectorTransform | ( | UT_Matrix3 & | xformv, | |
| const UT_Matrix4 & | xform | |||
| ) | [protected] |
| void POP_GenVar::clearLastEmissionTime | ( | ) | [inline, protected] |
Definition at line 252 of file POP_GenVar.h.
| virtual float POP_GenVar::getVariableValue | ( | int | index, | |
| int | thread | |||
| ) | [protected, virtual] |
Reimplemented from OP_Parameters.
| bool POP_GenVar::hasSourceAttributeVars | ( | ) | const [protected] |
| int POP_GenVar::isAllowVar | ( | ) | const [inline, protected] |
Definition at line 247 of file POP_GenVar.h.
| virtual int POP_GenVar::isVarDependent | ( | GU_Detail * | gdp, | |
| EV_EXPRESSION * | expr, | |||
| int | thread | |||
| ) | [protected, virtual] |
Reimplemented from POP_Node.
| virtual int POP_GenVar::isVarDependent | ( | GU_Detail * | gdp, | |
| POP_SParam | param, | |||
| float | t, | |||
| int | thread | |||
| ) | [protected, virtual] |
Reimplemented from POP_Node.
| virtual int POP_GenVar::isVarDependent | ( | GU_Detail * | gdp, | |
| POP_IParam | param, | |||
| float | t, | |||
| int | thread | |||
| ) | [protected, virtual] |
Reimplemented from POP_Node.
| virtual int POP_GenVar::isVarDependent | ( | GU_Detail * | gdp, | |
| POP_FParam | param, | |||
| float | t, | |||
| int | thread | |||
| ) | [protected, virtual] |
Reimplemented from POP_Node.
| int POP_GenVar::isVarTest | ( | ) | const [inline, protected] |
Definition at line 249 of file POP_GenVar.h.
| void POP_GenVar::refreshSourceAttributeVars | ( | GU_Detail * | gdp | ) | [protected] |
| void POP_GenVar::setupVars | ( | POP_ContextData * | data, | |
| GU_Detail * | gdp, | |||
| const GB_Group * | source = 0 | |||
| ) | [protected] |
| void POP_GenVar::setVarDependent | ( | int | val | ) | [inline, protected] |
Definition at line 250 of file POP_GenVar.h.
GB_AttributeData* POP_GenVar::mySourceAtt [protected] |
Definition at line 255 of file POP_GenVar.h.
const GB_Element* POP_GenVar::mySourceElem [protected] |
Definition at line 259 of file POP_GenVar.h.
int POP_GenVar::mySourceIter [protected] |
Definition at line 256 of file POP_GenVar.h.
UT_Vector3* POP_GenVar::mySourceNml [protected] |
Definition at line 260 of file POP_GenVar.h.
UT_Vector4* POP_GenVar::mySourcePos [protected] |
Definition at line 254 of file POP_GenVar.h.
float POP_GenVar::mySourceU [protected] |
Definition at line 257 of file POP_GenVar.h.
float POP_GenVar::mySourceV [protected] |
Definition at line 258 of file POP_GenVar.h.
Definition at line 30 of file POP_GenVar.h.
Definition at line 28 of file POP_GenVar.h.
CH_LocalVariable POP_GenVar::myVariables[] [static] |
Definition at line 27 of file POP_GenVar.h.
1.5.9