VR-Forces 4.2 Class Documentation
List of all members | 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]

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.
- Public Member Functions inherited from DtArchivableObject
 DtArchivableObject (QString name, DtArchivableObjectCreator fcn)
 This constructor will add this object to the archivable object factory.
 DtArchivableObject (QString name)
 DtArchivableObject ()
virtual ~DtArchivableObject ()
virtual QString name () const
DtArchiverarchiver ()
 Returns the archiver of this object.
virtual void read (QTextStream &s)
 Reads/writes archiver.
virtual void write (QTextStream &s)
virtual void setLevel (int i)
virtual int level () const
virtual DtArchivableObjectclone ()
 Allows for cloning of this object.

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
- Protected Attributes inherited from DtArchivableObject
DtArchivermyArchiver

Constructor & Destructor Documentation

DtTMRubberBand::DtTMRubberBand ( )

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.

void DtTMRubberBand::viewportExtentsSet ( const DtTMViewportExtents v)
signal

Called after setViewportExtents.

void DtTMRubberBand::viewportExtentsChanged ( const DtTMViewportExtents v)
signal

Called after internally changing tdb view.

void DtTMRubberBand::rubberBandUpdated ( )
signal

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.

void DtTMRubberBand::isActive ( DtTMRubberBand )
signal

notifies whoever wants to know that this rubber band is active

virtual void DtTMRubberBand::setViewportExtents ( const DtTMViewportExtents v)
virtualslot

Sets the tdb view and emits tdbViewSet.

virtual void DtTMRubberBand::setMinimapExtents ( const DtTMViewportExtents v)
virtualslot

Sets the minimap view.

virtual void DtTMRubberBand::setActive ( )
virtualslot

The window of this rubber band is now active.

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

Assignment operator.

Member Data Documentation

DtTMViewportExtents DtTMRubberBand::myViewportExtents
protected
const DtTMViewportExtents* DtTMRubberBand::myWindowViewportExtents
protected
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 Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)