AGXDynamics  2.35.0.2
Geometry.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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 #pragma once
18 
19 #include <agxCollide/agxCollide.h>
20 #include <agx/agx.h>
21 #include <agx/observer_ptr.h>
23 #include <agxCollide/Shape.h>
25 #include <agx/Material.h>
26 #include <agx/Event.h>
27 
28 #include <agxStream/Serializable.h>
29 
30 #include <agx/Property.h>
31 
33 #include <agx/RigidBody.h>
34 #include <agx/HashSet.h>
35 #include <agx/AffineMatrix4x4.h>
36 #include <agx/BitArray.h>
37 #include <agx/SymmetricPair.h>
41 #include <agx/SetVector.h>
42 
43 
44 namespace agx
45 {
46  class MergeSplitBodyStorage;
47  class Frame;
48  class InternalData;
49  class Emitter;
50 }
51 
52 namespace agxCollide
53 {
54  class SweepAndPrune;
55  class LocalContactPoint;
56 
57 }
58 
59 namespace agxTerrain
60 {
61  class Terrain;
62 }
63 
64 namespace agxData
65 {
67 }
68 
70 
71 
72 namespace agxCollide
73 {
74  class Space;
75  class ContactPoint;
76 
77 
83 
93  {
94  public:
97 
98  public:
99 
104  Geometry( const agx::Name& name = "" );
105 
106 
111  Geometry( Shape* shape );
112 
118  Geometry( Shape* shape, const agx::AffineMatrix4x4& localShapeTransform );
119 
124  Geometry *clone( bool shallowCopyRenderData=false ) const;
125 
129  agx::Int64 getId() const;
130 
135  const agx::Name& getName() const;
136 
138  void setName( const agx::Name& name );
139 
143  agx::RigidBody *getRigidBody();
144 
148  const agx::RigidBody *getRigidBody() const;
149 
153  void setMaterial( agx::Material *material );
154 
158  agx::Material *getMaterial();
159 
163  const agx::Material *getMaterial() const;
164 
168  void removeMaterial();
169 
175  agx::Real calculateMass() const;
176 
182  agx::Real calculateVolume() const;
183 
189  agx::Vec3 calculateCenterOfMassOffset() const;
190 
196  agx::SPDMatrix3x3 calculateInertia( agx::Real mass ) const;
197 
202  void setEnable( bool flag );
203 
210  bool isEnabled() const;
211 
217  bool getEnable() const;
218 
233  void setSensor(bool flag, bool generateContactData = true);
234 
238  bool isSensor() const;
239 
244  bool isSensorGeneratingContactData() const;
245 
258  void addGroup( agx::UInt32 id, bool forceContactUpdate = false );
259 
272  void addGroup( const agx::Name& name, bool forceContactUpdate = false);
273 
279  void removeGroup( agx::UInt32 id, bool forceContactUpdate = false );
280 
286  void removeGroup( const agx::Name& name, bool forceContactUpdate = false);
287 
292  void removeAllGroups(bool forceContactUpdate = false);
293 
300  bool hasGroup( agx::UInt32 id ) const;
301 
308  bool hasGroup( const agx::Name& name ) const;
309 
314  void setGroupSet( agx::Physics::CollisionGroupSetPtr set );
315 
319  const agx::Physics::CollisionGroupSetPtr& getGroupSet() const;
320 
323  const GroupSet& getGroupIDs() const;
324 
328  void setEnableCollisions( const Geometry* otherGeometry, bool flag );
329 
333  bool getEnableCollisions( const Geometry* otherGeometry ) const;
334 
340  void setEnableCollisions(bool collide);
341 
345  bool getEnableCollisions() const;
346 
347 
358  bool canCollide( const Geometry *otherGeometry ) const;
359 
360 
369  virtual agx::Vec3f calculateSurfaceVelocity( const agxCollide::LocalContactPoint& point, size_t index ) const;
370 
375  virtual const BoundingAABB* getBoundingVolume() const;
376 
378  agx::PropertyContainer* getPropertyContainer();
379 
381  const agx::PropertyContainer* getPropertyContainer() const;
382 
384  bool hasPropertyContainer() const;
385 
390  void setPropertyContainer( agx::PropertyContainer *container );
391 
395  Space* getSpace();
396 
400  const Space* getSpace() const;
401 
402 
404 
405 
409  agx::Referenced* getCustomData();
410 
414  const agx::Referenced* getCustomData() const;
415 
419  void setCustomData( agx::Referenced* data );
420 
425  agx::RigidBody* getOriginalBody();
426 
431  const agx::RigidBody* getOriginalBody() const;
432 
439  void setSurfaceVelocity( const agx::Vec3f& surfaceVelocity );
440 
445  const agx::Vec3f& getSurfaceVelocity() const;
446 
447  agx::UInt32 getSweepAndPruneIndex() const;
448 
449  // Normally updated automatically
450  virtual void updateBoundingVolume();
451 
453 
454  // Normally handled automatically
455  virtual void shapeUpdated();
456 
460  agxCollide::GroupIdCollection findGroupIdCollection() const;
461 
462  public:
466  agx::Frame *getFrame();
467 
471  const agx::Frame *getFrame() const;
472 
478  void setTransform( const agx::AffineMatrix4x4& matrix );
479 
483  const agx::AffineMatrix4x4& getLocalTransform() const;
484 
489  void setLocalTransform( const agx::AffineMatrix4x4& matrix );
490 
494  agx::Vec3 getLocalPosition() const;
495 
500  void setLocalPosition( const agx::Vec3& p );
501 
508  void setLocalPosition( agx::Real x, agx::Real y, agx::Real z );
509 
514  void setRotation( const agx::Quat& q );
515 
520  void setRotation( const agx::EulerAngles& e);
521 
526  void setRotation( const agx::OrthoMatrix3x3& m );
527 
531  agx::Quat getLocalRotation() const;
532 
537  void setLocalRotation( const agx::Quat& q );
538 
543  void setLocalRotation( const agx::EulerAngles& e );
544 
548  agx::Frame* getParentFrame();
549 
553  const agx::Frame* getParentFrame() const;
554 
564  bool setParentFrame( agx::Frame* frame );
565 
570  void setPosition( const agx::Vec3& p );
571 
578  void setPosition( agx::Real x, agx::Real y, agx::Real z );
579 
583  agx::AffineMatrix4x4 getTransform() const;
584 
588  agx::Vec3 getPosition() const;
589 
593  agx::Quat getRotation() const;
594 
595 
596  public:
597  /* Old interface, use ShapeGroup instead */
598 
606  bool add( Shape *shape, const agx::AffineMatrix4x4& localTransform = agx::AffineMatrix4x4() );
607 
612  bool remove( Shape *shape );
613 
626  Shape *getShape();
627 
639  const Shape *getShape() const;
640 
646  bool setShape(Shape *shape);
648 
649 
654  bool remove( size_t index );
655 
659  const ShapeRefVector& getShapes() const;
660 
664  bool replace( size_t shapeIndex, Shape *newShape, const agx::AffineMatrix4x4& localTransform = agx::AffineMatrix4x4());
665  bool replace( Shape *oldShape, Shape *newShape, const agx::AffineMatrix4x4& localTransform = agx::AffineMatrix4x4());
666 
673  bool replaceShapeTransform( size_t shapeIndex, const agx::AffineMatrix4x4& newTransform );
674 
681  bool replaceShapeTransform( Shape *shape, const agx::AffineMatrix4x4& newTransform );
682 
688  void cloneShapeRenderData(agxCollide::Shape* target, bool shallowCopy) const;
689 
690  public:
693  {
694  public:
702 
704  void setEnableSplit( bool flag );
705 
707  bool getEnableSplit( ) const;
708 
712  void setEnableMerge( bool flag );
716  bool getEnableMerge( ) const;
717 
723  void setForceSplitInPreStep( bool flag );
727  bool getForceSplitInPreStep( ) const;
728 
729  private:
730  enum FLAGS {
731  ENABLE_SPLIT,
732  ENABLE_MERGE,
733  FORCE_SPLIT_IN_PRE,
734  NUM_ELEMENTS
735  };
736 
738  FlagVector m_flags;
739  };
740 
742  MergeSplitProperties& getMergeSplitProperties();
743 
745  const MergeSplitProperties& getMergeSplitProperties() const;
746 
747  protected:
749  virtual ~Geometry();
750 
751  private:
753  friend class agx::Emitter;
754  friend class agx::RigidBody;
755  friend class agx::Frame;
756  friend class GeometryGroup;
757  friend class agxCollide::Space;
759  friend class agxCollide::ShapeGroup;
760  friend class agxTerrain::Terrain;
761 
762  void propagateTransform();
763  void updateFrameStorage();
764  ShapeGroup *createWrapperGroup();
765 
766  void init(const agx::Name& name);
767 
768  mutable agx::PropertyContainerRef m_propertyContainer;
769 
770  void setBody( agx::RigidBody *body, const agx::AffineMatrix4x4& invBodyTransform );
771  void removeBody();
772 
779  bool setSpace( Space* space, agx::Int64 id );
780 
781  void setSweepAndPruneIndex( agx::UInt32 index );
782  void setEntity( agx::Physics::GeometryPtr entity );
783  // void transfer(Space *space);
784  void transfer( agxData::EntityStorage *storage );
785 
786  //void synchronizeShapeLocalTransformPointers();
787 
789  void setOriginalBody( agx::RigidBody * );
790 
791  size_t findShapeIndex(Shape *shape);
792 
793  void enableCollisionsWithGroup(agx::UInt32 groupId);
794  void disableCollisionsWithGroup(agx::UInt32 groupId);
795 
797  friend class agx::InternalData;
801  agx::Referenced* getInternalData() const;
802 
806  void setInternalData( agx::Referenced* data );
808 
809  private:
810  agx::Int64 m_id;
811  ShapeRef m_shape;
812  agx::Physics::GeometryRef m_entity;
813  agx::RigidBody * m_rigidBody;
814  Space * m_space;
815 
816  agx::MaterialRef m_material;
817 
818  mutable GeometryHashVector m_disabledCollisionsHash;
819 
820  agx::FrameRef m_frame;
821  agx::ref_ptr<agx::Referenced> m_customData;
822  agx::ref_ptr<agx::Referenced> m_internalData;
823  agx::observer_ptr<agx::RigidBody> m_originalBody;
824  MergeSplitProperties m_msProperties;
825 
826  // Backward compatibility
827  ShapeRefVector m_singleShapeVector;
828 
829  static ShapeRefVector s_defaultChildVector;
830  static GroupSet s_emptySet;
831  };
832 
833 
834  /* Implementation */
835 
836  AGX_FORCE_INLINE Shape *Geometry::getShape()
837  {
838  return m_shape;
839  }
840 
841  AGX_FORCE_INLINE const Shape *Geometry::getShape() const
842  {
843  return const_cast<Geometry *>( this )->getShape();
844  }
845 
847  {
848  return m_entity;
849  }
850  AGX_FORCE_INLINE agx::RigidBody *Geometry::getRigidBody()
851  {
852  return m_rigidBody;
853  }
854 
855  AGX_FORCE_INLINE const agx::RigidBody *Geometry::getRigidBody() const
856  {
857  return m_rigidBody;
858  }
859 
860  AGX_FORCE_INLINE agx::Int64 Geometry::getId() const
861  {
862  return m_id;
863  }
864 
865  AGX_FORCE_INLINE bool Geometry::isEnabled() const
866  {
867  return m_entity.state().enabled();
868  }
869 
870  AGX_FORCE_INLINE bool Geometry::isSensor() const
871  {
872  return m_entity.state().sensor();
873  }
874 
875  inline bool Geometry::isSensorGeneratingContactData() const
876  {
877  return !m_entity.state().booleanSensor();
878  }
879 
880  AGX_FORCE_INLINE agx::UInt32 Geometry::getSweepAndPruneIndex() const
881  {
882  return m_entity.sweepAndPruneIndex();
883  }
884 
885  AGX_FORCE_INLINE bool Geometry::hasGroup( agx::UInt32 id ) const
886  {
887  return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(), id);
888  }
889 
890  AGX_FORCE_INLINE bool Geometry::hasGroup( const agx::Name& name ) const
891  {
892  return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(), name);
893  }
894 
895  AGX_FORCE_INLINE const agx::Physics::CollisionGroupSetPtr& Geometry::getGroupSet() const
896  {
897  return m_entity.collisionGroupSet();
898  }
899 
900  AGX_FORCE_INLINE void Geometry::setGroupSet( agx::Physics::CollisionGroupSetPtr set )
901  {
902  m_entity.collisionGroupSet() = set;
903  }
904 
905  AGX_FORCE_INLINE const agx::Material *Geometry::getMaterial() const
906  {
907  return m_material;
908  }
909 
910  AGX_FORCE_INLINE agx::Material *Geometry::getMaterial()
911  {
912  return m_material;
913  }
914 
915  AGX_FORCE_INLINE void Geometry::setSurfaceVelocity( const agx::Vec3f& surfaceVelocity )
916  {
917  m_entity.surfaceVelocity() = surfaceVelocity;
918  }
919 
920  AGX_FORCE_INLINE const agx::Vec3f& Geometry::getSurfaceVelocity( ) const
921  {
922  return m_entity.surfaceVelocity();
923  }
924 
925  AGX_FORCE_INLINE void Geometry::setOriginalBody( agx::RigidBody *body )
926  {
927  m_originalBody = body;
928  }
929 
930  AGX_FORCE_INLINE agx::RigidBody* Geometry::getOriginalBody( )
931  {
932  return m_originalBody.get() ? m_originalBody.get() : m_rigidBody;
933  }
934 
935  AGX_FORCE_INLINE const agx::RigidBody* Geometry::getOriginalBody( ) const
936  {
937  return m_originalBody.get() ? m_originalBody.get() : m_rigidBody;
938  }
939 
940  AGX_FORCE_INLINE bool Geometry::getEnable() const
941  {
942  return m_entity.state().enabled();
943  }
944 
945  AGX_FORCE_INLINE Space* Geometry::getSpace()
946  {
947  return m_space;
948  }
949  AGX_FORCE_INLINE const Space* Geometry::getSpace() const
950  {
951  return m_space;
952  }
953 
954  AGX_FORCE_INLINE agx::Frame* Geometry::getFrame()
955  {
956  return m_frame.get();
957  }
958 
959  AGX_FORCE_INLINE const agx::Frame* Geometry::getFrame() const
960  {
961  return m_frame.get();
962  }
963 
964  AGX_FORCE_INLINE const BoundingAABB* Geometry::getBoundingVolume() const
965  {
966  return &m_entity.boundingAABB();
967  }
968 
969 
970  AGX_FORCE_INLINE agx::PropertyContainer* Geometry::getPropertyContainer()
971  {
972  if ( !m_propertyContainer )
973  m_propertyContainer = new agx::PropertyContainer;
974  return m_propertyContainer;
975  }
976 
977  AGX_FORCE_INLINE bool Geometry::hasPropertyContainer() const
978  {
979  return ( m_propertyContainer.isValid() );
980  }
981 
982  AGX_FORCE_INLINE const agx::PropertyContainer* Geometry::getPropertyContainer() const
983  {
984  if ( !m_propertyContainer )
985  m_propertyContainer = new agx::PropertyContainer;
986 
987  return m_propertyContainer;
988  }
989 
990  AGX_FORCE_INLINE agx::Vec3f Geometry::calculateSurfaceVelocity( const agxCollide::LocalContactPoint& /* point */, size_t /* index */) const
991  {
992  return getSurfaceVelocity();
993  }
994 
995  AGX_FORCE_INLINE Geometry::MergeSplitProperties& Geometry::getMergeSplitProperties()
996  {
997  return m_msProperties;
998  }
999  AGX_FORCE_INLINE const Geometry::MergeSplitProperties& Geometry::getMergeSplitProperties() const
1000  {
1001  return m_msProperties;
1002  }
1003 
1004  AGX_FORCE_INLINE void Geometry::MergeSplitProperties::setEnableSplit( bool flag )
1005  {
1006  m_flags[ENABLE_SPLIT] = flag;
1007  }
1008  AGX_FORCE_INLINE bool Geometry::MergeSplitProperties::getEnableSplit( ) const
1009  {
1010  return m_flags[ENABLE_SPLIT];
1011  }
1012 
1013  AGX_FORCE_INLINE void Geometry::MergeSplitProperties::setEnableMerge( bool flag )
1014  {
1015  m_flags[ENABLE_MERGE] = flag;
1016  }
1017 
1018  AGX_FORCE_INLINE bool Geometry::MergeSplitProperties::getEnableMerge( ) const
1019  {
1020  return m_flags[ENABLE_MERGE];
1021  }
1022 
1023  AGX_FORCE_INLINE void Geometry::MergeSplitProperties::setForceSplitInPreStep( bool flag )
1024  {
1025  m_flags[FORCE_SPLIT_IN_PRE] = flag;
1026  }
1027 
1028  AGX_FORCE_INLINE bool Geometry::MergeSplitProperties::getForceSplitInPreStep( ) const
1029  {
1030  return m_flags[FORCE_SPLIT_IN_PRE];
1031  }
1032 
1033 
1034  AGX_FORCE_INLINE agx::AffineMatrix4x4 Geometry::getTransform() const
1035  {
1036  if (m_rigidBody)
1037  return m_entity.transform();
1038  else
1039  return m_frame->getMatrix();
1040 
1041  }
1042 
1043  AGX_FORCE_INLINE agx::Vec3 Geometry::getPosition() const
1044  {
1045  if (m_rigidBody)
1046  return m_entity.transform().getTranslate();
1047  else
1048  return m_frame->getTranslate();
1049  }
1050 
1051  AGX_FORCE_INLINE agx::Quat Geometry::getRotation() const
1052  {
1053  if (m_rigidBody)
1054  return m_entity.transform().getRotate();
1055  return m_frame->getRotate();
1056  }
1057 
1058  AGX_FORCE_INLINE void Geometry::updateFrameStorage()
1059  {
1061  }
1062 
1063  inline agx::Referenced* Geometry::getInternalData() const
1064  {
1065  return m_internalData;
1066  }
1067 } // namespace agxCollide
Shape.h
agx::SymmetricPair
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
Definition: SymmetricPair.h:31
agxcollide_vector_types.h
BoundingAABB.h
agxTerrain::Terrain
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
Definition: agxTerrain/Terrain.h:85
agx::Real
double Real
Definition: Real.h:42
agxData::GeometryPair
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
Definition: Geometry.h:66
agx::OrthoMatrix3x3
Specialized types of matrices for holding orthogonal transformation matrices.
Definition: OrthoMatrix3x3.h:33
agx::Vector< agx::ref_ptr< Shape > >
agxCollide::GeometryRefSetVector
agx::SetVector< agx::ref_ptr< agxCollide::Geometry > > GeometryRefSetVector
Definition: Geometry.h:82
agxTerrain
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
Definition: Geometry.h:59
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
agxStream::Serializable
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
agxCollide::LocalContactPoint
Definition: LocalContactPoint.h:40
DOXYGEN_END_INTERNAL_BLOCK
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:97
agx::AffineMatrix4x4T< Real >
DOXYGEN_START_INTERNAL_BLOCK
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:96
agxData::AttributePtr
Definition: AttributePtr.h:27
agxUtil::addGroup
AGXPHYSICS_EXPORT void addGroup(const agx::RigidBody *body, unsigned id)
For the specified body, add the collision group ID to its geometries.
agx::FrameRef
agx::ref_ptr< Frame > FrameRef
Definition: Frame.h:52
agxCollide::Geometry::shapeChangeEvent
ShapeChangeEvent shapeChangeEvent
Definition: Geometry.h:96
agxData::EntityStorage
Data storage for a collection of entity instances of a specified EntityModel.
Definition: EntityStorage.h:72
agxCollide::BoundingAABB
Axis aligned bounding box implementation.
Definition: BoundingAABB.h:37
AGXSTREAM_DECLARE_SERIALIZABLE
#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:207
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxData
Contains classes for low level data storage for AGX.
Definition: Container.h:23
agx::PropertyContainer
Class that is a container of named properties.
Definition: Property.h:128
AffineMatrix4x4.h
agx::BitArray< NUM_ELEMENTS >
AGX_DECLARE_VECTOR_TYPES
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: Vector.h:34
agx::MaterialRef
agx::ref_ptr< Material > MaterialRef
Definition: Material.h:59
agxCollide::GeometryHashSet
agx::HashSet< const Geometry * > GeometryHashSet
Definition: Geometry.h:81
agx::ref_ptr< PropertyContainer >
SymmetricPair.h
agxCollide::Shape
Base class for a shape.
Definition: Shape.h:53
Property.h
agx::SetVector
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Definition: SetVector.h:37
agx::AffineMatrix4x4
AffineMatrix4x4T< Real > AffineMatrix4x4
Definition: AffineMatrix4x4.h:384
agx::MergeSplitBodyStorage
Book keeping of a body which can be merged with other bodies.
Definition: MergeSplitBodyStorage.h:35
agxCollide::Geometry::MergeSplitProperties
Specify MergeSplit properties for a Geometry.
Definition: Geometry.h:692
GeometryEntity.h
GeometryState.h
agxCollide::GeometryHashVector
agx::HashVector< const Geometry *, agx::observer_ptr< const Geometry > > GeometryHashVector
Definition: Geometry.h:80
GroupIdCollection.h
agxUtil::setEnableCollisions
AGXPHYSICS_EXPORT bool setEnableCollisions(agx::RigidBody *rb1, agx::RigidBody *rb2, bool enable)
Enable or disable the collision between all geometries in RigidBody rb1 and RigidBody rb2.
agxCollide::Geometry
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
Event.h
observer_ptr.h
agx::Name
Representation of a name string.
Definition: Name.h:32
agx::SPDMatrix3x3
Specialized type of matrices for holding symmetric positive definite matrices.
Definition: SPDMatrix3x3.h:48
Serializable.h
agxCollide::Space
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
Definition: Space.h:81
agx::EulerAngles
This class provides conversion services between Euler angles in any of the 24 conventions and corresp...
Definition: EulerAngles.h:69
agx::HashSet
Inheritance with partial specialization due to bug with ref_ptr containers.
Definition: HashSet.h:665
agx::QuatT< Real >
agxCollide.h
agx::Physics::GeometryPtr
Pointer to a entity instance of type Physics.Geometry.
Definition: GeometryEntity.h:269
agx.h
RigidBody.h
HashSet.h
agxCollide::SweepAndPrune
Definition: SweepAndPrune.h:36
agx::Event1< Geometry * >
agx::Referenced
Base class providing referencing counted objects.
Definition: Referenced.h:113
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agxUtil::removeGroup
AGXPHYSICS_EXPORT void removeGroup(const agx::RigidBody *body, unsigned id)
For the specified body, remove the collision group ID to its geometries.
agxCollide
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Definition: ContactForceFilterParticipant.h:22
agx::Int64
int64_t Int64
Definition: Integer.h:46
CollisionGroupManager.h
agxCollide::GroupIdCollection
Collection of geometry group names and id's.
Definition: GroupIdCollection.h:29
AGX_TYPE_BINDING
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
agx::init
void AGXPHYSICS_EXPORT init()
Initialize agx.
agx::Material
Main material class which acts as a holder of a Surface Material and a Bulk material.
Definition: Material.h:387
agx::Vec3T< Real >
agxCollide::Geometry::ShapeChangeEvent
agx::Event1< Geometry * > ShapeChangeEvent
Definition: Geometry.h:95
agx::Physics::GeometryModel::transformAttribute
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * transformAttribute
Definition: GeometryEntity.h:109
agx::QuatT::getRotate
void getRotate(T &angle, T &x, T &y, T &z) const
Get the angle and vector components represented by the quaternion.
agx::Referenced::Referenced
Referenced()
Default constructor.
agx::UInt32
uint32_t UInt32
Definition: Integer.h:40
agxCollide::Geometry::GroupSet
CollisionGroupManager::GroupIdHash GroupSet
Deprecated: Only for backward compatibility.
Definition: Geometry.h:322
agx::Frame
The object defining a frame of reference and providing transformations operations.
Definition: Frame.h:67
agx::Emitter
Spawns new bodys inside a given volume.
Definition: Emitter.h:44
agx::HashVector
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Definition: HashVector.h:40
BitArray.h
agx::Physics::CollisionGroupSetPtr
Pointer to a entity instance of type Physics.CollisionGroupSet.
Definition: CollisionGroupSetEntity.h:175
agx::ref_ptr::isValid
bool isValid() const
Definition: ref_ptr.h:268
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition: macros.h:58
Material.h
agx::Physics::GeometryModel::localTransformAttribute
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * localTransformAttribute
Definition: GeometryEntity.h:110
SetVector.h
agxData::getEntity
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.