AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WindAndWaterController.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2021. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXMODEL_WINDANDWATERCONTROLLER_H
18 #define AGXMODEL_WINDANDWATERCONTROLLER_H
19 
20 #include <agxModel/export.h>
21 #include <agxModel/AddedMassDb.h>
24 
25 #include <agx/Vec6.h>
26 
27 #include <agxCollide/Geometry.h>
28 
29 #include <agxSDK/LinkedStructure.h>
30 
31 #include <agxWire/Wire.h>
32 
33 #include <mutex>
34 
35 
36 namespace agxModel {
37  class WaterWrapper;
41 
46  {
47  public:
49 
54  {
55  public:
61 
67  virtual agx::Vec3 getVelocity( const agx::Vec3& worldPoint ) const;
68 
70 
71  protected:
72  virtual ~WindAndWaterFlowGenerator();
73  };
74 
76 
81  {
82  public:
88 
89 #ifndef SWIG
91 #endif
92  protected:
93  virtual ~WaterFlowGenerator();
94  };
95 
97 
102  {
103  public:
108  WindGenerator();
109 
114  virtual void prepare( const agxCollide::Geometry* geometry );
115 
116 #ifndef SWIG
118 #endif
119  protected:
120  virtual ~WindGenerator();
121  };
122 
123 
128  {
129  public:
133  WindWrapper( agx::Bool enable, const agxModel::WindAndWaterController::WindGenerator* windGenerator, agx::Real airDensity );
134 
138  agx::Real getDensity() const;
139 
143  agx::Vec3 getVelocity( const agx::Vec3& worldPoint ) const;
144 
148  agx::Bool getEnable() const;
149 
150  protected:
154  };
155 
160  {
161  public:
162 
167  const agxModel::HydrodynamicsParameters* hydroParams );
168 
172  const agxModel::AerodynamicsParameters* getAerodynamicsParameters() const;
173 
177  const agxModel::HydrodynamicsParameters* getHydrodynamicsParameters() const;
178 
179  protected:
180  virtual ~WindAndWaterData();
181 
184  };
185 
190  {
191  public:
195  ObjectData( const agxCollide::Shape* shape,
196  const agxModel::AerodynamicsParameters* aeroParams,
197  const agxModel::HydrodynamicsParameters* hydroParams,
198  const agxModel::WaterWrapper* water,
200  const agx::Vec3& gravity,
201  agxModel::PressureFieldRenderer* pressureFieldRenderer,
202  const agx::UInt numTriangles,
203  const agx::UInt startIndexT,
204  const agx::UInt startIndexV );
205 
209  agx::UInt getStartIndexT() const;
210 
214  agx::UInt getNumTriangles() const;
215 
219  agx::Real getDensity( agx::Bool belowSurface ) const;
220 
224  agx::Real getDensity( const agxModel::TriangleData& tData ) const;
225 
229  agx::Real getDensity( const agxModel::VertexData& vData ) const;
230 
234  agx::Real getDensityWater() const;
235 
239  agx::Real getDensityAir() const;
240 
244  const agx::Vec3& getGravity() const;
245 
249  const agx::Vec3& getForce() const;
250 
254  agx::Vec3& force();
255 
259  const agx::Vec3& getTorque() const;
260 
264  agx::Vec3& torque();
265 
269  const agx::Matrix3x3& getAddedMass() const;
270 
274  agx::Matrix3x3& addedMass();
275 
279  const agx::Matrix3x3& getAddedInertia() const;
280 
284  agx::Matrix3x3& addedInertia();
285 
289  agx::Bool& containsAddedMass();
290 
294  const agx::Bool& containsAddedMass() const;
295 
299  const agxCollide::Shape* getShape() const;
300 
304  const agxCollide::Geometry* getGeometry() const;
305 
309  const WaterWrapper* getWater() const;
310 
314  const agx::RigidBody* getRigidBody() const;
315 
320  agx::RigidBody* getRigidBodySerial();
321 
325  agxModel::PressureFieldRenderer* getPressureFieldRenderer() const;
326 
330  void lock() const { m_mutex.lock(); };
331 
335  void unLock() const { m_mutex.unlock(); };
336 
337  protected:
338  virtual ~ObjectData();
339 
340  private:
341  agx::Vec3 m_gravity;
342  agx::Real m_densityWater;
343  agx::Real m_densityAir;
344  mutable agx::Vec3 m_force;
345  mutable agx::Vec3 m_torque;
346  agx::Matrix3x3 m_addedMass;
347  agx::Matrix3x3 m_addedInertia;
348  agx::Bool m_containsAddedMass;
349  const agxCollide::Shape* m_shape;
350  PressureFieldRenderer* m_pressureFieldRenderer;
351  WaterWrapperConstRef m_water;
352  const agx::UInt m_numTriangles;
353  const agx::UInt m_startIndexT;
354  mutable std::mutex m_mutex;
355  };
356 
359 
360  struct WirePair
361  {
363  : node1( nullptr ), node2( nullptr ), water( nullptr ), gravity( agx::Vec3() )
364  {
365  }
366  WirePair( agxWire::Node* node1, agxWire::Node* node2, const agxCollide::Geometry* water, agx::Vec3 gravity )
367  : node1( node1 ), node2( node2 ), water( water ), gravity( gravity )
368  {
369  }
374 
375  private:
377  WirePair& operator=( const WirePair& )
378  {
379  return *this;
380  }
381  };
382 
384 
385  struct Segment
386  {
387  Segment( agx::RigidBody* rb, agx::Vec3 point1, agx::Vec3 point2, agx::Vec3 velocity, agx::Vec3 velocityOfFluid,
388  agx::Real fluidDensity, agx::Vec3 gravity, agx::Real volume )
389  : rb( rb ), point1( point1 ), point2( point2 ), velocity( velocity ), velocityOfFluid( velocityOfFluid ),
390  fluidDensity( fluidDensity ), gravity( gravity ), volume(volume)
391  {
392  }
401  };
402 
404 
409  {
410  public:
417  WireLinkedStructureData( agx::Real radius, const AerodynamicsParameters* aeroParams, const HydrodynamicsParameters* hydroParams );
418 
422  agx::Real getRadius();
423 
427  void addWaterSegment( const Segment& segment );
428 
432  void addAirSegment( const Segment& segment );
433 
437  SegmentContainer& getAirSegments();
438 
442  SegmentContainer& getWaterSegments();
443 
444  protected:
445  virtual ~WireLinkedStructureData();
446 
447 
448  private:
449  SegmentContainer m_airSegments;
450  SegmentContainer m_waterSegments;
451  agx::Real m_radius;
452  };
453 
456 
457 
463  {
464  DynamicsData() : worldForce(), worldTorque(), bodyFrameAddedMass( agx::Vec3() ), bodyFrameAddedInertia( agx::Vec3() ) {}
465 
473  void getAddedMassAndInertiaDiagonalCoefficients( const agx::RigidBody* rb, agx::Vec3& addedMassDiagonalCoefficients, agx::Vec3& addedInertiaDiagonalCoefficients ) const;
474 
479  };
480 
485  {
486  DynamicsWireData() : waterForce(), airForce(), numWaterSegments( 0 ), numAirSegments( 0 ), lengthWater( 0 ), lengthAir( 0 ) {}
487 
494  };
495 
500  {
502  };
503 
504  public:
509 
515  virtual agx::Bool addWater( agxCollide::Geometry* geometry );
516 
523  virtual agx::Bool setEnableAerodynamics( agxCollide::Geometry* geometry, agx::Bool enable );
524 
530  virtual void setEnableAerodynamics( agx::Bool enable );
531 
538  virtual agx::Bool setEnableAerodynamics( agx::RigidBody* rb, agx::Bool enable );
539 
546  virtual agx::Bool setEnableAerodynamics( agxWire::Wire* wire, agx::Bool enable );
547 
555  agx::Bool setEnableAerodynamics( agxSDK::LinkedStructure* linkedStructure, agx::Bool enable );
556 
561  void setAirDensity( agx::Real airDensity );
562 
567  virtual agxModel::AerodynamicsParameters* getOrCreateAerodynamicsParameters( const agxCollide::Shape* shape ) const;
568 
573  virtual agxModel::HydrodynamicsParameters* getOrCreateHydrodynamicsParameters( const agxCollide::Shape* shape ) const;
574 
579  agxModel::AerodynamicsParameters* getOrCreateAerodynamicsParameters( const agxWire::Wire* wire ) const;
580 
585  agxModel::HydrodynamicsParameters* getOrCreateHydrodynamicsParameters( const agxWire::Wire* wire ) const;
586 
594  agxModel::AerodynamicsParameters* getOrCreateAerodynamicsParameters( const agxSDK::LinkedStructure* linkedStructure ) const;
595 
603  agxModel::HydrodynamicsParameters* getOrCreateHydrodynamicsParameters( const agxSDK::LinkedStructure* linkedStructure ) const;
604 
608  virtual agx::Bool registerPressureFieldRenderer( agxModel::PressureFieldRenderer* pressureFieldRenderer, const agxCollide::Shape* shape );
609 
614  virtual void setWindGenerator( agxModel::WindAndWaterController::WindGenerator* windGenerator );
615 
619  virtual agxModel::WindAndWaterController::WindGenerator* getWindGenerator() const;
620 
628  virtual agx::Bool setWaterFlowGenerator( const agxCollide::Geometry* waterGeometry,
630 
635  agxModel::WindAndWaterController::WaterFlowGenerator* getWaterFlowGenerator( const agxCollide::Geometry* waterGeometry ) const;
636 
642  virtual agx::Bool setWaterWrapper( agxCollide::Geometry* geometry,
643  agxModel::WaterWrapper* waterWrapper );
648  agxModel::WaterWrapper* getWaterWrapper( const agxCollide::Geometry* waterGeometry );
649 
656  static agxCollide::TrimeshRef createPrimitiveMesh( const agxCollide::Shape* shape,
658 
668  virtual agxModel::WindAndWaterController::DynamicsData calculateDynamicsData(
669  const agxCollide::Geometry* waterGeometry, const agx::RigidBody* rb, const agx::Vec3& gravity,
670  const agxCollide::Space* space = nullptr, agx::Bool updateRenderers = false );
671 
677  agxModel::WindAndWaterController::DynamicsWireData calculateWireDynamicsData(
678  const agxCollide::Geometry* waterGeometry, agxWire::Wire* wire );
679 
685  agxModel::WindAndWaterController::DynamicsLinkedStructureData calculateLinkedStructureDynamicsData(
686  const agxCollide::Geometry* waterGeometry, agxSDK::LinkedStructure* linkedStructure,
687  const agxCollide::Space* space );
688 
695  static agxModel::WindAndWaterController* find( agxSDK::Simulation* simulation, const agx::Uuid& uuid );
696 
703  static agxModel::WindAndWaterControllerPtrVector findAll( const agxSDK::Simulation* simulation, const agx::Name& name );
704 
710  static agxModel::WindAndWaterControllerPtrVector findAll( const agxSDK::Simulation* simulation );
711 
715  virtual void preCollide( const agx::TimeStamp& ) override;
716 
720  virtual void pre( const agx::TimeStamp& ) override;
721 
725  virtual void post( const agx::TimeStamp& ) override;
726 
728 
729  protected:
731  {
734 
735  protected:
737  };
739 
741  {
742  AerodynamicsData( const agxCollide::Geometry* geometryIn ) : geometry( geometryIn ) {}
744 
745  protected:
746  virtual ~AerodynamicsData() {}
747  };
749 
751  {
752  public:
755 
756  const agxCollide::Mesh* getOrCreateMesh( const agxCollide::Shape* shape, agx::Vec3& scale,
757  agxModel::WindAndWaterParameters::ShapeTessellation tessellationLevel ) const;
758 
759  static agx::Vec3 findScale( const agxCollide::Shape* shape );
760 
761  void garbageCollect();
762 
763  private:
764  struct PrimitiveData : public agx::Referenced
765  {
766  PrimitiveData( const agxCollide::Shape* shapeIn, agxCollide::Mesh* meshIn )
767  : shape( shapeIn ), mesh( meshIn )
768  {
769  }
770 
771  virtual void checkSize( agx::Real resolution ) = 0;
772 
774  agxCollide::MeshRef mesh;
775 
776  protected:
777  virtual ~PrimitiveData() {}
778  };
779 
780  struct CapsuleData : PrimitiveData
781  {
782  CapsuleData( const agxCollide::Shape* shapeIn, agxCollide::Mesh* meshIn, agx::Real radiusIn, agx::Real heightIn )
783  : PrimitiveData( shapeIn, meshIn ), radius( radiusIn ), height( heightIn )
784  {
785  }
786 
787  virtual void checkSize( agx::Real resolution ) override;
788 
789  agx::Real radius;
790  agx::Real height;
791 
792  protected:
793  virtual ~CapsuleData() {}
794  };
795 
796  struct ConeData : PrimitiveData
797  {
798  ConeData( const agxCollide::Shape* shapeIn, agxCollide::Mesh* meshIn , agx::Real topRadiusIn, agx::Real bottomRadiusIn, agx::Real heightIn )
799  : PrimitiveData( shapeIn, meshIn ), topRadius( topRadiusIn ), bottomRadius( bottomRadiusIn ),
800  height( heightIn )
801  {
802  }
803 
804  virtual void checkSize( agx::Real resolution ) override;
805 
806  agx::Real topRadius;
807  agx::Real bottomRadius;
808  agx::Real height;
809 
810  protected:
811  virtual ~ConeData() {}
812  };
813 
814  struct HollowConeData : PrimitiveData
815  {
816  HollowConeData( const agxCollide::Shape* shapeIn, agxCollide::Mesh* meshIn, agx::Real topOuterRadiusIn,
817  agx::Real bottomInnerRadiusIn, agx::Real heightIn,
818  agx::Real thicknessIn )
819  : PrimitiveData( shapeIn, meshIn ), topOuterRadius( topOuterRadiusIn ),
820  bottomInnerRadius( bottomInnerRadiusIn ), height( heightIn ), thickness( thicknessIn )
821  {
822  }
823 
824  virtual void checkSize( agx::Real resolution ) override;
825 
826  agx::Real topOuterRadius;
827  agx::Real bottomInnerRadius;
828  agx::Real height;
829  agx::Real thickness;
830 
831  protected:
832  virtual ~HollowConeData() {}
833  };
834 
835  struct HollowCylinderData : PrimitiveData
836  {
837  HollowCylinderData( const agxCollide::Shape* shapeIn, agxCollide::Mesh* meshIn, agx::Real innerRadiusIn, agx::Real heightIn, agx::Real thicknessIn )
838  : PrimitiveData( shapeIn, meshIn ), innerRadius( innerRadiusIn ), height( heightIn ),
839  thickness( thicknessIn )
840  {
841  }
842 
843  virtual void checkSize( agx::Real resolution ) override;
844 
845  agx::Real innerRadius;
846  agx::Real height;
847  agx::Real thickness;
848 
849  protected:
850  virtual ~HollowCylinderData() {}
851  };
852 
854 
857 
858  private:
859  agxCollide::MeshRef createUnitShape( agxCollide::Shape::Type shapeType, agx::Real resolution = agx::Real( 1 ) ) const;
860  const agxCollide::Mesh* getOrCreatePrimitive( const agxCollide::Shape* shape, agx::Real resolution = agx::Real( 1 ) ) const;
861 
862  private:
863  mutable MeshContainer m_cache;
864  mutable PrimitiveContainer m_primitives;
865 
866  mutable std::mutex meshCreationMutex;
867  };
868 
882 
883 
884  protected:
888  virtual ~WindAndWaterController();
889 
890  protected:
894  void configureDefaultAlgorithms();
895 
899  void garbageCollect();
900 
904  agxModel::WindAndWaterController::PressureFieldRendererData* getPressureFieldRenderData( const agxCollide::Shape* shape ) const;
905 
909  agxModel::PressureFieldRenderer* getPressureFieldRender( const agxCollide::Shape* shape ) const;
910 
914  virtual agxModel::WindAndWaterController::ObjectDataContainer calculateObjectData(
915  const agxCollide::Geometry* waterGeometry,
916  const agxCollide::Geometry* geometry,
917  const agx::Vec3& gravity,
918  agx::Bool aeroEnabled,
919  agx::Bool hydroEnabled,
920  agx::Bool updateRenderers,
921  agx::UInt& numProcessedTriangles,
922  const agx::UIntVector startIndexT,
923  const agx::UIntVector startIndexV,
924  const agx::TimeStamp& t = 0 );
925 
931  const agx::TimeStamp& t = 0 );
932 
936  agxModel::WindAndWaterController::WireLinkedStructureData* calculateLinkedStructureData(
937  const agxCollide::Geometry* waterGeometry, const agxCollide::Geometry* geometry, const agx::Vec3& gravity,
938  const AerodynamicsParameters* aeroParams, const HydrodynamicsParameters* hydroParams, agx::Bool aeroEnabled,
939  agx::Bool hydroEnabled, const agx::TimeStamp& t = 0 );
940 
941  void getSizeOfGeometry( const agxCollide::Geometry* geometry,
942  agx::UIntVector& numTriangles,
943  agx::UIntVector& numVertices );
944 
945  protected:
968  };
969 
975  class AGXMODEL_EXPORT WindAndWaterController::Algorithm : public agx::Referenced
976  {
977  public:
979 
980  public:
984  virtual void preCollide( agxModel::WindAndWaterController* /*controller*/ ) {}
985 
989  virtual void pre( agxModel::WindAndWaterController* /*controller*/ ) {}
990 
994  virtual void post( agxModel::WindAndWaterController* /*controller*/ ) {}
995 
1000  };
1001 
1003 
1008  {
1009  public:
1014  ConstantWaterFlowGenerator( const agx::Vec3& velocity );
1015 
1020  void setVelocity( const agx::Vec3& velocity );
1021 
1025  const agx::Vec3& getVelocity() const;
1026 
1027  public:
1028  virtual agx::Vec3 getVelocity( const agx::Vec3& /*worldPosition*/ ) const override;
1029 
1031 
1032  protected:
1034  virtual ~ConstantWaterFlowGenerator();
1035 
1036  private:
1037  agx::Vec3 m_velocity;
1038  };
1039 
1040 
1042 
1047  {
1048  public:
1053  ConstantWindGenerator( const agx::Vec3& velocity );
1054 
1059  void setVelocity( const agx::Vec3& velocity );
1060 
1064  const agx::Vec3& getVelocity() const;
1065 
1066  public:
1067  virtual agx::Vec3 getVelocity( const agx::Vec3& /*worldPosition*/ ) const override;
1068 
1070 
1071  protected:
1073  virtual ~ConstantWindGenerator();
1074 
1075  private:
1076  agx::Vec3 m_velocity;
1077  };
1078 
1084  {
1086 
1087  public:
1091  WaterWrapper();
1092 
1100  virtual agx::Real findHeightFromSurface( const agx::Vec3& worldPoint, const agx::Vec3& upVector, const agx::TimeStamp& t ) const;
1101 
1105  virtual agx::Bool isValid() const;
1106 
1110  virtual agx::Real getDensity() const;
1111 
1115  virtual agx::Vec3 getVelocity( const agx::Vec3& worldPoint ) const;
1116 
1120  const agxCollide::Geometry* getGeometry() const;
1121 
1125  const agxModel::WindAndWaterController::WaterFlowGenerator* getWaterFlowGenerator() const;
1126 
1127 #ifndef SWIG
1129 #endif
1130 
1131  protected:
1132  virtual ~WaterWrapper() {}
1133 
1139  agx::Vec3 project( const agx::Vec3& localPoint, const agx::Vec3& localUpVector ) const;
1140 
1141  protected:
1146 
1148  private:
1149  // Only used by WindAndWaterController
1150  WaterWrapper( const agxCollide::Geometry* geometry );
1151  void setFlowGenerator( WindAndWaterController::WaterFlowGenerator* flowGenerator );
1152  void setWaterGeometry( agxCollide::Geometry* waterGeometry );
1153  void update();
1155  };
1156 
1158  {
1159  return m_aeroParams;
1160  }
1161 
1163  {
1164  return m_hydroParams;
1165  }
1166 
1168  {
1169  return m_velocity;
1170  }
1171 
1173  {
1174  return m_velocity;
1175  }
1176 }
1177 
1178 #endif // AGXMODEL_WINDANDWATERCONTROLLER_H
Class to generate constant water flow in a scene.
virtual void updateInteraction(agxModel::WindAndWaterController::ObjectData &, const GlobalTriangleData::Container &)
Called when it&#39;s time to update interaction.
AerodynamicsParametersContainer m_aerodynamicsParameters
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
Definition: Vec3.h:36
Hydro- and aerodynamic results for a linked structure.
Basic implementation of any structure where bodies are linked/constrained together in a well defined ...
Mesh is a common base class for triangle meshes, such as Mesh or HeightField.
Definition: Mesh.h:68
Derive from this class to implement a listener for simulation Step events.
Interface for generating water flow and wind.
agx::ref_ptr< WindAndWaterController > WindAndWaterControllerRef
Segment(agx::RigidBody *rb, agx::Vec3 point1, agx::Vec3 point2, agx::Vec3 velocity, agx::Vec3 velocityOfFluid, agx::Real fluidDensity, agx::Vec3 gravity, agx::Real volume)
agx::ref_ptr< AerodynamicsData > AerodynamicsDataRef
bool Bool
Definition: Integer.h:48
agx::HashVector< const agxWire::Wire *, AerodynamicsParametersRef > AerodynamicsParametersWireContainer
Base class for a shape.
Definition: Shape.h:53
void lock() const
Perform a mutex lock for this ObjectData.
AerodynamicsParametersLinkedStructureContainer m_aerodynamicsParametersLinkedStructures
agx::HashVector< const agxCollide::Geometry *, AerodynamicsDataRef > AerodynamicsDataContainer
Class to generate constant wind in a scene.
virtual void pre(agxModel::WindAndWaterController *)
Called before all data is collected and before updateInteraction is called.
agx::HashVector< const agxCollide::Shape *, HydrodynamicsParametersRef > HydrodynamicsParametersContainer
agx::AffineMatrix4x4 m_worldToShape
int32_t Int
Definition: Integer.h:35
const agxModel::HydrodynamicsParameters * getHydrodynamicsParameters() const
HydrodynamicsParametersLinkedStructureContainer m_hydrodynamicsParametersLinkedStructures
agx::HashVector< const agxCollide::Geometry *, WaterWrapperRef > WaterWrapperContainer
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
Controller that collects relevant data and executes algorithms (probably mostly aero- and hydrodynami...
Representation of a name string.
Definition: Name.h:32
agx::Vector< agxModel::WindAndWaterController::AlgorithmRef > AlgorithmContainer
#define AGX_FORCE_INLINE
Definition: Object.h:62
agx::ref_ptr< PressureFieldRendererData > PressureFieldRendererDataRef
agx::Real TimeStamp
Definition: TimeStamp.h:26
agx::HashVector< const agxSDK::LinkedStructure *, HydrodynamicsParametersRef > HydrodynamicsParametersLinkedStructureContainer
agx::HashVector< const agxCollide::Geometry *, WaterFlowGeneratorRef > WaterFlowGeneratorContainer
void unLock() const
Perform a mutex unlock for this ObjectData.
agx::HashVector< const agxWire::Wire *, HydrodynamicsParametersRef > HydrodynamicsParametersWireContainer
Interface for generating wind effects.
agxCollide::GeometryConstObserver m_geometry
Base class providing referencing counted objects.
Definition: Referenced.h:113
HydrodynamicsParametersRef m_globalHydrodynamicsParameters
The geometry representation used by the collision detection engine.
Definition: Geometry.h:88
agxModel::WindAndWaterController::ObjectData ObjectData
Templated vector class.
Definition: Vector.h:52
AerodynamicsParametersWireContainer m_aerodynamicsParametersWires
WirePair(agxWire::Node *node1, agxWire::Node *node2, const agxCollide::Geometry *water, agx::Vec3 gravity)
virtual void preCollide(agxModel::WindAndWaterController *)
Called during normal preCollide events.
Interface and placeholder of controllers/helpers for wires.
Definition: Wire.h:61
uint32_t UInt
Definition: Integer.h:34
Vector containing &#39;raw&#39; data.
Definition: Vector.h:245
Water wrapper that can be inherited to create custom made wrappers.
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
Definition: Space.h:81
HydrodynamicsParametersContainer m_hydrodynamicsParameters
Hydro- and aerodynamic results for a wire.
GlobalTriangleData::Container m_trianglePool
agx::Vector< agxWire::WireObserver > WireObserverVector
GeometryConstObserverVector m_waterGeometries
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
agx::ref_ptr< WireLinkedStructureData > WireLinkedStructureDataRef
agx::Vector< WirePair > WirePairContainer
Data for rigid body with aero/hydro static/dynamic forces and added mass and inertia matrices...
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:52
virtual void post(agxModel::WindAndWaterController *)
Called during normal post.
WaterFlowGeneratorContainer m_flowGenerators
HydrodynamicsParametersWireContainer m_hydrodynamicsParametersWires
PressureFieldRendererDataContainer m_pressureFieldRenderers
const agx::Vec3 & getVelocity() const
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
Definition: Uuid.h:41
const agx::Vec3 & getVelocity() const
AerodynamicsDataContainer m_aeroGeometries
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:206
agx::HashVector< const agxCollide::Shape *, AerodynamicsParametersRef > AerodynamicsParametersContainer
agx::Vector< WindAndWaterController * > WindAndWaterControllerPtrVector
Type
Define the type of a Shape.
Definition: Shape.h:58
agx::ref_ptr< ObjectData > ObjectDataRef
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
AerodynamicsParametersRef m_globalAerodynamicsParameters
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:121
agx::HashVector< const agxCollide::Shape *, PressureFieldRendererDataRef > PressureFieldRendererDataContainer
Vertex data for all global vertices in a mesh.
const WindAndWaterController::WaterFlowGenerator * m_flowGenerator
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Definition: Serializable.h:220
AerodynamicsData(const agxCollide::Geometry *geometryIn)
#define AGXMODEL_EXPORT
Class defining a node that is part of a wire.
Definition: agxWire/Node.h:511
double Real
Definition: Real.h:42
const agxCollide::Shape * m_shape
ShapeTessellation
Tessellation levels of native, non-mesh shapes, e.g, sphere, capsule and cylinder.
Triangle data for a normal or a clipped triangle.
agx::HashVector< const agxSDK::LinkedStructure *, AerodynamicsParametersRef > AerodynamicsParametersLinkedStructureContainer
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::Vector< agxCollide::GeometryConstObserver > GeometryConstObserverVector
agx::Vector< ObjectDataRef > ObjectDataContainer
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:101
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:100
agx::Vector< WireLinkedStructureDataRef > WireLinkedStructureDataContainer