|
AGXDynamics
2.31.1.0
|
Class used to extract data from a granular journal, in the form of writing contact and particle data to file. More...
#include <GranularDataExporter.h>
Inheritance diagram for agx::GranularDataExporter:Public Member Functions | |
| GranularDataExporter (agx::Physics::GranularBodySystem *system) | |
| Constructor of GranularDataExporter. More... | |
| void | addListener (EventListener *listener) |
| virtual void | addNotification () |
| Called when this listener is added to the simulation. More... | |
| virtual void | addObject (agx::Object *object, bool assignContext=true) |
| Add an object to the component. More... | |
| AGX_DECLARE_VECTOR_TYPES (Event) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| virtual String | autoComplete (const String &partialName, StringVector &matchingNames) const |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const override |
| virtual void | configure (TiXmlElement *eComponent) override |
| void | configure (Model *model) |
| ContactDataExporter (agx::Physics::GranularBodySystem *system) | |
| Default constructor. More... | |
| ContactDataWriter (const agx::String &filePrefix, const agx::String &postFix, const agx::String &separator) | |
| Constructor for creating the file writer. More... | |
| virtual void | createExportFile (const agx::String &filename)=0 |
| Sets and creates a file with the given path where the exporter writes information. More... | |
| virtual void | createExportFile (const agx::String &filename) override |
| Creates the file which the contact data should be written to. More... | |
| virtual void | createExportFile (const agx::String &filename) override |
| Creates the file which the particle data should be written to. More... | |
| void | exportPostStep (const IndexHashSet &destroyedParticles) |
| Manually called by the exporter parent when performing pre export step. More... | |
| void | exportPreStep (const IndexHashSet &destroyedParticles) |
| Manually called by the exporter parent when performing pre export step. More... | |
| void | finalizeAfterSimulation () |
| Function that is called manually after the simulation is done. More... | |
| void | finalizeExport (GranularDataExporter *exporter) |
| Called during the last steps of the export. More... | |
| agx::String | fullName () const |
| agx::String | fullPath () const |
| agx::String | fullPath (const agx::Object *root) const |
| agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getAutoScopedResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| const char * | getClassName () const override |
| agx::Object * | getContext () |
| const agx::Object * | getContext () const |
| template<typename T > | |
| T * | getContext () |
| template<typename T > | |
| const T * | getContext () const |
| IndexHashSet | getDestroyedParticles () const |
| Returns the currently destroyed particles registered from the coupled GranularBodySystem. More... | |
| agx::Device * | getDevice () |
| const agx::Device * | getDevice () const |
| template<typename T > | |
| T * | getDevice () |
| template<typename T > | |
| const T * | getDevice () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getId () const |
| const agx::Name & | getImplementationName () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| int | getMask () const |
| agx::Model * | getModel () |
| const agx::Model * | getModel () const |
| const agx::Name & | getName () const |
| agx::Object * | getNextSibling () |
| const agx::Object * | getNextSibling () const |
| size_t | getNumObjects (const agx::Name &name) const |
| agx::Object * | getObject (const agx::Name &name, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, size_t index=0) const |
| agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) const |
| template<typename T > | |
| T * | getObject (const agx::Name &name, size_t index=0) |
| template<typename T > | |
| const T * | getObject (const agx::Name &name, size_t index=0) const |
| const agx::ObjectRefVector & | getObjects () const |
| template<typename T > | |
| void | getObjects (agx::ObjectPtrVector &result, bool recursive=false) const |
| void | getObjects (agx::ObjectPtrVector &result, const agx::Model *model, bool recursive=false) const |
| template<typename T > | |
| void | getObjects (ObjectPtrVector &result, bool recursive) const |
| agx::Path | getPath () const |
| agx::Path | getPath (const agx::Object *root) const |
| int | getPriority () const |
| int | getReferenceCount () const |
| agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getResource (const agx::Path &path) const |
| virtual Object * | getResourceImpl (const Path &path, agx::Model *model) override |
| agx::Object * | getRootContext () |
| const agx::Object * | getRootContext () const |
| Simulation * | getSimulation () |
| const Simulation * | getSimulation () const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| virtual GranularDataExporter::ExporterDataType | getType () const =0 |
| Returns the type of the exporter, which is overridden by child classes. More... | |
| virtual GranularDataExporter::ExporterDataType | getType () const override |
| Returns the type of the exporter, which is overridden by child classes. More... | |
| virtual GranularDataExporter::ExporterDataType | getType () const override |
| Returns the type of the exporter, which is overridden by child classes. More... | |
| agx::Uuid | getUuid () const |
| virtual void | handleParticleDestroyed (agx::Index particleId) |
| Callback that is called when a particle is destroyed. More... | |
| virtual void | handleParticleDestroyed (agx::Index particleId) override |
| Is called when a particle is destroyed in the simulation. More... | |
| virtual void | handleParticleDestroyed (agx::Index particleId) override |
| Called when a particle is destroyed. More... | |
| bool | hasListener (EventListener *listener) |
| bool | hasParent (const agx::Object *node) const |
| IDataExporter (agx::Physics::GranularBodySystem *system) | |
| Constructor. More... | |
| IDataFileWriter (const agx::String &filePrefix, const agx::String &postFix, const agx::String &separator) | |
| Constructor for creating the file writer. More... | |
| void | init () |
| Initializes the exporter. More... | |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isEnabled () const |
| bool | isFinished () const |
| bool | isUnique () const |
| virtual void | last (const agx::TimeStamp &time) |
| Called after a step is taken in the simulation Implement this method in the derived class to get callbacks. More... | |
| ParticleDataExporter (agx::Physics::GranularBodySystem *system) | |
| Constructor. More... | |
| ParticleDataWriter (const agx::String &filePrefix, const agx::String &postFix, const agx::String &separator) | |
| Constructor for creating the file writer. More... | |
| virtual void | post (const agx::TimeStamp &) override |
| Post step function. More... | |
| virtual void | pre (const agx::TimeStamp &) override |
| Pre step function. More... | |
| virtual void | preCollide (const agx::TimeStamp &time) |
| Called before collision detection is performed in the simulation Implement this method in the derived class to get callbacks. More... | |
| virtual void | printSubtree () const override |
| void | printSubtree (std::ostream &stream, int depth=0) const |
| virtual void | rebind () override |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | removeAllObjects () |
| Remove all components. More... | |
| void | removeListener (EventListener *listener) |
| virtual void | removeNotification () |
| Called when this listener is removed from the simulation. More... | |
| virtual void | removeObject (agx::Object *object) |
| Remove an object from the component. More... | |
| void | removeObject (const agx::Name &name, size_t index=0) |
| Remove an object with a specified name (and optional index) from the component. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| virtual void | save (TiXmlElement *) const |
| void | setAnalysisBox (agx::AnalysisBox *box) |
| Sets the AnalysisBox that should be used by the exporter. More... | |
| void | setAnalysisBox (agx::AnalysisBox *box) |
| Sets the analysis box to be used in the exporter. More... | |
| virtual void | setContext (agx::Object *context) |
| void | setEnable (bool enable) |
| Specify whether the listener should react at all at events. More... | |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setExporterType (ExporterDataType type) |
| Sets the exporter type, i.e which type of data that should be exported. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setId (UInt32 id) |
| virtual void | setMask (int mask) override |
| Specifies a bitmask which determines which event types will activate this listener. More... | |
| void | setModel (agx::Model *model) |
| Set the object model (handled automatically). More... | |
| void | setName (const agx::Name &name) |
| Set the name of the object. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| virtual void | snapshot (TiXmlNode *eParent, const String &directory) const override |
| virtual void | store (agxStream::OutputArchive &out) const override |
| void | traverse (const TraverseCallback &callback) |
| void | traverse (ComponentVisitor *) |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | writeContact (const detail::ParticleGeometryContactInformation &contact) |
| Writes particle information to file. More... | |
| void | writeContact (const detail::ParticlePairContactInformation &contact) |
| Writes particle information to file. More... | |
| void | writeParticleInformation (const detail::ParticleInformation &info) |
| Writes particle information to file. More... | |
| void | writeToFile (const agx::String &file) |
| Sets and creates a file with the given path where the exporter writes information. More... | |
Static Public Member Functions | |
| static Component * | _load (TiXmlElement *eComponent, Device *device) |
| static agx::Model * | ClassModel () |
| static agx::String | convertExportDataTypeToFilename (ExporterDataType exportDataType) |
| Convert export data type to filename. More... | |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static agxStream::Serializable * | create () |
| static agx::String | generateName (const agx::String &bindPath) |
| static const HashSet< Object * > & | getActiveObjects () |
| static const char * | getConstructClassId () |
| static bool | getEnableRebind () |
| Should rebinding be allowed? Right now a global setting. More... | |
| static Component * | load (const String &path, const Path &_namespace=Path()) |
| static Component * | load (const String &path, Device *device, const Path &_namespace=Path()) |
| static Component * | load (const Path &path, const Name &implementation, Device *device, const Path &_namespace=Path()) |
| static Component * | load (TiXmlElement *eComponent, Device *device) |
| static Object * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| static Object * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static void | load (const String &path, Device *device, ObjectPtrVector &loadedObjects) |
| static TiXmlDocument | openDocument (const String &path) |
| static void | setEnableRebind (bool flag) |
| Sets if rebinding of objects should be allowed (Right now a global setting). More... | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Public Attributes | |
| ObjectEvent | addObjectEvent |
| ObjectEvent | removeObjectEvent |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Class used to extract data from a granular journal, in the form of writing contact and particle data to file.
IDataFileWriter implementation for contact data.
IDataFileWriter implementation for particle data.
Base class for creating and writing export data to file.
ParticleDataExporter that exports particle data to a file.
ContactDataExporter exports the impact contacts stored in the GranularBodySystem written by the GranularImpactDataWriter.
Abstract class for data exporters used in the GranularDataExporter.
This is currently used in the QT post process viewer to export contact impact data for post processing in external tools.
Usage:
Connect the GranularDataExporter to a simulation by adding it to a simulation.
impactExporter = new agx::GranularDataExporter(system); impactExporter->setExporterType(exportType); impactExporter->writeToFile(writeFileName); simulation->add(impactExporter);
impactExporter->init()
<Do simulation stepping...>
imapctExporter->finalizeAfterSimulation()
Is inherited by child classes exporting a certain set of data. Every exporter writes their data to a file.
It writes this contact information to a file.
Is created and managed by the IDataExporter classes.
Definition at line 52 of file GranularDataExporter.h.
| typedef agx::observer_ptr< const ContactDataExporter > agx::GranularDataExporter::ContactDataExporterConstObserver |
Definition at line 58 of file GranularDataExporter.h.
| typedef agx::ref_ptr< const ContactDataExporter > agx::GranularDataExporter::ContactDataExporterConstRef |
Definition at line 58 of file GranularDataExporter.h.
| typedef agx::observer_ptr< ContactDataExporter > agx::GranularDataExporter::ContactDataExporterObserver |
Definition at line 58 of file GranularDataExporter.h.
Definition at line 58 of file GranularDataExporter.h.
| typedef agx::observer_ptr< const ContactDataWriter > agx::GranularDataExporter::ContactDataWriterConstObserver |
Definition at line 60 of file GranularDataExporter.h.
| typedef agx::ref_ptr< const ContactDataWriter > agx::GranularDataExporter::ContactDataWriterConstRef |
Definition at line 60 of file GranularDataExporter.h.
Definition at line 60 of file GranularDataExporter.h.
Definition at line 60 of file GranularDataExporter.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| typedef agx::observer_ptr< const IDataExporter > agx::GranularDataExporter::IDataExporterConstObserver |
Definition at line 57 of file GranularDataExporter.h.
| typedef agx::ref_ptr< const IDataExporter > agx::GranularDataExporter::IDataExporterConstRef |
Definition at line 57 of file GranularDataExporter.h.
Definition at line 57 of file GranularDataExporter.h.
Definition at line 57 of file GranularDataExporter.h.
| typedef agx::observer_ptr< const IDataFileWriter > agx::GranularDataExporter::IDataFileWriterConstObserver |
Definition at line 56 of file GranularDataExporter.h.
Definition at line 56 of file GranularDataExporter.h.
Definition at line 56 of file GranularDataExporter.h.
Definition at line 56 of file GranularDataExporter.h.
|
inherited |
Event when adding removing child objects.
NOTE: Events are triggered recursively up the parent structure Example: B is added to root node A, one event is triggered (A.addObjectEvent(A, B)). Then when C is added to B two events are triggered (B.addObjectEvent(B, C), and A.addObjectEvent(B,C))
Definition at line 61 of file Component.h.
| typedef agx::observer_ptr< const ParticleDataExporter > agx::GranularDataExporter::ParticleDataExporterConstObserver |
Definition at line 59 of file GranularDataExporter.h.
| typedef agx::ref_ptr< const ParticleDataExporter > agx::GranularDataExporter::ParticleDataExporterConstRef |
Definition at line 59 of file GranularDataExporter.h.
| typedef agx::observer_ptr< ParticleDataExporter > agx::GranularDataExporter::ParticleDataExporterObserver |
Definition at line 59 of file GranularDataExporter.h.
Definition at line 59 of file GranularDataExporter.h.
| typedef agx::observer_ptr< const ParticleDataWriter > agx::GranularDataExporter::ParticleDataWriterConstObserver |
Definition at line 61 of file GranularDataExporter.h.
| typedef agx::ref_ptr< const ParticleDataWriter > agx::GranularDataExporter::ParticleDataWriterConstRef |
Definition at line 61 of file GranularDataExporter.h.
| typedef agx::observer_ptr< ParticleDataWriter > agx::GranularDataExporter::ParticleDataWriterObserver |
Definition at line 61 of file GranularDataExporter.h.
Definition at line 61 of file GranularDataExporter.h.
|
inherited |
Definition at line 141 of file Component.h.
|
inherited |
Defines the event states for which a listener will be activated, a mask can be bitwise OR:ed from these members.
| Enumerator | |
|---|---|
| STEP_NONE | |
| PRE_COLLIDE | Triggered just BEFORE a simulation step is taken. |
| PRE_STEP | Triggered just BEFORE a Dynamics stepForward step is taken. |
| POST_STEP | Triggered just AFTER a Dynamics stepForward step is taken. |
| LAST_STEP | Triggered last in a Simulation::stepForward call. |
| DEFAULT | The default activation mask. |
| ALL | All events. |
Definition at line 45 of file StepEventListener.h.
Export Data Type.
| Enumerator | |
|---|---|
| PARTICLE_DATA | |
| CONTACT_DATA | |
Definition at line 65 of file GranularDataExporter.h.
|
inherited |
Type of EventListener.
| Enumerator | |
|---|---|
| UNDEFINED_TYPE | Undefined type. |
| STEP_EVENT_LISTENER | Of type StepEventListener. |
| CONTACT_EVENT_LISTENER | Of type ContactEventListener. |
| GUI_EVENT_LISTENER | Of type GuiEventListener. |
Definition at line 42 of file EventListener.h.
| agx::GranularDataExporter::GranularDataExporter | ( | agx::Physics::GranularBodySystem * | system | ) |
Constructor of GranularDataExporter.
| system | the GranularBodySystem that the exporter will take information from. |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedpure virtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedpure virtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
protectedpure virtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
staticinherited |
|
inherited |
|
inlinevirtualinherited |
Called when this listener is added to the simulation.
(given that it not already is in the simulation).
Reimplemented in agxSensor::JoystickManager, agxModel::Terrain, agxTerrain::TerrainPager, agxControl::EventSensor, agxSDK::SimulationStatisticsListener, agxModel::FractureGenerator, agxOSG::SplineRenderer, agx::GranularImpactDataWriter, agxModel::HeightFieldDeformerJournalRecorder, agxSensor::Joystick, agxOSG::SplineRendererOld, agxUtil::StepEventCallback, agx::JournalCustomDataRecorder, agxOSG::TreeRenderer, agxSDK::PickHandler, agxOSG::WireRenderer, and agxLua::GarbageListener.
Definition at line 83 of file EventListener.h.
|
virtualinherited |
Add an object to the component.
| object | The object to be added |
| assignContext | True if the child get the component as the context, set to false to allow 'weak' coupled children |
Referenced by agxSDK::StatisticsListenerData< agx::Real >::StatisticsListenerData().
|
inherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
virtualinherited |
Reimplemented in agx::Namespace.
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agxData::Buffer, and agx::Model.
|
staticinherited |
|
protectedinherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Clock, agx::Task, agx::Kernel, agx::UnresolvedTask, and agx::Clock.
| agx::GranularDataExporter::ContactDataExporter | ( | agx::Physics::GranularBodySystem * | system | ) |
Default constructor.
| agx::GranularDataExporter::ContactDataWriter | ( | const agx::String & | filePrefix, |
| const agx::String & | postFix, | ||
| const agx::String & | separator | ||
| ) |
Constructor for creating the file writer.
File is created upon class construction.
| filePrefix | The file prefix of the data file. |
| postFix | The file postfix for the data file. |
| separator | separator token that is used to separate the data entries in the export file. |
|
static |
Convert export data type to filename.
|
inlinestaticinherited |
Definition at line 95 of file StepEventListener.h.
|
inlinestaticinherited |
Definition at line 95 of file StepEventListener.h.
|
pure virtual |
Sets and creates a file with the given path where the exporter writes information.
| filename | the complete path to the file that should be created. |
|
overridevirtual |
Creates the file which the contact data should be written to.
| filename | the name of the that should be create for the impact data. |
|
overridevirtual |
Creates the file which the particle data should be written to.
| filename | the name of the that should be create for the particle data. |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
| void agx::GranularDataExporter::exportPostStep | ( | const IndexHashSet & | destroyedParticles | ) |
Manually called by the exporter parent when performing pre export step.
| destroyedParticles | Particles destroyed in the current time step of the exporter. |
| void agx::GranularDataExporter::exportPreStep | ( | const IndexHashSet & | destroyedParticles | ) |
Manually called by the exporter parent when performing pre export step.
| destroyedParticles | Particles destroyed in the current time step of the exporter. |
| void agx::GranularDataExporter::finalizeAfterSimulation | ( | ) |
Function that is called manually after the simulation is done.
Finalizes the data export.
| void agx::GranularDataExporter::finalizeExport | ( | GranularDataExporter * | exporter | ) |
Called during the last steps of the export.
| exporter | The exporter object. |
|
inherited |
|
inherited |
|
inherited |
|
protected |
|
staticinherited |
|
protected |
|
protectedinherited |
|
protected |
|
inherited |
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Referenced::is().
|
inherited |
|
inlineoverridevirtualinherited |
Reimplemented from agxSDK::EventListener.
Definition at line 95 of file StepEventListener.h.
|
inlinestaticinherited |
Definition at line 95 of file StepEventListener.h.
|
inherited |
|
inherited |
|
inherited |
|
staticprotectedinherited |
|
inherited |
Returns the currently destroyed particles registered from the coupled GranularBodySystem.
Definition at line 119 of file GranularImpactDataWriter.h.
|
inherited |
Definition at line 222 of file Component.h.
|
inherited |
Definition at line 223 of file Component.h.
|
inherited |
Definition at line 226 of file Component.h.
References agxAssert.
|
inherited |
Definition at line 233 of file Component.h.
References agxAssert.
|
staticinherited |
Should rebinding be allowed? Right now a global setting.
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
protectedpure virtual |
Each FileWriter implementation implements a different header, since different data is exported.
|
overrideprotectedvirtual |
Each FileWriter implementation implements a different header, since different data is exported.
|
overrideprotectedvirtual |
|
inherited |
Definition at line 370 of file Object.h.
Referenced by agxData::EntityStorage::indexToId().
|
inherited |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
Definition at line 247 of file Serializable.h.
|
inherited |
Referenced by agxSDK::GuiEventListener::_keyboard(), agxSDK::GuiEventListener::_mouse(), agxSDK::GuiEventListener::_mouseDragged(), agxSDK::GuiEventListener::_mouseMoved(), and agxSDK::GuiEventListener::_update().
|
inherited |
|
inherited |
Definition at line 369 of file Object.h.
Referenced by agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().
|
inherited |
|
inherited |
|
inherited |
Definition at line 194 of file Component.h.
|
inherited |
Definition at line 195 of file Component.h.
|
inherited |
Definition at line 197 of file Component.h.
|
inherited |
Definition at line 198 of file Component.h.
|
inherited |
Definition at line 202 of file Component.h.
|
inherited |
Definition at line 216 of file Component.h.
|
inherited |
Definition at line 192 of file Component.h.
Referenced by agx::Component::getObjects().
|
inherited |
|
inherited |
|
inherited |
Definition at line 241 of file Component.h.
References agx::Component::getObjects().
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), and agxData::EntityInstance::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 414 of file Object.h.
References agx::Referenced::is().
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Task, and agxData::EntityStorage.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protected |
Returns the indices for the particle-geometry impact contacts currently stored in the storage.
Definition at line 142 of file GranularDataExporter.h.
|
protected |
Returns the indices for the particle-particle impact contacts currently stored in the storage.
Definition at line 147 of file GranularDataExporter.h.
References AGXPHYSICS_EXPORT, and agxData::getType().
|
inlineoverridevirtualinherited |
Reimplemented from agxSDK::EventListener.
Definition at line 95 of file StepEventListener.h.
|
pure virtual |
Returns the type of the exporter, which is overridden by child classes.
Each exporter type exports different information.
|
overridevirtual |
Returns the type of the exporter, which is overridden by child classes.
Each exporter type exports different information.
|
overridevirtual |
Returns the type of the exporter, which is overridden by child classes.
Each exporter type exports different information.
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
|
virtual |
Callback that is called when a particle is destroyed.
| particleId | - Particle destroyed in the current time step of the exporter. |
|
overridevirtual |
Is called when a particle is destroyed in the simulation.
|
overridevirtual |
Called when a particle is destroyed.
| particleId | ID of the particle that is destroyed. |
|
protected |
|
inherited |
|
inherited |
| agx::GranularDataExporter::IDataExporter | ( | agx::Physics::GranularBodySystem * | system | ) |
Constructor.
| agx::GranularDataExporter::IDataFileWriter | ( | const agx::String & | filePrefix, |
| const agx::String & | postFix, | ||
| const agx::String & | separator | ||
| ) |
Constructor for creating the file writer.
File is created upon class construction.
| filePrefix | The file prefix of the data file. |
| postFix | The file postfix for the data file. |
| separator | separator token that is used to separate the data entries in the export file. |
| void agx::GranularDataExporter::init | ( | ) |
Initializes the exporter.
Needs to be called before the exporter is run.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
inherited |
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
|
inlinevirtualinherited |
Called after a step is taken in the simulation Implement this method in the derived class to get callbacks.
| time | - the current simulation time |
Reimplemented in agxTerrain::TerrainPager, agxControl::EventSensor, agxOSG::SplineRenderer, agxOSG::SplineRendererOld, agxUtil::StepEventCallback, agxOSG::CableDamageRenderer, agxOSG::HudTextManager, agxOSG::DeformableHeightFieldRenderer, and agxPowerLine::StepEventDotGraphWriter.
Definition at line 109 of file StepEventListener.h.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
overrideprotectedvirtual |
Implements agx::detail::ParticleEventListener.
|
overrideprotectedvirtual |
Implements agx::detail::ParticleEventListener.
|
staticinherited |
| agx::GranularDataExporter::ParticleDataExporter | ( | agx::Physics::GranularBodySystem * | system | ) |
Constructor.
| agx::GranularDataExporter::ParticleDataWriter | ( | const agx::String & | filePrefix, |
| const agx::String & | postFix, | ||
| const agx::String & | separator | ||
| ) |
Constructor for creating the file writer.
File is created upon class construction.
| filePrefix | The file prefix of the data file. |
| postFix | The file postfix for the data file. |
| separator | separator token that is used to separate the data entries in the export file. |
|
protectedinherited |
|
overridevirtual |
Post step function.
Reimplemented from agxSDK::StepEventListener.
|
overridevirtual |
Pre step function.
Reimplemented from agxSDK::StepEventListener.
|
inlinevirtualinherited |
Called before collision detection is performed in the simulation Implement this method in the derived class to get callbacks.
| time | - the current simulation time |
Reimplemented in agxModel::Tree::TreeStepEventListener, agxModel::WindAndWaterController, agxTerrain::TerrainPager, agxModel::FractureGenerator, agxControl::EventSensor, agxModel::DeformableParticleCreator, agxModel::HeightFieldDeformerJournalRecorder, agxUtil::StepEventCallback, agxSDK::KinematicPathListener, agxSDK::SimulationSerializer, agx::ContactForceFilter, agxModel::DeformableMineFace, and agx::JournalCustomDataRecorder.
Definition at line 106 of file StepEventListener.h.
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Task, and agx::Clock.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
|
inherited |
Remove all components.
|
inherited |
|
inlinevirtualinherited |
Called when this listener is removed from the simulation.
Reimplemented in agxSensor::JoystickManager, agxModel::Terrain, agxTerrain::TerrainPager, agxControl::EventSensor, agxSDK::SimulationStatisticsListener, agxModel::FractureGenerator, agxOSG::SplineRenderer, agx::GranularImpactDataWriter, agxSensor::Joystick, agxOSG::SplineRendererOld, agxUtil::StepEventCallback, agxUnit::BodyCaptureDeterminism, and agxSDK::PickHandler.
Definition at line 88 of file EventListener.h.
References agxData::getType().
|
virtualinherited |
Remove an object from the component.
Remove an object with a specified name (and optional index) from the component.
|
overridevirtualinherited |
Reimplemented from agxSDK::EventListener.
Reimplemented in agxModel::WindAndWaterController, agxModel::Terrain, agxControl::EventSensor, agxModel::FractureGenerator, agxModel::DeformableParticleCreator, agxSDK::SimulationStatisticsListener, agx::GranularImpactDataWriter, agxModel::HeightFieldDeformerJournalRecorder, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::JournalCustomDataRecorder, agxModel::HeightFieldDeformer, and agxDriveTrain::EngineDampingUpdater.
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
| void agx::GranularDataExporter::setAnalysisBox | ( | agx::AnalysisBox * | box | ) |
Sets the AnalysisBox that should be used by the exporter.
If the box is enabled, only objects within the bound of the specified AnalysisBox will be exported.
| box | The AnalysisBox object that should be used when determining what objects that should be exported. |
| void agx::GranularDataExporter::setAnalysisBox | ( | agx::AnalysisBox * | box | ) |
Sets the analysis box to be used in the exporter.
If the analysis box is enabled, only data entities placed inside the box will be exported.
| box | The analysis box to be used in the exporter. |
|
virtualinherited |
Reimplemented in agx::Task, and agxData::FunctionValue.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inherited |
Specify whether the listener should react at all at events.
| enable | - If false, the listener will not be activated during any events |
|
staticinherited |
Sets if rebinding of objects should be allowed (Right now a global setting).
Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
| void agx::GranularDataExporter::setExporterType | ( | ExporterDataType | type | ) |
Sets the exporter type, i.e which type of data that should be exported.
Currently supported data is particles and particle impact contacts stored in the journal under GranularBodySystem.
| type | Determines the type of data that should be exported. |
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
|
overridevirtualinherited |
Specifies a bitmask which determines which event types will activate this listener.
| mask | - bitwise or:ed mask for the event types (ActivationMask) for which events this event listener will be activated |
Reimplemented from agxSDK::EventListener.
|
inherited |
Set the object model (handled automatically).
|
protectedinherited |
Set the associated simulation for this EventListener.
Referenced by agxOSG::PickHandler::setSimulation().
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
overridevirtualinherited |
Reimplemented from agxSDK::EventListener.
Reimplemented in agxModel::WindAndWaterController, agxModel::Terrain, agxControl::EventSensor, agxModel::FractureGenerator, agxModel::DeformableParticleCreator, agxSDK::SimulationStatisticsListener, agx::GranularImpactDataWriter, agxModel::HeightFieldDeformerJournalRecorder, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::JournalCustomDataRecorder, agxModel::HeightFieldDeformer, and agxDriveTrain::EngineDampingUpdater.
|
inherited |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
protected |
|
protected |
|
staticinherited |
| void agx::GranularDataExporter::writeContact | ( | const detail::ParticleGeometryContactInformation & | contact | ) |
Writes particle information to file.
| contact | Particle information that should be written to file. |
| void agx::GranularDataExporter::writeContact | ( | const detail::ParticlePairContactInformation & | contact | ) |
Writes particle information to file.
| contact | Particle information that should be written to file. |
|
protected |
|
protected |
| void agx::GranularDataExporter::writeParticleInformation | ( | const detail::ParticleInformation & | info | ) |
Writes particle information to file.
| info | Particle information that should be written to file. |
| void agx::GranularDataExporter::writeToFile | ( | const agx::String & | file | ) |
Sets and creates a file with the given path where the exporter writes information.
| file | the complete path to the file that should be created. |
|
inherited |
Definition at line 63 of file Component.h.
|
protected |
Definition at line 224 of file GranularDataExporter.h.
|
protected |
Definition at line 360 of file GranularDataExporter.h.
|
protected |
Definition at line 137 of file GranularDataExporter.h.
|
protectedinherited |
Definition at line 124 of file EventListener.h.
|
protected |
Definition at line 225 of file GranularDataExporter.h.
|
protected |
Definition at line 357 of file GranularDataExporter.h.
|
protected |
Definition at line 223 of file GranularDataExporter.h.
|
protectedinherited |
Definition at line 123 of file EventListener.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protected |
Definition at line 361 of file GranularDataExporter.h.
|
protected |
Definition at line 323 of file GranularDataExporter.h.
|
protected |
Definition at line 358 of file GranularDataExporter.h.
|
protectedinherited |
Definition at line 125 of file EventListener.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 359 of file GranularDataExporter.h.
|
protected |
Definition at line 138 of file GranularDataExporter.h.
|
protected |
Definition at line 139 of file GranularDataExporter.h.
|
protected |
Definition at line 136 of file GranularDataExporter.h.
|
protectedinherited |
Definition at line 121 of file EventListener.h.
|
inherited |
Definition at line 64 of file Component.h.