VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtOsgEarthDynamicTerrainFeature Class Reference
Inheritance diagram for makVrv::DtOsgEarthDynamicTerrainFeature:
Inheritance graph
[legend]

Public Member Functions

 DtOsgEarthDynamicTerrainFeature (osgEarth::MapNode *mapNode, DtDe &de)
 constructor More...
 
virtual ~DtOsgEarthDynamicTerrainFeature ()
 destructor More...
 
virtual DtString description () const
 Feature description functions Allows feature to describe itself (for a gui mostly). More...
 
virtual const
DtDynamicTerrainGeometry
geometry () const
 geometry for this feature. Currently always null since osgEarth cares about all of them More...
 
virtual bool matches (const DtDynamicTerrainChange &command, bool useOriginalGeometry) const
 check to see if this feature cares about this command (checks state to see if it is in the command) More...
 
virtual bool matches (const DtDynamicTerrainGeometry &, bool useOriginalGeometry) const
 always true since this feature cares about More...
 
virtual void changeState (const DtDynamicTerrainChanges &changes)
 apply a change state More...
 
virtual void setState (const DtDynamicTerrainChange *command)
 set the state for this change on the dynamic terrain More...
 
virtual bool isInDefaultState () const
 for now it is never in the default state More...
 
virtual bool lastStateWasDefaultState () const
 for now there is never a last default state of true either More...
 
virtual void iterateCommands (const boost::function< void(const DtDynamicTerrainChange &)> &callback) const
 This is currently called by the dynamic terrain page logic. More...
 
- Public Member Functions inherited from makVrv::DtDynamicTerrainFeature
 DtDynamicTerrainFeature ()
 Default Constructor. More...
 
virtual ~DtDynamicTerrainFeature ()
 Virtual destructor. More...
 
virtual const
DtDynamicTerrainGeometry
originalGeometry () const
 Unprocessed geometry. More...
 
virtual boost::optional< DtStringfeatureAttribute (const DtString &key) const
 Access attribute values encoded into features. More...
 
virtual void iterateCommands (const boost::function< void(const DtDynamicTerrainChange &)> &callback, const DtString &key) const
 
void changed ()
 Calls changeState and all attached query callbacks. More...
 
bool pageOut ()
 Remove all change requests links and remove feature from dynamic terrain world. More...
 
void changes (const boost::function< void(const DtDynamicTerrainChanges &)> &callback) const
 Calls supplied callback on this features DtDynamicTerrainChanges interface. More...
 
RequestHandle addChangeRequest (DtDynamicTerrainChange *change)
 Add a change request directly to this feature. More...
 
RequestHandle addChangeRequest (double time, DtDynamicTerrainChange *change)
 
virtual ~Link ()
 
RequestInforequest ()
 
DtDynamicTerrainFeaturefeature ()
 
 RequestInfo (DtDynamicTerrainChange *command)
 
virtual ~RequestInfo ()
 
const DtDynamicTerrainChangecommand () const
 
void pageOut ()
 
virtual const
DtDynamicTerrainFeature
parentFeature () const
 
virtual boost::signals2::connection connectToChangeSignal (const ChangeCallback &callback) const
 Call callback when feature state is changed. More...
 
virtual boost::signals2::connection connectToPageOutSignal (const Callback &callback) const
 Call callback when feature is removed. More...
 
- Public Member Functions inherited from makVrv::DtDisconnectable
 DtDisconnectable ()
 Default constructor. More...
 
virtual ~DtDisconnectable ()
 Destructor. More...
 
virtual boost::signals2::connection addDisconnectFunction (const boost::function< void()> &callback)
 Add a function to be called when callDisconnectFunctions is called. More...
 
virtual bool callDisconnectFunctions ()
 Atomically call all the disconnect functions and mark this object as disconnected. More...
 

Protected Types

typedef osg::ref_ptr< osg::Image > ImageRef
 
- Protected Types inherited from makVrv::DtDisconnectable
enum  State { NotUsed, InUse, Disconnected }
 
typedef tbb::spin_mutex Mutex
 

Protected Member Functions

