VR-Forces 4.0.4 Class Documentation
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtTMRubberBand Class Reference
Inheritance diagram for DtTMRubberBand:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void setViewportExtents (const DtTMViewportExtents *v)
 Sets the tdb view and emits tdbViewSet.
virtual void setMinimapExtents (const DtTMViewportExtents *v)
 Sets the minimap view.
virtual void setActive ()
 The window of this rubber band is now active.

Signals

void viewportExtentsSet (const DtTMViewportExtents *v)
 Called after setViewportExtents.
void viewportExtentsChanged (const DtTMViewportExtents *v)
 Called after internally changing tdb view.
void rubberBandUpdated ()
 Indicates that the rubber band has been updated.
void activePenChanged (const QPen *)
 Called when the active pen changed.
void inactivePenChanged (const QPen *)
 Called when the inactive pen changed.
void isActive (DtTMRubberBand *)
 notifies whoever wants to know that this rubber band is active

Public Member Functions

 DtTMRubberBand ()
 Constructor.
virtual ~DtTMRubberBand ()
 Destructor.
virtual bool init (const DtTMMiniMap *m, const DtTMMapArea *a)
 Initializer.
virtual const QPen * activePen () const
 Returns a reference to the pen used for drawing in the active state.
virtual void setActivePen (const QPen *p)
 Sets the pen used for drawing in the active state.
virtual const QPen * inactivePen () const
 Returns a reference to the pen use for drawing in the inactive state.
virtual void setInactivePen (const QPen *p)
 Sets the pen used for drawing in the inactive state.
virtual void setPct (const double pctX, const double pctY, const double pctW, const double pctH)
 Sets the location and size of the rubber band.
virtual double pctX () const
virtual void setPctX (const double d)
virtual double pctY () const
virtual void setPctY (const double d)
virtual double pctW () const
virtual void setPctW (const double d)
virtual double pctH () const
virtual void setPctH (const double d)
virtual const DtTMViewportExtentswindowViewportExtents () const
 Returns a pointer to the window tdb view.
virtual void setWindowViewportExtents (const DtTMViewportExtents *v)
 Set the window tdb view.
virtual const DtTMViewportExtentsviewportExtents () const
 Get myTdbView.

Static Public Member Functions

static DtTMRubberBandcreate ()
 Returns a newly created instance of a DtTMRubberBand.

Protected Member Functions

virtual void resizeRectToFitAspectRatio (DtExtent &ext, DtTMViewportExtents *extents)
 DtTMRubberBand (const DtTMRubberBand &orig)
 Copy constructor.
DtTMRubberBandoperator= (const DtTMRubberBand &rhs)
 Assignment operator.

Protected Attributes

DtTMViewportExtents myViewportExtents
const DtTMViewportExtentsmyWindowViewportExtents
QPen * myActivePen
QPen * myInactivePen
double myPctX
double myPctY
double myPctW
double myPctH

Constructor & Destructor Documentation

Constructor.

virtual DtTMRubberBand::~DtTMRubberBand ( ) [virtual]

Destructor.

DtTMRubberBand::DtTMRubberBand ( const DtTMRubberBand orig) [protected]

Copy constructor.


Member Function Documentation

virtual bool DtTMRubberBand::init ( const DtTMMiniMap m,
const DtTMMapArea a 
) [virtual]

Initializer.

virtual const QPen* DtTMRubberBand::activePen ( ) const [virtual]

Returns a reference to the pen used for drawing in the active state.

virtual void DtTMRubberBand::setActivePen ( const QPen *  p) [virtual]

Sets the pen used for drawing in the active state.

virtual const QPen* DtTMRubberBand::inactivePen ( ) const [virtual]

Returns a reference to the pen use for drawing in the inactive state.

virtual void DtTMRubberBand::setInactivePen ( const QPen *  p) [virtual]

Sets the pen used for drawing in the inactive state.

virtual void DtTMRubberBand::setPct ( const double  pctX,
const double  pctY,
const double  pctW,
const double  pctH 
) [virtual]

Sets the location and size of the rubber band.

virtual double DtTMRubberBand::pctX ( ) const [virtual]
virtual void DtTMRubberBand::setPctX ( const double  d) [virtual]
virtual double DtTMRubberBand::pctY ( ) const [virtual]
virtual void DtTMRubberBand::setPctY ( const double  d) [virtual]
virtual double DtTMRubberBand::pctW ( ) const [virtual]
virtual void DtTMRubberBand::setPctW ( const double  d) [virtual]
virtual double DtTMRubberBand::pctH ( ) const [virtual]
virtual void DtTMRubberBand::setPctH ( const double  d) [virtual]
virtual const DtTMViewportExtents* DtTMRubberBand::windowViewportExtents ( ) const [virtual]

Returns a pointer to the window tdb view.

virtual void DtTMRubberBand::setWindowViewportExtents ( const DtTMViewportExtents v) [virtual]

Set the window tdb view.

virtual const DtTMViewportExtents& DtTMRubberBand::viewportExtents ( ) const [virtual]

Get myTdbView.

static DtTMRubberBand* DtTMRubberBand::create ( ) [static]

Returns a newly created instance of a DtTMRubberBand.

Called after setViewportExtents.

Called after internally changing tdb view.

Indicates that the rubber band has been updated.

void DtTMRubberBand::activePenChanged ( const QPen *  ) [signal]

Called when the active pen changed.

void DtTMRubberBand::inactivePenChanged ( const QPen *  ) [signal]

Called when the inactive pen changed.

notifies whoever wants to know that this rubber band is active

virtual void DtTMRubberBand::setViewportExtents ( const DtTMViewportExtents v) [virtual, slot]

Sets the tdb view and emits tdbViewSet.

virtual void DtTMRubberBand::setMinimapExtents ( const DtTMViewportExtents v) [virtual, slot]

Sets the minimap view.

virtual void DtTMRubberBand::setActive ( ) [virtual, slot]

The window of this rubber band is now active.

virtual void DtTMRubberBand::resizeRectToFitAspectRatio ( DtExtent ext,
DtTMViewportExtents extents 
) [protected, virtual]
DtTMRubberBand& DtTMRubberBand::operator= ( const DtTMRubberBand rhs) [protected]

Assignment operator.


Member Data Documentation

QPen* DtTMRubberBand::myActivePen [protected]
QPen* DtTMRubberBand::myInactivePen [protected]
double DtTMRubberBand::myPctX [protected]
double DtTMRubberBand::myPctY [protected]
double DtTMRubberBand::myPctW [protected]
double DtTMRubberBand::myPctH [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)