chrono::HeightColorCallback Class Reference

Description

Predefined particle cloud dynamic coloring based on particle height.

#include <ChParticleCloud.h>

Inheritance diagram for chrono::HeightColorCallback:
Collaboration diagram for chrono::HeightColorCallback:

Public Member Functions

 HeightColorCallback (double hmin, double hmax, const ChVector3d &up=ChVector3d(0, 0, 1))
 
 HeightColorCallback (const ChColor &base_color, double hmin, double hmax, const ChVector3d &up=ChVector3d(0, 0, 1))
 
virtual ChColor get (unsigned int n, const ChParticleCloud &cloud) const override
 Return the color for the given particle.
 

Member Function Documentation

◆ get()

virtual ChColor chrono::HeightColorCallback::get ( unsigned int n,
const ChParticleCloud & cloud ) const
inlineoverridevirtual

Return the color for the given particle.

Implements chrono::ChParticleCloud::ColorCallback.


The documentation for this class was generated from the following file:
  • C:/M/B/src/chrono-9.0.1/src/chrono/physics/ChParticleCloud.h