VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtEmbarkationWidget Class Reference

Simple widget that, if a location is set, will see if there is an entity under that location, and, if there is will set the name of the entity into the widget as something that could be embarked upon. More...

Inheritance diagram for makVrf::DtEmbarkationWidget:
Inheritance graph
[legend]

Classes

struct  ScribeBoxInfo
 current highlight information of selected embarkable object More...

Public Member Functions

 DtEmbarkationWidget (makVrv::DtDe &de, QWidget *parent, const Qt::WindowFlags &flags=0)
 CTOR.
virtual ~DtEmbarkationWidget ()
virtual void setLocation (const DtVector &)
 Check to see if thereis anything to embark on here. Location is local database coordinates.
virtual void enable ()
 Whether or not the widget will update in response to setLocation sets.
virtual void disable ()
virtual void setCheckCanEmbarkOn (bool)
 Sets whether or not to check if this object the point is over can be embarked on. Default is false (i.e always embark)
virtual bool checkCanEmbarkOn () const
virtual void setIdsToIgnore (const std::vector< makVrv::DtUniqueID > &)
 The ids to ignore when doing the embark test.
virtual const std::vector
< makVrv::DtUniqueID > & 
idsToIgnore () const
virtual void setEmbarkInSlotIfAvailableVisible (bool b)
virtual void setEmbarkedOn (makVrv::DtUniqueID)
 Sets to specifically embark on the given object id.

Public Attributes

boost::signal< void(makVrv::DtUniqueID,
bool)> 
signal_embarkInformationChanged
QCheckBoxmyEnableAutomaticEmbarkation
QLabelmyEmbarkOn
QCheckBoxmyEmbarkInSlotIfAvailable

Protected Types

typedef std::map
< makVrv::DtUniqueID,
std::vector< ScribeBoxInfo > > 
ScribeBoxHighlightInfo

Protected Slots

virtual void onEmbarkOnChanged ()
virtual void onEmbarkInSlotIfAvailableChanged ()

Protected Member Functions

virtual void setHighlight (makVrv::DtUniqueID, bool)
 Sets whether or not to highlight.
virtual void setCurrentObserver (makVrv::DtObserver *observer)
virtual void onCurrentObserverChanged (makVrv::DtInputDriver *driver, makVrv::DtObserver *observer)
virtual void onObserverModeChanged (makVrv::DtObserver *observer, int mode)
virtual void restoreOriginalHighlightInformation ()
virtual
makVrv::DtOsgScribeBoxModel
scribeBoxModelFor (makVrv::DtUniqueID displayId)
 Returns the scribe box mode (if exists) for the current display id.

Protected Attributes

bool myEnabled
makVrv::DtDemyDe
DtVector myLastLocation
std::vector< makVrv::DtUniqueIDmyIdsToIgnore
makVrv::DtUniqueID myEmbarkId
makVrv::DtObservermyCurrentObserver
ScribeBoxHighlightInfo myScribeBoxHighlightInfo
bool myCheckCanEmbarkOn

Detailed Description

Simple widget that, if a location is set, will see if there is an entity under that location, and, if there is will set the name of the entity into the widget as something that could be embarked upon.

Member Typedef Documentation

Constructor & Destructor Documentation

makVrf::DtEmbarkationWidget::DtEmbarkationWidget ( makVrv::DtDe de,
QWidget parent,
const Qt::WindowFlags &  flags = 0 
)

CTOR.

virtual makVrf::DtEmbarkationWidget::~DtEmbarkationWidget ( )
virtual

Member Function Documentation

virtual void makVrf::DtEmbarkationWidget::setLocation ( const DtVector )
virtual

Check to see if thereis anything to embark on here. Location is local database coordinates.

virtual void makVrf::DtEmbarkationWidget::enable ( )
virtual

Whether or not the widget will update in response to setLocation sets.

virtual void makVrf::DtEmbarkationWidget::disable ( )
virtual
virtual void makVrf::DtEmbarkationWidget::setCheckCanEmbarkOn ( bool  )
virtual

Sets whether or not to check if this object the point is over can be embarked on. Default is false (i.e always embark)

virtual bool makVrf::DtEmbarkationWidget::checkCanEmbarkOn ( ) const
virtual
virtual void makVrf::DtEmbarkationWidget::setIdsToIgnore ( const std::vector< makVrv::DtUniqueID > &  )
virtual

The ids to ignore when doing the embark test.

virtual const std::vector<makVrv::DtUniqueID>& makVrf::DtEmbarkationWidget::idsToIgnore ( ) const
virtual
virtual void makVrf::DtEmbarkationWidget::setEmbarkInSlotIfAvailableVisible ( bool  b)
virtual
virtual void makVrf::DtEmbarkationWidget::setEmbarkedOn ( makVrv::DtUniqueID  )
virtual

Sets to specifically embark on the given object id.

If the object id IS NOT the same as whatever this widget thinks it should be embarked on, the automatic embarkation will be turned off

virtual void makVrf::DtEmbarkationWidget::onEmbarkOnChanged ( )
protectedvirtualslot
virtual void makVrf::DtEmbarkationWidget::onEmbarkInSlotIfAvailableChanged ( )
protectedvirtualslot
virtual void makVrf::DtEmbarkationWidget::setHighlight ( makVrv::DtUniqueID  ,
bool   
)
protectedvirtual

Sets whether or not to highlight.

virtual void makVrf::DtEmbarkationWidget::setCurrentObserver ( makVrv::DtObserver observer)
protectedvirtual
virtual void makVrf::DtEmbarkationWidget::onCurrentObserverChanged ( makVrv::DtInputDriver driver,
makVrv::DtObserver observer 
)
protectedvirtual
virtual void makVrf::DtEmbarkationWidget::onObserverModeChanged ( makVrv::DtObserver observer,
int  mode 
)
protectedvirtual
virtual void makVrf::DtEmbarkationWidget::restoreOriginalHighlightInformation ( )
protectedvirtual
virtual makVrv::DtOsgScribeBoxModel* makVrf::DtEmbarkationWidget::scribeBoxModelFor ( makVrv::DtUniqueID  displayId)
protectedvirtual

Returns the scribe box mode (if exists) for the current display id.

Member Data Documentation

boost::signal<void (makVrv::DtUniqueID, bool)> makVrf::DtEmbarkationWidget::signal_embarkInformationChanged
QCheckBox* makVrf::DtEmbarkationWidget::myEnableAutomaticEmbarkation
QLabel* makVrf::DtEmbarkationWidget::myEmbarkOn
QCheckBox* makVrf::DtEmbarkationWidget::myEmbarkInSlotIfAvailable
bool makVrf::DtEmbarkationWidget::myEnabled
protected
makVrv::DtDe& makVrf::DtEmbarkationWidget::myDe
protected
DtVector makVrf::DtEmbarkationWidget::myLastLocation
protected
std::vector<makVrv::DtUniqueID> makVrf::DtEmbarkationWidget::myIdsToIgnore
protected
makVrv::DtUniqueID makVrf::DtEmbarkationWidget::myEmbarkId
protected
makVrv::DtObserver* makVrf::DtEmbarkationWidget::myCurrentObserver
protected
ScribeBoxHighlightInfo makVrf::DtEmbarkationWidget::myScribeBoxHighlightInfo
protected
bool makVrf::DtEmbarkationWidget::myCheckCanEmbarkOn
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)