![]() |
RobWorkProject
23.9.11-
|
container for storing texture data. More...
#include <TextureData.hpp>
Inherits Model3D::Texture.
Public Member Functions | |
| TextureData () | |
| constructor | |
| TextureData (const std::string &name, rw::sensor::Image::Ptr img) | |
| TextureData (const std::string &name, float r, float g, float b) | |
| bool | hasImageData () const |
| check if this texture has image data More... | |
| rw::core::Ptr< rw::sensor::Image > | getImageData () const |
| get image data More... | |
| rw::math::Vector3D< float > | getRGBData () const |
| get RGB data More... | |
| const std::string & | getName () const |
| get id of texture More... | |
| rw::core::Ptr< rw::geometry::Model3D::Texture > | clone () const |
| Clone the current texture. The image data will be shared with the clone. More... | |
Public Member Functions inherited from Model3D::Texture | |
| virtual | ~Texture () |
| default destructure | |
Public Attributes | |
| rw::core::Ptr< TextureData > | Ptr |
| Smart pointer type for TextureData. | |
container for storing texture data.
|
inline |
constructor
| name | [in] texture id |
| img | [in] texture data |
|
inline |
constructor
| name | [in] texture id |
| r | [in] red value [0:1] |
| g | [in] green value [0:1] |
| b | [in] blue value [0:1] |
|
inlinevirtual |
Clone the current texture. The image data will be shared with the clone.
Implements Model3D::Texture.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
check if this texture has image data
Implements Model3D::Texture.