|
AGXDynamics
2.31.1.0
|
This class models a conveyor belt using surface velocity. More...
#include <SurfaceVelocityConveyorBelt.h>
Inheritance diagram for agxModel::SurfaceVelocityConveyorBelt:Public Types | |
| typedef agx::Event1< Geometry * > | ShapeChangeEvent |
| typedef agx::Vector< SurfaceVelocityConveyorBelt * > | SurfaceVelocityConveyorBeltPtrVector |
Public Member Functions | |
| SurfaceVelocityConveyorBelt (const agx::Vec3Vector &points) | |
| Constructor, based on list of points. More... | |
| void | addGroup (agx::UInt32 id, bool forceContactUpdate=false) |
Add the specified id to a vector of group id, this will make a geometry part of the group id. More... | |
| void | addGroup (const agx::Name &name, bool forceContactUpdate=false) |
Add the specified name to a vector of named group id, this will make a geometry part of the group name. More... | |
| 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 |
| agx::Vec3 | calculateCenterOfMassOffset () const |
| agx::SPDMatrix3x3 | calculateInertia (agx::Real mass) const |
| agx::Real | calculateMass () const |
| virtual agx::Vec3f | calculateSurfaceVelocity (const agxCollide::LocalContactPoint &point, size_t index) const override |
| Calculates the surface velocity based on the location of the contact point. More... | |
| agx::Real | calculateVolume () const |
| Geometry * | clone () const |
| This method will make a deep copy of the geometry, excluding membership in any RigidBody. More... | |
| bool | disableDebugRendering () |
| Disables the debug rendering. More... | |
| bool | enableDebugRendering (agxSDK::Simulation *sim) |
| Enables debug rendering of conveyor belt. More... | |
| const char * | getClassName () const override |
| bool | getEnable () const |
| Return whether the geometry should be used in intersection tests. More... | |
| bool | getEnableDebugRendering () const |
| Is debug rendering enabled? More... | |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::Int64 | getId () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Material * | getMaterial () |
| const agx::Material * | getMaterial () const |
| const agx::Name & | getName () const |
| Get the name. More... | |
| const agx::Vec3Vector & | getPoints () const |
| Returns the vector of points. More... | |
| int | getReferenceCount () const |
| agx::RigidBody * | getRigidBody () |
| const agx::RigidBody * | getRigidBody () const |
| agx::Real | getSpeed () const |
| Gets the speed of the conveyor belt. Negative speed is allowed and understood as the opposite direction. More... | |
| agxStream::StorageAgent * | getStorageAgent () const override |
| const agx::Vec3Vector & | getUnitDirs () const |
| Returns the vector of unit-length directions from point to point. More... | |
| agx::Uuid | getUuid () const |
| bool | hasGroup (agx::UInt32 id) const |
| This is performing a linear search among the collision group id for this Geometry. More... | |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isEnabled () const |
| Alias for getEnable Return whether the geometry should be used in intersection tests. More... | |
| bool | isFinished () const |
| bool | isSensor () const |
| Return true if geometry is a sensor. More... | |
| bool | isSensorGeneratingContactData () const |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | removeAllGroups (bool forceContactUpdate=false) |
| Remove all collision group ids. More... | |
| void | removeGroup (agx::UInt32 id, bool forceContactUpdate=false) |
| Remove a collision group id from the vector of group ids. More... | |
| void | removeGroup (const agx::Name &name, bool forceContactUpdate=false) |
| Remove a named collision group from the vector of named group ids. More... | |
| void | removeMaterial () |
| Remove the material from the geometry. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| void | setEnable (bool flag) |
| Enable/disable collision testing for geometry. 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 | setMaterial (agx::Material *material) |
| Set the material of the geometry. More... | |
| void | setName (const agx::Name &name) |
| Set the name of this Geometry. More... | |
| void | setSensor (bool flag, bool generateContactData=true) |
| Sets if the geometry should be a sensor. More... | |
| void | setSpeed (agx::Real speed) |
| Sets the speed of the conveyor belt. Negative speed is allowed and understood as the opposite direction. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| 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... | |
Static Public Member Functions | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static SurfaceVelocityConveyorBelt * | find (agxSDK::Simulation *simulation, const agx::Name &name) |
| This method will do a linear search in Simulation and return a pointer to the specified SurfaceVelocityConveyorBelt. More... | |
| static SurfaceVelocityConveyorBelt * | find (agxSDK::Simulation *simulation, const agx::Uuid &uuid) |
| This method will do a linear search in Simulation and return a pointer to the specified SurfaceVelocityConveyorBelt. More... | |
| static SurfaceVelocityConveyorBeltPtrVector | findAll (agxSDK::Simulation *simulation, const agx::Name &name) |
| This method will do a linear search in Simulation and return a vector with pointers to all matching SurfaceVelocityConveyorBelt's. More... | |
| static const char * | getConstructClassId () |
| 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 | |
| ShapeChangeEvent | shapeChangeEvent |
Protected Member Functions | |
| SurfaceVelocityConveyorBelt () | |
| virtual | ~SurfaceVelocityConveyorBelt () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | generateUuid () |
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... | |
Protected Attributes | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
for this geometry and return true if it can be found. | |||
| |||
| typedef CollisionGroupManager::GroupIdHash | GroupSet | ||
| Deprecated: Only for backward compatibility. More... | |||
| bool | hasGroup (const agx::Name &name) const | ||
| const agx::Physics::CollisionGroupSetPtr & | getGroupSet () const | ||
| const GroupSet & | getGroupIDs () const | ||
| void | setEnableCollisions (const Geometry *otherGeometry, bool flag) | ||
Specify whether otherGeometry is allowed to collide with this geometry. More... | |||
| void | setEnableCollisions (bool collide) | ||
| Should this geometry collide with any other geometries. More... | |||
| bool | getEnableCollisions (const Geometry *otherGeometry) const | ||
| bool | getEnableCollisions () const | ||
| bool | canCollide (const Geometry *otherGeometry) const | ||
| virtual const BoundingAABB * | getBoundingVolume () const | ||
| The bounding volume for the geometry is made large enough to fit all shape bounds. More... | |||
| agx::PropertyContainer * | getPropertyContainer () | ||
| const agx::PropertyContainer * | getPropertyContainer () const | ||
| bool | hasPropertyContainer () const | ||
| void | setPropertyContainer (agx::PropertyContainer *container) | ||
| Give this a new PropertyContainer. More... | |||
| Space * | getSpace () | ||
| const Space * | getSpace () const | ||
| agx::Referenced * | getCustomData () | ||
| const agx::Referenced * | getCustomData () const | ||
| void | setCustomData (agx::Referenced *data) | ||
| Store a ref_ptr to a user custom data class, which must be inherited from Referenced. More... | |||
| agx::RigidBody * | getOriginalBody () | ||
| This method is guaranteed to always return the same value as getRigidBody() if MergeSplit is not in use. More... | |||
| const agx::RigidBody * | getOriginalBody () const | ||
| This method is guaranteed to always return the same value as getRigidBody() if MergeSplit is not in use. More... | |||
| void | setSurfaceVelocity (const agx::Vec3f &surfaceVelocity) | ||
| Set the velocity of this geometry's surface in the geometry's local coordinate frame. More... | |||
| const agx::Vec3f & | getSurfaceVelocity () const | ||
| agx::UInt32 | getSweepAndPruneIndex () const | ||
| virtual void | updateBoundingVolume () | ||
| agx::Physics::GeometryPtr | getEntity () const | ||
| virtual void | shapeUpdated () | ||
| agxCollide::GroupIdCollection | findGroupIdCollection () const | ||
| agx::Frame * | getFrame () | ||
| const agx::Frame * | getFrame () const | ||
| void | setTransform (const agx::AffineMatrix4x4 &matrix) | ||
| Set the transform of the geometry. More... | |||
| const agx::AffineMatrix4x4 & | getLocalTransform () const | ||
| void | setLocalTransform (const agx::AffineMatrix4x4 &matrix) | ||
| Assign the local transformation matrix for this geometry, ignoring any eventual parent transformation. More... | |||
| agx::Vec3 | getLocalPosition () const | ||
| void | setLocalPosition (const agx::Vec3 &p) | ||
| Set the position of the geometry relative to its frame's parent frame. More... | |||
| void | setLocalPosition (agx::Real x, agx::Real y, agx::Real z) | ||
| Set the position of the geometry relative to its frame's parent frame. More... | |||
| void | setRotation (const agx::Quat &q) | ||
| Set the rotation of the geometry relative to world frame. More... | |||
| void | setRotation (const agx::EulerAngles &e) | ||
| Set the rotation of the geometry relative to world frame. More... | |||
| void | setRotation (const agx::OrthoMatrix3x3 &m) | ||
| Set the rotation of the geometry relative to world frame. More... | |||
| agx::Quat | getLocalRotation () const | ||
| void | setLocalRotation (const agx::Quat &q) | ||
| Set the rotation of the geometry relative to its frame's parent frame. More... | |||
| void | setLocalRotation (const agx::EulerAngles &e) | ||
| Set the rotation of the geometry relative to its frame's parent frame. More... | |||
| agx::Frame * | getParentFrame () | ||
| const agx::Frame * | getParentFrame () const | ||
| bool | setParentFrame (agx::Frame *frame) | ||
| Set the parent frame of this geometry's frame. More... | |||
| void | setPosition (const agx::Vec3 &p) | ||
| Set the position of the frame in world coordinates. More... | |||
| void | setPosition (agx::Real x, agx::Real y, agx::Real z) | ||
| Set the position of the frame in world coordinates. More... | |||
| agx::AffineMatrix4x4 | getTransform () const | ||
| agx::Vec3 | getPosition () const | ||
| agx::Quat | getRotation () const | ||
| bool | add (Shape *shape, const agx::AffineMatrix4x4 &localTransform=agx::AffineMatrix4x4()) | ||
| Add a shape to the geometry. More... | |||
| bool | remove (Shape *shape) | ||
| Remove a shape from the geometry. More... | |||
| bool | remove (size_t index) | ||
| Remove the i:th shape from the Geometry. More... | |||
| const ShapeRefVector & | getShapes () const | ||
| bool | replace (size_t shapeIndex, Shape *newShape, const agx::AffineMatrix4x4 &localTransform=agx::AffineMatrix4x4()) | ||
| Replace a shape in the geometry. More... | |||
| bool | replace (Shape *oldShape, Shape *newShape, const agx::AffineMatrix4x4 &localTransform=agx::AffineMatrix4x4()) | ||
| bool | replaceShapeTransform (size_t shapeIndex, const agx::AffineMatrix4x4 &newTransform) | ||
| Replace the shape transform for the specified shapeIndex. More... | |||
| bool | replaceShapeTransform (Shape *shape, const agx::AffineMatrix4x4 &newTransform) | ||
| Replace the shape transform for the specified shape. More... | |||
| MergeSplitProperties & | getMergeSplitProperties () | ||
| const MergeSplitProperties & | getMergeSplitProperties () const | ||
This class models a conveyor belt using surface velocity.
Only the surface behavior of an ideal conveyor belt is modeled here, not inner elasticity, motor torque, ... agxCollide::Geometry's surface velocity has the limitation that it is only defined in one direction (relative to the geometry). SurfaceVelocityConveyorBelt extends this behavior by taking a vector of points which are supposed to represent connected line segments or a closed loop along the conveyor belt (e.g. the mid line). Surface velocity is adapted after each point, pointing to the next one. The last point does not automatically point to the first one - in order to get a closed loop, the first point has to be added at the end again explicitly.
SurfaceVelocityConveyorBelt inherits from agxCollide::Geometry and can be used instead of one.
Definition at line 59 of file SurfaceVelocityConveyorBelt.h.
|
inherited |
Deprecated: Only for backward compatibility.
Definition at line 311 of file Geometry.h.
|
inherited |
Definition at line 91 of file Geometry.h.
| typedef agx::Vector<SurfaceVelocityConveyorBelt *> agxModel::SurfaceVelocityConveyorBelt::SurfaceVelocityConveyorBeltPtrVector |
Definition at line 63 of file SurfaceVelocityConveyorBelt.h.
| agxModel::SurfaceVelocityConveyorBelt::SurfaceVelocityConveyorBelt | ( | const agx::Vec3Vector & | points | ) |
Constructor, based on list of points.
The points are supposed to represent connected line segments or a closed loop along the conveyor belt (e.g. the mid line).
|
protectedvirtual |
|
protected |
|
inherited |
Add a shape to the geometry.
Will create an implicit shape group if needed.
| shape | The shape to add. |
| localTransform | The shape transformation in local geometry coordinates. |
|
inherited |
Add the specified id to a vector of group id, this will make a geometry part of the group id.
By default a geometry is not part of any group.
This can be used to partition the simulation where some groups cannot collide with other groups. Which groups can collide or not is determined by Space and can be set using the method agxCollide::Space::setEnablePair(id1,id2);
This does not remove current contacts. To do this, forceContactUpdate should be set to true. This can be an expensive operation, so if repeated many times and issues might occur, it could be better to do this manually using Space::enableForContacts and Space::disableForContacts.
|
inherited |
Add the specified name to a vector of named group id, this will make a geometry part of the group name.
By default a geometry is not part of any group.
This can be used to partition the simulation where some groups cannot collide with other groups. Which groups can collide or not is determined by Space and can be set using the method agxCollide::Space::setEnablePair(name1,name2);
This does not remove current contacts. To do this, forceContactUpdate should be set to true. This can be an expensive operation, so if repeated many times and issues might occur, it could be better to do this manually using Space::enableForContacts and Space::disableForContacts.
|
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 |
|
inherited |
|
inherited |
|
inherited |
|
overridevirtual |
Calculates the surface velocity based on the location of the contact point.
Inherited from agxCollide::Geometry.
| point | - ContactPoint in world coordinates that can be used to calculate the surface velocity. |
| index | - Which geometry in the contact is this one? Valid values: 0 or 1. The normal in 'point' points in the direction that 0 has to move to leave the contact with 0. |
Reimplemented from agxCollide::Geometry.
|
inherited |
|
inherited |
this geometry CAN collide with otherGeometry.Following has to be true to make this method return true.
if they belong to a group pair that is not disabled g1 != g2. collisions for g1 is not disabled against g2 (g1->setEnableCollisions(g2, false) if they both have a body, that it is not the same body.
|
inherited |
This method will make a deep copy of the geometry, excluding membership in any RigidBody.
|
inlinestatic |
Definition at line 145 of file SurfaceVelocityConveyorBelt.h.
|
inlinestatic |
Definition at line 145 of file SurfaceVelocityConveyorBelt.h.
|
protectedinherited |
| bool agxModel::SurfaceVelocityConveyorBelt::disableDebugRendering | ( | ) |
Disables the debug rendering.
| bool agxModel::SurfaceVelocityConveyorBelt::enableDebugRendering | ( | agxSDK::Simulation * | sim | ) |
Enables debug rendering of conveyor belt.
Comes at a computational cost (mainly due to special case rendering), recommended only for debugging. Will be updated each simulation step (so moving the conveyor belt while having a paused simulation will not update graphics; only the simulation step will update the graphics).
| sim | The simulation that will trigger the graphics updates. |
|
static |
This method will do a linear search in Simulation and return a pointer to the specified SurfaceVelocityConveyorBelt.
| simulation | - The instance of the simulation in which we are searching |
| name | - name of the SurfaceVelocityConveyorBelt we are searching for |
|
static |
This method will do a linear search in Simulation and return a pointer to the specified SurfaceVelocityConveyorBelt.
| simulation | - The instance of the simulation in which we are searching |
| uuid | - uuid of the SurfaceVelocityConveyorBelt we are searching for |
|
static |
This method will do a linear search in Simulation and return a vector with pointers to all matching SurfaceVelocityConveyorBelt's.
| simulation | - The instance of the simulation in which we are searching |
| name | - name of the SurfaceVelocityConveyorBelt's we are searching for |
|
inherited |
|
protectedinherited |
|
virtualinherited |
The bounding volume for the geometry is made large enough to fit all shape bounds.
Definition at line 941 of file Geometry.h.
|
inlineoverridevirtual |
Reimplemented from agxCollide::Geometry.
Definition at line 145 of file SurfaceVelocityConveyorBelt.h.
|
inlinestatic |
Definition at line 145 of file SurfaceVelocityConveyorBelt.h.
|
inherited |
|
inherited |
|
staticprotectedinherited |
|
inherited |
Return whether the geometry should be used in intersection tests.
This can be set using the setEnable() method.
Definition at line 917 of file Geometry.h.
|
inherited |
geometry.
|
inherited |
| bool agxModel::SurfaceVelocityConveyorBelt::getEnableDebugRendering | ( | ) | const |
Is debug rendering enabled?
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
inlineinherited |
Definition at line 828 of file Geometry.h.
Referenced by agxCollide::GeometryContact::geometry().
|
inherited |
Definition at line 931 of file Geometry.h.
|
inherited |
Definition at line 936 of file Geometry.h.
|
inherited |
|
inherited |
Definition at line 877 of file Geometry.h.
|
inherited |
Definition at line 842 of file Geometry.h.
|
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 |
|
inherited |
|
inherited |
|
inherited |
Definition at line 887 of file Geometry.h.
|
inherited |
Definition at line 882 of file Geometry.h.
|
inherited |
Definition at line 972 of file Geometry.h.
|
inherited |
Definition at line 976 of file Geometry.h.
|
inherited |
Get the name.
|
inherited |
This method is guaranteed to always return the same value as getRigidBody() if MergeSplit is not in use.
Definition at line 907 of file Geometry.h.
|
inherited |
This method is guaranteed to always return the same value as getRigidBody() if MergeSplit is not in use.
Definition at line 912 of file Geometry.h.
|
inherited |
|
inherited |
| const agx::Vec3Vector& agxModel::SurfaceVelocityConveyorBelt::getPoints | ( | ) | const |
Returns the vector of points.
Assumed to be connected line segments or a closed loop along the conveyor belt (e.g. the mid line). Will not change during conveyor belt life time.
|
inherited |
Definition at line 1020 of file Geometry.h.
|
inherited |
Definition at line 947 of file Geometry.h.
Referenced by agxSDK::PropertyFilter::match().
|
inherited |
Definition at line 959 of file Geometry.h.
|
inherited |
|
inherited |
Definition at line 832 of file Geometry.h.
Referenced by agxCollide::GeometryContact::calculateRelativeVelocity(), agxWire::getNode(), agxSDK::MergeSplitHandler::getProperties(), agxCollide::LocalGeometryContact::init(), agxCollide::LocalGeometryContact::LocalGeometryContact(), agxSDK::UuidHashCollisionFilter::match(), agxOSG::FilterContactByName::match(), agxWire::LinkObjectStabilizingAlgorithm::match(), agxSDK::matchFilter(), agxWire::LinkObjectStabilizingAlgorithm::matchOther(), and agxCollide::GeometryContact::rigidBody().
|
inherited |
Definition at line 837 of file Geometry.h.
|
inherited |
Definition at line 1028 of file Geometry.h.
References AGX_FORCE_INLINE, agxData::getEntity(), agx::QuatT< T >::getRotate(), agx::Physics::GeometryModel::localTransformAttribute, and agx::Physics::GeometryModel::transformAttribute.
|
inherited |
Referenced by agxWire::transformPointToShape(), agxWire::transformPointToWorld(), agxWire::transformVectorToShape(), and agxWire::transformVectorToWorld().
|
inherited |
Definition at line 922 of file Geometry.h.
|
inherited |
Definition at line 926 of file Geometry.h.
| agx::Real agxModel::SurfaceVelocityConveyorBelt::getSpeed | ( | ) | const |
Gets the speed of the conveyor belt. Negative speed is allowed and understood as the opposite direction.
|
inlineoverridevirtual |
Reimplemented from agxCollide::Geometry.
Definition at line 145 of file SurfaceVelocityConveyorBelt.h.
|
inherited |
Definition at line 897 of file Geometry.h.
References AGX_FORCE_INLINE.
|
inherited |
Definition at line 862 of file Geometry.h.
|
inherited |
Definition at line 1011 of file Geometry.h.
| const agx::Vec3Vector& agxModel::SurfaceVelocityConveyorBelt::getUnitDirs | ( | ) | const |
Returns the vector of unit-length directions from point to point.
Size will be one less than size of getPoints() or zero. Assumed to point within connected line segments or a closed loop along the conveyor belt (e.g. the mid line). Will not change during conveyor belt life time.
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
|
inherited |
This is performing a linear search among the collision group id for this Geometry.
| id | - The group id we are looking for. |
id Definition at line 867 of file Geometry.h.
Referenced by agxSDK::CollisionGroupFilter::hasMemberGroup().
|
inherited |
Definition at line 872 of file Geometry.h.
|
inherited |
Definition at line 954 of file Geometry.h.
References agx::ref_ptr< T >::isValid().
Referenced by agxSDK::PropertyFilter::match().
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
inherited |
Alias for getEnable Return whether the geometry should be used in intersection tests.
This can be set using the setEnable() method.
Definition at line 847 of file Geometry.h.
Referenced by agxCollide::Space::reportOverlap().
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
|
inherited |
Return true if geometry is a sensor.
Definition at line 852 of file Geometry.h.
|
inlineinherited |
Definition at line 857 of file Geometry.h.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
|
inherited |
Remove a shape from the geometry.
|
inherited |
Remove the i:th shape from the Geometry.
|
inherited |
Remove all collision group ids.
| forceContactUpdate | - Should current overlaps between disabled groups be found and create impacts. |
|
inherited |
Remove a collision group id from the vector of group ids.
| id | - The group id to be removed |
| forceContactUpdate | - Should current overlaps between disabled groups be found and create impacts. |
|
inherited |
Remove a named collision group from the vector of named group ids.
| name | - The group id to be removed |
| forceContactUpdate | - Should current overlaps between disabled groups be found and create impacts. |
|
inherited |
Remove the material from the geometry.
|
inherited |
Replace a shape in the geometry.
|
inherited |
|
inherited |
Replace the shape transform for the specified shapeIndex.
| shapeIndex | - Index of the transform that should be replaced. Valid values are 0..numShapes-1 |
| newTransform | - The new transform |
shapeIndex is valid.
|
inherited |
Replace the shape transform for the specified shape.
| shape | - The shape for which the transform should be replaced. |
| newTransform | - The new transform |
shape is valid.
|
overridevirtual |
Reimplemented from agxCollide::Geometry.
|
inherited |
Store a ref_ptr to a user custom data class, which must be inherited from Referenced.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inherited |
Enable/disable collision testing for geometry.
A disabled geometry does not render in debug rendering or osg.
|
inherited |
Specify whether otherGeometry is allowed to collide with this geometry.
|
inherited |
Should this geometry collide with any other geometries.
Disabling this still means that it will be part of MassProperty calculations if it belongs to a rigid body.
| collide | - If false this geometry will not generate any contacts with any other geometry |
|
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.
Set the position of the geometry relative to its frame's parent frame.
| p | - local translate of geometry as a 3D vector |
Set the position of the geometry relative to its frame's parent frame.
| x | - local x translate |
| y | - local y translate |
| z | - local z translate |
Set the rotation of the geometry relative to its frame's parent frame.
| q | - rotation given as a quaternion |
|
inherited |
Set the rotation of the geometry relative to its frame's parent frame.
| e | - rotation given as Euler angles |
|
inherited |
Assign the local transformation matrix for this geometry, ignoring any eventual parent transformation.
| matrix | - transformation matrix relative to parent transform for the geometry's frame |
|
inherited |
Set the material of the geometry.
Set the name of this Geometry.
|
inherited |
Set the parent frame of this geometry's frame.
This means that getLocalTranslate, getLocalRotate, getLocalTransform will be given in the parents coordinate frame. I.e., this frame's transformation will be concatenated with the parents.
| frame | - new parent frame, 0 to remove parent |
Set the position of the frame in world coordinates.
| p | - desired position in world coordinates. |
Set the position of the frame in world coordinates.
| x | - desired x-coordinate in world frame |
| y | - desired y-coordinate in world frame |
| z | - desired z-coordinate in world frame |
|
inherited |
Give this a new PropertyContainer.
| container | - The new PropertyContainer of this instance. |
Set the rotation of the geometry relative to world frame.
| q | - rotation given as a quaternion |
|
inherited |
Set the rotation of the geometry relative to world frame.
| e | - rotation given as Euler angles |
|
inherited |
Set the rotation of the geometry relative to world frame.
| m | - rotation given as an orthogonal transformation matrix |
|
inherited |
Sets if the geometry should be a sensor.
Sensors are included in collision detection but the resulting contacts are not passed to the solver.
Contact data generation for sensors is disabled by passing false into generateContactData. GeometryContacts are still created, but they will contain no contact points. This flag has no effect while isSensor returns false. Support for disabling contact data generation is currently only supported for some shape type pairs. Other shape type pairs will continue to get full contact data.
| flag | - True to make this Geometry a sensor. |
| generateContactData | - True if contact data is to be generated, false otherwise. False only supported for some shape type pairs. |
Sets the speed of the conveyor belt. Negative speed is allowed and understood as the opposite direction.
|
inherited |
Set the velocity of this geometry's surface in the geometry's local coordinate frame.
If this velocity is non-zero the constraints will try to achieve the relative velocity between the objects (in the friction plane) to be the wanted surface velocity.
| surfaceVelocity | - velocity given in geometry's local coordinate frame |
Definition at line 892 of file Geometry.h.
|
inherited |
Set the transform of the geometry.
Its frame will move to the specified transform, which is given in world coordintaes.
| matrix | - desired transform for the frame in world coordinates. |
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!
|
virtualinherited |
|
overridevirtual |
Reimplemented from agxCollide::Geometry.
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.
|
virtualinherited |
|
staticinherited |
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
inherited |
Definition at line 92 of file Geometry.h.