Public Member Functions |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
chrono::vehicle::RigidTerrain::Patch Class Referenceabstract
Description
Definition of a patch in a rigid terrain model.
#include <RigidTerrain.h>
Public Member Functions | |
| void | SetColor (const ChColor &color) |
| Set visualization color. | |
| void | SetTexture (const std::string &filename, float scale_x=1, float scale_y=1) |
| Set texture properties. More... | |
| std::shared_ptr< ChBody > | GetGroundBody () const |
| Return a handle to the ground body. | |
| virtual void | Initialize ()=0 |
Protected Member Functions | |
| virtual bool | FindPoint (const ChVector3d &loc, double &height, ChVector3d &normal) const =0 |
| virtual void | ExportMeshPovray (const std::string &out_dir, bool smoothed=false) |
| virtual void | ExportMeshWavefront (const std::string &out_dir) |
Protected Attributes | |
| PatchType | m_type |
| type of this patch | |
| std::shared_ptr< ChBody > | m_body |
| associated body | |
| float | m_friction |
| coefficient of friction | |
| double | m_radius |
| bounding sphere radius | |
| bool | m_visualize |
| std::shared_ptr< ChVisualMaterial > | m_vis_mat |
Friends | |
| class | RigidTerrain |
Member Function Documentation
◆ SetTexture()
| void chrono::vehicle::RigidTerrain::Patch::SetTexture | ( | const std::string & | filename, |
| float | scale_x = 1, |
||
| float | scale_y = 1 |
||
| ) |
Set texture properties.
- Parameters
-
[in] filename texture filename [in] scale_x texture scale in X [in] scale_y texture scale in Y
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_vehicle/terrain/RigidTerrain.h
- /builds/uwsbel/chrono/src/chrono_vehicle/terrain/RigidTerrain.cpp