OSG
3.4.0
|
#include <Layer.h>
Public Member Functions | |
SwitchLayer () | |
SwitchLayer (const SwitchLayer &switchLayer, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgTerrain, SwitchLayer) | |
void | setActiveLayer (int i) |
int | getActiveLayer () const |
virtual osg::Image * | getImage () |
virtual const osg::Image * | getImage () const |
![]() | |
CompositeLayer () | |
CompositeLayer (const CompositeLayer &compositeLayer, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgTerrain, CompositeLayer) | |
void | clear () |
void | setSetName (unsigned int i, const std::string &setname) |
const std::string & | getSetName (unsigned int i) const |
void | setFileName (unsigned int i, const std::string &filename) |
const std::string & | getFileName (unsigned int i) const |
void | setCompoundName (unsigned int i, const std::string &compoundname) |
std::string | getCompoundName (unsigned int i) const |
void | setLayer (unsigned int i, Layer *layer) |
Layer * | getLayer (unsigned int i) |
const Layer * | getLayer (unsigned int i) const |
void | addLayer (const std::string &compoundname) |
void | addLayer (const std::string &setname, const std::string &filename) |
void | addLayer (Layer *layer) |
void | removeLayer (unsigned int i) |
unsigned int | getNumLayers () const |
![]() | |
Layer () | |
Layer (const Layer &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Object (osgTerrain, Layer) | |
void | setSetName (const std::string &setname) |
const std::string & | getSetName () const |
virtual void | setFileName (const std::string &filename) |
virtual const std::string & | getFileName () const |
std::string | getCompoundName () const |
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) |
osg::Texture::FilterMode | getMinFilter () const |
void | setMagFilter (osg::Texture::FilterMode filter) |
osg::Texture::FilterMode | getMagFilter () const |
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) |
bool | getInterpolatedValidValue (double ndc_x, double ndc_y, float &value) |
virtual void | dirty () |
virtual void | setModifiedCount (unsigned int) |
virtual unsigned int | getModifiedCount () const |
virtual osg::BoundingSphere | computeBound (bool treatAsElevationLayer) const |
![]() | |
Object () | |
Object (bool threadSafeRefUnref) | |
Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual Object * | cloneType () const =0 |
virtual Object * | clone (const CopyOp &) const =0 |
virtual bool | isSameKindAs (const Object *) const |
virtual const char * | libraryName () const =0 |
virtual const char * | className () const =0 |
std::string | getCompoundClassName () const |
virtual Node * | asNode () |
virtual const Node * | asNode () const |
virtual NodeVisitor * | asNodeVisitor () |
virtual const NodeVisitor * | asNodeVisitor () const |
virtual StateAttribute * | asStateAttribute () |
virtual const StateAttribute * | asStateAttribute () const |
virtual Uniform * | asUniform () |
virtual const Uniform * | asUniform () const |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
virtual void | setName (const std::string &name) |
void | setName (const char *name) |
const std::string & | getName () const |
void | setDataVariance (DataVariance dv) |
DataVariance | getDataVariance () const |
virtual void | computeDataVariance () |
void | setUserDataContainer (osg::UserDataContainer *udc) |
osg::UserDataContainer * | getUserDataContainer () |
const osg::UserDataContainer * | getUserDataContainer () const |
osg::UserDataContainer * | getOrCreateUserDataContainer () |
virtual void | setUserData (Referenced *obj) |
virtual Referenced * | getUserData () |
virtual const Referenced * | getUserData () const |
template<typename T > | |
bool | getUserValue (const std::string &name, T &value) const |
template<typename T > | |
void | setUserValue (const std::string &name, const T &value) |
virtual void | resizeGLObjectBuffers (unsigned int) |
virtual void | releaseGLObjects (osg::State *=0) const |
template<typename T > | |
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
Protected Member Functions | |
virtual | ~SwitchLayer () |
![]() | |
virtual | ~CompositeLayer () |
![]() | |
virtual | ~Layer () |
![]() | |
virtual | ~Object () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
int | _activeLayer |
![]() | |
Layers | _layers |
![]() | |
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 |
![]() | |
std::string | _name |
DataVariance | _dataVariance |
osg::UserDataContainer * | _userDataContainer |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
![]() | |
typedef std::vector < CompoundNameLayer > | Layers |
osgTerrain::SwitchLayer::SwitchLayer | ( | ) |
osgTerrain::SwitchLayer::SwitchLayer | ( | const SwitchLayer & | switchLayer, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
Copy constructor using CopyOp to manage deep vs shallow copy.
|
inlineprotectedvirtual |
|
inline |
|
inlinevirtual |
Return image associated with layer if supported.
Reimplemented from osgTerrain::Layer.
|
inlinevirtual |
Return const image associated with layer if supported.
Reimplemented from osgTerrain::Layer.
osgTerrain::SwitchLayer::META_Object | ( | osgTerrain | , |
SwitchLayer | |||
) |
|
inline |