VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
makVrv::DtPaperMapIntersectionOverrideCommand Class Reference

DtPaperMapIntersectionOverrideCommand holds the state of whether the use of layer masks in .earth files. That is, turn on and off the entire paper maps feature. There are 2 ways to configure paper mask features which can affect what is displayed on from the .earth file.

1) Using the mapGroup attribute in a visible layer. For example <mapgroup>air,naval,default</mapgroup> This puts the layer in the air, naval, and default group which can be selected from the 2D View Layer Settings Toolbar air and naval groups are selectable in 2D (ex. Plan View), the default group allows items to be shown in 2D and 3D

2) Using a mask attribute directly in a layer without specifying a mapgroup Elements that should not be visible in 3D views have mask set like: <GDALImage ... mask="4294950911">...</GDALImage> Elements that should not be be visible in 2D have mask set like: <FeatureModel ... mask="4294959103">...</FeatureModel> The mask settings works on any osgEarth class derived from VisibleLayer The numbers have to be 4294959103 for not being visible in 2D but visible in 3D 4294950911 for not being visible in 3D but visible in 2D 4294959103 = 11111111111111111101111111111111 = FlagPaperMap2DViewOff 4294950911 = 11111111111111111011111111111111 = FlagPaperMap3DViewOff

You can also flag a visible layer to participate in intersections even when a group turns off other layers by using the annotation: <mapgroup_isect>true</mapgroup_isect>

Inheritance diagram for makVrv::DtPaperMapIntersectionOverrideCommand:
Inheritance graph
[legend]

Public Member Functions

 DtPaperMapIntersectionOverrideCommand ()
 
virtual ~DtPaperMapIntersectionOverrideCommand ()
 
virtual bool paperMapIntersectionOverride () const
 
virtual void setPaperMapIntersectionOverride (bool enabled)
 
virtual void execute (DtDe &de)
 
- Public Member Functions inherited from makVrv::DtVrvCommand
 DtVrvCommand ()
 
virtual ~DtVrvCommand ()
 
virtual
vrvControlToolkit::DtVrvControlTypeEnum 
commandType ()
 

Protected Attributes

bool myPaperMapIntersectoinOverride
 
- Protected Attributes inherited from makVrv::DtVrvCommand
vrvControlToolkit::DtVrvControlTypeEnum myCommandType
 

Private Member Functions

 DtPaperMapIntersectionOverrideCommand (DtPaperMapIntersectionOverrideCommand &in)
 
DtPaperMapIntersectionOverrideCommandoperator= (const DtPaperMapIntersectionOverrideCommand &)
 

Constructor & Destructor Documentation

makVrv::DtPaperMapIntersectionOverrideCommand::DtPaperMapIntersectionOverrideCommand ( )

CTOR.

virtual makVrv::DtPaperMapIntersectionOverrideCommand::~DtPaperMapIntersectionOverrideCommand ( )
virtual

DTOR.

makVrv::DtPaperMapIntersectionOverrideCommand::DtPaperMapIntersectionOverrideCommand ( DtPaperMapIntersectionOverrideCommand in)
private

Private copy constructor.

Note
Not implemented.

Member Function Documentation

virtual bool makVrv::DtPaperMapIntersectionOverrideCommand::paperMapIntersectionOverride ( ) const
virtual

Get if layer masks be considered when rendering osgEarth layers in 2D or 3D.

virtual void makVrv::DtPaperMapIntersectionOverrideCommand::setPaperMapIntersectionOverride ( bool  enabled)
virtual

Set whether osgEarth will pay attention to the mask.

virtual void makVrv::DtPaperMapIntersectionOverrideCommand::execute ( DtDe de)
virtual

Set the DtDeSharedState::setPaperMapEnabled to true or false.

Implements makVrv::DtVrvCommand.

DtPaperMapIntersectionOverrideCommand& makVrv::DtPaperMapIntersectionOverrideCommand::operator= ( const DtPaperMapIntersectionOverrideCommand )
private

Private assignment operator.

Note
Not implemented.

Member Data Documentation

bool makVrv::DtPaperMapIntersectionOverrideCommand::myPaperMapIntersectoinOverride
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)