chrono::ChCollisionShapeEllipsoid Class Reference

Description

Collision ellipsoid shape.

#include <ChCollisionShapeEllipsoid.h>

Inheritance diagram for chrono::ChCollisionShapeEllipsoid:
Collaboration diagram for chrono::ChCollisionShapeEllipsoid:

Public Member Functions

 ChCollisionShapeEllipsoid (std::shared_ptr< ChContactMaterial > material, double axis_x, double axis_y, double axis_z)
 
 ChCollisionShapeEllipsoid (std::shared_ptr< ChContactMaterial > material, const ChVector3d &axes)
 
 ChCollisionShapeEllipsoid (std::shared_ptr< ChContactMaterial > material, const ChEllipsoid &ellipsoid)
 
ChEllipsoid & GetGeometry ()
 
const ChVector3d & GetSemiaxes () const
 Get the ellipsoid semiaxes.
 
ChVector3d GetAxes () const
 Get the ellipsoid axes.
 
virtual ChAABB GetBoundingBox () const override
 Get the shape bounding box.
 
virtual void ArchiveOut (ChArchiveOut &archive_out) override
 Method to allow serialization of transient data to archives.
 
virtual void ArchiveIn (ChArchiveIn &archive_in) override
 Method to allow de-serialization of transient data from archives.
 
- Public Member Functions inherited from chrono::ChCollisionShape
 ChCollisionShape (Type type=Type::UNKNOWN_SHAPE)
 
 ChCollisionShape (Type type, std::shared_ptr< ChContactMaterial > material)
 
Type GetType () const
 
std::shared_ptr< ChContactMaterial > GetMaterial () const
 
ChContactMethod GetContactMethod () const
 
void SetMutable (bool val)
 Set this collision shape as modifiable (default: false). More...
 
bool IsMutable () const
 Return true if the collision shape is marked as modifiable.
 
void SetParentShape (std::shared_ptr< ChCollisionShape > parent)
 Set the parent shape. More...
 
ChCollisionShape * GetParentShape () const
 Get the parent shape. More...
 

Additional Inherited Members

- Public Types inherited from chrono::ChCollisionShape
enum  Type {
  SPHERE, ELLIPSOID, BOX, ROUNDEDBOX,
  CYLINDER, CYLSHELL, ROUNDEDCYL, CAPSULE,
  CONVEXHULL, TRIANGLEMESH, BARREL, POINT,
  SEGMENT, TRIANGLE, CONNECTEDTRIANGLE, CONE,
  TETRAHEDRON, PATH2D, SEGMENT2D, ARC2D,
  UNKNOWN_SHAPE
}
 Supported collision shape types.
 
- Static Public Member Functions inherited from chrono::ChCollisionShape
static std::string GetTypeAsString (Type type)
 Return a string with the name of the given shape type (mainly for diagnostic messages).
 
static void ReportUnsupported (Type type, const std::string &backend)
 Report that a collision system cannot process the shape of given type. More...
 
- Protected Attributes inherited from chrono::ChCollisionShape
Type m_type
 type of collision shape
 
bool is_mutable = false
 flag indicating whether the shape is rigid or deformable
 
std::shared_ptr< ChContactMaterial > m_material = nullptr
 surface contact material
 
ChCollisionShape * m_parent = nullptr
 parent collision shape (if part of compound)
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/collision/ChCollisionShapeEllipsoid.h
  • /builds/uwsbel/chrono/src/chrono/collision/ChCollisionShapeEllipsoid.cpp