This class implements a concrete tool to get informations about a specified feature using pointing operation. More...
#include <Info.h>
Public Slots | |
void | setLayers (const std::list< te::map::AbstractLayerPtr > &layers) |
Public Member Functions | |
virtual void | setCursor (const QCursor &cursor) |
It sets the tool cursor. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Info (MapDisplay *display, const QCursor &cursor, const std::list< te::map::AbstractLayerPtr > &layers, QObject *parent=0) | |
It constructs a info tool associated with the given map display. More... | |
~Info () | |
Destructor. More... | |
AbstractTool Methods | |
Methods related with tool behavior. | |
bool | mouseReleaseEvent (QMouseEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive mouse release events for the watched object. More... | |
AbstractTool Methods | |
Methods related with tool behavior. | |
virtual bool | eventFilter (QObject *watched, QEvent *e) |
Filters events if this object has been installed as an event filter for the watched object. More... | |
virtual bool | mousePressEvent (QMouseEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object. More... | |
virtual bool | mouseMoveEvent (QMouseEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive mouse move events for the watched object. More... | |
virtual bool | mouseDoubleClickEvent (QMouseEvent *e) |
This event handler can be reimplemented in a concrete tool class to receive mouse double click events for the watched object. More... | |
Protected Attributes | |
QCursor | m_cursor |
The default tool cursor. More... | |
MapDisplay * | m_display |
The map display associated with the tool. More... | |
Private Member Functions | |
void | drawGeometry (te::gm::Geometry *g) |
void | getGeometryInfo (QTreeWidgetItem *layerItem, te::da::DataSet *dataset, const std::string &geomPropertyName, const te::gm::Envelope &e, int srid, bool needRemap) |
void | getInfo (const te::map::AbstractLayerPtr &layer, const te::gm::Envelope &e) |
void | getRasterInfo (QTreeWidgetItem *layerItem, te::rst::Raster *raster, const te::gm::Envelope &e, int srid, bool needRemap) |
Private Attributes | |
QTreeWidget * | m_infoWidget |
Widget used to show the informations. More... | |
std::list < te::map::AbstractLayerPtr > | m_layers |
The layer list that will be queried. More... | |
This class implements a concrete tool to get informations about a specified feature using pointing operation.
te::qt::widgets::Info::Info | ( | MapDisplay * | display, |
const QCursor & | cursor, | ||
const std::list< te::map::AbstractLayerPtr > & | layers, | ||
QObject * | parent = 0 |
||
) |
It constructs a info tool associated with the given map display.
display | The map display associated with the tool. |
cursor | The tool cursor. |
layers | The layer list that will be queried. |
parent | The tool's parent. |
Definition at line 62 of file Info.cpp.
References m_infoWidget, and te::qt::widgets::AbstractTool::setCursor().
|
private |
Definition at line 333 of file Info.cpp.
References te::se::CreateFill(), te::se::CreateMark(), te::se::CreateStroke(), te::qt::widgets::Canvas::draw(), te::common::Free(), te::gm::Geometry::getGeomTypeId(), te::common::Singleton< MarkRendererManager >::getInstance(), te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, te::gm::PolygonZType, te::qt::widgets::Canvas::setLineColor(), te::qt::widgets::Canvas::setLineWidth(), te::qt::widgets::Canvas::setPointColor(), te::qt::widgets::Canvas::setPointPattern(), te::qt::widgets::Canvas::setPolygonContourColor(), te::qt::widgets::Canvas::setPolygonContourWidth(), te::qt::widgets::Canvas::setPolygonFillColor(), te::qt::widgets::Canvas::setRenderHint(), te::qt::widgets::Canvas::setWindow(), and TE_TRANSPARENT.
|
virtualinherited |
Filters events if this object has been installed as an event filter for the watched object.
watched | The watched object. |
event | The last event sent to watched object. |
Reimplemented in te::qt::widgets::ZoomKeyboard, and te::qt::widgets::ZoomWheel.
Definition at line 50 of file AbstractTool.cpp.
Referenced by te::qt::widgets::ZoomKeyboard::eventFilter(), and te::qt::widgets::ZoomWheel::eventFilter().
|
private |
Definition at line 228 of file Info.cpp.
References te::qt::widgets::Convert2Qt(), te::dt::GEOMETRY_TYPE, te::da::DataSet::getAsString(), te::gm::Envelope::getCenter(), te::da::GetFirstPropertyPos(), te::da::DataSet::getGeometry(), te::gm::GetGeomFromEnvelope(), te::da::DataSet::getNumProperties(), te::da::DataSet::getPropertyCharEncoding(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getPropertyName(), te::da::GetPropertyPos(), te::da::DataSet::getString(), te::da::DataSet::isNull(), te::da::DataSet::moveNext(), te::dt::RASTER_TYPE, te::dt::STRING_TYPE, te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
private |
Definition at line 146 of file Info.cpp.
References te::da::GetFirstGeomProperty(), te::da::GetFirstRasterProperty(), te::dt::Property::getName(), te::gm::INTERSECTS, TE_UNKNOWN_SRS, te::gm::Envelope::transform(), te::map::VISIBLE, and te::gm::Envelope::within().
|
private |
Definition at line 291 of file Info.cpp.
References te::rst::Grid::geoToGrid(), te::gm::Envelope::getCenter(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Raster::getValue(), te::rst::Round(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
virtualinherited |
This event handler can be reimplemented in a concrete tool class to receive mouse double click events for the watched object.
e | The mouse event. |
Reimplemented in te::edit::VertexTool, te::qt::widgets::Measure, te::edit::CreateLineTool, te::edit::CreatePolygonTool, te::edit::MoveGeometryTool, and te::qt::widgets::PolygonAcquire.
Definition at line 93 of file AbstractTool.cpp.
|
virtualinherited |
This event handler can be reimplemented in a concrete tool class to receive mouse move events for the watched object.
e | The mouse event. |
Reimplemented in te::edit::VertexTool, te::qt::widgets::Measure, te::qt::widgets::Selection, te::edit::CreateLineTool, te::edit::CreatePolygonTool, te::edit::MoveGeometryTool, te::qt::widgets::PolygonAcquire, te::qt::widgets::PanExtent, te::qt::widgets::ExtentAcquire, te::qt::widgets::RubberBand, te::qt::widgets::CoordTracking, te::qt::widgets::Pan, and te::qt::widgets::ZoomArea.
Definition at line 83 of file AbstractTool.cpp.
|
virtualinherited |
This event handler can be reimplemented in a concrete tool class to receive mouse press events for the watched object.
e | The mouse event. |
Reimplemented in te::edit::VertexTool, te::qt::widgets::Measure, te::qt::widgets::Selection, te::edit::CreateLineTool, te::edit::CreatePolygonTool, te::edit::MoveGeometryTool, te::qt::widgets::PolygonAcquire, te::qt::widgets::PanExtent, te::qt::widgets::ExtentAcquire, te::qt::widgets::RubberBand, te::qt::widgets::Pan, te::qt::widgets::ZoomClick, te::qt::widgets::ZoomArea, and te::qt::widgets::ZoomLeftAndRightClick.
Definition at line 78 of file AbstractTool.cpp.
|
virtual |
This event handler can be reimplemented in a concrete tool class to receive mouse release events for the watched object.
e | The mouse event. |
Reimplemented from te::qt::widgets::AbstractTool.
|
virtualinherited |
It sets the tool cursor.
cursor | The cursor that will be used during the tool operation. |
Definition at line 98 of file AbstractTool.cpp.
Referenced by te::edit::CreateLineTool::CreateLineTool(), te::edit::CreatePolygonTool::CreatePolygonTool(), te::qt::widgets::ExtentAcquire::ExtentAcquire(), Info(), te::qt::widgets::Measure::Measure(), te::qt::widgets::Pan::Pan(), te::qt::widgets::PanExtent::PanExtent(), te::qt::widgets::PointPicker::PointPicker(), te::qt::widgets::Selection::Selection(), te::qt::widgets::ZoomArea::ZoomArea(), and te::qt::widgets::ZoomClick::ZoomClick().
|
slot |
|
protectedinherited |
The default tool cursor.
Definition at line 161 of file AbstractTool.h.
|
protectedinherited |
The map display associated with the tool.
Definition at line 160 of file AbstractTool.h.
Referenced by te::qt::widgets::AbstractTool::AbstractTool(), te::qt::widgets::CoordTracking::CoordTracking(), te::edit::CreateLineTool::CreateLineTool(), te::edit::CreatePolygonTool::CreatePolygonTool(), te::qt::widgets::Measure::Measure(), te::edit::MoveGeometryTool::MoveGeometryTool(), te::qt::widgets::PolygonAcquire::PolygonAcquire(), te::edit::VertexTool::VertexTool(), and te::qt::widgets::ZoomKeyboard::ZoomKeyboard().
|
private |
|
private |