chrono::particlefactory::ChRandomShapeCreator::AddBodyCallback Class Referenceabstract

Description

Class to be used as a callback interface for some user-defined action to be taken each time a body is generated and added to the system.

#include <ChRandomShapeCreator.h>

Public Member Functions

virtual void OnAddBody (std::shared_ptr< ChBody > mbody, ChCoordsys<> mcoords, ChRandomShapeCreator &mcreator)=0
 Callback used to process bodies as they are created and added to the system. More...
 

Member Function Documentation

◆ OnAddBody()

virtual void chrono::particlefactory::ChRandomShapeCreator::AddBodyCallback::OnAddBody ( std::shared_ptr< ChBody mbody,
ChCoordsys<>  mcoords,
ChRandomShapeCreator mcreator 
)
pure virtual

Callback used to process bodies as they are created and added to the system.

A derived class must implement this function. It can be used to modify the specified body (e.g., add optional assets, adjust material properties, etc)


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/particlefactory/ChRandomShapeCreator.h