chrono::ChPointPointDrawing Class Referenceabstract


Base class for visualization of some deformable line shape between two moving points related to the parent ChPhysicsItem.

(at this point, only ChLink and its derivatives are supported.) NOTE: An instance of this class should not be shared among multiple ChPhysicsItem instances. Otherwise drawing may broken since each physics item will try to update geometry of the line and causes race conditions.

#include <ChPointPointDrawing.h>

Inheritance diagram for chrono::ChPointPointDrawing:
Collaboration diagram for chrono::ChPointPointDrawing:

Public Member Functions

virtual void Update (ChPhysicsItem *updater, const ChCoordsys<> &coords) override
 This is called by the owner, i.e. More...
- Public Member Functions inherited from chrono::ChLineShape
 ChLineShape (std::shared_ptr< geometry::ChLine > &mline)
std::shared_ptr< geometry::ChLineGetLineGeometry ()
void SetLineGeometry (std::shared_ptr< geometry::ChLine > mline)
const std::string & GetName () const
void SetName (const std::string &mname)
virtual void ArchiveOUT (ChArchiveOut &marchive)
virtual void ArchiveIN (ChArchiveIn &marchive)
 Method to allow de serialization of transient data from archives.
- Public Member Functions inherited from chrono::ChVisualization
bool IsVisible () const
 Get/Set visible status flag.
void SetVisible (bool mv)
const ChColorGetColor () const
 Get/Set the color of the surface. More...
void SetColor (const ChColor &mc)
float GetFading () const
 Get/Set the fading amount, 0 <= fading <= 1. More...
void SetFading (const float mc)

Additional Inherited Members

- Public Attributes inherited from chrono::ChVisualization
ChVector Pos
ChMatrix33 Rot
 Position of Asset.
- Protected Member Functions inherited from chrono::ChVisualization
 ChVisualization ()
 Rotation of Asset. More...
- Protected Attributes inherited from chrono::ChLineShape
std::shared_ptr< geometry::ChLinegline
std::string name
- Protected Attributes inherited from chrono::ChVisualization
bool visible
ChColor color
float fading

Member Function Documentation

void chrono::ChPointPointDrawing::Update ( ChPhysicsItem updater,
const ChCoordsys<> &  coords 

This is called by the owner, i.e.

a ChPhysicsItem. Note that the ChAssets can be shared between owners, so an asset might receive different updates from different 'updater's each with different 'coords'.

Reimplemented from chrono::ChAsset.