osgTerrain::Layer Class Reference

Inheritance diagram for osgTerrain::Layer:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Layer ()
 Layer (const Layer &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_Object (osgTerrain, Layer)
virtual void setFileName (const std::string &filename)
virtual const
std::string & 
getFileName () const
void setLocator (Locator *locator)
LocatorgetLocator ()
const LocatorgetLocator () const
void setValidDataOperator (ValidDataOperator *validDataOp)
ValidDataOperatorgetValidDataOperator ()
const ValidDataOperatorgetValidDataOperator () const
virtual unsigned int getNumColumns () const
virtual unsigned int getNumRows () const
void setDefaultValue (const osg::Vec4 &value)
const osg::Vec4getDefaultValue () const
virtual bool transform (float offset, float scale)
virtual bool getValue (unsigned int, unsigned int, float &) const
virtual bool getValue (unsigned int, unsigned int, osg::Vec2 &) const
virtual bool getValue (unsigned int, unsigned int, osg::Vec3 &) const
virtual bool getValue (unsigned int, unsigned int, osg::Vec4 &) const
bool getValidValue (unsigned int i, unsigned int j, float &value) const
bool getValidValue (unsigned int i, unsigned int j, osg::Vec2 &value) const
bool getValidValue (unsigned int i, unsigned int j, osg::Vec3 &value) const
bool getValidValue (unsigned int i, unsigned int j, osg::Vec4 &value) const
void computeIndices (double ndc_x, double ndc_y, unsigned int &i, unsigned int &j, double &ir, double &jr)
bool getInterpolatedValue (double ndc_x, double ndc_y, float &value)
virtual void dirty ()
 increment the modified count.
virtual void setModifiedCount (unsigned int)
 Set the modified count value.
virtual unsigned int getModifiedCount () const
 Get modified count value.
virtual
osg::BoundingSphere 
computeBound () const

Protected Member Functions

virtual ~Layer ()

Protected Attributes

std::string _filename
osg::ref_ptr< Locator_locator
osg::ref_ptr
< ValidDataOperator
_validDataOperator
osg::Vec4 _defaultValue


Constructor & Destructor Documentation

osgTerrain::Layer::Layer (  ) 

osgTerrain::Layer::Layer ( const Layer ,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osgTerrain::Layer::~Layer (  )  [protected, virtual]


Member Function Documentation

osgTerrain::Layer::META_Object ( osgTerrain  ,
Layer   
)

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

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

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

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

void osgTerrain::Layer::setLocator ( Locator locator  )  [inline]

Locator* osgTerrain::Layer::getLocator (  )  [inline]

const Locator* osgTerrain::Layer::getLocator (  )  const [inline]

void osgTerrain::Layer::setValidDataOperator ( ValidDataOperator validDataOp  )  [inline]

ValidDataOperator* osgTerrain::Layer::getValidDataOperator (  )  [inline]

const ValidDataOperator* osgTerrain::Layer::getValidDataOperator (  )  const [inline]

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

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

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

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

void osgTerrain::Layer::setDefaultValue ( const osg::Vec4 value  )  [inline]

const osg::Vec4& osgTerrain::Layer::getDefaultValue (  )  const [inline]

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

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

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

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

virtual bool osgTerrain::Layer::getValue ( unsigned int  ,
unsigned int  ,
osg::Vec2  
) const [inline, virtual]

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

virtual bool osgTerrain::Layer::getValue ( unsigned int  ,
unsigned int  ,
osg::Vec3  
) const [inline, virtual]

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

virtual bool osgTerrain::Layer::getValue ( unsigned int  ,
unsigned int  ,
osg::Vec4  
) const [inline, virtual]

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

bool osgTerrain::Layer::getValidValue ( unsigned int  i,
unsigned int  j,
float &  value 
) const [inline]

bool osgTerrain::Layer::getValidValue ( unsigned int  i,
unsigned int  j,
osg::Vec2 value 
) const [inline]

bool osgTerrain::Layer::getValidValue ( unsigned int  i,
unsigned int  j,
osg::Vec3 value 
) const [inline]

bool osgTerrain::Layer::getValidValue ( unsigned int  i,
unsigned int  j,
osg::Vec4 value 
) const [inline]

void osgTerrain::Layer::computeIndices ( double  ndc_x,
double  ndc_y,
unsigned int &  i,
unsigned int &  j,
double &  ir,
double &  jr 
) [inline]

bool osgTerrain::Layer::getInterpolatedValue ( double  ndc_x,
double  ndc_y,
float &  value 
) [inline]

virtual void osgTerrain::Layer::dirty (  )  [inline, virtual]

increment the modified count.

"

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

virtual void osgTerrain::Layer::setModifiedCount ( unsigned int   )  [inline, virtual]

Set the modified count value.

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

virtual unsigned int osgTerrain::Layer::getModifiedCount (  )  const [inline, virtual]

Get modified count value.

Reimplemented in osgTerrain::ImageLayer, and osgTerrain::HeightFieldLayer.

virtual osg::BoundingSphere osgTerrain::Layer::computeBound (  )  const [virtual]


Member Data Documentation

std::string osgTerrain::Layer::_filename [protected]

osg::ref_ptr<Locator> osgTerrain::Layer::_locator [protected]

osg::ref_ptr<ValidDataOperator> osgTerrain::Layer::_validDataOperator [protected]

osg::Vec4 osgTerrain::Layer::_defaultValue [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:47 2007 for the OpenSceneGraph by doxygen 1.5.3.