16 #ifndef SURGSIM_GRAPHICS_OSGTEXTURE3D_H 17 #define SURGSIM_GRAPHICS_OSGTEXTURE3D_H 19 #include "SurgSim/Graphics/OsgTexture.h" 20 #include "SurgSim/Graphics/Texture3d.h" 22 #include <osg/Texture3D> 26 #pragma warning(disable:4250) 50 virtual void setSize(
int width,
int height,
int depth);
56 virtual void getSize(
int* width,
int* height,
int* depth)
const;
62 virtual bool loadImageSlices(
const std::vector<std::string>& filePaths);
79 #endif // SURGSIM_GRAPHICS_OSGTEXTURE3D_H Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
virtual void setSize(int width, int height, int depth)
Sets the size of the texture.
Definition: OsgTexture3d.cpp:28
osg::ref_ptr< osg::Texture > getOsgTexture() const
Returns the osg::Texture1D.
Definition: OsgTexture.h:44
virtual void getSize(int *width, int *height, int *depth) const
Gets the size of the texture.
Definition: OsgTexture3d.cpp:33
OsgTexture3d()
Constructor.
Definition: OsgTexture3d.cpp:24
osg::ref_ptr< osg::Texture3D > getOsgTexture3d() const
Returns the osg::Texture3D.
Definition: OsgTexture3d.h:65
Base class for OSG implementations of Graphics Textures.
Definition: OsgTexture.h:32
OSG implementation of a 3D Texture.
Definition: OsgTexture3d.h:38
virtual bool loadImageSlices(const std::vector< std::string > &filePaths)
Loads images slices from files into the 3D texture.
Definition: OsgTexture3d.cpp:52
Base class defining the interface for a 3D Graphics Texture.
Definition: Texture3d.h:32