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

Public Slots | |
| virtual void | updateUnits (const DtUnitDisplayManager *u) |
| virtual void | updateCoordinateSystem (const DtCoordSys &system) |
| virtual void | addPoint (const DtPoint &p) |
| virtual void | editPoint (const DtPoint &p) |
| virtual void | redisplayPoints () |
| virtual void | cancelAndClose () |
| virtual void | createAndClose () |
| virtual void | editAndClose () |
| virtual void | changePoint () |
| virtual void | changeName (const QString &s) |
| virtual void | setEditPoint (QTreeWidgetItem *item) |
| virtual void | changeDefaultZPoint (double height) |
| virtual void | changeAllZPoints (double h) |
| virtual void | setHeightOffset (double h) |
| virtual void | addPoint () |
| virtual void | deletePoint () |
| virtual void | selectionChanged () |
| virtual void | userComplete (bool finish) |
| Received when the user has right clicked the mouse and they never want this dialog shown. | |
| virtual void | reversePoints () |
| Reverse the points in the point list. | |
| virtual void | setInFreehandDrawingMode (bool) |
| Set when in freehand drawing mode. Will not update list box until set to false. | |
| virtual void | updateUnits (const QString &, const QString &, const QString &) |
Signals | |
| void | updateSymbol () |
| void | createActivated (QVector< DtPoint > &points, QString name, QString label, QColor color, int forceType, int appearance, bool publish, QString attachTo, DtArchivableObject *userData, bool lastOne=true) |
| void | cancelActivated () |
| void | editActivated (QString name, QString label, QColor color, int forceType, int appearance, bool publish, DtArchivableObject *userData) |
| void | heightOffsetChanged (double) |
| void | colorChanged () |
| Sent when the color of the object has changed. | |
| void | nameChanged () |
| Sent when the user has changed the name of the object. | |
| void | closing (QVector< DtPoint > *) |
| Emitted when this dialog is closing, also pass it along to the controller to remove any dialogs spawned by this dialog. | |
| void | altitudeSelectionChanged (int, double) |
Public Member Functions | |
| DtLineConfigWidget (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) | |
| default constructor | |
| virtual | ~DtLineConfigWidget () |
| destructor | |
| virtual bool | init (const DtTMMapArea *converter, QVector< DtPoint > *list, QString *name, QString *label, int forceType, const QString &minimumPoints, const DtModelData *data, bool editNotCreate=0, DtSymbol *workingSymbol=NULL, const DtEntityMapperKey *key=NULL, DtArchivableObject *userData=NULL) |
| virtual double | heightOffset () const |
| bool | editNotCreate () const |
| const DtEntityMapperKey & | entityMapperKey () const |
Static Public Member Functions | |
| static QWidget * | create (QWidget *parent=NULL, const Qt::WindowFlags &flags=0) |
Public Attributes | |
| Ui::LineConfigWidgetUi | myUiImpl |
Protected Member Functions | |
| virtual void | keyPressEvent (QKeyEvent *e) |
| Handle the return key to accept changes or escape key to cancel changes. | |
| virtual bool | initConnections (const DtTMMapArea *area) |
| virtual void | clearPointEdit () |
| virtual void | addPointToList (const DtPoint &p, QTreeWidgetItem *before=NULL) |
| virtual void | updateButtons () |
| virtual bool | passNameCheck () |
| virtual bool | shouldPublish () const |
| virtual void | updateNumPointsLabel () |
| virtual bool | prepareCreateModify (QColor &color) |
| virtual bool | hideZValues (const DtEntityMapperKey *key) |
| Hide Z values based on key type. Return true if want to hide. | |
| virtual void | hideHeightInformation () |
| virtual void | fillPointList () |
| virtual int | selectedIndex () const |
| virtual void | setLabels () |
| Sets labels due to coordinate system and unit selection. | |
| virtual bool | fillPointListIfDifferent (DtPoint *curPoint=NULL) |
| If the number of points in the list view is different than the internal list, update the internal list. | |
| virtual bool | initMainDialogChanges () |
| Override to modify the main body of the dialog with new controls. | |
| virtual void | closeEvent (QCloseEvent *c) |
| virtual void | updateOptions (DtSymbol *symbol, const DtModelData *data, const DtEntityMapperKey *key) |
| virtual QTreeWidgetItem * | addPoint (const DtPoint &pnt, QTreeWidgetItem *before, const QString &name, const QString &xtr, const QString &ystr, const QString &zstr) |
| virtual QTreeWidgetItem * | firstChild () |
| Override to allow subclasses to determine which is really the first and next sibling. | |
| virtual QTreeWidgetItem * | nextSibling (QTreeWidgetItem *item) |
| virtual void | clearListView () |
| virtual unsigned int | childCount () const |
| virtual bool | eventFilter (QObject *o, QEvent *e) |
| virtual void | reversePoints (int iStart, int iCount) |
| Reverses the points from start to end location in the myPointList array and redisplay points on the screen. | |
| virtual void | reversePointsInMemory (int iStart, int iCount) |
| virtual void | updatePointList (bool emitSignal=true) |
| Clears and redisplays point list. | |
| virtual void | addPointToPointLists (DtPoint *pnt, int pos) |
| If there is a list of original points, add the point in relative position (given current sampling rate) into the list. | |
| virtual void | addPointToPointList (QVector< DtPoint > *list, DtPoint *pnt, int pos) |
| virtual void | applyChangesToPointList () |
| Apply any last minute changes to point list. | |
| virtual bool | pointListsDifferent () |
| virtual void | setupZValue () |
Protected Attributes | |
| DtTMMapArea * | myCSConverter |
| Pointers to creator and creator's data. | |
| QVector< DtPoint > * | myPointList |
| QString * | myObjectNamePtr |
| QString * | myLabelPtr |
| bool | myEditNotCreate |
| int | myPointNum |
| int | myTotalPoints |
| double | myHeightOffset |
| DtSymbol * | myWorkingSymbol |
| int | myMinimumPoints |
| bool | myUnlimitedPoints |
| const DtModelData * | myModelData |
| DtLocationEntryWidget * | myLocationEntryWidget |
| DtArchivableObject * | myUserData |
| bool | myClosing |
| int | myAppearance |
| QVector< DtPoint > * | myOriginalList |
| If sampling down, this list will hold all the original points;. | |
| int | myCurrentSamplingRate |
| int | myDefaultLineWidth |
| int | myDefaultLineStyle |
| int | myDefaultTransparency |
| bool | myFirstTime |
| DtEntityMapperKey | myEntityMapperKey |
| QVector< DtPoint > | myCurrentList |
| bool | myInFreehandDrawingMode |
Private Member Functions | |
| DtLineConfigWidget (const DtLineConfigWidget &orig) | |
| copy constructor | |
| DtLineConfigWidget & | operator= (const DtLineConfigWidget &orig) |
| assignment operator | |
class DtLineConfigWidget:
Instances of DtLineConfigWidget are
| DtLineConfigWidget::DtLineConfigWidget | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
default constructor
| virtual DtLineConfigWidget::~DtLineConfigWidget | ( | ) | [virtual] |
destructor
| DtLineConfigWidget::DtLineConfigWidget | ( | const DtLineConfigWidget & | orig | ) | [private] |
copy constructor
| virtual bool DtLineConfigWidget::init | ( | const DtTMMapArea * | converter, |
| QVector< DtPoint > * | list, | ||
| QString * | name, | ||
| QString * | label, | ||
| int | forceType, | ||
| const QString & | minimumPoints, | ||
| const DtModelData * | data, | ||
| bool | editNotCreate = 0, |
||
| DtSymbol * | workingSymbol = NULL, |
||
| const DtEntityMapperKey * | key = NULL, |
||
| DtArchivableObject * | userData = NULL |
||
| ) | [virtual] |
| virtual double DtLineConfigWidget::heightOffset | ( | ) | const [virtual] |
| static QWidget* DtLineConfigWidget::create | ( | QWidget * | parent = NULL, |
| const Qt::WindowFlags & | flags = 0 |
||
| ) | [static] |
Reimplemented in DtTerrainLineConfigWidget, and DtAreaConfigWidget.
| bool DtLineConfigWidget::editNotCreate | ( | ) | const [inline] |
References myEditNotCreate.
| const DtEntityMapperKey & DtLineConfigWidget::entityMapperKey | ( | ) | const [inline] |
References myEntityMapperKey.
| void DtLineConfigWidget::updateSymbol | ( | ) | [signal] |
| void DtLineConfigWidget::createActivated | ( | QVector< DtPoint > & | points, |
| QString | name, | ||
| QString | label, | ||
| QColor | color, | ||
| int | forceType, | ||
| int | appearance, | ||
| bool | publish, | ||
| QString | attachTo, | ||
| DtArchivableObject * | userData, | ||
| bool | lastOne = true |
||
| ) | [signal] |
| void DtLineConfigWidget::cancelActivated | ( | ) | [signal] |
| void DtLineConfigWidget::editActivated | ( | QString | name, |
| QString | label, | ||
| QColor | color, | ||
| int | forceType, | ||
| int | appearance, | ||
| bool | publish, | ||
| DtArchivableObject * | userData | ||
| ) | [signal] |
| void DtLineConfigWidget::heightOffsetChanged | ( | double | ) | [signal] |
| void DtLineConfigWidget::colorChanged | ( | ) | [signal] |
Sent when the color of the object has changed.
| void DtLineConfigWidget::nameChanged | ( | ) | [signal] |
Sent when the user has changed the name of the object.
| void DtLineConfigWidget::closing | ( | QVector< DtPoint > * | ) | [signal] |
Emitted when this dialog is closing, also pass it along to the controller to remove any dialogs spawned by this dialog.
| void DtLineConfigWidget::altitudeSelectionChanged | ( | int | , |
| double | |||
| ) | [signal] |
| virtual void DtLineConfigWidget::updateUnits | ( | const DtUnitDisplayManager * | u | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::updateCoordinateSystem | ( | const DtCoordSys & | system | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::addPoint | ( | const DtPoint & | p | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::editPoint | ( | const DtPoint & | p | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::redisplayPoints | ( | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::cancelAndClose | ( | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::createAndClose | ( | ) | [virtual, slot] |
Reimplemented in DtAreaConfigWidget.
| virtual void DtLineConfigWidget::editAndClose | ( | ) | [virtual, slot] |
Reimplemented in DtAreaConfigWidget.
| virtual void DtLineConfigWidget::changePoint | ( | ) | [virtual, slot] |
Reimplemented in DtTerrainLineConfigWidget.
| virtual void DtLineConfigWidget::changeName | ( | const QString & | s | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::setEditPoint | ( | QTreeWidgetItem * | item | ) | [virtual, slot] |
Reimplemented in DtTerrainLineConfigWidget, and DtAreaConfigWidget.
| virtual void DtLineConfigWidget::changeDefaultZPoint | ( | double | height | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::changeAllZPoints | ( | double | h | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::setHeightOffset | ( | double | h | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::addPoint | ( | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::deletePoint | ( | ) | [virtual, slot] |
Reimplemented in DtTerrainLineConfigWidget.
| virtual void DtLineConfigWidget::selectionChanged | ( | ) | [virtual, slot] |
| virtual void DtLineConfigWidget::userComplete | ( | bool | finish | ) | [virtual, slot] |
Received when the user has right clicked the mouse and they never want this dialog shown.
If the data is complete, signals to create the object in question. If it is incomplete, will bring up the dialog so the user can finish with the object creation
| virtual void DtLineConfigWidget::reversePoints | ( | ) | [virtual, slot] |
Reverse the points in the point list.
Reimplemented in DtTerrainLineConfigWidget.
| virtual void DtLineConfigWidget::setInFreehandDrawingMode | ( | bool | ) | [virtual, slot] |
Set when in freehand drawing mode. Will not update list box until set to false.
| virtual void DtLineConfigWidget::updateUnits | ( | const QString & | , |
| const QString & | , | ||
| const QString & | |||
| ) | [virtual, slot] |
| DtLineConfigWidget& DtLineConfigWidget::operator= | ( | const DtLineConfigWidget & | orig | ) | [private] |
assignment operator
| virtual void DtLineConfigWidget::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Handle the return key to accept changes or escape key to cancel changes.
| virtual bool DtLineConfigWidget::initConnections | ( | const DtTMMapArea * | area | ) | [protected, virtual] |
| virtual void DtLineConfigWidget::clearPointEdit | ( | ) | [protected, virtual] |
| virtual void DtLineConfigWidget::addPointToList | ( | const DtPoint & | p, |
| QTreeWidgetItem * | before = NULL |
||
| ) | [protected, virtual] |
Reimplemented in DtTerrainLineConfigWidget.
| virtual void DtLineConfigWidget::updateButtons | ( | ) | [protected, virtual] |
Reimplemented in DtTerrainLineConfigWidget.
| virtual bool DtLineConfigWidget::passNameCheck | ( | ) | [protected, virtual] |
| virtual bool DtLineConfigWidget::shouldPublish | ( | ) | const [protected, virtual] |
| virtual void DtLineConfigWidget::updateNumPointsLabel | ( | ) | [protected, virtual] |
| virtual bool DtLineConfigWidget::prepareCreateModify | ( | QColor & | color | ) | [protected, virtual] |
| virtual bool DtLineConfigWidget::hideZValues | ( | const DtEntityMapperKey * | key | ) | [protected, virtual] |
Hide Z values based on key type. Return true if want to hide.
| virtual void DtLineConfigWidget::hideHeightInformation | ( | ) | [protected, virtual] |
| virtual void DtLineConfigWidget::fillPointList | ( | ) | [protected, virtual] |
| virtual int DtLineConfigWidget::selectedIndex | ( | ) | const [protected, virtual] |
| virtual void DtLineConfigWidget::setLabels | ( | ) | [protected, virtual] |
Sets labels due to coordinate system and unit selection.
| virtual bool DtLineConfigWidget::fillPointListIfDifferent | ( | DtPoint * | curPoint = NULL | ) | [protected, virtual] |
If the number of points in the list view is different than the internal list, update the internal list.
If optional point is supplied, make that the first point in the list. Returns true if filled in list
| virtual bool DtLineConfigWidget::initMainDialogChanges | ( | ) | [protected, virtual] |
Override to modify the main body of the dialog with new controls.
Reimplemented in DtTerrainLineConfigWidget, and DtAreaConfigWidget.
| virtual void DtLineConfigWidget::closeEvent | ( | QCloseEvent * | c | ) | [protected, virtual] |
| virtual void DtLineConfigWidget::updateOptions | ( | DtSymbol * | symbol, |
| const DtModelData * | data, | ||
| const DtEntityMapperKey * | key | ||
| ) | [protected, virtual] |
| virtual QTreeWidgetItem* DtLineConfigWidget::addPoint | ( | const DtPoint & | pnt, |
| QTreeWidgetItem * | before, | ||
| const QString & | name, | ||
| const QString & | xtr, | ||
| const QString & | ystr, | ||
| const QString & | zstr | ||
| ) | [protected, virtual] |
Reimplemented in DtTerrainLineConfigWidget.
| virtual QTreeWidgetItem* DtLineConfigWidget::firstChild | ( | ) | [protected, virtual] |
Override to allow subclasses to determine which is really the first and next sibling.
Reimplemented in DtTerrainLineConfigWidget.
| virtual QTreeWidgetItem* DtLineConfigWidget::nextSibling | ( | QTreeWidgetItem * | item | ) | [protected, virtual] |
Reimplemented in DtTerrainLineConfigWidget.
| virtual void DtLineConfigWidget::clearListView | ( | ) | [protected, virtual] |
Reimplemented in DtTerrainLineConfigWidget.
| virtual unsigned int DtLineConfigWidget::childCount | ( | ) | const [protected, virtual] |
Reimplemented in DtTerrainLineConfigWidget.
| virtual bool DtLineConfigWidget::eventFilter | ( | QObject * | o, |
| QEvent * | e | ||
| ) | [protected, virtual] |
| virtual void DtLineConfigWidget::reversePoints | ( | int | iStart, |
| int | iCount | ||
| ) | [protected, virtual] |
Reverses the points from start to end location in the myPointList array and redisplay points on the screen.
iCount is the number of points to reverse and iStart is where in the point list to start
| virtual void DtLineConfigWidget::reversePointsInMemory | ( | int | iStart, |
| int | iCount | ||
| ) | [protected, virtual] |
| virtual void DtLineConfigWidget::updatePointList | ( | bool | emitSignal = true | ) | [protected, virtual] |
Clears and redisplays point list.
if emitSignal is true, emits a signal to update symbols
| virtual void DtLineConfigWidget::addPointToPointLists | ( | DtPoint * | pnt, |
| int | pos | ||
| ) | [protected, virtual] |
If there is a list of original points, add the point in relative position (given current sampling rate) into the list.
-1 means add at "end"
| virtual void DtLineConfigWidget::addPointToPointList | ( | QVector< DtPoint > * | list, |
| DtPoint * | pnt, | ||
| int | pos | ||
| ) | [protected, virtual] |
| virtual void DtLineConfigWidget::applyChangesToPointList | ( | ) | [protected, virtual] |
Apply any last minute changes to point list.
This includes removing static skip points. This is called before sending the create or edit messages
Reimplemented in DtTerrainLineConfigWidget.
| virtual bool DtLineConfigWidget::pointListsDifferent | ( | ) | [protected, virtual] |
| virtual void DtLineConfigWidget::setupZValue | ( | ) | [protected, virtual] |
| Ui::LineConfigWidgetUi DtLineConfigWidget::myUiImpl |
DtTMMapArea* DtLineConfigWidget::myCSConverter [protected] |
Pointers to creator and creator's data.
QVector<DtPoint>* DtLineConfigWidget::myPointList [protected] |
QString* DtLineConfigWidget::myObjectNamePtr [protected] |
QString* DtLineConfigWidget::myLabelPtr [protected] |
bool DtLineConfigWidget::myEditNotCreate [protected] |
Referenced by editNotCreate().
int DtLineConfigWidget::myPointNum [protected] |
int DtLineConfigWidget::myTotalPoints [protected] |
double DtLineConfigWidget::myHeightOffset [protected] |
DtSymbol* DtLineConfigWidget::myWorkingSymbol [protected] |
int DtLineConfigWidget::myMinimumPoints [protected] |
bool DtLineConfigWidget::myUnlimitedPoints [protected] |
const DtModelData* DtLineConfigWidget::myModelData [protected] |
DtArchivableObject* DtLineConfigWidget::myUserData [protected] |
bool DtLineConfigWidget::myClosing [protected] |
int DtLineConfigWidget::myAppearance [protected] |
QVector<DtPoint>* DtLineConfigWidget::myOriginalList [protected] |
If sampling down, this list will hold all the original points;.
int DtLineConfigWidget::myCurrentSamplingRate [protected] |
int DtLineConfigWidget::myDefaultLineWidth [protected] |
int DtLineConfigWidget::myDefaultLineStyle [protected] |
int DtLineConfigWidget::myDefaultTransparency [protected] |
bool DtLineConfigWidget::myFirstTime [protected] |
Referenced by entityMapperKey().
QVector<DtPoint> DtLineConfigWidget::myCurrentList [protected] |
bool DtLineConfigWidget::myInFreehandDrawingMode [protected] |