![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtTMMiniMap is a view of the full world on a small window. More...

Public Slots | |
| virtual void | setActiveRubberBand (DtTMRubberBand *) |
| Slot to set the active rubber band. | |
| virtual void | removeRubberBand (QObject *) |
| Its a qobject only for signal/slot matching.. | |
| virtual void | drawRubberBands (QPainter *p) |
Signals | |
| void | activeRubberBandSet (const DtTMRubberBand *) |
| Indicates that the active rubber band has been changed. | |
Public Member Functions | |
| DtTMMiniMap (QWidget *parent=0, const Qt::WindowFlags &f=0) | |
| Constructor. | |
| virtual | ~DtTMMiniMap () |
| Destructor. | |
| virtual bool | init (const DtTMFactory *f) |
| Initializer. | |
| virtual bool | showingRubberBands () const |
| Returns true if showing rubber bands. False if not. | |
| virtual void | setShowingRubberBands (bool onOff) |
| Toggles showing rubber bands. | |
| virtual QSize | minimumSizeHint () const |
| Returns preferred size. | |
| virtual QSize | sizeHint () const |
| virtual DtTMRubberBand * | addRubberBand (const DtTMFactory *f, const DtTMMiniMap *m, const DtTMMapArea *a, double pctX=0, double pctY=0, double pctWidth=1, double pctHeight=1, QPen *activePen=0, QPen *inactivePen=0) |
| virtual const QPen & | activePen () const |
| Returns a reference to the default pen used for drawing in the active state. | |
| virtual void | setActivePen (const QPen &p) |
| Sets the default pen used for drawing in the active state. | |
| virtual const QPen & | inactivePen () const |
| Returns a reference to the default pen use for drawing in the inactive state. | |
| virtual void | setInactivePen (const QPen &p) |
| Sets the default pen used for drawing in the inactive state. | |
| virtual void | setActiveColor (const QColor &c) |
| virtual void | setInactiveColor (const QColor &c) |
Static Public Member Functions | |
| static DtTMMiniMap * | create (QWidget *parent, const Qt::WindowFlags &f) |
| Returns a newly created instance of a DtTMMiniMap. | |
Protected Member Functions | |
| DtTMMiniMap (const DtTMMiniMap &orig) | |
| Not implemented. | |
| DtTMMiniMap & | operator= (const DtTMMiniMap &orig) |
| Not implemented. | |
| virtual void | mouseReleaseEvent (QMouseEvent *e) |
| Override parent implementation. | |
| virtual void | mousePressEvent (QMouseEvent *e) |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
| virtual void | resizeEvent (QResizeEvent *e) |
| Resize event. | |
| virtual void | clipPoint (QPoint &point) |
| Protected member functions. | |
| virtual void | clipRect (QRect &rect) |
| virtual void | reorderRectangle (QRect &rect) |
| virtual void | resizeRectToFitAspectRatio (QRect &r, const double &ratio) |
| virtual bool | needsDrawOrder () const |
| Mini maps do not care about draw ordering, so return false. | |
Protected Attributes | |
| QPen | myActivePen |
| QPen | myInactivePen |
| DtTMRubberBandList | myTMRubberBandList |
| DtTMRubberBand * | myActiveRubberBand |
| QRect | mySelectionRect |
| bool | myShowingRubberBands |
| bool | myTracking |
A DtTMMiniMap is a view of the full world on a small window.
Because the world is typically not scaled or resized, this class is optimized for a static bitmap as a terrain. Also, it contains a way of drawing blips, and a few other graphical signals as well as a callback loop if you want to add extra information
| DtTMMiniMap::DtTMMiniMap | ( | QWidget * | parent = 0, |
| const Qt::WindowFlags & | f = 0 |
||
| ) |
Constructor.
| virtual DtTMMiniMap::~DtTMMiniMap | ( | ) | [virtual] |
Destructor.
| DtTMMiniMap::DtTMMiniMap | ( | const DtTMMiniMap & | orig | ) | [protected] |
Not implemented.
| virtual bool DtTMMiniMap::init | ( | const DtTMFactory * | f | ) | [virtual] |
| virtual bool DtTMMiniMap::showingRubberBands | ( | ) | const [virtual] |
Returns true if showing rubber bands. False if not.
| virtual void DtTMMiniMap::setShowingRubberBands | ( | bool | onOff | ) | [virtual] |
Toggles showing rubber bands.
| virtual QSize DtTMMiniMap::minimumSizeHint | ( | ) | const [virtual] |
Returns preferred size.
| virtual QSize DtTMMiniMap::sizeHint | ( | ) | const [virtual] |
| virtual DtTMRubberBand* DtTMMiniMap::addRubberBand | ( | const DtTMFactory * | f, |
| const DtTMMiniMap * | m, | ||
| const DtTMMapArea * | a, | ||
| double | pctX = 0, |
||
| double | pctY = 0, |
||
| double | pctWidth = 1, |
||
| double | pctHeight = 1, |
||
| QPen * | activePen = 0, |
||
| QPen * | inactivePen = 0 |
||
| ) | [virtual] |
| virtual const QPen& DtTMMiniMap::activePen | ( | ) | const [virtual] |
Returns a reference to the default pen used for drawing in the active state.
Rubber bands may instantiate their own pen if they wish to use a special color etc.
| virtual void DtTMMiniMap::setActivePen | ( | const QPen & | p | ) | [virtual] |
Sets the default pen used for drawing in the active state.
| virtual const QPen& DtTMMiniMap::inactivePen | ( | ) | const [virtual] |
Returns a reference to the default pen use for drawing in the inactive state.
Rubber bands may instantiate their own pen if they wish to use a special color etc.
| virtual void DtTMMiniMap::setInactivePen | ( | const QPen & | p | ) | [virtual] |
Sets the default pen used for drawing in the inactive state.
| virtual void DtTMMiniMap::setActiveColor | ( | const QColor & | c | ) | [virtual] |
| virtual void DtTMMiniMap::setInactiveColor | ( | const QColor & | c | ) | [virtual] |
| static DtTMMiniMap* DtTMMiniMap::create | ( | QWidget * | parent, |
| const Qt::WindowFlags & | f | ||
| ) | [static] |
Returns a newly created instance of a DtTMMiniMap.
Reimplemented in DtTerrainMiniMap.
| void DtTMMiniMap::activeRubberBandSet | ( | const DtTMRubberBand * | ) | [signal] |
Indicates that the active rubber band has been changed.
| virtual void DtTMMiniMap::setActiveRubberBand | ( | DtTMRubberBand * | ) | [virtual, slot] |
Slot to set the active rubber band.
| virtual void DtTMMiniMap::removeRubberBand | ( | QObject * | ) | [virtual, slot] |
Its a qobject only for signal/slot matching..
| virtual void DtTMMiniMap::drawRubberBands | ( | QPainter * | p | ) | [virtual, slot] |
| DtTMMiniMap& DtTMMiniMap::operator= | ( | const DtTMMiniMap & | orig | ) | [protected] |
Not implemented.
| virtual void DtTMMiniMap::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Override parent implementation.
| virtual void DtTMMiniMap::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
| virtual void DtTMMiniMap::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
| virtual void DtTMMiniMap::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Resize event.
Reimplemented from DtTMArea.
| virtual void DtTMMiniMap::clipPoint | ( | QPoint & | point | ) | [protected, virtual] |
Protected member functions.
| virtual void DtTMMiniMap::clipRect | ( | QRect & | rect | ) | [protected, virtual] |
| virtual void DtTMMiniMap::reorderRectangle | ( | QRect & | rect | ) | [protected, virtual] |
| virtual void DtTMMiniMap::resizeRectToFitAspectRatio | ( | QRect & | r, |
| const double & | ratio | ||
| ) | [protected, virtual] |
| virtual bool DtTMMiniMap::needsDrawOrder | ( | ) | const [protected, virtual] |
Mini maps do not care about draw ordering, so return false.
Reimplemented from DtTMArea.
QPen DtTMMiniMap::myActivePen [protected] |
QPen DtTMMiniMap::myInactivePen [protected] |
DtTMRubberBandList DtTMMiniMap::myTMRubberBandList [protected] |
DtTMRubberBand* DtTMMiniMap::myActiveRubberBand [protected] |
QRect DtTMMiniMap::mySelectionRect [protected] |
bool DtTMMiniMap::myShowingRubberBands [protected] |
bool DtTMMiniMap::myTracking [protected] |