 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
46 class MergeSplitBodyStorage;
55 class LocalContactPoint;
124 Geometry *clone(
bool shallowCopyRenderData=
false )
const;
168 void removeMaterial();
189 agx::Vec3 calculateCenterOfMassOffset()
const;
202 void setEnable(
bool flag );
210 bool isEnabled()
const;
217 bool getEnable()
const;
233 void setSensor(
bool flag,
bool generateContactData =
true);
238 bool isSensor()
const;
244 bool isSensorGeneratingContactData()
const;
292 void removeAllGroups(
bool forceContactUpdate =
false);
308 bool hasGroup(
const agx::Name& name )
const;
323 const GroupSet& getGroupIDs()
const;
333 bool getEnableCollisions(
const Geometry* otherGeometry )
const;
345 bool getEnableCollisions()
const;
358 bool canCollide(
const Geometry *otherGeometry )
const;
384 bool hasPropertyContainer()
const;
400 const Space* getSpace()
const;
439 void setSurfaceVelocity(
const agx::Vec3f& surfaceVelocity );
450 virtual void updateBoundingVolume();
455 virtual void shapeUpdated();
500 void setLocalPosition(
const agx::Vec3& p );
537 void setLocalRotation(
const agx::Quat& q );
612 bool remove(
Shape *shape );
639 const
Shape *getShape() const;
646 bool setShape(
Shape *shape);
654 bool remove(
size_t index );
673 bool replaceShapeTransform(
size_t shapeIndex, const
agx::
AffineMatrix4x4& newTransform );
688 void cloneShapeRenderData(
agxCollide::
Shape* target,
bool shallowCopy) const;
704 void setEnableSplit(
bool flag );
707 bool getEnableSplit( )
const;
712 void setEnableMerge(
bool flag );
716 bool getEnableMerge( )
const;
723 void setForceSplitInPreStep(
bool flag );
727 bool getForceSplitInPreStep( )
const;
756 friend class GeometryGroup;
759 friend class agxCollide::ShapeGroup;
762 void propagateTransform();
763 void updateFrameStorage();
764 ShapeGroup *createWrapperGroup();
791 size_t findShapeIndex(
Shape *shape);
793 void enableCollisionsWithGroup(
agx::UInt32 groupId);
794 void disableCollisionsWithGroup(
agx::UInt32 groupId);
797 friend class
agx::InternalData;
813 agx::RigidBody * m_rigidBody;
823 agx::observer_ptr<
agx::RigidBody> m_originalBody;
843 return const_cast<Geometry *
>( this )->getShape();
867 return m_entity.state().enabled();
872 return m_entity.state().sensor();
875 inline bool Geometry::isSensorGeneratingContactData()
const
877 return !m_entity.state().booleanSensor();
882 return m_entity.sweepAndPruneIndex();
887 return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(),
id);
892 return CollisionGroupManager::hasGroup(m_entity.collisionGroupSet(), name);
897 return m_entity.collisionGroupSet();
902 m_entity.collisionGroupSet() = set;
917 m_entity.surfaceVelocity() = surfaceVelocity;
922 return m_entity.surfaceVelocity();
927 m_originalBody = body;
932 return m_originalBody.get() ? m_originalBody.get() : m_rigidBody;
937 return m_originalBody.get() ? m_originalBody.get() : m_rigidBody;
942 return m_entity.state().enabled();
956 return m_frame.get();
961 return m_frame.get();
966 return &m_entity.boundingAABB();
972 if ( !m_propertyContainer )
974 return m_propertyContainer;
979 return ( m_propertyContainer.
isValid() );
984 if ( !m_propertyContainer )
987 return m_propertyContainer;
992 return getSurfaceVelocity();
997 return m_msProperties;
1001 return m_msProperties;
1006 m_flags[ENABLE_SPLIT] = flag;
1010 return m_flags[ENABLE_SPLIT];
1015 m_flags[ENABLE_MERGE] = flag;
1020 return m_flags[ENABLE_MERGE];
1025 m_flags[FORCE_SPLIT_IN_PRE] = flag;
1030 return m_flags[FORCE_SPLIT_IN_PRE];
1037 return m_entity.transform();
1039 return m_frame->getMatrix();
1046 return m_entity.transform().getTranslate();
1048 return m_frame->getTranslate();
1054 return m_entity.transform().
getRotate();
1055 return m_frame->getRotate();
1065 return m_internalData;
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
agx::SymmetricPair< agx::Physics::GeometryPtr > GeometryPair
Specialized types of matrices for holding orthogonal transformation matrices.
agx::SetVector< agx::ref_ptr< agxCollide::Geometry > > GeometryRefSetVector
The agxTerrain namespace contains a 3D model for a dynamic deformable Terrain and related classes.
The rigid body class, combining a geometric model and a frame of reference.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT void addGroup(const agx::RigidBody *body, unsigned id)
For the specified body, add the collision group ID to its geometries.
agx::ref_ptr< Frame > FrameRef
ShapeChangeEvent shapeChangeEvent
Data storage for a collection of entity instances of a specified EntityModel.
Axis aligned bounding box implementation.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
Contains classes for low level data storage for AGX.
Class that is a container of named properties.
#define AGX_DECLARE_VECTOR_TYPES(type)
agx::ref_ptr< Material > MaterialRef
agx::HashSet< const Geometry * > GeometryHashSet
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
AffineMatrix4x4T< Real > AffineMatrix4x4
Book keeping of a body which can be merged with other bodies.
Specify MergeSplit properties for a Geometry.
agx::HashVector< const Geometry *, agx::observer_ptr< const Geometry > > GeometryHashVector
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.
The geometry representation used by the collision detection engine.
Representation of a name string.
Specialized type of matrices for holding symmetric positive definite matrices.
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
This class provides conversion services between Euler angles in any of the 24 conventions and corresp...
Inheritance with partial specialization due to bug with ref_ptr containers.
Pointer to a entity instance of type Physics.Geometry.
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
AGXPHYSICS_EXPORT void removeGroup(const agx::RigidBody *body, unsigned id)
For the specified body, remove the collision group ID to its geometries.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Collection of geometry group names and id's.
#define AGX_TYPE_BINDING(_Type, _Name)
void AGXPHYSICS_EXPORT init()
Initialize agx.
Main material class which acts as a holder of a Surface Material and a Bulk material.
agx::Event1< Geometry * > ShapeChangeEvent
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * transformAttribute
void getRotate(T &angle, T &x, T &y, T &z) const
Get the angle and vector components represented by the quaternion.
Referenced()
Default constructor.
CollisionGroupManager::GroupIdHash GroupSet
Deprecated: Only for backward compatibility.
The object defining a frame of reference and providing transformations operations.
Spawns new bodys inside a given volume.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Pointer to a entity instance of type Physics.CollisionGroupSet.
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * localTransformAttribute
AGXCORE_EXPORT EntityModel * getEntity(const agx::Path &path)
Get a entity with a specified path.