virtual void removeAllTerrainChanges ()
 Remove all the existing dynamic features (craters for now) for this feature. More...
 
virtual void removeTerrainChange (const DtDynamicTerrainChange &change)
 Remove a terrain change (currently only craters) More...
 
- Protected Member Functions inherited from makVrv::DtDynamicTerrainFeature
void indexDoubleAscending (const DtString &key)
 Key/value attribute indexing. More...
 
void indexDoubleDescending (const DtString &key)
 
void indexIntAscending (const DtString &key)
 
void indexIntDescending (const DtString &key)
 
void indexStringAscending (const DtString &key)
 
void indexStringDescending (const DtString &key)
 
void setupIndex (const DtString &key, DtDynamicTerrainIndex *index)
 

Protected Attributes

const DtString myStateName
 
osg::ref_ptr< osgEarth::MapNode > myMapNode
 
int myChangeCount
 
osg::ref_ptr
< osgEarth::Contrib::DecalImageLayer > 
myDecalImageLayer
 
osg::ref_ptr
< osgEarth::Contrib::DecalElevationLayer > 
myDecalElevLayer
 
osg::ref_ptr
< osgEarth::Contrib::DecalLandCoverLayer > 
myDecalLandCoverLayer
 
DtDemyDe
 
DtDynamicTerrainRasterLibrarymyRasterLibrary
 
osgEarth::LandCoverDictionary * myLandCoverDictionary
 
- Protected Attributes inherited from makVrv::DtDisconnectable
Mutex myMutex
 
State myDisconnectedState
 
boost::signals2::signal< void()> myDisconnectSignal
 

Private Member Functions

 DtOsgEarthDynamicTerrainFeature ()
 default constructor not implemented More...
 
 DtOsgEarthDynamicTerrainFeature (const DtOsgEarthDynamicTerrainFeature &other)
 Copy Constructor not implemented – Copy Not Allowed. More...
 
DtOsgEarthDynamicTerrainFeatureoperator= (const DtOsgEarthDynamicTerrainFeature &other)
 Assignment Operator Not implemented – Assignment Not Allowed. More...
 

Additional Inherited Members

- Public Types inherited from makVrv::DtDynamicTerrainFeature
typedef boost::function< void(const
DtDynamicTerrainFeature &)> 
Callback
 Signal notification. More...
 
typedef boost::function< void(const
DtDynamicTerrainFeature
&, const
DtDynamicTerrainChanges &)> 
ChangeCallback
 
- Static Public Member Functions inherited from makVrv::DtDynamicTerrainFeature
static unsigned long long GetObjectCount ()
 
static unsigned long long GetObjectCount ()
 
static bool Create (const boost::shared_ptr< DtDynamicTerrainFeature > &featureInfo, const boost::shared_ptr< RequestInfo > &reqInfo)
 
static unsigned long long GetObjectCount ()
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtOsgEarthDynamicTerrainFeature::DtOsgEarthDynamicTerrainFeature ( osgEarth::MapNode *  mapNode,
DtDe de 
)
explicit

constructor

virtual makVrv::DtOsgEarthDynamicTerrainFeature::~DtOsgEarthDynamicTerrainFeature ( )
virtual

destructor

makVrv::DtOsgEarthDynamicTerrainFeature::DtOsgEarthDynamicTerrainFeature ( )
private

default constructor not implemented

makVrv::DtOsgEarthDynamicTerrainFeature::DtOsgEarthDynamicTerrainFeature ( const DtOsgEarthDynamicTerrainFeature other)
private

Copy Constructor not implemented – Copy Not Allowed.

Member Function Documentation

DtOsgEarthDynamicTerrainFeature& makVrv::DtOsgEarthDynamicTerrainFeature::operator= ( const DtOsgEarthDynamicTerrainFeature other)
private

Assignment Operator Not implemented – Assignment Not Allowed.

virtual DtString makVrv::DtOsgEarthDynamicTerrainFeature::description ( ) const
virtual

Feature description functions Allows feature to describe itself (for a gui mostly).

