openscenegraph
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgTerrain::ProxyLayer Class Reference
Inheritance diagram for osgTerrain::ProxyLayer:
osgTerrain::Layer osg::Object osg::Referenced

Public Member Functions

 ProxyLayer ()
 ProxyLayer (const ProxyLayer &proxyLayer, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgTerrain, ProxyLayer)
virtual osg::ImagegetImage ()
virtual const osg::ImagegetImage () const
void setImplementation (Layer *layer)
LayergetImplementation ()
const LayergetImplementation () const
virtual void setFileName (const std::string &filename)
virtual const std::string & getFileName () const
virtual unsigned int getNumColumns () const
virtual unsigned int getNumRows () const
virtual bool transform (float offset, float scale)
virtual bool getValue (unsigned int i, unsigned int j, float &value) const
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 ()
virtual void setModifiedCount (unsigned int value)
virtual unsigned int getModifiedCount () const
virtual osg::BoundingSphere computeBound (bool treatAsElevationLayer) const
- Public Member Functions inherited from osgTerrain::Layer
 Layer ()
 Layer (const Layer &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgTerrain, Layer)
void setSetName (const std::string &setname)
const std::string & getSetName () const
std::string getCompoundName () const
void setLocator (Locator *locator)
LocatorgetLocator ()
const LocatorgetLocator () const
void setMinLevel (unsigned int minLevel)
unsigned int getMinLevel () const
void setMaxLevel (unsigned int maxLevel)
unsigned int getMaxLevel () const
void setValidDataOperator (ValidDataOperator *validDataOp)
ValidDataOperatorgetValidDataOperator ()
const ValidDataOperatorgetValidDataOperator () const
void setDefaultValue (const osg::Vec4 &value)
const osg::Vec4getDefaultValue () const
void setMinFilter (osg::Texture::FilterMode filter)
osg::Texture::FilterMode getMinFilter () const
void setMagFilter (osg::Texture::FilterMode filter)
osg::Texture::FilterMode getMagFilter () 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)
- Public Member Functions inherited from osg::Object
 Object ()
 Object (bool threadSafeRefUnref)
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
virtual ObjectcloneType () const =0
virtual Objectclone (const CopyOp &) const =0
virtual bool isSameKindAs (const Object *) const
virtual const char * libraryName () const =0
virtual const char * className () const =0
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::UserDataContainergetUserDataContainer ()
const osg::UserDataContainergetUserDataContainer () const
osg::UserDataContainergetOrCreateUserDataContainer ()
virtual void setUserData (Referenced *obj)
virtual ReferencedgetUserData ()
virtual const ReferencedgetUserData () 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
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const

Protected Member Functions

virtual ~ProxyLayer ()
- Protected Member Functions inherited from osgTerrain::Layer
virtual ~Layer ()
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Protected Attributes

osg::ref_ptr< Layer_implementation
- Protected Attributes inherited from osgTerrain::Layer
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
- Protected Attributes inherited from osg::Object
std::string _name
DataVariance _dataVariance
osg::UserDataContainer_userDataContainer
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Additional Inherited Members

- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
static bool getThreadSafeReferenceCounting ()
static void setDeleteHandler (DeleteHandler *handler)
static DeleteHandlergetDeleteHandler ()

Constructor & Destructor Documentation

osgTerrain::ProxyLayer::ProxyLayer ( )
osgTerrain::ProxyLayer::ProxyLayer ( const ProxyLayer proxyLayer,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osgTerrain::ProxyLayer::~ProxyLayer ( )
protectedvirtual

Member Function Documentation

virtual osg::BoundingSphere osgTerrain::ProxyLayer::computeBound ( bool  treatAsElevationLayer) const
virtual

Reimplemented from osgTerrain::Layer.

virtual void osgTerrain::ProxyLayer::dirty ( )
virtual

increment the modified count."

Reimplemented from osgTerrain::Layer.

virtual const std::string& osgTerrain::ProxyLayer::getFileName ( ) const
inlinevirtual

Get the file name of the layer.

Reimplemented from osgTerrain::Layer.

virtual osg::Image* osgTerrain::ProxyLayer::getImage ( )
inlinevirtual

Return image associated with layer if supported.

Reimplemented from osgTerrain::Layer.

References osg::Image::valid().

virtual const osg::Image* osgTerrain::ProxyLayer::getImage ( ) const
inlinevirtual

Return const image associated with layer if supported.

Reimplemented from osgTerrain::Layer.

References osg::Image::valid().

Layer* osgTerrain::ProxyLayer::getImplementation ( )
inline

Get the implementation layer that does the actual work.

const Layer* osgTerrain::ProxyLayer::getImplementation ( ) const
inline

Get the const implementation layer that does the actual work.

virtual unsigned int osgTerrain::ProxyLayer::getModifiedCount ( ) const
virtual

Get modified count value.

Reimplemented from osgTerrain::Layer.

virtual unsigned int osgTerrain::ProxyLayer::getNumColumns ( ) const
virtual

Get the number of columns.

Reimplemented from osgTerrain::Layer.

virtual unsigned int osgTerrain::ProxyLayer::getNumRows ( ) const
virtual

Get the number of rows.

Reimplemented from osgTerrain::Layer.

virtual bool osgTerrain::ProxyLayer::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::ProxyLayer::getValue ( unsigned int  i,
unsigned int  j,
osg::Vec2 value 
) const
virtual

Reimplemented from osgTerrain::Layer.

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

Reimplemented from osgTerrain::Layer.

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

Reimplemented from osgTerrain::Layer.

osgTerrain::ProxyLayer::META_Object ( osgTerrain  ,
ProxyLayer   
)
virtual void osgTerrain::ProxyLayer::setFileName ( const std::string &  filename)
virtual

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

Reimplemented from osgTerrain::Layer.

void osgTerrain::ProxyLayer::setImplementation ( Layer layer)
inline

Set the implementation layer that does the actual work.

virtual void osgTerrain::ProxyLayer::setModifiedCount ( unsigned int  )
virtual

Set the modified count value.

Reimplemented from osgTerrain::Layer.

virtual bool osgTerrain::ProxyLayer::transform ( float  offset,
float  scale 
)
virtual

Reimplemented from osgTerrain::Layer.

Member Data Documentation

osg::ref_ptr<Layer> osgTerrain::ProxyLayer::_implementation
protected

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