opensurgsim
|
Base class defining the interface for a 3D Graphics Texture. More...
#include <Texture3d.h>
Public Member Functions | |
virtual void | setSize (int width, int height, int depth)=0 |
Sets the size of the texture. More... | |
virtual void | getSize (int *width, int *height, int *depth) const =0 |
Gets the size of the texture. More... | |
virtual bool | loadImageSlices (const std::vector< std::string > &filePaths)=0 |
Loads images slices from files into the 3D texture. More... | |
![]() | |
virtual | ~Texture () |
Destructor. | |
virtual bool | loadImage (const std::string &filePath)=0 |
Loads an image into the texture from a file. More... | |
virtual void | clearImage ()=0 |
Removes the image from the texture. | |
void | setIsPointSprite (bool value) |
Set point sprite flag on/off. | |
bool | isPointSprite () const |
Get point sprite flag state. | |
Base class defining the interface for a 3D Graphics Texture.
A 3D Texture has width, height, and depth.
|
pure virtual |
Gets the size of the texture.
[out] | width | Width of the texture |
[out] | height | Height of the texture |
[out] | depth | Depth of the texture |
Implemented in SurgSim::Graphics::OsgTexture3d.
|
pure virtual |
Loads images slices from files into the 3D texture.
filePaths | Paths to the image files |
Implemented in SurgSim::Graphics::OsgTexture3d.
|
pure virtual |
Sets the size of the texture.
width | Width of the texture |
height | Height of the texture |
depth | Depth of the texture |
Implemented in SurgSim::Graphics::OsgTexture3d.