These can all be called from query callbacks. None of the values returned by these functions have any meaning besides informational. A description of what is in the feature, how it is setup, configuration, etc.

Implements makVrv::DtDynamicTerrainFeature.

virtual const DtDynamicTerrainGeometry* makVrv::DtOsgEarthDynamicTerrainFeature::geometry ( ) const
virtual

geometry for this feature. Currently always null since osgEarth cares about all of them

Implements makVrv::DtDynamicTerrainFeature.

virtual bool makVrv::DtOsgEarthDynamicTerrainFeature::matches ( const DtDynamicTerrainChange command,
bool  useOriginalGeometry 
) const
virtual

check to see if this feature cares about this command (checks state to see if it is in the command)

Implements makVrv::DtDynamicTerrainFeature.

virtual bool makVrv::DtOsgEarthDynamicTerrainFeature::matches ( const DtDynamicTerrainGeometry ,
bool  useOriginalGeometry 
) const
virtual

always true since this feature cares about

Implements makVrv::DtDynamicTerrainFeature.

virtual void makVrv::DtOsgEarthDynamicTerrainFeature::changeState ( const DtDynamicTerrainChanges changes)
virtual

apply a change state

Implements makVrv::DtDynamicTerrainFeature.

virtual void makVrv::DtOsgEarthDynamicTerrainFeature::setState ( const DtDynamicTerrainChange command)
virtual

set the state for this change on the dynamic terrain

virtual bool makVrv::DtOsgEarthDynamicTerrainFeature::isInDefaultState ( ) const
virtual

for now it is never in the default state

Implements makVrv::DtDynamicTerrainFeature.

virtual bool makVrv::DtOsgEarthDynamicTerrainFeature::lastStateWasDefaultState ( ) const
virtual

for now there is never a last default state of true either

Implements makVrv::DtDynamicTerrainFeature.

virtual void makVrv::DtOsgEarthDynamicTerrainFeature::iterateCommands ( const boost::function< void(const DtDynamicTerrainChange &)> &  callback) const
virtual

This is currently called by the dynamic terrain page logic.

We haven't decided what (if any) behavior we might want here, but we don't want the default, so we override this for now and do nothing

Reimplemented from makVrv::DtDynamicTerrainFeature.

virtual void makVrv::DtOsgEarthDynamicTerrainFeature::removeAllTerrainChanges ( )
protectedvirtual

Remove all the existing dynamic features (craters for now) for this feature.

Called from changeState() when DtDynamicTerrainChanges.indexFor("terrain_time") becomes empty, indicating that the dynamic terrain object these changes apply to is being removed

virtual void makVrv::DtOsgEarthDynamicTerrainFeature::removeTerrainChange ( const DtDynamicTerrainChange change)
protectedvirtual

Remove a terrain change (currently only craters)

Reimplemented from makVrv::DtDynamicTerrainFeature.

Member Data Documentation

const DtString makVrv::DtOsgEarthDynamicTerrainFeature::myStateName
protected
osg::ref_ptr<osgEarth::MapNode> makVrv::DtOsgEarthDynamicTerrainFeature::myMapNode
protected
int makVrv::DtOsgEarthDynamicTerrainFeature::myChangeCount
protected
osg::ref_ptr<osgEarth::Contrib::DecalImageLayer> makVrv::DtOsgEarthDynamicTerrainFeature::myDecalImageLayer
protected
osg::ref_ptr<osgEarth::Contrib::DecalElevationLayer> makVrv::DtOsgEarthDynamicTerrainFeature::myDecalElevLayer
protected
osg::ref_ptr<osgEarth::Contrib::DecalLandCoverLayer> makVrv::DtOsgEarthDynamicTerrainFeature::myDecalLandCoverLayer
protected
DtDe& makVrv::DtOsgEarthDynamicTerrainFeature::myDe
protected
DtDynamicTerrainRasterLibrary* makVrv::DtOsgEarthDynamicTerrainFeature::myRasterLibrary
protected
osgEarth::LandCoverDictionary* makVrv::DtOsgEarthDynamicTerrainFeature::myLandCoverDictionary
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)