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

OSG implementation of a Rectangle Texture. More...

#include <OsgTextureRectangle.h>

Inheritance diagram for SurgSim::Graphics::OsgTextureRectangle:
SurgSim::Graphics::OsgTexture SurgSim::Graphics::TextureRectangle SurgSim::Graphics::Texture SurgSim::Graphics::Texture

Public Member Functions

 OsgTextureRectangle ()
 Constructor. More...
 
virtual void setSize (int width, int height)
 Sets the size of the texture. More...
 
virtual void getSize (int *width, int *height) const
 Gets the size of the texture. More...
 
osg::ref_ptr< osg::TextureRectangle > getOsgTextureRectangle () const
 Returns the osg::TextureRectangle.
 
- 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 Rectangle Texture.

Wraps an osg::TextureRectangle

Note
Texel coordinates are used to access this texture.

Constructor & Destructor Documentation

§ OsgTextureRectangle()

OsgTextureRectangle::OsgTextureRectangle ( )

Constructor.

Postcondition
No image is loaded in the texture.

Member Function Documentation

§ getSize()

void OsgTextureRectangle::getSize ( int *  width,
int *  height 
) const
virtual

Gets the size of the texture.

Parameters
[out]widthWidth of the texture
[out]heightHeight of the texture

Implements SurgSim::Graphics::TextureRectangle.

§ setSize()

void OsgTextureRectangle::setSize ( int  width,
int  height 
)
virtual

Sets the size of the texture.

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

Implements SurgSim::Graphics::TextureRectangle.


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