![]() |
VR-Forces 4.0.4 Class Documentation
|
A widget for controlling contour settings and controlled by a DtTextureDrapingLogic. More...

Public Member Functions | |
| DtTextureDrapingWidget (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget) | |
| CTOR. | |
| virtual | ~DtTextureDrapingWidget () |
| DTOR. | |
| void | addRasterLayer (const std::string &image, bool on, bool canSelectImage=true, const std::string &imageName="", bool select=false, int iIndex=-1) |
| Adds a new raster image into the raster image list box. | |
| virtual void | removeRasterLayer (const std::string &image) |
| Removes specified raster layer. | |
| virtual void | selectRaster (const std::string &raster) |
| Selects raster image in raster list box. | |
| virtual void | clearRasterImages () |
| Clears out raster images list widget. | |
| virtual void | setRasterTextureEnabled (const std::string &raster, bool) |
| Sets whether or not an overlay is enabled for viewing. | |
| virtual void | setRasterTextureDefinition (const std::string &raster, const std::string &filename) |
| Sets the filename for the specified raster. | |
| virtual std::string | currentRasterLayer () const |
| Returns the current raster layer selected. | |
| virtual std::string | currentRasterImage () const |
| Returns the current raster layer selected. | |
| virtual void | setRasterTextureBlendMode (int) |
| Sets raster texture blend mode. | |
| virtual void | setRasterTextureWrapMode (int) |
| Sets raster texture wrap mode. | |
| virtual void | clearCoordinateSystems () |
| Clears out coordinate systems. | |
| virtual void | setCoordinateSystem (const std::string &system) |
| Sets the current coordinate system. | |
| virtual void | addCoordinateSystem (const std::string &system) |
| Adds a new coordinate system. | |
| virtual void | setCoordinateLabels (const std::string &x, const std::string &y) |
| Sets the corner labels for the SW and NE cornsers. | |
| virtual void | setSWCoordinateLabels (const std::string &x, const std::string &y) |
| virtual void | setNECoordinateLabels (const std::string &x, const std::string &y) |
| virtual void | getSWCorner (std::string &x, std::string &y) |
| Gets the SW/NE corners of the dislpay. | |
| virtual void | getNECorner (std::string &x, std::string &y) |
| virtual std::string | coordinateSystem () const |
| Returns current coordinate system selected. | |
| virtual void | setSWCorner (const std::string &x, const std::string &y) |
| Sets the SW/NE corners of the dislpay. | |
| virtual void | setNECorner (const std::string &x, const std::string &y) |
| virtual void | addBlendMode (const std::string &strMode, int mode) |
| Adds a blend mode to the system. | |
| virtual void | clearBlendModes () |
| Clears out blend modes. | |
| virtual void | addWrapMode (const std::string &strMode, int mode) |
| Adds a wrap mode to the system. | |
| virtual void | clearWrapModes () |
| Clears out wrap modes. | |
| virtual void | moveRasterLayer (const std::string &, int) |
| Moves the raster layer up or down the specified number of positions. | |
| virtual void | addButtonsToTitleArea (QHBoxLayout *title) |
| Called by page, adds buttons to title area. | |
Public Attributes | |
| QWidget * | myFilePanel |
| QHBoxLayout * | myFilesSelectionLayout |
| QLineEdit * | myFileEdit |
| QPushButton * | myFileSelect |
| QSpacerItem * | mySpacerItem |
| QPushButton * | myMoveRasterLayerUpButton |
| QPushButton * | myMoveRasterLayerDownButton |
| QPushButton * | myAddRasterLayer |
| QPushButton * | myRemoveRasterLayer |
Protected Slots | |
| virtual void | onItemSelectionChanged () |
| Called when list widget item is selected. | |
| virtual void | onRasterImageSelect () |
| Called when the user wants to select a raster image. | |
| virtual void | onBlendModeChanged () |
| Called when blend mode settings are changed. Sends signal_blendModeChanged() | |
| virtual void | onWrapModeChanged () |
| Called when wrap mode settings are changed. Sends signal_wrapModeChanged() | |
| virtual void | onClearPressed () |
| Called when the clear button is pressed. Sends signal_clearTexture() | |
| virtual void | onResetPressed () |
| Called when the clear button is pressed. Sends signal_resetTexture() | |
| virtual void | onCoordinateSystemChanged () |
| Called when coordinate system changes. Send signal_coordinateSystemChanged() | |
| virtual void | onSWCornerChanged () |
| Called when either the NE or SW corners change. Sends signal of appropriate corner. | |
| virtual void | onNECornerChanged () |
| virtual void | setSWCornerGroupBoxLabel (const std::string &x) |
| Sets the SW/NE group box labels. | |
| virtual void | setNECornerGroupBoxLabel (const std::string &x) |
| virtual void | setSWValidator (const std::string &x, const std::string &y) |
| Sets the SW/NE validators (regular expression) | |
| virtual void | setNEValidator (const std::string &x, const std::string &y) |
| virtual void | onItemChanged (QTreeWidgetItem *, int) |
| Called when an item has changed. | |
| virtual void | onSetupFileSelector () |
| Sets the file selector (line edit and button) to correct place and size. | |
| virtual void | onRasterTextureDefinitionChanged (const QString &) |
| Called when edit box for raster has changed. | |
| virtual void | onRasterTextureEditingFinished () |
| Called when editing is finished on the file edit widget. | |
| virtual void | onAddRasterLayer () |
| Called when add button is pressed, will signal to add a new raster layer. | |
| virtual void | onRemoveRasterLayer () |
| Called when remove button is pressed, will signal to remove currently selected raster layer. | |
| virtual void | onMoveRasterLayerUp () |
| Called when wanting to move a raster layer up or down in the list. | |
| virtual void | onMoveRasterLayerDown () |
| virtual void | onRasterLayerNameChanged () |
| Called when the raster layer name is changed by the user by editing. | |
| virtual void | setMaximumTextureUnits (int) |
| Maximum number of texture units available for raster maps. | |
Protected Member Functions | |
| virtual void | enableWidgetItems () |
| Enables/disables widget items based on current selection. | |
| virtual bool | canEnableRasterLayer () const |
| Returns true if there is a slot to allow another item to be checked. | |
Protected Attributes | |
| DtDe & | myDe |
| int | myMaximumTextureUnits |
A widget for controlling contour settings and controlled by a DtTextureDrapingLogic.
| makVrv::DtTextureDrapingWidget::DtTextureDrapingWidget | ( | DtDe & | de, |
| QWidget * | parent, | ||
| Qt::WindowFlags | f = Qt::Widget |
||
| ) |
CTOR.
| virtual makVrv::DtTextureDrapingWidget::~DtTextureDrapingWidget | ( | ) | [virtual] |
DTOR.
| void makVrv::DtTextureDrapingWidget::addRasterLayer | ( | const std::string & | image, |
| bool | on, | ||
| bool | canSelectImage = true, |
||
| const std::string & | imageName = "", |
||
| bool | select = false, |
||
| int | iIndex = -1 |
||
| ) | [virtual] |
Adds a new raster image into the raster image list box.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::removeRasterLayer | ( | const std::string & | image | ) | [virtual] |
Removes specified raster layer.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::selectRaster | ( | const std::string & | raster | ) | [virtual] |
Selects raster image in raster list box.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::clearRasterImages | ( | ) | [virtual] |
Clears out raster images list widget.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setRasterTextureEnabled | ( | const std::string & | raster, |
| bool | |||
| ) | [virtual] |
Sets whether or not an overlay is enabled for viewing.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setRasterTextureDefinition | ( | const std::string & | raster, |
| const std::string & | filename | ||
| ) | [virtual] |
Sets the filename for the specified raster.
Implements makVrv::DtTextureDrapingInterface.
| virtual std::string makVrv::DtTextureDrapingWidget::currentRasterLayer | ( | ) | const [virtual] |
Returns the current raster layer selected.
Implements makVrv::DtTextureDrapingInterface.
| virtual std::string makVrv::DtTextureDrapingWidget::currentRasterImage | ( | ) | const [virtual] |
Returns the current raster layer selected.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setRasterTextureBlendMode | ( | int | ) | [virtual] |
Sets raster texture blend mode.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setRasterTextureWrapMode | ( | int | ) | [virtual] |
Sets raster texture wrap mode.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::clearCoordinateSystems | ( | ) | [virtual] |
Clears out coordinate systems.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setCoordinateSystem | ( | const std::string & | system | ) | [virtual] |
Sets the current coordinate system.
If system named is not in coordinate systems list, it is not set
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::addCoordinateSystem | ( | const std::string & | system | ) | [virtual] |
Adds a new coordinate system.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setCoordinateLabels | ( | const std::string & | x, |
| const std::string & | y | ||
| ) | [virtual] |
Sets the corner labels for the SW and NE cornsers.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setSWCoordinateLabels | ( | const std::string & | x, |
| const std::string & | y | ||
| ) | [virtual] |
| virtual void makVrv::DtTextureDrapingWidget::setNECoordinateLabels | ( | const std::string & | x, |
| const std::string & | y | ||
| ) | [virtual] |
| virtual void makVrv::DtTextureDrapingWidget::getSWCorner | ( | std::string & | x, |
| std::string & | y | ||
| ) | [virtual] |
Gets the SW/NE corners of the dislpay.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::getNECorner | ( | std::string & | x, |
| std::string & | y | ||
| ) | [virtual] |
Implements makVrv::DtTextureDrapingInterface.
| virtual std::string makVrv::DtTextureDrapingWidget::coordinateSystem | ( | ) | const [virtual] |
Returns current coordinate system selected.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setSWCorner | ( | const std::string & | x, |
| const std::string & | y | ||
| ) | [virtual] |
Sets the SW/NE corners of the dislpay.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setNECorner | ( | const std::string & | x, |
| const std::string & | y | ||
| ) | [virtual] |
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::addBlendMode | ( | const std::string & | strMode, |
| int | mode | ||
| ) | [virtual] |
Adds a blend mode to the system.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::clearBlendModes | ( | ) | [virtual] |
Clears out blend modes.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::addWrapMode | ( | const std::string & | strMode, |
| int | mode | ||
| ) | [virtual] |
Adds a wrap mode to the system.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::clearWrapModes | ( | ) | [virtual] |
Clears out wrap modes.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::moveRasterLayer | ( | const std::string & | , |
| int | |||
| ) | [virtual] |
Moves the raster layer up or down the specified number of positions.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::addButtonsToTitleArea | ( | QHBoxLayout * | title | ) | [virtual] |
Called by page, adds buttons to title area.
| virtual void makVrv::DtTextureDrapingWidget::enableWidgetItems | ( | ) | [protected, virtual] |
Enables/disables widget items based on current selection.
| virtual bool makVrv::DtTextureDrapingWidget::canEnableRasterLayer | ( | ) | const [protected, virtual] |
Returns true if there is a slot to allow another item to be checked.
Includes original texture as a taken layer
| virtual void makVrv::DtTextureDrapingWidget::onItemSelectionChanged | ( | ) | [protected, virtual, slot] |
Called when list widget item is selected.
| virtual void makVrv::DtTextureDrapingWidget::onRasterImageSelect | ( | ) | [protected, virtual, slot] |
Called when the user wants to select a raster image.
| virtual void makVrv::DtTextureDrapingWidget::onBlendModeChanged | ( | ) | [protected, virtual, slot] |
Called when blend mode settings are changed. Sends signal_blendModeChanged()
| virtual void makVrv::DtTextureDrapingWidget::onWrapModeChanged | ( | ) | [protected, virtual, slot] |
Called when wrap mode settings are changed. Sends signal_wrapModeChanged()
| virtual void makVrv::DtTextureDrapingWidget::onClearPressed | ( | ) | [protected, virtual, slot] |
Called when the clear button is pressed. Sends signal_clearTexture()
| virtual void makVrv::DtTextureDrapingWidget::onResetPressed | ( | ) | [protected, virtual, slot] |
Called when the clear button is pressed. Sends signal_resetTexture()
| virtual void makVrv::DtTextureDrapingWidget::onCoordinateSystemChanged | ( | ) | [protected, virtual, slot] |
Called when coordinate system changes. Send signal_coordinateSystemChanged()
| virtual void makVrv::DtTextureDrapingWidget::onSWCornerChanged | ( | ) | [protected, virtual, slot] |
Called when either the NE or SW corners change. Sends signal of appropriate corner.
| virtual void makVrv::DtTextureDrapingWidget::onNECornerChanged | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtTextureDrapingWidget::setSWCornerGroupBoxLabel | ( | const std::string & | x | ) | [protected, virtual, slot] |
Sets the SW/NE group box labels.
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setNECornerGroupBoxLabel | ( | const std::string & | x | ) | [protected, virtual, slot] |
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setSWValidator | ( | const std::string & | x, |
| const std::string & | y | ||
| ) | [protected, virtual, slot] |
Sets the SW/NE validators (regular expression)
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::setNEValidator | ( | const std::string & | x, |
| const std::string & | y | ||
| ) | [protected, virtual, slot] |
Implements makVrv::DtTextureDrapingInterface.
| virtual void makVrv::DtTextureDrapingWidget::onItemChanged | ( | QTreeWidgetItem * | , |
| int | |||
| ) | [protected, virtual, slot] |
Called when an item has changed.
Will check check state to see if that needs to be updated
| virtual void makVrv::DtTextureDrapingWidget::onSetupFileSelector | ( | ) | [protected, virtual, slot] |
Sets the file selector (line edit and button) to correct place and size.
| virtual void makVrv::DtTextureDrapingWidget::onRasterTextureDefinitionChanged | ( | const QString & | ) | [protected, virtual, slot] |
Called when edit box for raster has changed.
Will not send through as a signal unless the file exists
| virtual void makVrv::DtTextureDrapingWidget::onRasterTextureEditingFinished | ( | ) | [protected, virtual, slot] |
Called when editing is finished on the file edit widget.
Will call slot to change file
| virtual void makVrv::DtTextureDrapingWidget::onAddRasterLayer | ( | ) | [protected, virtual, slot] |
Called when add button is pressed, will signal to add a new raster layer.
| virtual void makVrv::DtTextureDrapingWidget::onRemoveRasterLayer | ( | ) | [protected, virtual, slot] |
Called when remove button is pressed, will signal to remove currently selected raster layer.
| virtual void makVrv::DtTextureDrapingWidget::onMoveRasterLayerUp | ( | ) | [protected, virtual, slot] |
Called when wanting to move a raster layer up or down in the list.
Sends signal to either move position up one or down one
| virtual void makVrv::DtTextureDrapingWidget::onMoveRasterLayerDown | ( | ) | [protected, virtual, slot] |
| virtual void makVrv::DtTextureDrapingWidget::onRasterLayerNameChanged | ( | ) | [protected, virtual, slot] |
Called when the raster layer name is changed by the user by editing.
Emits a rename signal for changing old name to new name after checking for duplicate name in list box
| virtual void makVrv::DtTextureDrapingWidget::setMaximumTextureUnits | ( | int | ) | [protected, virtual, slot] |
Maximum number of texture units available for raster maps.
Implements makVrv::DtTextureDrapingInterface.
DtDe& makVrv::DtTextureDrapingWidget::myDe [protected] |
int makVrv::DtTextureDrapingWidget::myMaximumTextureUnits [protected] |
| QSpacerItem* makVrv::DtTextureDrapingWidget::mySpacerItem |