chrono::ChPointPointDrawing Class Referenceabstract

Description

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 ()
 Access the line geometry.
 
void SetLineGeometry (std::shared_ptr< geometry::ChLine > mline)
 Set the line geometry.
 
const std::string & GetName () const
 
void SetName (const std::string &mname)
 
unsigned int GetNumRenderPoints () const
 
void SetNumRenderPoints (unsigned int n)
 
virtual void ArchiveOUT (ChArchiveOut &marchive) override
 Method to allow serialization of transient data to archives.
 
virtual void ArchiveIN (ChArchiveIn &marchive) override
 Method to allow de-serialization of transient data from archives.
 
- Public Member Functions inherited from chrono::ChVisualization
void SetVisible (bool mv)
 Set this visualization asset as visible.
 
bool IsVisible () const
 Return true if the asset is set as visible.
 
void SetColor (const ChColor &mc)
 Set the color of the surface (default: white). More...
 
const ChColorGetColor () const
 Return the color assigned to this asset.
 
void SetFading (const float mc)
 Set the fading level, a value in [0,1] (default: 0). More...
 
float GetFading () const
 Get the fading level.
 
void SetStatic (bool val)
 Set this visualization asset as static (default: false). More...
 
bool IsStatic () const
 Return true if the visualization asset is marked as static.
 

Additional Inherited Members

- Public Attributes inherited from chrono::ChVisualization
ChVector Pos
 Position of Asset.
 
ChMatrix33 Rot
 Rotation of Asset.
 
- Protected Attributes inherited from chrono::ChLineShape
std::shared_ptr< geometry::ChLinegline
 underlying line geometry
 
std::string name
 asset name
 
unsigned int npoints
 number of points evaluated when rendering
 
- Protected Attributes inherited from chrono::ChVisualization
bool visible
 
bool is_static
 
ChColor color
 
float fading
 

Member Function Documentation

◆ Update()

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

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.


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