VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrf::DtMapScaleInstance Class Reference

vrvGraphics-based implementation of grid lines More...

Public Member Functions

 DtMapScaleInstance (makVrv::DtDe &de)
 CTOR.
virtual ~DtMapScaleInstance ()
 DTOR.
virtual void setChannelName (const std::string &deName, const std::string &winName, const std::string &channelName)
 Set the name of the channel that this compass should be drawn on.
virtual void setModelDefinition (const std::string &modelDefinition)
 Set the model definition; note that this (potentially) includes all the other parameters enumeration below.
virtual void setVisible (bool isVisible)
 Set the grid line visibility state.
bool visible () const

Protected Member Functions

virtual void slot_channelCreated (makVrv::DtChannelManager *, makVrv::DtChannel *)
 Called when a channel is created - is this our channel?
virtual void slot_channelToBeDestroyed (makVrv::DtChannelManager *, makVrv::DtChannel *)
 Called when a channel is about to be destroyed.
void slot_channelUpdated (makVrv::DtChannelManager *, makVrv::DtChannel *)
 This slot is attached to the renderer's update signal.
virtual void setChannel (makVrv::DtChannel *)
virtual void updateMapScale ()
virtual void destroyVisuals ()
virtual void createVisuals ()
virtual void setupFont ()
virtual double findDistanceFromResolution (double viewResolution, makVrv::DtUnicode &label) const
 Given a view resoltion (meters/pixel) get a distance that will be used to display on the screen.
virtual DtGuiEventProcessorguiEventProcessor () const
virtual void slot_onUnitChanged (int attribute, int from, int old)
 Connected to signal_displayUnitChanged on DtDisplayUnitsSettingsSignaler.
virtual double roundToMeter (double metersDistance, makVrv::DtUnicode &label, bool changeToKm=true) const
 Rounds the current distance to a displayabe meter (or kilometer) representation.
virtual double roundToFeet (double metersDistance, makVrv::DtUnicode &label) const
 Rounds using feet as measurement, however, will still return meters as a result.
virtual double roundToNauticalMiles (double metersDistance, makVrv::DtUnicode &label) const
 Rounds using nauticalMiles as measurement, however, will still return meters as a result.

Protected Attributes

makVrv::DtDemyDe
makVrv::DtSignalConnectionManager myConnections
makVrv::DtOsgChannelmyChannel
makVrv::DtOverlayRenderermyOverlayRenderer
std::string myModelDefinitionName
std::string myDisplayEngineName
std::string myWindowName
std::string myChannelName
bool myVisible
bool myFirstFrame
double myPreviousViewResolution
double myPreviousWindowHeight
double myPreviousWindowWidth
double myPreviousViewportLeft
double myPreviousViewportRight
double myPreviousViewportTop
double myPreviousViewportBottom
bool myParamsChanged
makVrv::DtLineSegmentmyHorizontalLine
makVrv::DtLineSegmentmyLeftEdge
makVrv::DtLineSegmentmyRightEdge
makVrv::DtTextProxymyScaleText
makVrv::DtFontSP myFont
std::string myLabelFont
int myLabelPointSize
int myLabelTextWidth
int myLabelTextHeight
int myBottomOffset
DtGuiEventProcessormyGuiEventProcessor

Private Member Functions

 DtMapScaleInstance (const DtMapScaleInstance &orig)
 Unimplemented copy constructor.
DtMapScaleInstanceoperator= (const DtMapScaleInstance &rhs)
 Unimplemented assignment operator.

Detailed Description

vrvGraphics-based implementation of grid lines

Constructor & Destructor Documentation

makVrf::DtMapScaleInstance::DtMapScaleInstance ( makVrv::DtDe de)

CTOR.

virtual makVrf::DtMapScaleInstance::~DtMapScaleInstance ( )
virtual

DTOR.

makVrf::DtMapScaleInstance::DtMapScaleInstance ( const DtMapScaleInstance orig)
private

Unimplemented copy constructor.

Member Function Documentation

virtual void makVrf::DtMapScaleInstance::setChannelName ( const std::string &  deName,
const std::string &  winName,
const std::string &  channelName 
)
virtual

Set the name of the channel that this compass should be drawn on.

virtual void makVrf::DtMapScaleInstance::setModelDefinition ( const std::string &  modelDefinition)
virtual

Set the model definition; note that this (potentially) includes all the other parameters enumeration below.

virtual void makVrf::DtMapScaleInstance::setVisible ( bool  isVisible)
virtual

Set the grid line visibility state.

bool makVrf::DtMapScaleInstance::visible ( ) const
inline
virtual void makVrf::DtMapScaleInstance::slot_channelCreated ( makVrv::DtChannelManager ,
makVrv::DtChannel  
)
protectedvirtual

Called when a channel is created - is this our channel?

