chrono::ChSurfaceShape Class Reference
Description
Class for referencing a ChSurface u,v, parametric surface that can be visualized in some way.
#include <ChSurfaceShape.h>
Inheritance diagram for chrono::ChSurfaceShape:
Collaboration diagram for chrono::ChSurfaceShape:
Public Member Functions | |
ChSurfaceShape (std::shared_ptr< geometry::ChSurface > msurf) | |
std::shared_ptr< geometry::ChSurface > | GetSurfaceGeometry () |
Get the surface geometry. | |
void | SetSurfaceGeometry (std::shared_ptr< geometry::ChSurface > ms) |
Set the surface geometry. | |
bool | IsWireframe () const |
Tell if showing only UV isolines. | |
void | SetWireframe (bool mw) |
Set if using only isolines;. | |
int | GetResolutionU () |
Subdivision density for tesselation. | |
int | GetResolutionV () |
Subdivision density for tesselation. | |
void | SetResolutionU (int mr) |
Set u- subdivision density for tesselation. | |
void | SetResolutionV (int mr) |
Set v- subdivision density for tesselation. | |
void | SetResolution (int mr) |
Set subdivision density for tesselation (both for u and v) | |
virtual void | ArchiveOUT (ChArchiveOut &marchive) override |
Method to allow serialization of transient data to archives. | |
virtual void | ArchiveIN (ChArchiveIn &marchive) override |
Method to allow de-serialization of transient data from archives. | |
Public Member Functions inherited from chrono::ChVisualization | |
void | SetVisible (bool mv) |
Set this visualization asset as visible. | |
bool | IsVisible () const |
Return true if the asset is set as visible. | |
void | SetColor (const ChColor &mc) |
Set the color of the surface (default: white). More... | |
const ChColor & | GetColor () const |
Return the color assigned to this asset. | |
void | SetFading (const float mc) |
Set the fading level, a value in [0,1] (default: 0). More... | |
float | GetFading () const |
Get the fading level. | |
void | SetStatic (bool val) |
Set this visualization asset as static (default: false). More... | |
bool | IsStatic () const |
Return true if the visualization asset is marked as static. | |
Public Member Functions inherited from chrono::ChAsset | |
virtual void | Update (ChPhysicsItem *updater, const ChCoordsys<> &coords) |
This is called by the owner, i.e. More... | |
Protected Attributes | |
std::shared_ptr< geometry::ChSurface > | gsurface |
bool | wireframe |
int | resolution_U |
int | resolution_V |
Protected Attributes inherited from chrono::ChVisualization | |
bool | visible |
bool | is_static |
ChColor | color |
float | fading |
Additional Inherited Members | |
Public Attributes inherited from chrono::ChVisualization | |
ChVector | Pos |
Position of Asset. | |
ChMatrix33 | Rot |
Rotation of Asset. | |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/assets/ChSurfaceShape.h
- /builds/uwsbel/chrono/src/chrono/assets/ChSurfaceShape.cpp