![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtAreaConfigWidget: More...

Public Slots | |
| virtual void | createRoutes () |
| This routine will ask the user if they want to create separate route from each edge in the dialog. | |
| virtual void | setEditPoint (QTreeWidgetItem *item) |
| virtual void | moveEdgeUp () |
| These routines will take the points from an edge and move them up or down in the edge hierarchy. | |
| virtual void | moveEdgeDown () |
| virtual void | moveEdge (int iFrom, bool up, bool select=true) |
| virtual void | getPointRange (int iRangeIndex, int &iFrom, int &iTo) const |
| virtual QVector< DtPoint > | getPointList (int iRangeIndex) const |
Public Member Functions | |
| DtTerrainLineConfigWidget (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) | |
| default constructor | |
| virtual | ~DtTerrainLineConfigWidget () |
| destructor | |
| virtual void | setPointRanges (const QVector< int > &ranges) |
| This routine will set grouped ranges of points in the dialog. | |
Static Public Member Functions | |
| static QWidget * | create (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) |
Protected Member Functions | |
| virtual QTreeWidgetItem * | addPoint (const DtPoint &pnt, QTreeWidgetItem *before, const QString &name, const QString &xtr, const QString &ystr, const QString &zstr) |
| If there is a range specified, add the point to the correct range, else call down to base class to add. | |
| virtual DtRangeGroup * | rangeGroup (int iPointNum) |
| Returns the current range parent or creates a new one if the range parent does not exist. | |
| virtual QTreeWidgetItem * | firstChild () |
| Override to make sure to skip range parent items. | |
| virtual QTreeWidgetItem * | nextSibling (QTreeWidgetItem *item) |
| virtual bool | isRangeGroup (QTreeWidgetItem *item) const |
| Returns true if the specified item is a range group item. | |
| virtual void | clearListView () |
| virtual void | reversePoints () |
| Reverse the points in the point list. | |
| virtual bool | initMainDialogChanges () |
| Override to modify the main body of the dialog with new controls. | |
| virtual void | createRouteFromRange (int route, int iBeing, int iEnd, bool last=false) |
| Creates a route from the specified range by putting all the points that need to be created into a temporary list and emitting the createActivated signal with that point list. | |
| virtual void | updateButtons () |
| virtual void | deletePoint () |
| virtual void | addPointToList (const DtPoint &p, QTreeWidgetItem *before) |
| virtual int | rangeIndex (QTreeWidgetItem *) const |
| Returns the range index of the group range item. Returns -1 if not a range group. | |
| virtual DtRangeGroup * | rangeGroup (QTreeWidgetItem *) const |
| Returns the range group of the specified list view item, or NULL if there is no parent. | |
| virtual unsigned int | childCount () const |
| virtual void | changePoint () |
| virtual void | reverseRangeGroup (const DtRangeGroup *) |
| Reverses the points found in the specified range group. | |
| virtual DtSymbol * | selectedSymbol () |
| Returns the currently selected symbol. | |
| virtual void | removeMappedSymbols () |
| virtual void | applyChangesToPointList () |
| Override to remove vertices that are next to each other in the list (i.e. | |
| virtual void | setupEdgeSymbol () |
| virtual DtModelData * | setupEdgeModelData () |
| virtual DtModelData * | edgeModelData () const |
Protected Attributes | |
| QVector< int > | myPointRanges |
| QHash< int, DtRangeGroup * > | myRangeParents |
| QPushButton * | myCreateRoutes |
| QPushButton * | myUpEdge |
| QPushButton * | myDownEdge |
| DtSymbol * | myEdgeSelectionSymbol |
| Mapped terrain symbols to temp symbols kept track of by this dialog. | |
| DtModelData * | myEdgeSelectionHighlightData |
| DtEntityMapperKey | myEdgeSelectionModelKey |
Private Member Functions | |
| DtTerrainLineConfigWidget (const DtTerrainLineConfigWidget &orig) | |
| copy constructor | |
| DtTerrainLineConfigWidget & | operator= (const DtTerrainLineConfigWidget &orig) |
| assignment operator | |
class DtAreaConfigWidget:
Instances of DtAreaConfigWidget are
| DtTerrainLineConfigWidget::DtTerrainLineConfigWidget | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
default constructor
| virtual DtTerrainLineConfigWidget::~DtTerrainLineConfigWidget | ( | ) | [virtual] |
destructor
| DtTerrainLineConfigWidget::DtTerrainLineConfigWidget | ( | const DtTerrainLineConfigWidget & | orig | ) | [private] |
copy constructor
| static QWidget* DtTerrainLineConfigWidget::create | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) | [static] |
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::setPointRanges | ( | const QVector< int > & | ranges | ) | [virtual] |
This routine will set grouped ranges of points in the dialog.
This method will be called if more than one terrain edge is selected so the dialog can group route points by edges. The ranges are interpreted as how many points from the previous point in the range are included in this range (so, the first range is from 0 to the index). This range should be set before the dialog is initialized
| virtual QTreeWidgetItem* DtTerrainLineConfigWidget::addPoint | ( | const DtPoint & | pnt, |
| QTreeWidgetItem * | before, | ||
| const QString & | name, | ||
| const QString & | xtr, | ||
| const QString & | ystr, | ||
| const QString & | zstr | ||
| ) | [protected, virtual] |
If there is a range specified, add the point to the correct range, else call down to base class to add.
Reimplemented from DtLineConfigWidget.
| virtual DtRangeGroup* DtTerrainLineConfigWidget::rangeGroup | ( | int | iPointNum | ) | [protected, virtual] |
Returns the current range parent or creates a new one if the range parent does not exist.
| virtual QTreeWidgetItem* DtTerrainLineConfigWidget::firstChild | ( | ) | [protected, virtual] |
Override to make sure to skip range parent items.
Reimplemented from DtLineConfigWidget.
| virtual QTreeWidgetItem* DtTerrainLineConfigWidget::nextSibling | ( | QTreeWidgetItem * | item | ) | [protected, virtual] |
Reimplemented from DtLineConfigWidget.
| virtual bool DtTerrainLineConfigWidget::isRangeGroup | ( | QTreeWidgetItem * | item | ) | const [protected, virtual] |
Returns true if the specified item is a range group item.
| virtual void DtTerrainLineConfigWidget::clearListView | ( | ) | [protected, virtual] |
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::reversePoints | ( | ) | [protected, virtual] |
Reverse the points in the point list.
Reimplemented from DtLineConfigWidget.
| virtual bool DtTerrainLineConfigWidget::initMainDialogChanges | ( | ) | [protected, virtual] |
Override to modify the main body of the dialog with new controls.
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::createRouteFromRange | ( | int | route, |
| int | iBeing, | ||
| int | iEnd, | ||
| bool | last = false |
||
| ) | [protected, virtual] |
Creates a route from the specified range by putting all the points that need to be created into a temporary list and emitting the createActivated signal with that point list.
| virtual void DtTerrainLineConfigWidget::updateButtons | ( | ) | [protected, virtual] |
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::deletePoint | ( | ) | [protected, virtual] |
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::addPointToList | ( | const DtPoint & | p, |
| QTreeWidgetItem * | before | ||
| ) | [protected, virtual] |
Reimplemented from DtLineConfigWidget.
| virtual int DtTerrainLineConfigWidget::rangeIndex | ( | QTreeWidgetItem * | ) | const [protected, virtual] |
Returns the range index of the group range item. Returns -1 if not a range group.
| virtual DtRangeGroup* DtTerrainLineConfigWidget::rangeGroup | ( | QTreeWidgetItem * | ) | const [protected, virtual] |
Returns the range group of the specified list view item, or NULL if there is no parent.
| virtual unsigned int DtTerrainLineConfigWidget::childCount | ( | ) | const [protected, virtual] |
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::changePoint | ( | ) | [protected, virtual] |
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::reverseRangeGroup | ( | const DtRangeGroup * | ) | [protected, virtual] |
Reverses the points found in the specified range group.
| virtual DtSymbol* DtTerrainLineConfigWidget::selectedSymbol | ( | ) | [protected, virtual] |
Returns the currently selected symbol.
If a clone of the base terrain symbol does not exist, it will create one and add it to the view driver
| virtual void DtTerrainLineConfigWidget::removeMappedSymbols | ( | ) | [protected, virtual] |
| virtual void DtTerrainLineConfigWidget::applyChangesToPointList | ( | ) | [protected, virtual] |
Override to remove vertices that are next to each other in the list (i.e.
overlapping points from the end of one route to the beginning of the next)
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::setupEdgeSymbol | ( | ) | [protected, virtual] |
| virtual DtModelData* DtTerrainLineConfigWidget::setupEdgeModelData | ( | ) | [protected, virtual] |
| virtual DtModelData* DtTerrainLineConfigWidget::edgeModelData | ( | ) | const [protected, virtual] |
| virtual void DtTerrainLineConfigWidget::createRoutes | ( | ) | [virtual, slot] |
This routine will ask the user if they want to create separate route from each edge in the dialog.
If they do, each edge will be gathered into a point array and emitted as a signal to create a route from those point
| virtual void DtTerrainLineConfigWidget::setEditPoint | ( | QTreeWidgetItem * | item | ) | [virtual, slot] |
Reimplemented from DtLineConfigWidget.
| virtual void DtTerrainLineConfigWidget::moveEdgeUp | ( | ) | [virtual, slot] |
These routines will take the points from an edge and move them up or down in the edge hierarchy.
| virtual void DtTerrainLineConfigWidget::moveEdgeDown | ( | ) | [virtual, slot] |
| virtual void DtTerrainLineConfigWidget::moveEdge | ( | int | iFrom, |
| bool | up, | ||
| bool | select = true |
||
| ) | [virtual, slot] |
| virtual void DtTerrainLineConfigWidget::getPointRange | ( | int | iRangeIndex, |
| int & | iFrom, | ||
| int & | iTo | ||
| ) | const [virtual, slot] |
| virtual QVector<DtPoint> DtTerrainLineConfigWidget::getPointList | ( | int | iRangeIndex | ) | const [virtual, slot] |
| DtTerrainLineConfigWidget& DtTerrainLineConfigWidget::operator= | ( | const DtTerrainLineConfigWidget & | orig | ) | [private] |
assignment operator
QVector<int> DtTerrainLineConfigWidget::myPointRanges [protected] |
QHash<int, DtRangeGroup*> DtTerrainLineConfigWidget::myRangeParents [protected] |
QPushButton* DtTerrainLineConfigWidget::myCreateRoutes [protected] |
QPushButton* DtTerrainLineConfigWidget::myUpEdge [protected] |
QPushButton* DtTerrainLineConfigWidget::myDownEdge [protected] |
DtSymbol* DtTerrainLineConfigWidget::myEdgeSelectionSymbol [protected] |
Mapped terrain symbols to temp symbols kept track of by this dialog.
Used for reversing points