opensurgsim
|
OSG implementation of a 3D Texture. More...
#include <OsgTexture3d.h>
Public Member Functions | |
OsgTexture3d () | |
Constructor. More... | |
virtual void | setSize (int width, int height, int depth) |
Sets the size of the texture. More... | |
virtual void | getSize (int *width, int *height, int *depth) const |
Gets the size of the texture. More... | |
virtual bool | loadImageSlices (const std::vector< std::string > &filePaths) |
Loads images slices from files into the 3D texture. More... | |
osg::ref_ptr< osg::Texture3D > | getOsgTexture3d () const |
Returns the osg::Texture3D. | |
![]() | |
virtual bool | loadImage (const std::string &filePath) |
Loads an image into the texture from a file. More... | |
virtual void | clearImage () |
Removes the image from the texture. | |
osg::ref_ptr< osg::Texture > | getOsgTexture () const |
Returns the osg::Texture1D. | |
![]() | |
virtual | ~Texture () |
Destructor. | |
void | setIsPointSprite (bool value) |
Set point sprite flag on/off. | |
bool | isPointSprite () const |
Get point sprite flag state. | |
Additional Inherited Members | |
![]() | |
OsgTexture (osg::Texture *texture) | |
Constructor. More... | |
OSG implementation of a 3D Texture.
Wraps an osg::Texture3d
OsgTexture3d::OsgTexture3d | ( | ) |
Constructor.
|
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 |
Implements SurgSim::Graphics::Texture3d.
|
virtual |
Loads images slices from files into the 3D texture.
filePaths | Paths to the image files |
Load first slice, all others should have same properties
Load the remaining slices
Copy the slices into the 3D image, starting at depth 0
Implements SurgSim::Graphics::Texture3d.
|
virtual |
Sets the size of the texture.
width | Width of the texture |
height | Height of the texture |
depth | Depth of the texture |
Implements SurgSim::Graphics::Texture3d.