Base class for assets that define something about visualization (rendering, post processing, etc.) It contains basic information about position, color, and visibility.

#include <ChVisualization.h>

Inheritance diagram for chrono::ChVisualization:
Collaboration diagram for chrono::ChVisualization:

Public Member Functions

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)
- Public Member Functions inherited from chrono::ChAsset
virtual void Update (ChPhysicsItem *updater, const ChCoordsys<> &coords)
 This is called by the owner, i.e. More...

Public Attributes

ChVector Pos
ChMatrix33 Rot
 Position of Asset.

Protected Member Functions

 ChVisualization ()
 Rotation of Asset. More...
virtual void ArchiveOUT (ChArchiveOut &marchive)
virtual void ArchiveIN (ChArchiveIn &marchive)
 Method to allow de serialization of transient data from archives.

Protected Attributes

bool visible
ChColor color
float fading

Constructor & Destructor Documentation

chrono::ChVisualization::ChVisualization ( )

Rotation of Asset.

Constructor. Protected because ChVisualization should not be constructed directly.

Member Function Documentation

const ChColor& chrono::ChVisualization::GetColor ( ) const

Get/Set the color of the surface.

This information could be used by visualization postprocessing.

float chrono::ChVisualization::GetFading ( ) const

Get/Set the fading amount, 0 <= fading <= 1.

If fading = 0, no transparency of surface, If fading = 1, surface is completely transparent.