chrono::ChAsset Class Reference

Description

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

User can inherit his classes for custom assets from this class.

#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)
 
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 
)
virtual

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::ChAssetLevel, chrono::irrlicht::ChIrrNodeAsset, chrono::ChEmitterAsset, and chrono::ChPointPointDrawing.