|
| | DOP_Engine (OP_Node *owner) |
| | Constructor is given a pointer to the network that owns the simulation. More...
|
| |
| | ~DOP_Engine () override |
| | Destructor destroys all data for the simulation. More...
|
| |
| void | getObjectsAtInputs (DOP_Node *node, UT_ValArray< const SIM_ObjectArray * > &objectsatinputs) const |
| |
| void | getObjectsForNode (DOP_Node *node, SIM_ConstObjectArray &objects) const |
| |
| void | addObjectForNode (DOP_Node *node, SIM_RootData &rootdata) |
| |
| DOP_Node * | getDopNodeBeingProcessed () const |
| |
| void | propagateSimDirty (bool send_event) |
| | Explicitly dirty dependents of this simulation. More...
|
| |
| void | notifySimulationChangeSinksOfChange () override |
| | Pass through to our parent's notification. More...
|
| |
| UT_ErrorSeverity | getErrorSeverity () const |
| |
| void | registerNodeError (OP_Node *node, const UT_StringHolder &errmsg, UT_ErrorSeverity sev) const |
| |
|
| void | applyErrorsToNode (OP_Node *sink, OP_Node *sourcenode, bool only_nodes_errors=true, UT_ErrorSeverity minseverity=UT_ERROR_MESSAGE) const |
| |
| void | applyErrorsToManager (UT_ErrorManager *sink, OP_Node *sourcenode, bool only_nodes_errors=true, UT_ErrorSeverity minseverity=UT_ERROR_MESSAGE) const |
| |
| | SIM_Engine (OP_Node *owner) |
| | Constructor to create a new simulation. More...
|
| |
| virtual | ~SIM_Engine () |
| | Destructor to destroy all data associated with a simulation. More...
|
| |
| | SIM_Engine (const SIM_Engine &)=delete |
| |
| SIM_Engine & | operator= (const SIM_Engine &)=delete |
| |
| OP_Node * | getOwner () const |
| |
| const UT_String & | getOwnerFullPath () const |
| | Gets the full path to the DOP Network node that owns this simulation. More...
|
| |
| void | getOwnerFullPathString (UT_String &str) const |
| |
| SIM_Object * | addSimulationObject (bool solvefirstframe) |
| |
| void | removeSimulationObject (int index) |
| |
| void | removeSimulationObject (SIM_Object *object) |
| |
| int | getNumSimulationObjects () const |
| | Returns the number of objects currently in the simulation. More...
|
| |
| int64 | getNumSimulationData () const |
| | Returns the number of objects currently in the simulation. More...
|
| |
| const SIM_Object * | getSimulationObject (int index) const |
| |
| const SIM_Object * | getSimulationObjectFromId (int objectid) const |
| |
| const SIM_Object * | getNthSimulationObject (const SIM_DataFilter &filter, int n) const |
| |
| SIM_Relationship * | addRelationship (const char *name, int creationflags) |
| |
| int | getNumRelationships () const |
| | Returns the number of relationships in the current simulation state. More...
|
| |
| const SIM_Relationship * | getRelationship (int index) const |
| | This function allows looping through the simulations relationships. More...
|
| |
| const SIM_Relationship * | getRelationship (const char *name) const |
| | Returns the relationship with the specified name. More...
|
| |
| void | filterConstRelationships (const SIM_DataFilter &filter, SIM_ConstDataArray &rels) const |
| |
| void | removeRelationship (int index) |
| | Removes the relationship at the specified position. More...
|
| |
| void | removeRelationship (const char *name) |
| | Removes the relationship with the specified name. More...
|
| |
| void | removeRelationship (SIM_Relationship *rel) |
| | Removes the specified relationship. More...
|
| |
| void | removeAllRelationships (int createdby, const SIM_RelationshipArray *except) |
| |
| const SIM_RootData * | getRootDataFromId (const SIM_RootDataId &id) const |
| |
| SIM_RootData * | getNonConstRootDataFromId (const SIM_RootDataId &id) |
| |
| const SIM_Object * | getObjectAtTime (const SIM_Object &object, const SIM_Time &time, bool allowinterpolation) const |
| |
| SIM_Object * | getAffectorAtTime (SIM_Object &object, const SIM_Time &time, bool allowinterpolation) |
| |
| int | getObjectsAtPastTimes (const SIM_Object **const past_objects[], SIM_Time past_times[], const int num_objects, const SIM_Object *const objects[], const int max_past) |
| |
| int | getRelationshipsAtPastTimes (const SIM_Relationship **const past_rels[], SIM_Time past_times[], const int num_rels, const SIM_Relationship *const rels[], const int max_past) const |
| | Equivalent of getObjectsAtPastTimes() for relationships. More...
|
| |
| SIM_Object * | createSubStepObject (const SIM_Object &object, const SIM_Time &time) |
| |
| void | removeSubStepObject (SIM_Object *objectattime, bool allwithmatchingid) |
| |
| bool | mergeSimulationFile (const char *filename, const SIM_DataFilter &filter, const SIM_ObjectArray &replaceobjects, const OP_Node *defaultcreator, bool forcecreatortodefault, bool acceptnewobjects, bool matchbyname, const char *nameprefix) |
| |
| void | saveSimulationFile (OP_Node *node, const char *filename, const SIM_DataFilter &filter, const SIM_ObjectArray &objects, UT_CompressionType type=UT_COMPRESSION_TYPE_BLOSC) const |
| |
| bool | saveSimulationState (std::ostream &os, UT_CompressionType type=UT_COMPRESSION_TYPE_BLOSC) const |
| | Saves the entire current state of the simulation immediately. More...
|
| |
| bool | saveSimulationStateToFile (const char *fname, UT_CompressionType type, bool threadedio) const |
| |
| void | setSimulationTime (const SIM_Time &t, bool resimlasttimestep, bool forceresetsim, bool allowsimulation) |
| |
| void | resetToFirstSimulationStep () |
| |
| const SIM_Time & | getSimulationTime () const |
| | Returns the current simulation time. More...
|
| |
| const SIM_Time | getEngineTime (const SIM_Time &t) const |
| | Returns the simulation time that corresponds to the given global time. More...
|
| |
| const SIM_Time | getGlobalTime (const SIM_Time &t) const |
| | Returns the global time that corresponds to the given simulation time. More...
|
| |
| const SIM_Time & | getEarliestCacheTime () const |
| | Returns the time of the earliest simulation state in the cache. More...
|
| |
| const SIM_Time & | getLatestCacheTime () const |
| |
| void | getCachedFrames (UT_Array< int > &frames, bool inmemory) const |
| |
| bool | isFrameCached (exint frame) const |
| | Returns if a frame is cached. More...
|
| |
| const SIM_CacheOptions & | getCacheOptions () const |
| | Returns a reference to the cache options for this simulation. More...
|
| |
| void | setCacheOptions (const SIM_CacheOptions &o) |
| | Sets the cache options for this simulation. More...
|
| |
| const SIM_Time & | getTimeStep () const |
| | Returns the time step size. More...
|
| |
| void | setTimeStep (const SIM_Time &time) |
| | Sets the global time step size. More...
|
| |
| int | getMaxFeedbackIterations () const |
| | Gets the maximum number of allowed feedback iterations. More...
|
| |
| void | setMaxFeedbackIterations (int max) |
| | Sets the maximum number of allowed feedback iterations. More...
|
| |
| int | getFeedbackIteration () const |
| |
| bool | getProvideDataHints () const |
| | Returns true if the engine is providing data hierarchy hints. More...
|
| |
| void | setProvideDataHints (bool providehints) |
| | Specifies whether the engine should provide data hierarchy hints. More...
|
| |
| int | getCurrentCreatorId () const |
| | Gets the id for the node that is currently being processed. More...
|
| |
| int | getCurrentCreatorIndex () const |
| | Gets the index of the node output that is currently being processed. More...
|
| |
| void | setCreatorInfo (int id, int index) |
| |
| const SIM_Data * | getConstDataWithId (const UT_Guid &id) const |
| | Returns the SIM_Data pointer with the specified unique id. More...
|
| |
| int | getSimulationFrame (const SIM_Time &time) const |
| |
| const SIM_Time | getSimulationTime (int frame) const |
| |
| void | addError (const SIM_RootData *rootdata, const SIM_Data *data, int errorcode, const char *errorparm, UT_ErrorSeverity severity) const |
| |
| void | resetErrors () |
| | Resets the errors stored in the simulation. More...
|
| |
| int64 | getTotalMemorySize () const |
| |
| void | removeAllOPInterests () const |
| | Removes all node interests from the engine. More...
|
| |
| void | addOPInterest (OP_Node *node) const |
| |
| void | addGuideOPInterest (OP_Node *node) const |
| |
| bool | hasOPInterest (OP_Node *node) const |
| | Returns whether there is an explicit interest on the node. More...
|
| |
| void | getDataTypes (UT_StringArray &datatypes, const UT_StringRef &datatype) const |
| |
| void | getDataTypeSuperclasses (const UT_StringRef &datatype, UT_StringArray &classes) const |
| | Returns a list of the superclass names for the specified data type. More...
|
| |
| void | getDataTypeSources (UT_StringArray &datatypes, UT_StringArray &srcs) const |
| |
| const char * | getDescription (const UT_StringRef &datatype) const |
| |
| const SIM_DopDescription * | getDopDescription (const UT_StringRef &datatype) const |
| |
| void | findAllObjectsFromString (const char *objspec, SIM_ConstObjectArray &objects, const SIM_Time &t, bool interpolateobj) const |
| |
| const SIM_Object * | findObjectFromString (const char *objspec, int whichmatch, int *nummatch, const SIM_Time &t, bool interpolateobj) const |
| |
| void | findAllObjectsCreatedBy (OP_Node *creator, SIM_ConstObjectArray &objects) const |
| |
| void | findAllRelationshipsFromString (const char *relspec, SIM_ConstDataArray &relationships, const SIM_Time &t, bool interpolaterel) const |
| |
| const SIM_Relationship * | findRelationshipFromString (const char *relspec, int whichmatch, int *nummatch, const SIM_Time &t, bool interpolaterel) const |
| |
| void | getSelection (SIM_ConstDataArray &data) const |
| | Gets a list of all selected data in the simulation. More...
|
| |
| void | clearSelection () const |
| | Clears the selection flag on all data in this simulation. More...
|
| |
| fpreal | scaleToMKS (const char *fromunits) const |
| |
| fpreal | scaleFromMKS (const char *tounits) const |
| |
| DEP_MicroNode & | simMicroNode () |
| |
| const DEP_MicroNode & | simMicroNode () const |
| |
| DEP_MicroNode & | simInputMicroNode () |
| |
| const DEP_MicroNode & | simInputMicroNode () const |
| |
| DEP_MicroNode & | resimParmsMicroNode () |
| |
| const DEP_MicroNode & | resimParmsMicroNode () const |
| |
| DEP_MicroNode & | refilterParmsMicroNode () |
| |
| const DEP_MicroNode & | refilterParmsMicroNode () const |
| |
| void | getExtraInterests (OP_NodeList &extras, bool normal, bool guides) const |
| |
| void | setIsPlayer (bool isPlayer) |
| |
| bool | isPlayer () const |
| |
| void | resetPlayer () |
| | Rebuilds the player cache. More...
|
| |
| void | updatePlayerFrames () |
| | Tries to expand the cached frame range. More...
|
| |
| int64 | getModVersion () const |
| |
| 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 |
| |
This subclass of SIM_Engine is the one used to contain simulations controlled by DOP_Node networks. It serves as the glue between the pure simulation library and the DOP_Node interface given to simulations in Houdini.
- Examples:
- DOP/DOP_GroupAndApply.C, and DOP/DOP_GroupAndApply.h.
Definition at line 36 of file DOP_Engine.h.