chrono::ChMaterial Class Reference
Description
Visualization material properties.
#include <ChMaterial.h>
Collaboration diagram for chrono::ChMaterial:

Public Types | |
| enum | ChMaterialType { CH_MATERIAL_DIFFUSE, CH_MATERIAL_PHONG, CH_MATERIAL_CONDUCTOR, CH_MATERIAL_PLASTIC } |
Public Member Functions | |
| bool | IsVisible () const |
| void | SetVisible (bool mv) |
| const ChColor & | GetColor () const |
| Get the color of the surface. More... | |
| void | SetColor (const ChColor &mc) |
| Set the color of the surface. More... | |
| float | GetFading () const |
| Get the fading amount, 0..1. More... | |
| void | SetFading (const float mc) |
| Set the fading amount, 0..1. More... | |
| void | SetType (const ChMaterialType type) |
| Set the material type. | |
| void | SetOption (const std::string &type, const std::string ¶meter, const std::string &value) |
| Set material properties. | |
| virtual void | ArchiveOUT (ChArchiveOut &marchive) |
| Method to allow serialization of transient data to archives. | |
| virtual void | ArchiveIN (ChArchiveIn &marchive) |
| Method to allow de serialization of transient data from archives. | |
Public Attributes | |
| ChColor | color |
| material color | |
| float | fading |
| transparency level | |
| ChMaterialType | material_type |
| material type | |
| bool | visible |
| true if material is visible | |
Member Function Documentation
◆ GetColor()
|
inline |
Get the color of the surface.
This information could be used by visualization postprocessing.
◆ GetFading()
|
inline |
Get the fading amount, 0..1.
If =0, no transparency of surface, it =1 surface is completely transparent.
◆ SetColor()
|
inline |
Set the color of the surface.
This information could be used by visualization postprocessing.
◆ SetFading()
|
inline |
Set the fading amount, 0..1.
If =0, no transparency of surface, it =1 surface is completely transparent.
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono/assets/ChMaterial.h