opensurgsim
Public Member Functions | List of all members
SurgSim::Graphics::OsgTexture1d Class Reference

OSG implementation of a 1D Texture. More...

#include <OsgTexture1d.h>

Inheritance diagram for SurgSim::Graphics::OsgTexture1d:
SurgSim::Graphics::OsgTexture SurgSim::Graphics::Texture1d SurgSim::Graphics::Texture SurgSim::Graphics::Texture

Public Member Functions

 OsgTexture1d ()
 Constructor. More...
 
virtual void setSize (int width)
 Sets the size of the texture. More...
 
virtual void getSize (int *width) const
 Gets the size of the texture. More...
 
osg::ref_ptr< osg::Texture1D > getOsgTexture1d () const
 Returns the osg::Texture1D.
 
- Public Member Functions inherited from SurgSim::Graphics::OsgTexture
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.
 
- Public Member Functions inherited from SurgSim::Graphics::Texture
virtual ~Texture ()
 Destructor.
 
void setIsPointSprite (bool value)
 Set point sprite flag on/off.
 
bool isPointSprite () const
 Get point sprite flag state.
 

Additional Inherited Members

- Protected Member Functions inherited from SurgSim::Graphics::OsgTexture
 OsgTexture (osg::Texture *texture)
 Constructor. More...
 

Detailed Description

OSG implementation of a 1D Texture.

Wraps an osg::Texture1d

Constructor & Destructor Documentation

§ OsgTexture1d()

OsgTexture1d::OsgTexture1d ( )

Constructor.

Postcondition
No image is loaded in the texture.

Member Function Documentation

§ getSize()

void OsgTexture1d::getSize ( int *  width) const
virtual

Gets the size of the texture.

Returns
width Width of the texture

Implements SurgSim::Graphics::Texture1d.

§ setSize()

void OsgTexture1d::setSize ( int  width)
virtual

Sets the size of the texture.

Parameters
widthWidth of the texture
Note
Use this to setup a texture as a render target rather than loading from file.

Implements SurgSim::Graphics::Texture1d.


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