HDK
|
Public Member Functions | |
GU_BouncyAgentCustomData () | |
GU_BouncyAgentCustomData (const UT_StringHolder &name, int value) | |
const UT_StringHolder & | dataItemType () const override |
int64 | getMemoryUsage (bool inclusive) const override |
The amount of memory used by this item. More... | |
const UT_StringHolder & | name () const override |
int | value () const |
bool | load (UT_JSONParser &p) override |
bool | save (UT_JSONWriter &w) const override |
Public Member Functions inherited from GU_AgentCustomDataItem | |
virtual | ~GU_AgentCustomDataItem ()=default |
Public Member Functions inherited from UT_IntrusiveRefCounter< GU_AgentCustomDataItem > | |
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_IntrusiveRefCounter & | operator= (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 GU_AgentCustomDataItemPtr | construct (const GU_AgentDefinition &) |
Additional Inherited Members | |
Protected Member Functions inherited from UT_IntrusiveRefCounter< GU_AgentCustomDataItem > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Example implementation of a custom data item that can be added to a GU_AgentDefinition.
Definition at line 545 of file SOP_BouncyAgent.C.
|
inline |
Definition at line 548 of file SOP_BouncyAgent.C.
|
inline |
Definition at line 550 of file SOP_BouncyAgent.C.
|
inlinestatic |
Definition at line 555 of file SOP_BouncyAgent.C.
|
inlineoverridevirtual |
Unique identifier for the data item type, used when serializing to a geometry file. This should correspond to the identifier passed to GU_AgentDefinition::registerCustomDataItemType().
Implements GU_AgentCustomDataItem.
Definition at line 560 of file SOP_BouncyAgent.C.
|
inlineoverridevirtual |
The amount of memory used by this item.
Implements GU_AgentCustomDataItem.
Definition at line 565 of file SOP_BouncyAgent.C.
|
inlineoverridevirtual |
Implements serialization to and from JSON. For debugging, save to an ASCII (.geo) geometry file.
Implements GU_AgentCustomDataItem.
Definition at line 578 of file SOP_BouncyAgent.C.
|
inlineoverridevirtual |
Name of the data item, used by GU_AgentDefinition when inserting or search for an item. This varies per instance, unlike dataItemType().
Implements GU_AgentCustomDataItem.
Definition at line 572 of file SOP_BouncyAgent.C.
|
inlineoverridevirtual |
Implements serialization to and from JSON. For debugging, save to an ASCII (.geo) geometry file.
Implements GU_AgentCustomDataItem.
Definition at line 607 of file SOP_BouncyAgent.C.
|
inline |
Definition at line 573 of file SOP_BouncyAgent.C.