|
AGXDynamics
2.31.1.0
|
Controller that collects relevant data and executes algorithms (probably mostly aero- and hydrodynamics). More...
#include <WindAndWaterController.h>
Inheritance diagram for agxModel::WindAndWaterController:Classes | |
| struct | AerodynamicsData |
| struct | DynamicsData |
| Data for rigid body with aero/hydro static/dynamic forces and added mass and inertia matrices. More... | |
| struct | DynamicsLinkedStructureData |
| Hydro- and aerodynamic results for a linked structure. More... | |
| struct | DynamicsWireData |
| Hydro- and aerodynamic results for a wire. More... | |
| class | ObjectData |
| Static data for a shape. More... | |
| struct | PressureFieldRendererData |
| struct | Segment |
| class | UnitPrimitiveCache |
| class | WaterFlowGenerator |
| Interface for generating water flow. More... | |
| class | WindAndWaterData |
| Data for different objects. More... | |
| class | WindAndWaterFlowGenerator |
| Interface for generating water flow and wind. More... | |
| class | WindGenerator |
| Interface for generating wind effects. More... | |
| class | WindWrapper |
| Wraps wind related things. More... | |
| class | WireLinkedStructureData |
| Data for a wire or a linked structure. More... | |
| struct | WirePair |
Public Member Functions | |
| WindAndWaterController () | |
| Construct wind and water controller. 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... | |
| virtual agx::Bool | addWater (agxCollide::Geometry *geometry) |
| Flag a geometry as water. 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 agxModel::WindAndWaterController::DynamicsData | calculateDynamicsData (const agxCollide::Geometry *waterGeometry, const agx::RigidBody *rb, const agx::Vec3 &gravity, const agxCollide::Space *space=nullptr, agx::Bool updateRenderers=false) |
| Calculates forces given water geometry (may be null) acting on a rigid body. More... | |
| agxModel::WindAndWaterController::DynamicsLinkedStructureData | calculateLinkedStructureDynamicsData (const agxCollide::Geometry *waterGeometry, agxSDK::LinkedStructure *linkedStructure, const agxCollide::Space *space) |
| Calculates forces for hydro- and aerodynamics acting on a linked structure. More... | |
| agxModel::WindAndWaterController::DynamicsWireData | calculateWireDynamicsData (const agxCollide::Geometry *waterGeometry, agxWire::Wire *wire) |
| Calculates forces for hydro- and aerodynamics acting on a wire. More... | |
| virtual void | configure (TiXmlElement *eComponent) override |
| void | configure (Model *model) |
| 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 |
| 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 |
| virtual agxModel::AerodynamicsParameters * | getOrCreateAerodynamicsParameters (const agxCollide::Shape *shape) const |
| Creates new or returns an already created parameter storage for a given shape. More... | |
| agxModel::AerodynamicsParameters * | getOrCreateAerodynamicsParameters (const agxWire::Wire *wire) const |
| Creates new or returns an already created parameter storage for a given wire. More... | |
| agxModel::AerodynamicsParameters * | getOrCreateAerodynamicsParameters (const agxSDK::LinkedStructure *linkedStructure) const |
| Creates new or returns an already created parameter storage for a given linked structure. More... | |
| virtual agxModel::HydrodynamicsParameters * | getOrCreateHydrodynamicsParameters (const agxCollide::Shape *shape) const |
| Creates new or returns an already created parameter storage for a given shape. More... | |
| agxModel::HydrodynamicsParameters * | getOrCreateHydrodynamicsParameters (const agxWire::Wire *wire) const |
| Creates new or returns an already created parameter storage for a given wire. More... | |
| agxModel::HydrodynamicsParameters * | getOrCreateHydrodynamicsParameters (const agxSDK::LinkedStructure *linkedStructure) const |
| Creates new or returns an already created parameter storage for a given linked structure. More... | |
| 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 |
| Type | getType () const |
| agx::Uuid | getUuid () const |
| agxModel::WindAndWaterController::WaterFlowGenerator * | getWaterFlowGenerator (const agxCollide::Geometry *waterGeometry) const |
| agxModel::WaterWrapper * | getWaterWrapper (const agxCollide::Geometry *waterGeometry) |
| virtual agxModel::WindAndWaterController::WindGenerator * | getWindGenerator () const |
| bool | hasListener (EventListener *listener) |
| bool | hasParent (const agx::Object *node) const |
| 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... | |
| virtual void | post (const agx::TimeStamp &) override |
| Internal method. More... | |
| virtual void | post (agxModel::WindAndWaterController *) |
| Called during normal post. More... | |
| virtual void | pre (const agx::TimeStamp &) override |
| Internal method. More... | |
| virtual void | pre (agxModel::WindAndWaterController *) |
| Called before all data is collected and before updateInteraction is called. More... | |
| virtual void | preCollide (const agx::TimeStamp &) override |
| Internal method. More... | |
| virtual void | preCollide (agxModel::WindAndWaterController *) |
| Called during normal preCollide events. 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... | |
| virtual agx::Bool | registerPressureFieldRenderer (agxModel::PressureFieldRenderer *pressureFieldRenderer, const agxCollide::Shape *shape) |
| Pressure field renderer for a given shape. 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 | setAirDensity (agx::Real airDensity) |
| Set the density of air. More... | |
| virtual void | setContext (agx::Object *context) |
| void | setEnable (bool enable) |
| Specify whether the listener should react at all at events. More... | |
| virtual agx::Bool | setEnableAerodynamics (agxCollide::Geometry *geometry, agx::Bool enable) |
| Enable/disable a geometry for aerodynamics calculations. More... | |
| virtual void | setEnableAerodynamics (agx::Bool enable) |
| Enable/disable aerodynamics for all objects in the simulation. More... | |
| virtual agx::Bool | setEnableAerodynamics (agx::RigidBody *rb, agx::Bool enable) |
Enable/disable all geometries in rb for aerodynamics calculations. More... | |
| virtual agx::Bool | setEnableAerodynamics (agxWire::Wire *wire, agx::Bool enable) |
| Enable/disable a wire for aerodynamics calculations. More... | |
| agx::Bool | setEnableAerodynamics (agxSDK::LinkedStructure *linkedStructure, agx::Bool enable) |
| Enable/disable a linked structure for aerodynamics calculations. More... | |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. 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 agx::Bool | setWaterFlowGenerator (const agxCollide::Geometry *waterGeometry, agxModel::WindAndWaterController::WaterFlowGenerator *flowGenerator) |
| Assign unique water flow generator to a water geometry. More... | |
| virtual agx::Bool | setWaterWrapper (agxCollide::Geometry *geometry, agxModel::WaterWrapper *waterWrapper) |
| Assign a water wrapper to a water geometry;. More... | |
| virtual void | setWindGenerator (agxModel::WindAndWaterController::WindGenerator *windGenerator) |
| Assign unique wind generator. 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... | |
| virtual void | updateInteraction (agxModel::WindAndWaterController::ObjectData &, const GlobalTriangleData::Container &) |
| Called when it's time to update interaction. More... | |
Static Public Member Functions | |
| static Component * | _load (TiXmlElement *eComponent, Device *device) |
| static agx::Model * | ClassModel () |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static agxCollide::TrimeshRef | createPrimitiveMesh (const agxCollide::Shape *shape, agxModel::WindAndWaterParameters::ShapeTessellation tessellation) |
| Create a mesh from a primitive shape given a tessellation level. More... | |
| static agxModel::WindAndWaterController * | find (agxSDK::Simulation *simulation, const agx::Uuid &uuid) |
| Search the given simulation for a WindAndWaterController with the given Uuid. More... | |
| static agxModel::WindAndWaterControllerPtrVector | findAll (const agxSDK::Simulation *simulation, const agx::Name &name) |
| Find all WindAndWaterControllers with given name. More... | |
| static agxModel::WindAndWaterControllerPtrVector | findAll (const agxSDK::Simulation *simulation) |
| Finds all WindAndWaterControllers in the given simulation. More... | |
| 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... | |
Controller that collects relevant data and executes algorithms (probably mostly aero- and hydrodynamics).
Interface for a WindAndWaterController algorithm.
Callbacks during preCollide, pre and post state. Forces should be calculated in the updateInteraction call where all static data is present for a given shape.
Definition at line 45 of file WindAndWaterController.h.
|
protected |
Definition at line 877 of file WindAndWaterController.h.
|
protected |
Definition at line 748 of file WindAndWaterController.h.
|
protected |
Definition at line 870 of file WindAndWaterController.h.
|
protected |
Definition at line 874 of file WindAndWaterController.h.
|
protected |
Definition at line 872 of file WindAndWaterController.h.
| typedef agx::observer_ptr< const Algorithm > agxModel::WindAndWaterController::AlgorithmConstObserver |
Definition at line 48 of file WindAndWaterController.h.
| typedef agx::ref_ptr< const Algorithm > agxModel::WindAndWaterController::AlgorithmConstRef |
Definition at line 48 of file WindAndWaterController.h.
|
protected |
Definition at line 869 of file WindAndWaterController.h.
| typedef agx::observer_ptr< Algorithm > agxModel::WindAndWaterController::AlgorithmObserver |
Definition at line 48 of file WindAndWaterController.h.
| typedef agx::ref_ptr< Algorithm > agxModel::WindAndWaterController::AlgorithmRef |
Definition at line 48 of file WindAndWaterController.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protected |
Definition at line 880 of file WindAndWaterController.h.
|
protected |
Definition at line 871 of file WindAndWaterController.h.
|
protected |
Definition at line 875 of file WindAndWaterController.h.
|
protected |
Definition at line 873 of file WindAndWaterController.h.
Definition at line 978 of file WindAndWaterController.h.
Definition at line 358 of file WindAndWaterController.h.
Definition at line 357 of file WindAndWaterController.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.
|
protected |
Definition at line 876 of file WindAndWaterController.h.
|
protected |
Definition at line 738 of file WindAndWaterController.h.
Definition at line 403 of file WindAndWaterController.h.
|
inherited |
Definition at line 141 of file Component.h.
| typedef agx::observer_ptr< const WaterFlowGenerator > agxModel::WindAndWaterController::WaterFlowGeneratorConstObserver |
Definition at line 75 of file WindAndWaterController.h.
| typedef agx::ref_ptr< const WaterFlowGenerator > agxModel::WindAndWaterController::WaterFlowGeneratorConstRef |
Definition at line 75 of file WindAndWaterController.h.
|
protected |
Definition at line 878 of file WindAndWaterController.h.
| typedef agx::observer_ptr< WaterFlowGenerator > agxModel::WindAndWaterController::WaterFlowGeneratorObserver |
Definition at line 75 of file WindAndWaterController.h.
Definition at line 75 of file WindAndWaterController.h.
|
protected |
Definition at line 879 of file WindAndWaterController.h.
| typedef agx::observer_ptr< const WindGenerator > agxModel::WindAndWaterController::WindGeneratorConstObserver |
Definition at line 96 of file WindAndWaterController.h.
Definition at line 96 of file WindAndWaterController.h.
Definition at line 96 of file WindAndWaterController.h.
Definition at line 96 of file WindAndWaterController.h.
| typedef agx::Vector< WireLinkedStructureDataRef > agxModel::WindAndWaterController::WireLinkedStructureDataContainer |
Definition at line 455 of file WindAndWaterController.h.
| typedef agx::ref_ptr< WireLinkedStructureData > agxModel::WindAndWaterController::WireLinkedStructureDataRef |
Definition at line 454 of file WindAndWaterController.h.
|
protected |
Definition at line 881 of file WindAndWaterController.h.
Definition at line 383 of file WindAndWaterController.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.
|
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.
| agxModel::WindAndWaterController::WindAndWaterController | ( | ) |
Construct wind and water controller.
|
protectedvirtual |
Reference counted object, protected destructor.
|
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().
|
virtual |
Flag a geometry as water.
Overlap calculations will be made explicitly with other geometries where hydrodynamics is enabled.
| geometry | - water geometry |
|
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.
|
virtual |
Calculates forces given water geometry (may be null) acting on a rigid body.
| waterGeometry | - water geometry |
| rb | - rigid body to calculate (aero and hydro) interactions |
| gravity | - gravity at rb position |
| space | - if space is provided, group collision filters are checked as well (i.e., basically space->canCollide( waterGeoemtry, rbGeometry )) |
| updateRenderers | - if true, any shape with a pressure field renderer will be updated |
|
protected |
Calculate linked structure data for all segments.
| agxModel::WindAndWaterController::DynamicsLinkedStructureData agxModel::WindAndWaterController::calculateLinkedStructureDynamicsData | ( | const agxCollide::Geometry * | waterGeometry, |
| agxSDK::LinkedStructure * | linkedStructure, | ||
| const agxCollide::Space * | space | ||
| ) |
Calculates forces for hydro- and aerodynamics acting on a linked structure.
| waterGeometry | - water geometry |
| linkedStructure | - linked structure affected by hydro- and aerodynamics. |
|
protectedvirtual |
Calculate object data (for each shape) in a geometry.
|
protected |
Calculate wire data for all segments.
| agxModel::WindAndWaterController::DynamicsWireData agxModel::WindAndWaterController::calculateWireDynamicsData | ( | const agxCollide::Geometry * | waterGeometry, |
| agxWire::Wire * | wire | ||
| ) |
Calculates forces for hydro- and aerodynamics acting on a wire.
| waterGeometry | - water geometry |
| wire | - wire affected by aero- and hydrodynamics |
|
staticinherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Clock, agx::Task, agx::Kernel, agx::UnresolvedTask, and agx::Clock.
|
protected |
Configure the default algorithms.
|
inlinestatic |
Definition at line 727 of file WindAndWaterController.h.
|
inlinestatic |
Definition at line 727 of file WindAndWaterController.h.
|
static |
Create a mesh from a primitive shape given a tessellation level.
The same mesh is used for hydrodynamic calculations.
| shape | - the shape that the mesh should be based on. |
| tessellation | - the desired tessellation of the mesh. |
|
protectedinherited |
|
protectedinherited |
|
static |
Search the given simulation for a WindAndWaterController with the given Uuid.
| simulation | - The simulation to search in. |
| uuid | - The Uuid of the WindAndWaterController to search for. |
uuid in simulation simulation, or nullptr.
|
static |
Find all WindAndWaterControllers with given name.
| simulation | - The simulation to search in. |
| name | - The name of the WindAndWaterController. |
|
static |
Finds all WindAndWaterControllers in the given simulation.
| simulation | - The simulation to search in. |
|
inherited |
|
inherited |
|
inherited |
|
protected |
Collects garbage (e.g., due to deleted shapes).
|
staticinherited |
|
protectedinherited |
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Referenced::is().
|
inherited |
|
inlineoverridevirtual |
Reimplemented from agxStream::Serializable.
Definition at line 727 of file WindAndWaterController.h.
|
inlinestatic |
Definition at line 727 of file WindAndWaterController.h.
|
inherited |
|
inherited |
|
inherited |
|
staticprotectedinherited |
|
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 |
|
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().
|
virtual |
Creates new or returns an already created parameter storage for a given shape.
The parameters defines the interaction between the shape and air since there will be no contact material between them.
| agxModel::AerodynamicsParameters* agxModel::WindAndWaterController::getOrCreateAerodynamicsParameters | ( | const agxWire::Wire * | wire | ) | const |
Creates new or returns an already created parameter storage for a given wire.
The parameters defines the interaction between the wire and air since there will be no contact material between them.
| agxModel::AerodynamicsParameters* agxModel::WindAndWaterController::getOrCreateAerodynamicsParameters | ( | const agxSDK::LinkedStructure * | linkedStructure | ) | const |
Creates new or returns an already created parameter storage for a given linked structure.
The parameters defines the interaction between the linked structure and air since there will be no contact material between them.
|
virtual |
Creates new or returns an already created parameter storage for a given shape.
The parameters defines the interaction between the shape and water since there will be no contact material between them.
| agxModel::HydrodynamicsParameters* agxModel::WindAndWaterController::getOrCreateHydrodynamicsParameters | ( | const agxWire::Wire * | wire | ) | const |
Creates new or returns an already created parameter storage for a given wire.
The parameters defines the interaction between the wire and water since there will be no contact material between them.
| agxModel::HydrodynamicsParameters* agxModel::WindAndWaterController::getOrCreateHydrodynamicsParameters | ( | const agxSDK::LinkedStructure * | linkedStructure | ) | const |
Creates new or returns an already created parameter storage for a given linked structure.
The parameters defines the interaction between the linked structure and water since there will be no contact material between them.
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), and agxData::EntityInstance::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
|
protected |
|
protected |
|
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 |
|
inlineoverridevirtual |
Implements agxStream::Serializable.
Definition at line 727 of file WindAndWaterController.h.
|
inherited |
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
| agxModel::WindAndWaterController::WaterFlowGenerator* agxModel::WindAndWaterController::getWaterFlowGenerator | ( | const agxCollide::Geometry * | waterGeometry | ) | const |
| waterGeometry | - the water geometry that is affected by the generator. |
| agxModel::WaterWrapper* agxModel::WindAndWaterController::getWaterWrapper | ( | const agxCollide::Geometry * | waterGeometry | ) |
| waterGeometry | - the water geometry. |
|
virtual |
|
inherited |
|
inherited |
|
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 |
|
staticinherited |
|
overridevirtual |
Internal method.
Reimplemented from agxSDK::StepEventListener.
|
inlinevirtual |
Called during normal post.
Definition at line 994 of file WindAndWaterController.h.
|
overridevirtual |
Internal method.
Reimplemented from agxSDK::StepEventListener.
|
inlinevirtual |
Called before all data is collected and before updateInteraction is called.
Definition at line 989 of file WindAndWaterController.h.
|
overridevirtual |
Internal method.
Reimplemented from agxSDK::StepEventListener.
|
inlinevirtual |
Called during normal preCollide events.
Definition at line 984 of file WindAndWaterController.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.
|
virtual |
Pressure field renderer for a given shape.
|
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.
|
overridevirtual |
Reimplemented from agxSDK::StepEventListener.
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
Set the density of air.
| airDensity | - The new air density. Default value is 1.2 kg per cubic meter. |
|
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 |
|
virtual |
Enable/disable a geometry for aerodynamics calculations.
| geometry | - geometry to enable/disable for aerodynamics calculations |
| enable | - true to enable, false to disable |
Enable/disable aerodynamics for all objects in the simulation.
If disabled, only objects that have aerodynamics enabled explicitly will be used in the aerodynamics calculation.
| enable | - true to enable, false to disable. |
|
virtual |
Enable/disable all geometries in rb for aerodynamics calculations.
| rb | - rigid body to enable/disable for aerodynamics calculations |
| enable | - true to enable, false to disable |
|
virtual |
Enable/disable a wire for aerodynamics calculations.
| wire | - wire to enable/disable for aerodynamics calculations |
| enable | - true to enable, false to disable |
| agx::Bool agxModel::WindAndWaterController::setEnableAerodynamics | ( | agxSDK::LinkedStructure * | linkedStructure, |
| agx::Bool | enable | ||
| ) |
Enable/disable a linked structure for aerodynamics calculations.
Only works after the linked structure has been added to a simulation.
| linkedStructure | - linked strucutre to enable/disable for aerodynamics calculations. |
| enable | - true to enable, false to disable |
|
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.
|
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!
|
virtual |
Assign unique water flow generator to a water geometry.
If flowGenerator is nullptr the previous flow generator will be removed.
| waterGeometry | - the water geometry that is affected by the generator. |
| flowGenerator | - new water flow generator or nullptr to remove the previous one |
|
virtual |
Assign a water wrapper to a water geometry;.
| geometry | - the water geometry associated with the water wrapper |
| waterWrapper | - the wrapper to be attached to the given water geometry. |
|
virtual |
Assign unique wind generator.
| windGenerator | - new wind generator |
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
overridevirtual |
Reimplemented from agxSDK::StepEventListener.
|
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.
|
inlinevirtual |
Called when it's time to update interaction.
Definition at line 999 of file WindAndWaterController.h.
|
staticinherited |
|
inherited |
Definition at line 63 of file Component.h.
|
protected |
Definition at line 950 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 952 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 954 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 953 of file WindAndWaterController.h.
|
protected |
Definition at line 965 of file WindAndWaterController.h.
|
protected |
Definition at line 948 of file WindAndWaterController.h.
|
protected |
Definition at line 949 of file WindAndWaterController.h.
|
protected |
Definition at line 964 of file WindAndWaterController.h.
|
protected |
Definition at line 946 of file WindAndWaterController.h.
|
protectedinherited |
Definition at line 124 of file EventListener.h.
|
protected |
Definition at line 962 of file WindAndWaterController.h.
|
protected |
Definition at line 951 of file WindAndWaterController.h.
|
protected |
Definition at line 955 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 956 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 958 of file WindAndWaterController.h.
|
mutableprotected |
Definition at line 957 of file WindAndWaterController.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 959 of file WindAndWaterController.h.
|
protectedinherited |
Definition at line 125 of file EventListener.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 966 of file WindAndWaterController.h.
|
protectedinherited |
Definition at line 121 of file EventListener.h.
|
protected |
Definition at line 960 of file WindAndWaterController.h.
|
protected |
Definition at line 967 of file WindAndWaterController.h.
|
protected |
Definition at line 947 of file WindAndWaterController.h.
|
protected |
Definition at line 963 of file WindAndWaterController.h.
|
protected |
Definition at line 961 of file WindAndWaterController.h.
|
inherited |
Definition at line 64 of file Component.h.