chrono::ChTexture Class Reference
Description
Base class for assets that define basic textures.
Assets can be attached to ChBody objects. Different post processing modules can handle textures in proper ways (ex for ray tracing, or openGL visualization), or may also create specialized classes of textures with more properties.
#include <ChTexture.h>
Inheritance diagram for chrono::ChTexture:
Collaboration diagram for chrono::ChTexture:
Public Member Functions | |
ChTexture (const char *mfilename) | |
ChTexture (const std::string &mfilename) | |
const std::string & | GetTextureFilename () const |
void | SetTextureFilename (const std::string &mfile) |
void | SetTextureScale (float sx, float sy) |
float | GetTextureScaleX () const |
float | GetTextureScaleY () const |
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::ChAsset | |
virtual void | Update (ChPhysicsItem *updater, const ChCoordsys<> &coords) |
This is called by the owner, i.e. More... | |
Protected Attributes | |
std::string | filename |
float | scale_x |
float | scale_y |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/assets/ChTexture.h
- /builds/uwsbel/chrono/src/chrono/assets/ChTexture.cpp