Classes for adding user data (such as rendering shapes, reference to files) to ChPhysicsItem objects.

#include <ChAsset.h>

Inheritance diagram for chrono::ChAsset:

Public Member Functions

virtual void Update (ChPhysicsItem *updater, const ChCoordsys<> &coords)
 This is called by the owner, i.e. More...
virtual void ArchiveOUT (ChArchiveOut &marchive)
 Method to allow serialization of transient data to archives.
virtual void ArchiveIN (ChArchiveIn &marchive)
 Method to allow de serialization of transient data from archives.

Member Function Documentation

virtual void chrono::ChAsset::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 in chrono::fea::ChVisualizationFEAmesh, chrono::irrlicht::ChIrrNodeAsset, chrono::ChAssetLevel, chrono::ChEmitterAsset, and chrono::ChPointPointDrawing.