VR-Forces 5.0.2 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
makVrv::DtPaperMapCommand Class Reference

DtPaperMapCommand 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</mapgroup> This puts the layer in the air, naval group which can be selected from the 2D View Layer Toolbar

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::DtPaperMapCommand:
Inheritance graph
[legend]

Public Member Functions

 DtPaperMapCommand ()
 
virtual ~DtPaperMapCommand ()
 
 DtPaperMapCommand (DtPaperMapCommand &in)=delete
 
DtPaperMapCommandoperator= (const DtPaperMapCommand &)=delete
 
virtual bool paperMap () const
 
virtual void setPaperMap (bool enabled)
 
virtual void execute (DtDe &de)
 
- Public Member Functions inherited from makVrv::DtVrvCommand
 DtVrvCommand ()
 
virtual ~DtVrvCommand ()
 
virtual
vrvControlToolkit::DtVrvControlTypeEnum 
commandType ()
 

Protected Attributes

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

Constructor & Destructor Documentation

makVrv::DtPaperMapCommand::DtPaperMapCommand ( )

CTOR.

virtual makVrv::DtPaperMapCommand::~DtPaperMapCommand ( )
virtual

DTOR.

makVrv::DtPaperMapCommand::DtPaperMapCommand ( DtPaperMapCommand in)
delete

Copy Constructor not implemented - Copy not allowed.

Member Function Documentation

DtPaperMapCommand& makVrv::DtPaperMapCommand::operator= ( const DtPaperMapCommand )
delete

Assignment Operator not implemented - Assignment not allowed.

virtual bool makVrv::DtPaperMapCommand::paperMap ( ) const
virtual

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

virtual void makVrv::DtPaperMapCommand::setPaperMap ( bool  enabled)
virtual

Set whether osgEarth will pay attention to the mask.

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

Set the DtDeSharedState::setPaperMapEnabled to true or false.

Implements makVrv::DtVrvCommand.

Member Data Documentation

bool makVrv::DtPaperMapCommand::myPaperMap
protected

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)