OpenSceneGraph 2.8.4
|
Public Member Functions | |
Layer () | |
Layer (const Layer &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_Object (osgTerrain, Layer) | |
void | setSetName (const std::string &setname) |
const std::string & | getSetName () const |
virtual 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. | |
std::string | getCompoundName () const |
Return the compound name of the layer in the form set::name::filename string. | |
void | setLocator (Locator *locator) |
Locator * | getLocator () |
const Locator * | getLocator () const |
void | setMinLevel (unsigned int minLevel) |
unsigned int | getMinLevel () const |
void | setMaxLevel (unsigned int maxLevel) |
unsigned int | getMaxLevel () const |
void | setValidDataOperator (ValidDataOperator *validDataOp) |
ValidDataOperator * | getValidDataOperator () |
const ValidDataOperator * | getValidDataOperator () const |
virtual unsigned int | getNumColumns () const |
virtual unsigned int | getNumRows () const |
void | setDefaultValue (const osg::Vec4 &value) |
const osg::Vec4 & | getDefaultValue () const |
void | setMinFilter (osg::Texture::FilterMode filter) |
Set the minification texture filter to use when do texture associated with this layer. | |
osg::Texture::FilterMode | getMinFilter () const |
Get the minification texture filter to use when do texture associated with this layer. | |
void | setMagFilter (osg::Texture::FilterMode filter) |
Set the magniification texture filter to use when do texture associated with this layer. | |
osg::Texture::FilterMode | getMagFilter () const |
Get the magnification texture filter to use when do texture associated with this layer. | |
virtual osg::Image * | getImage () |
Return image associated with layer if supported. | |
virtual const osg::Image * | getImage () const |
Return const image associated with layer if supported. | |
virtual bool | transform (float, float) |
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 (bool treatAsElevationLayer) const |
Protected Member Functions | |
virtual | ~Layer () |
Protected Attributes | |
std::string | _filename |
osg::ref_ptr< Locator > | _locator |
unsigned int | _minLevel |
unsigned int | _maxLevel |
osg::ref_ptr< ValidDataOperator > | _validDataOperator |
osg::Vec4 | _defaultValue |
osg::Texture::FilterMode | _minFilter |
osg::Texture::FilterMode | _magFilter |
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] |
virtual osg::BoundingSphere osgTerrain::Layer::computeBound | ( | bool | treatAsElevationLayer | ) | const [virtual] |
Reimplemented in osgTerrain::ProxyLayer.
void osgTerrain::Layer::computeIndices | ( | double | ndc_x, |
double | ndc_y, | ||
unsigned int & | i, | ||
unsigned int & | j, | ||
double & | ir, | ||
double & | jr | ||
) | [inline] |
virtual void osgTerrain::Layer::dirty | ( | ) | [inline, virtual] |
increment the modified count.
"
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
std::string osgTerrain::Layer::getCompoundName | ( | ) | const [inline] |
Return the compound name of the layer in the form set::name::filename string.
References osgTerrain::createCompondSetNameAndFileName().
const osg::Vec4& osgTerrain::Layer::getDefaultValue | ( | ) | const [inline] |
virtual const std::string& osgTerrain::Layer::getFileName | ( | ) | const [inline, virtual] |
Get the file name of the layer.
Reimplemented in osgTerrain::ImageLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
Referenced by osgTerrain::CompositeLayer::addLayer().
virtual osg::Image* osgTerrain::Layer::getImage | ( | ) | [inline, virtual] |
Return image associated with layer if supported.
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::ProxyLayer, and osgTerrain::SwitchLayer.
virtual const osg::Image* osgTerrain::Layer::getImage | ( | ) | const [inline, virtual] |
Return const image associated with layer if supported.
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::ProxyLayer, and osgTerrain::SwitchLayer.
bool osgTerrain::Layer::getInterpolatedValue | ( | double | ndc_x, |
double | ndc_y, | ||
float & | value | ||
) | [inline] |
const Locator* osgTerrain::Layer::getLocator | ( | ) | const [inline] |
Locator* osgTerrain::Layer::getLocator | ( | ) | [inline] |
osg::Texture::FilterMode osgTerrain::Layer::getMagFilter | ( | ) | const [inline] |
Get the magnification texture filter to use when do texture associated with this layer.
unsigned int osgTerrain::Layer::getMaxLevel | ( | ) | const [inline] |
osg::Texture::FilterMode osgTerrain::Layer::getMinFilter | ( | ) | const [inline] |
Get the minification texture filter to use when do texture associated with this layer.
unsigned int osgTerrain::Layer::getMinLevel | ( | ) | const [inline] |
virtual unsigned int osgTerrain::Layer::getModifiedCount | ( | ) | const [inline, virtual] |
Get modified count value.
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
virtual unsigned int osgTerrain::Layer::getNumColumns | ( | ) | const [inline, virtual] |
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
virtual unsigned int osgTerrain::Layer::getNumRows | ( | ) | const [inline, virtual] |
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
const std::string& osgTerrain::Layer::getSetName | ( | ) | const [inline] |
Reimplemented in osgTerrain::CompositeLayer.
const ValidDataOperator* osgTerrain::Layer::getValidDataOperator | ( | ) | const [inline] |
ValidDataOperator* osgTerrain::Layer::getValidDataOperator | ( | ) | [inline] |
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::Vec3 & | 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::Vec4 & | value | ||
) | const [inline] |
virtual bool osgTerrain::Layer::getValue | ( | unsigned int | , |
unsigned int | , | ||
osg::Vec4 & | |||
) | const [inline, virtual] |
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
virtual bool osgTerrain::Layer::getValue | ( | unsigned int | , |
unsigned int | , | ||
float & | |||
) | const [inline, virtual] |
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
virtual bool osgTerrain::Layer::getValue | ( | unsigned int | , |
unsigned int | , | ||
osg::Vec2 & | |||
) | const [inline, virtual] |
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
virtual bool osgTerrain::Layer::getValue | ( | unsigned int | , |
unsigned int | , | ||
osg::Vec3 & | |||
) | const [inline, virtual] |
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
osgTerrain::Layer::META_Object | ( | osgTerrain | , |
Layer | |||
) |
void osgTerrain::Layer::setDefaultValue | ( | const osg::Vec4 & | value | ) | [inline] |
virtual void osgTerrain::Layer::setFileName | ( | const std::string & | filename | ) | [inline, virtual] |
Set the file name of the data associated with this layer.
Reimplemented in osgTerrain::ImageLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
void osgTerrain::Layer::setLocator | ( | Locator * | locator | ) | [inline] |
void osgTerrain::Layer::setMagFilter | ( | osg::Texture::FilterMode | filter | ) | [inline] |
Set the magniification texture filter to use when do texture associated with this layer.
void osgTerrain::Layer::setMaxLevel | ( | unsigned int | maxLevel | ) | [inline] |
void osgTerrain::Layer::setMinFilter | ( | osg::Texture::FilterMode | filter | ) | [inline] |
Set the minification texture filter to use when do texture associated with this layer.
void osgTerrain::Layer::setMinLevel | ( | unsigned int | minLevel | ) | [inline] |
virtual void osgTerrain::Layer::setModifiedCount | ( | unsigned int | ) | [inline, virtual] |
Set the modified count value.
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
void osgTerrain::Layer::setSetName | ( | const std::string & | setname | ) | [inline] |
Reimplemented in osgTerrain::CompositeLayer.
void osgTerrain::Layer::setValidDataOperator | ( | ValidDataOperator * | validDataOp | ) | [inline] |
virtual bool osgTerrain::Layer::transform | ( | float | , |
float | |||
) | [inline, virtual] |
Reimplemented in osgTerrain::ImageLayer, osgTerrain::ContourLayer, osgTerrain::HeightFieldLayer, and osgTerrain::ProxyLayer.
osg::Vec4 osgTerrain::Layer::_defaultValue [protected] |
std::string osgTerrain::Layer::_filename [protected] |
osg::ref_ptr<Locator> osgTerrain::Layer::_locator [protected] |
unsigned int osgTerrain::Layer::_maxLevel [protected] |
unsigned int osgTerrain::Layer::_minLevel [protected] |
![]() | Generated at Sun Jan 8 2012 13:16:53 for the OpenSceneGraph by doxygen 1.7.4. |