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.
 

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