chrono::irrlicht::ChIrrNodeAsset Class Reference

Description

Class for adding Irrlicht visualization to a ChPhysicsItem.

This must be added as an 'asset' to the item (ex., a ChBody).

#include <ChIrrNodeAsset.h>

Inheritance diagram for chrono::irrlicht::ChIrrNodeAsset:
Collaboration diagram for chrono::irrlicht::ChIrrNodeAsset:

Public Member Functions

irr::scene::ISceneNode * GetIrrlichtNode ()
 
void Bind (std::shared_ptr< ChPhysicsItem > aitem, ChIrrAppInterface &aapp)
 
void UnBind ()
 
virtual void Update (ChPhysicsItem *updater, const ChCoordsys<> &coords)
 This is called by the owner, i.e. More...
 
- Public Member Functions inherited from chrono::ChAsset
virtual void ArchiveOUT (ChArchiveOut &marchive)
 
virtual void ArchiveIN (ChArchiveIn &marchive)
 Method to allow de serialization of transient data from archives.
 

Protected Attributes

ChIrrNodemnode
 

Member Function Documentation

virtual void chrono::irrlicht::ChIrrNodeAsset::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 from chrono::ChAsset.