![]() |
VR-Forces 4.6.1 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 Member Functions inherited from makVrv::DtTextureDrapingInterface | |
| virtual void | setSWCornerGroupBoxLabel (const std::string &x)=0 |
| Sets the SW/NE group box labels. | |
| virtual void | setNECornerGroupBoxLabel (const std::string &x)=0 |
| virtual void | setSWValidator (const std::string &x, const std::string &y)=0 |
| Sets the SW/NE validators (regular expression) | |
| virtual void | setNEValidator (const std::string &x, const std::string &y)=0 |
| virtual void | setMaximumTextureUnits (int)=0 |
| Maximum number of texture units available for raster maps. | |
Public Attributes | |
| QWidget * | myFilePanel |
| QHBoxLayout * | myFilesSelectionLayout |
| QLineEdit * | myFileEdit |
| QPushButton * | myFileSelect |
| QSpacerItem * | mySpacerItem |
| QPushButton * | myMoveRasterLayerUpButton |
| QPushButton * | myMoveRasterLayerDownButton |
| QPushButton * | myAddRasterLayer |
| QPushButton * | myRemoveRasterLayer |
Public Attributes inherited from makVrv::DtTextureDrapingInterface | |
| boost::signal< void(const std::string &)> | signal_selectedRasterChanged |
| Signal emitted when the user selects an item from the raster list view. | |
| boost::signal< void(const std::string &, bool)> | signal_displayRasterChanged |
| Signal emitted when on/off state of display raster has changed. | |
| boost::signal< void(const std::string &, const std::string &)> | signal_rasterChanged |
| Signal emitted when raster image is changed. | |
| boost::signal< void(const std::string &, int)> | signal_blendModeChanged |
| Signal emitted when blend mode changed. | |
| boost::signal< void(const std::string &, int)> | signal_wrapModeChanged |
| Signal emitted when wrap mode changes. | |
| boost::signal< void(const std::string &)> | signal_clearTexture |
| Signal emitted when wants to clear current information for raster. | |
| boost::signal< void(const std::string &)> | signal_resetTexture |
| Signal emitted when wants to reset information for current raster to defaults for selected image. | |
| boost::signal< void(const std::string &)> | signal_coordinateSystemChanged |
| Signal emitted when the coordinate system combo changes. | |
| boost::signal< void(const std::string &, const std::string &, const std::string &)> | signal_swCornerChanged |
| Signal sent when sw corner changes for the particular raster. | |
| boost::signal< void(const std::string &, const std::string &, const std::string &)> | signal_neCornerChanged |
| Signal sent when ne corner changes for the particular raster. | |
| boost::signal< void(void)> | signal_addRasterLayer |
| Signal sent when want to add a new raster layer. | |
| boost::signal< void(const std::string &)> | signal_removeRasterLayer |
| Signal sent when want to remove specified raster layer. | |
| boost::signal< void(const std::string &, int)> | signal_moveRasterLayer |
| Signal sent when raster layer wants to be moved in the hierarchy (up or down) | |
| boost::signal< bool(const std::string &, const std::string &)> | signal_renameRasterLayer |
| Signal emitted when wanting to change raster later name from old to new. | |
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 |
DTOR.
|
virtual |
Adds a new raster image into the raster image list box.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Removes specified raster layer.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Selects raster image in raster list box.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Clears out raster images list widget.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Sets whether or not an overlay is enabled for viewing.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Sets the filename for the specified raster.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Returns the current raster layer selected.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Returns the current raster layer selected.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Sets raster texture blend mode.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Sets raster texture wrap mode.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Clears out coordinate systems.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Sets the current coordinate system.
If system named is not in coordinate systems list, it is not set
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Adds a new coordinate system.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Sets the corner labels for the SW and NE cornsers.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
|
virtual |
|
virtual |
Gets the SW/NE corners of the dislpay.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Returns current coordinate system selected.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Sets the SW/NE corners of the dislpay.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Adds a blend mode to the system.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Clears out blend modes.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Adds a wrap mode to the system.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Clears out wrap modes.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Moves the raster layer up or down the specified number of positions.
Implements makVrv::DtTextureDrapingInterface.
|
virtual |
Called by page, adds buttons to title area.
|
protectedvirtual |
Enables/disables widget items based on current selection.
|
protectedvirtual |
Returns true if there is a slot to allow another item to be checked.
Includes original texture as a taken layer
|
protectedvirtualslot |
Called when list widget item is selected.
|
protectedvirtualslot |
Called when the user wants to select a raster image.
|
protectedvirtualslot |
Called when blend mode settings are changed. Sends signal_blendModeChanged()
|
protectedvirtualslot |
Called when wrap mode settings are changed. Sends signal_wrapModeChanged()
|
protectedvirtualslot |
Called when the clear button is pressed. Sends signal_clearTexture()
|
protectedvirtualslot |
Called when the clear button is pressed. Sends signal_resetTexture()
|
protectedvirtualslot |
Called when coordinate system changes. Send signal_coordinateSystemChanged()
|
protectedvirtualslot |
Called when either the NE or SW corners change. Sends signal of appropriate corner.
|
protectedvirtualslot |
|
protectedvirtualslot |
Sets the SW/NE group box labels.
|
protectedvirtualslot |
|
protectedvirtualslot |
Sets the SW/NE validators (regular expression)
|
protectedvirtualslot |
|
protectedvirtualslot |
Called when an item has changed.
Will check check state to see if that needs to be updated
|
protectedvirtualslot |
Sets the file selector (line edit and button) to correct place and size.
|
protectedvirtualslot |
Called when edit box for raster has changed.
Will not send through as a signal unless the file exists
|
protectedvirtualslot |
Called when editing is finished on the file edit widget.
Will call slot to change file
|
protectedvirtualslot |
Called when add button is pressed, will signal to add a new raster layer.
|
protectedvirtualslot |
Called when remove button is pressed, will signal to remove currently selected raster layer.
|
protectedvirtualslot |
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
|
protectedvirtualslot |
|
protectedvirtualslot |
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
|
protectedvirtualslot |
Maximum number of texture units available for raster maps.
|
protected |
|
protected |
| QWidget* makVrv::DtTextureDrapingWidget::myFilePanel |
| QHBoxLayout* makVrv::DtTextureDrapingWidget::myFilesSelectionLayout |
| QLineEdit* makVrv::DtTextureDrapingWidget::myFileEdit |
| QPushButton* makVrv::DtTextureDrapingWidget::myFileSelect |
| QSpacerItem* makVrv::DtTextureDrapingWidget::mySpacerItem |
| QPushButton* makVrv::DtTextureDrapingWidget::myMoveRasterLayerUpButton |
| QPushButton* makVrv::DtTextureDrapingWidget::myMoveRasterLayerDownButton |
| QPushButton* makVrv::DtTextureDrapingWidget::myAddRasterLayer |
| QPushButton* makVrv::DtTextureDrapingWidget::myRemoveRasterLayer |