OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
osgTerrain::ImageLayer Class Reference
Inheritance diagram for osgTerrain::ImageLayer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ImageLayer (osg::Image *image=0)
 ImageLayer (const ImageLayer &imageLayer, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_Object (osgTerrain, ImageLayer)
void setFileName (const std::string &filename)
 Set the file name of the data associated with this layer.
virtual const std::string & getFileName () const
 Get the file name of the layer.
virtual bool transform (float offset, float scale)
void setImage (osg::Image *image)
virtual osg::ImagegetImage ()
 Return image associated with layer.
virtual const osg::ImagegetImage () const
 Return const image associated with layer.
virtual unsigned int getNumColumns () const
 Get the number of columns.
virtual unsigned int getNumRows () const
 Get the number of rows.
virtual bool getValue (unsigned int i, unsigned int j, float &value) const
 Get the layer value at position i,j.
virtual bool getValue (unsigned int i, unsigned int j, osg::Vec2 &value) const
virtual bool getValue (unsigned int i, unsigned int j, osg::Vec3 &value) const
virtual bool getValue (unsigned int i, unsigned int j, osg::Vec4 &value) const
virtual void dirty ()
 increment the modified count.
virtual void setModifiedCount (unsigned int value)
 Set the modified count value.
virtual unsigned int getModifiedCount () const
 Get modified count value.

Protected Member Functions

virtual ~ImageLayer ()

Protected Attributes

osg::ref_ptr< osg::Image_image

Constructor & Destructor Documentation

osgTerrain::ImageLayer::ImageLayer ( osg::Image image = 0)
osgTerrain::ImageLayer::ImageLayer ( const ImageLayer imageLayer,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osgTerrain::ImageLayer::~ImageLayer ( ) [inline, protected, virtual]

Member Function Documentation

virtual void osgTerrain::ImageLayer::dirty ( ) [virtual]

increment the modified count.

"

Reimplemented from osgTerrain::Layer.

virtual const std::string& osgTerrain::ImageLayer::getFileName ( ) const [inline, virtual]

Get the file name of the layer.

Reimplemented from osgTerrain::Layer.

virtual osg::Image* osgTerrain::ImageLayer::getImage ( ) [inline, virtual]

Return image associated with layer.

Reimplemented from osgTerrain::Layer.

virtual const osg::Image* osgTerrain::ImageLayer::getImage ( ) const [inline, virtual]

Return const image associated with layer.

Reimplemented from osgTerrain::Layer.

virtual unsigned int osgTerrain::ImageLayer::getModifiedCount ( ) const [virtual]

Get modified count value.

Reimplemented from osgTerrain::Layer.

virtual unsigned int osgTerrain::ImageLayer::getNumColumns ( ) const [inline, virtual]

Get the number of columns.

Reimplemented from osgTerrain::Layer.

virtual unsigned int osgTerrain::ImageLayer::getNumRows ( ) const [inline, virtual]

Get the number of rows.

Reimplemented from osgTerrain::Layer.

virtual bool osgTerrain::ImageLayer::getValue ( unsigned int  ,
unsigned int  ,
float &   
) const [virtual]

Get the layer value at position i,j.

Parameters:
[in]iX-axis (or column) index.
[in]jY-axis (or row) index.
[out]valueReturned layer value.
Returns:
true if value is valid, else false

Reimplemented from osgTerrain::Layer.

virtual bool osgTerrain::ImageLayer::getValue ( unsigned int  i,
unsigned int  j,
osg::Vec2 value 
) const [virtual]

Reimplemented from osgTerrain::Layer.

virtual bool osgTerrain::ImageLayer::getValue ( unsigned int  i,
unsigned int  j,
osg::Vec3 value 
) const [virtual]

Reimplemented from osgTerrain::Layer.

virtual bool osgTerrain::ImageLayer::getValue ( unsigned int  i,
unsigned int  j,
osg::Vec4 value 
) const [virtual]

Reimplemented from osgTerrain::Layer.

osgTerrain::ImageLayer::META_Object ( osgTerrain  ,
ImageLayer   
)
void osgTerrain::ImageLayer::setFileName ( const std::string &  filename) [inline, virtual]

Set the file name of the data associated with this layer.

Reimplemented from osgTerrain::Layer.

void osgTerrain::ImageLayer::setImage ( osg::Image image)
virtual void osgTerrain::ImageLayer::setModifiedCount ( unsigned int  ) [virtual]

Set the modified count value.

Reimplemented from osgTerrain::Layer.

virtual bool osgTerrain::ImageLayer::transform ( float  offset,
float  scale 
) [virtual]

Reimplemented from osgTerrain::Layer.


Member Data Documentation


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

osg logo
Generated at Mon Oct 3 2011 12:39:49 for the OpenSceneGraph by doxygen 1.7.5.