This class is used to navigate over a DataSetLayer (having a raster representation) and given a set of tools, such as, zoom in, zoom out, pan, recompose. Two new tools as created for raster interaction: More...
#include <RasterNavigatorWidget.h>
Signals | |
void | geomAquired (te::gm::Polygon *poly, te::qt::widgets::MapDisplay *map) |
void | mapDisplayExtentChanged () |
void | pointPicked (double x, double y, te::qt::widgets::MapDisplay *map) |
void | previewClicked () |
Public Member Functions | |
void | drawRaster (te::rst::Raster *rst, te::se::Style *style=0) |
te::gm::Envelope | getCurrentExtent () |
te::qt::widgets::MapDisplay * | getDisplay () |
te::rst::Raster * | getExtentRaster (bool fullScale=false) |
void | hideColorCompositionTool (bool hide) |
void | hideEditionTools (bool hide) |
void | hideExtraDisplaysTool (bool hide) |
void | hideGeomTool (bool hide) |
void | hideInfoTool (bool hide) |
void | hidePickerTool (bool hide) |
RasterNavigatorWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
void | set (te::map::AbstractLayerPtr layer, bool setFullScaleBox=false) |
This method is used to set the selected layer for mixture model operation. More... | |
void | showAsPreview (bool asPreview) |
~RasterNavigatorWidget () | |
Protected Slots | |
void | onBlueComboBoxActivated (int index) |
void | onBlueToolClicked (bool flag) |
void | onCompositionToolClicked (bool flag) |
void | onCoordTrackedChanged (QPointF &coordinate) |
void | onExtraDisplaysToggled (bool checked) |
void | onGeomAquired (te::gm::Polygon *poly) |
void | onGeomToggled (bool checked) |
void | onGreenComboBoxActivated (int index) |
void | onGreenToolClicked (bool flag) |
void | onMapDisplayExtentChanged () |
void | onMonoComboBoxActivated (int index) |
void | onMonoToolClicked (bool flag) |
void | onPanToggled (bool checked) |
void | onPointPicked (QPointF &point) |
void | onPointPickerToggled (bool checked) |
void | onPreviewClicked () |
void | onReadPixelToggled (bool checked) |
void | onRecomposeClicked () |
void | onRedComboBoxActivated (int index) |
void | onRedToolClicked (bool flag) |
void | onZoomAreaToggled (bool checked) |
void | onZoomOutToggled (bool checked) |
Protected Member Functions | |
void | getCompositionInfo () |
void | listBands () |
void | setComboBoxText (QComboBox *cb, std::string value) |
void | setCurrentTool (te::qt::widgets::AbstractTool *tool) |
Private Attributes | |
int | m_currentColumn |
The column position of mouse in map display. More... | |
int | m_currentRow |
The row position of mouse in map display. More... | |
te::qt::widgets::EyeBirdMapDisplayWidget * | m_eyeBirdMapDisplay |
te::map::AbstractLayerPtr | m_layer |
te::qt::widgets::MapDisplay * | m_mapDisplay |
te::qt::widgets::Pan * | m_panTool |
Pan tool (used in preview mode) More... | |
te::se::RasterSymbolizer * | m_symbolizer |
te::qt::widgets::AbstractTool * | m_tool |
std::auto_ptr < Ui::RasterNavigatorWidgetForm > | m_ui |
te::map::Visibility | m_visibility |
te::qt::widgets::ZoomInMapDisplayWidget * | m_zoomInMapDisplay |
te::qt::widgets::ZoomWheel * | m_zoomTool |
Zoom tool (used in preview mode) More... | |
This class is used to navigate over a DataSetLayer (having a raster representation) and given a set of tools, such as, zoom in, zoom out, pan, recompose. Two new tools as created for raster interaction:
Definition at line 72 of file RasterNavigatorWidget.h.
te::qt::widgets::RasterNavigatorWidget::RasterNavigatorWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 63 of file RasterNavigatorWidget.cpp.
References te::qt::widgets::MapDisplay::Center, m_eyeBirdMapDisplay, m_mapDisplay, m_ui, m_zoomInMapDisplay, onBlueComboBoxActivated(), onBlueToolClicked(), onCompositionToolClicked(), onCoordTrackedChanged(), onExtraDisplaysToggled(), onGeomToggled(), onGreenComboBoxActivated(), onGreenToolClicked(), onMapDisplayExtentChanged(), onMonoComboBoxActivated(), onMonoToolClicked(), onPanToggled(), onPointPickerToggled(), onPreviewClicked(), onReadPixelToggled(), onRecomposeClicked(), onRedComboBoxActivated(), onRedToolClicked(), onZoomAreaToggled(), onZoomOutToggled(), and te::qt::widgets::MapDisplay::setResizePolicy().
te::qt::widgets::RasterNavigatorWidget::~RasterNavigatorWidget | ( | ) |
Definition at line 142 of file RasterNavigatorWidget.cpp.
void te::qt::widgets::RasterNavigatorWidget::drawRaster | ( | te::rst::Raster * | rst, |
te::se::Style * | style = 0 |
||
) |
Definition at line 244 of file RasterNavigatorWidget.cpp.
References te::se::CreateCoverageStyle(), te::map::DrawRaster(), te::rst::Raster::getExtent(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getSRID(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, and te::qt::widgets::Canvas::setDevice().
|
signal |
|
protected |
Definition at line 665 of file RasterNavigatorWidget.cpp.
References te::se::BLUE_COMPOSITION, te::se::ChannelSelection::getBlueChannel(), te::se::ChannelSelection::getColorCompositionType(), te::se::ChannelSelection::getGrayChannel(), te::se::ChannelSelection::getGreenChannel(), te::se::ChannelSelection::getRedChannel(), te::se::Style::getRule(), te::se::Style::getRules(), te::se::SelectedChannel::getSourceChannelName(), te::se::Rule::getSymbolizers(), te::se::GRAY_COMPOSITION, te::se::GREEN_COMPOSITION, te::se::RED_COMPOSITION, and te::se::RGB_COMPOSITION.
te::gm::Envelope te::qt::widgets::RasterNavigatorWidget::getCurrentExtent | ( | ) |
Definition at line 202 of file RasterNavigatorWidget.cpp.
te::qt::widgets::MapDisplay * te::qt::widgets::RasterNavigatorWidget::getDisplay | ( | ) |
Definition at line 207 of file RasterNavigatorWidget.cpp.
te::rst::Raster * te::qt::widgets::RasterNavigatorWidget::getExtentRaster | ( | bool | fullScale = false | ) |
Definition at line 212 of file RasterNavigatorWidget.cpp.
References te::map::GetExtentRaster(), te::da::GetFirstPropertyPos(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::Envelope::intersection(), te::dt::RASTER_TYPE, te::gm::Envelope::transform(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
void te::qt::widgets::RasterNavigatorWidget::hideColorCompositionTool | ( | bool | hide | ) |
Definition at line 298 of file RasterNavigatorWidget.cpp.
void te::qt::widgets::RasterNavigatorWidget::hideEditionTools | ( | bool | hide | ) |
Definition at line 303 of file RasterNavigatorWidget.cpp.
void te::qt::widgets::RasterNavigatorWidget::hideExtraDisplaysTool | ( | bool | hide | ) |
Definition at line 326 of file RasterNavigatorWidget.cpp.
void te::qt::widgets::RasterNavigatorWidget::hideGeomTool | ( | bool | hide | ) |
Definition at line 316 of file RasterNavigatorWidget.cpp.
void te::qt::widgets::RasterNavigatorWidget::hideInfoTool | ( | bool | hide | ) |
Definition at line 321 of file RasterNavigatorWidget.cpp.
void te::qt::widgets::RasterNavigatorWidget::hidePickerTool | ( | bool | hide | ) |
Definition at line 311 of file RasterNavigatorWidget.cpp.
|
protected |
Definition at line 637 of file RasterNavigatorWidget.cpp.
References te::da::GetFirstPropertyPos(), and te::dt::RASTER_TYPE.
|
signal |
|
protectedslot |
Definition at line 512 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 578 of file RasterNavigatorWidget.cpp.
References te::se::BLUE_COMPOSITION, and te::se::SelectedChannel::setSourceChannelName().
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 594 of file RasterNavigatorWidget.cpp.
References te::se::RGB_COMPOSITION, and te::se::SelectedChannel::setSourceChannelName().
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 334 of file RasterNavigatorWidget.cpp.
References te::da::GetFirstPropertyPos(), te::gm::GetGeomFromEnvelope(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::dt::RASTER_TYPE, te::qt::widgets::Canvas::setWindow(), TE_OPAQUE, TE_TRANSPARENT, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 478 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 399 of file RasterNavigatorWidget.cpp.
|
protectedslot |
Definition at line 458 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 503 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 562 of file RasterNavigatorWidget.cpp.
References te::se::GREEN_COMPOSITION, and te::se::SelectedChannel::setSourceChannelName().
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 411 of file RasterNavigatorWidget.cpp.
References te::gm::Envelope::isValid().
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 521 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 530 of file RasterNavigatorWidget.cpp.
References te::se::GRAY_COMPOSITION, and te::se::SelectedChannel::setSourceChannelName().
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 438 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 405 of file RasterNavigatorWidget.cpp.
|
protectedslot |
Definition at line 447 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 624 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 469 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 485 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 494 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 546 of file RasterNavigatorWidget.cpp.
References te::se::RED_COMPOSITION, and te::se::SelectedChannel::setSourceChannelName().
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 420 of file RasterNavigatorWidget.cpp.
Referenced by RasterNavigatorWidget().
|
protectedslot |
Definition at line 429 of file RasterNavigatorWidget.cpp.
References te::qt::widgets::Zoom::Out.
Referenced by RasterNavigatorWidget().
|
signal |
|
signal |
void te::qt::widgets::RasterNavigatorWidget::set | ( | te::map::AbstractLayerPtr | layer, |
bool | setFullScaleBox = false |
||
) |
This method is used to set the selected layer for mixture model operation.
layer | The layer ptr |
Definition at line 152 of file RasterNavigatorWidget.cpp.
References te::da::GetFirstPropertyPos(), te::dt::RASTER_TYPE, te::map::VISIBLE, te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
protected |
Definition at line 753 of file RasterNavigatorWidget.cpp.
|
protected |
Definition at line 629 of file RasterNavigatorWidget.cpp.
void te::qt::widgets::RasterNavigatorWidget::showAsPreview | ( | bool | asPreview | ) |
Definition at line 277 of file RasterNavigatorWidget.cpp.
|
private |
The column position of mouse in map display.
Definition at line 196 of file RasterNavigatorWidget.h.
|
private |
The row position of mouse in map display.
Definition at line 197 of file RasterNavigatorWidget.h.
|
private |
Definition at line 191 of file RasterNavigatorWidget.h.
Referenced by RasterNavigatorWidget().
|
private |
Definition at line 185 of file RasterNavigatorWidget.h.
|
private |
Definition at line 189 of file RasterNavigatorWidget.h.
Referenced by RasterNavigatorWidget().
|
private |
Pan tool (used in preview mode)
Definition at line 193 of file RasterNavigatorWidget.h.
|
private |
Definition at line 186 of file RasterNavigatorWidget.h.
|
private |
Definition at line 188 of file RasterNavigatorWidget.h.
|
private |
Definition at line 183 of file RasterNavigatorWidget.h.
Referenced by RasterNavigatorWidget().
|
private |
Definition at line 198 of file RasterNavigatorWidget.h.
|
private |
Definition at line 190 of file RasterNavigatorWidget.h.
Referenced by RasterNavigatorWidget().
|
private |
Zoom tool (used in preview mode)
Definition at line 194 of file RasterNavigatorWidget.h.