chrono::ChTexture Class Reference


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)
virtual void ArchiveIN (ChArchiveIn &marchive)
 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