virtual void makVrf::DtMapScaleInstance::slot_channelToBeDestroyed ( makVrv::DtChannelManager ,
makVrv::DtChannel  
)
protectedvirtual

Called when a channel is about to be destroyed.

void makVrf::DtMapScaleInstance::slot_channelUpdated ( makVrv::DtChannelManager ,
makVrv::DtChannel  
)
protected

This slot is attached to the renderer's update signal.

virtual void makVrf::DtMapScaleInstance::setChannel ( makVrv::DtChannel )
protectedvirtual
virtual void makVrf::DtMapScaleInstance::updateMapScale ( )
protectedvirtual
virtual void makVrf::DtMapScaleInstance::destroyVisuals ( )
protectedvirtual
virtual void makVrf::DtMapScaleInstance::createVisuals ( )
protectedvirtual
virtual void makVrf::DtMapScaleInstance::setupFont ( )
protectedvirtual
virtual double makVrf::DtMapScaleInstance::findDistanceFromResolution ( double  viewResolution,
makVrv::DtUnicode label 
) const
protectedvirtual

Given a view resoltion (meters/pixel) get a distance that will be used to display on the screen.

virtual DtGuiEventProcessor& makVrf::DtMapScaleInstance::guiEventProcessor ( ) const
protectedvirtual
virtual void makVrf::DtMapScaleInstance::slot_onUnitChanged ( int  attribute,
int  from,
int  old 
)
protectedvirtual

Connected to signal_displayUnitChanged on DtDisplayUnitsSettingsSignaler.

Calls refreshLabels if the attribute is Distance

virtual double makVrf::DtMapScaleInstance::roundToMeter ( double  metersDistance,
makVrv::DtUnicode label,
bool  changeToKm = true 
) const
protectedvirtual

Rounds the current distance to a displayabe meter (or kilometer) representation.

virtual double makVrf::DtMapScaleInstance::roundToFeet ( double  metersDistance,
makVrv::DtUnicode label 
) const
protectedvirtual

Rounds using feet as measurement, however, will still return meters as a result.

It is the label that is at issue in this calculation

virtual double makVrf::DtMapScaleInstance::roundToNauticalMiles ( double  metersDistance,
makVrv::DtUnicode label 
) const
protectedvirtual

Rounds using nauticalMiles as measurement, however, will still return meters as a result.

It is the label that is at issue in this calculation

DtMapScaleInstance& makVrf::DtMapScaleInstance::operator= ( const DtMapScaleInstance rhs)
private

Unimplemented assignment operator.

Member Data Documentation

makVrv::DtDe& makVrf::DtMapScaleInstance::myDe
protected
makVrv::DtSignalConnectionManager makVrf::DtMapScaleInstance::myConnections
protected
makVrv::DtOsgChannel* makVrf::DtMapScaleInstance::myChannel
protected
makVrv::DtOverlayRenderer* makVrf::DtMapScaleInstance::myOverlayRenderer
protected
std::string makVrf::DtMapScaleInstance::myModelDefinitionName
protected
std::string makVrf::DtMapScaleInstance::myDisplayEngineName
protected
std::string makVrf::DtMapScaleInstance::myWindowName
protected
std::string makVrf::DtMapScaleInstance::myChannelName
protected
bool makVrf::DtMapScaleInstance::myVisible
protected
bool makVrf::DtMapScaleInstance::myFirstFrame
protected
double makVrf::DtMapScaleInstance::myPreviousViewResolution
protected
double makVrf::DtMapScaleInstance::myPreviousWindowHeight
protected
double makVrf::DtMapScaleInstance::myPreviousWindowWidth
protected
double makVrf::DtMapScaleInstance::myPreviousViewportLeft
protected
double makVrf::DtMapScaleInstance::myPreviousViewportRight
protected
double makVrf::DtMapScaleInstance::myPreviousViewportTop
protected
double makVrf::DtMapScaleInstance::myPreviousViewportBottom
protected
bool makVrf::DtMapScaleInstance::myParamsChanged
protected
makVrv::DtLineSegment* makVrf::DtMapScaleInstance::myHorizontalLine
protected
makVrv::DtLineSegment* makVrf::DtMapScaleInstance::myLeftEdge
protected
makVrv::DtLineSegment* makVrf::DtMapScaleInstance::myRightEdge
protected
makVrv::DtTextProxy* makVrf::DtMapScaleInstance::myScaleText
protected
makVrv::DtFontSP makVrf::DtMapScaleInstance::myFont
protected
std::string makVrf::DtMapScaleInstance::myLabelFont
protected
int makVrf::DtMapScaleInstance::myLabelPointSize
protected
int makVrf::DtMapScaleInstance::myLabelTextWidth
protected
int makVrf::DtMapScaleInstance::myLabelTextHeight
protected
int makVrf::DtMapScaleInstance::myBottomOffset
protected
DtGuiEventProcessor* makVrf::DtMapScaleInstance::myGuiEventProcessor
mutableprotected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)