chrono::ChAssetLevel Class Reference

Description

Class for grouping assets in a level.

The level is like a 'subdirectory'. A level can contain assets, as well as further levels (but avoid circular loops!) A level can have custom rotation and translation respect its parent level.

#include <ChAssetLevel.h>

Inheritance diagram for chrono::ChAssetLevel:
Collaboration diagram for chrono::ChAssetLevel:

Public Member Functions

ChFrameGetFrame ()
 Access the coordinate system information of the level, for setting/getting its position and rotation respect to its parent.
 
std::vector< std::shared_ptr< ChAsset > > & GetAssets ()
 Access to the list of children assets.
 
std::shared_ptr< ChAssetGetAssetN (unsigned int num)
 Get the Nth asset in list.
 
void AddAsset (std::shared_ptr< ChAsset > masset)
 Add an asset to this level.
 
virtual void Update (ChPhysicsItem *updater, const ChCoordsys<> &coords) override
 Updates all children assets, if any. More...
 
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.
 

Protected Attributes

ChFrame levelframe
 
std::vector< std::shared_ptr< ChAsset > > assets
 

Member Function Documentation

◆ Update()

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

Updates all children assets, if any.

Note that when calling Update() on children assets, their 'coords' will be the result of concatenating this frame csys and 'coords'.

Reimplemented from chrono::ChAsset.

Reimplemented in chrono::fea::ChVisualizationFEAmesh.


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