RobWorkProject  23.9.11-
Public Member Functions | Public Attributes | List of all members
TextureData Class Reference

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::ImagegetImageData () 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::Textureclone () 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< TextureDataPtr
 Smart pointer type for TextureData.
 

Detailed Description

container for storing texture data.

Constructor & Destructor Documentation

◆ TextureData() [1/2]

TextureData ( const std::string &  name,
rw::sensor::Image::Ptr  img 
)
inline

constructor

Parameters
name[in] texture id
img[in] texture data

◆ TextureData() [2/2]

TextureData ( const std::string &  name,
float  r,
float  g,
float  b 
)
inline

constructor

Parameters
name[in] texture id
r[in] red value [0:1]
g[in] green value [0:1]
b[in] blue value [0:1]

Member Function Documentation

◆ clone()

rw::core::Ptr<rw::geometry::Model3D::Texture> clone ( ) const
inlinevirtual

Clone the current texture. The image data will be shared with the clone.

Returns
rw::core::Ptr<Texture>

Implements Model3D::Texture.

◆ getImageData()

rw::core::Ptr<rw::sensor::Image> getImageData ( ) const
inlinevirtual

get image data

Returns

Implements Model3D::Texture.

◆ getName()

const std::string& getName ( ) const
inlinevirtual

get id of texture

Returns

Implements Model3D::Texture.

◆ getRGBData()

rw::math::Vector3D<float> getRGBData ( ) const
inlinevirtual

get RGB data

Returns

Implements Model3D::Texture.

◆ hasImageData()

bool hasImageData ( ) const
inlinevirtual

check if this texture has image data

Returns
true if it has image data, false otherwise

Implements Model3D::Texture.


The documentation for this class was generated from the following file: