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

Base class for OSG implementations of Graphics Textures. More...

#include <OsgTexture.h>

Inheritance diagram for SurgSim::Graphics::OsgTexture:
SurgSim::Graphics::Texture SurgSim::Graphics::MockOsgTexture SurgSim::Graphics::OsgTexture1d SurgSim::Graphics::OsgTexture2d SurgSim::Graphics::OsgTexture3d SurgSim::Graphics::OsgTextureCubeMap SurgSim::Graphics::OsgTextureRectangle

Public Member Functions

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.
 

Protected Member Functions

 OsgTexture (osg::Texture *texture)
 Constructor. More...
 

Detailed Description

Base class for OSG implementations of Graphics Textures.

Wraps an osg::Texture.

Constructor & Destructor Documentation

§ OsgTexture()

OsgTexture::OsgTexture ( osg::Texture *  texture)
explicitprotected

Constructor.

Parameters
textureOSG texture

Member Function Documentation

§ loadImage()

bool OsgTexture::loadImage ( const std::string &  filePath)
virtual

Loads an image into the texture from a file.

Parameters
filePathPath to the image file
Returns
True if the image is successfully loaded, otherwise false

Implements SurgSim::Graphics::Texture.

Reimplemented in SurgSim::Graphics::OsgTextureCubeMap.


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