![]() |
VR-Forces 4.10 Class Documentation
|
DtPaperMapCommand holds the state of whether the use of layer masks in .earth files. More...

Public Member Functions | |
| DtPaperMapCommand () | |
| CTOR. More... | |
| virtual | ~DtPaperMapCommand () |
| DTOR. More... | |
| DtPaperMapCommand (DtPaperMapCommand &in)=delete | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtPaperMapCommand & | operator= (const DtPaperMapCommand &)=delete |
| Assignment Operator not implemented - Assignment not allowed. More... | |
| virtual bool | paperMap () const |
| Get if layer masks be considered when rendering osgEarth layers in 2D or 3D. More... | |
| virtual void | setPaperMap (bool enabled) |
| Set whether osgEarth will pay attention to the mask. More... | |
| virtual void | execute (DtDe &de) |
| Set the DtDeSharedState::setPaperMapEnabled to true or false. More... | |
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 |
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>
| makVrv::DtPaperMapCommand::DtPaperMapCommand | ( | ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Get if layer masks be considered when rendering osgEarth layers in 2D or 3D.
|
virtual |
Set whether osgEarth will pay attention to the mask.
|
virtual |
Set the DtDeSharedState::setPaperMapEnabled to true or false.
Implements makVrv::DtVrvCommand.
|
protected |