Classes | |
| class | AddCommand |
| Undo/Redo for add one components. More... | |
| class | AggregateAreaTool |
| class | CreateLineTool |
| This class implements a concrete tool to create lines. More... | |
| class | CreatePointTool |
| This class implements a concrete tool to create points. More... | |
| class | CreatePolygonTool |
| This class implements a concrete tool to create polygons. More... | |
| class | DeleteGeometryByAreaTool |
| class | DeleteGeometryTool |
| This class implements a concrete tool to remove geometries. More... | |
| class | DeletePartTool |
| This class implements a concrete tool to delete parts of multi features (deleting polygons of a multi feature polygons for example). More... | |
| class | EditInfoTool |
| class | Feature |
| class | GeometriesUpdateTool |
| class | MergeGeometriesTool |
| class | Module |
| This singleton defines the TerraLib Edit module entry. More... | |
| class | MoveGeometryTool |
| This class implements a concrete tool to move geometries. More... | |
| class | Renderer |
| This is a singleton for rendering geometries and features. More... | |
| class | Repository |
| This class represents a repository of geometries and features. More... | |
| class | RepositoryManager |
| This is a singleton for managing edit repositories. More... | |
| class | RotateGeometryTool |
| class | Snap |
| This class implements geometry snap concept. More... | |
| class | SnapManager |
| This is a singleton for managing geometries snap. More... | |
| class | SnapOptionsDialog |
| A dialog used to configure geometry snap options. More... | |
| class | SnapVertex |
| This class implements a vertex search snap. More... | |
| class | SplitPolygonTool |
| This class implements a concrete tool to split polygons. More... | |
| class | SubtractAreaTool |
| class | UndoStackManager |
| struct | VertexIndex |
| class | VertexTool |
| This class implements a concrete tool for vertex operations (move, add, etc.). More... | |
Enumerations | |
| enum | OperationType { SELECT, INSERT, UPDATE, DELETE, DROP, CREATE, ALTER } |
| Enumerator | |
|---|---|
| SELECT | |
| INSERT | |
| UPDATE | |
| DELETE | |
| DROP | |
| CREATE | |
| ALTER | |
Definition at line 38 of file src/terralib/edit/Enums.h.
| void te::edit::AddVertex | ( | std::vector< te::gm::LineString * > & | lines, |
| const double & | x, | ||
| const double & | y, | ||
| const te::gm::Envelope & | env, | ||
| int | srid | ||
| ) |
Definition at line 220 of file src/terralib/edit/Utils.cpp.
References FindSegment(), te::edit::VertexIndex::isValid(), te::edit::VertexIndex::m_line, te::edit::VertexIndex::m_pos, and te::gm::LineString::setPoint().
Referenced by te::edit::VertexTool::mouseDoubleClickEvent().
| te::gm::Geometry * te::edit::Convert2LayerGeomType | ( | const te::map::AbstractLayerPtr & | layer, |
| te::gm::Geometry * | geom, | ||
| int | srid | ||
| ) |
Definition at line 426 of file src/terralib/edit/Utils.cpp.
References te::gm::GeometryCollection::add(), dt, te::da::GetFirstGeomProperty(), te::gm::GeometryCollection::getGeometryN(), te::gm::GeometryProperty::getGeometryType(), te::gm::Geometry::getGeomTypeId(), te::gm::LineStringType, te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, p, te::gm::PointType, te::gm::PolygonType, and te::gm::Geometry::setSRID().
Referenced by te::qt::plugins::edit::ToolBar::onSaveActivated().
| te::map::AbstractLayerPtr te::edit::CreateShapeFileLayer | ( | const te::gm::GeomType & | type, |
| const int & | srid | ||
| ) |
Definition at line 64 of file src/terralib/edit/qt/Utils.cpp.
References ds, dt, te::da::GetDataSource(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::da::DataSourceFactory::make(), te::dt::STRING_TYPE, TE_TR, and te::map::VISIBLE.
| te::edit::VertexIndex te::edit::FindSegment | ( | std::vector< te::gm::LineString * > & | lines, |
| const te::gm::Envelope & | env, | ||
| int | srid | ||
| ) |
Definition at line 249 of file src/terralib/edit/Utils.cpp.
References te::gm::GetGeomFromEnvelope(), te::gm::Geometry::getGeomTypeId(), te::gm::LineString::getNPoints(), te::gm::Geometry::getSRID(), te::gm::LineString::getX(), te::gm::LineString::getY(), line, te::edit::VertexIndex::m_line, te::edit::VertexIndex::m_pos, and te::edit::VertexIndex::makeInvalid().
Referenced by AddVertex().
| te::da::ObjectId * te::edit::GenerateId | ( | ) |
Definition at line 411 of file src/terralib/edit/Utils.cpp.
References te::da::ObjectId::addValue(), and ObjectId().
Referenced by te::edit::Repository::add(), te::edit::Feature::Feature(), and te::edit::SplitPolygonTool::splitPolygon().
| void te::edit::GetCoordinates | ( | te::gm::Geometry * | geom, |
| std::vector< te::gm::Coord2D > & | coords | ||
| ) |
Definition at line 350 of file src/terralib/edit/Utils.cpp.
References te::gm::GeometryCollection::getGeometryN(), te::gm::Geometry::getGeomTypeId(), GetLines(), te::gm::LineString::getNPoints(), te::gm::GeometryCollection::getNumGeometries(), te::gm::Point::getX(), te::gm::LineString::getX(), te::gm::Point::getY(), te::gm::LineString::getY(), line, and te::gm::MultiPointType.
Referenced by te::edit::SnapVertex::add(), and te::edit::CreatePolygonTool::onCommandFeedback().
| double te::edit::GetDistance | ( | const te::gm::Coord2D & | c1, |
| const te::gm::Coord2D & | c2 | ||
| ) |
Definition at line 345 of file src/terralib/edit/Utils.cpp.
References te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::edit::CreatePolygonTool::mouseMoveEvent(), and te::edit::SnapVertex::search().
| void te::edit::GetLines | ( | te::gm::Geometry * | geom, |
| std::vector< te::gm::LineString * > & | lines | ||
| ) |
Definition at line 121 of file src/terralib/edit/Utils.cpp.
References te::gm::Geometry::getGeomTypeId(), te::gm::LineStringType, te::gm::MultiLineStringType, te::gm::MultiPolygonType, and te::gm::PolygonType.
Referenced by te::edit::Renderer::drawVertexes(), GetCoordinates(), GetLines(), te::edit::VertexTool::mouseReleaseEvent(), MoveGeometry(), te::edit::VertexTool::onCommandFeedback(), te::edit::VertexTool::pickFeature(), and Rotate().
| void te::edit::GetLines | ( | te::gm::GeometryCollection * | gc, |
| std::vector< te::gm::LineString * > & | lines | ||
| ) |
Definition at line 146 of file src/terralib/edit/Utils.cpp.
References te::gm::GeometryCollection::getGeometryN(), GetLines(), and te::gm::GeometryCollection::getNumGeometries().
| void te::edit::GetLines | ( | te::gm::Polygon * | p, |
| std::vector< te::gm::LineString * > & | lines | ||
| ) |
Definition at line 154 of file src/terralib/edit/Utils.cpp.
References GetLines(), and te::gm::CurvePolygon::getRings().
| void te::edit::GetLines | ( | te::gm::LineString * | l, |
| std::vector< te::gm::LineString * > & | lines | ||
| ) |
Definition at line 164 of file src/terralib/edit/Utils.cpp.
| QPointF te::edit::GetPosition | ( | QMouseEvent * | e | ) |
Definition at line 55 of file src/terralib/edit/qt/Utils.cpp.
Referenced by te::edit::VertexTool::mouseDoubleClickEvent(), te::edit::RotateGeometryTool::mouseMoveEvent(), te::edit::CreateLineTool::mouseMoveEvent(), te::edit::DeleteGeometryByAreaTool::mouseMoveEvent(), te::edit::MoveGeometryTool::mouseMoveEvent(), te::edit::CreatePolygonTool::mouseMoveEvent(), te::edit::VertexTool::mouseMoveEvent(), te::edit::EditInfoTool::mousePressEvent(), te::edit::SubtractAreaTool::mousePressEvent(), te::edit::AggregateAreaTool::mousePressEvent(), te::edit::RotateGeometryTool::mousePressEvent(), te::edit::CreateLineTool::mousePressEvent(), te::edit::CreatePointTool::mousePressEvent(), te::edit::MoveGeometryTool::mousePressEvent(), te::edit::DeleteGeometryByAreaTool::mousePressEvent(), te::edit::CreatePolygonTool::mousePressEvent(), te::mnt::ProfileTools::mouseReleaseEvent(), te::edit::DeleteGeometryByAreaTool::mouseReleaseEvent(), and te::edit::VertexTool::mouseReleaseEvent().
| bool te::edit::IsSpecialRingVertex | ( | te::gm::LineString * | l, |
| const VertexIndex & | index | ||
| ) |
Definition at line 340 of file src/terralib/edit/Utils.cpp.
References te::gm::LineString::getNPoints(), te::gm::LineString::isClosed(), and te::edit::VertexIndex::m_pos.
Referenced by MoveVertex(), and RemoveVertex().
| void te::edit::MoveGeometry | ( | te::gm::Geometry * | geom, |
| const double & | deltax, | ||
| const double & | deltay | ||
| ) |
Definition at line 285 of file src/terralib/edit/Utils.cpp.
References te::gm::GeometryCollection::getGeometryN(), te::gm::Geometry::getGeomTypeId(), GetLines(), te::gm::LineString::getNPoints(), te::gm::GeometryCollection::getNumGeometries(), te::gm::Point::getX(), te::gm::LineString::getX(), te::gm::Point::getY(), te::gm::LineString::getY(), te::gm::LineStringType, te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, p, te::gm::PointType, te::gm::PolygonType, te::gm::LineString::setPoint(), te::gm::Point::setX(), and te::gm::Point::setY().
Referenced by BOOST_AUTO_TEST_CASE(), and te::edit::MoveGeometryTool::mouseMoveEvent().
| void te::edit::MoveVertex | ( | std::vector< te::gm::LineString * > & | lines, |
| const VertexIndex & | index, | ||
| const double & | x, | ||
| const double & | y | ||
| ) |
Definition at line 170 of file src/terralib/edit/Utils.cpp.
References IsSpecialRingVertex(), te::edit::VertexIndex::isValid(), te::edit::VertexIndex::m_line, te::edit::VertexIndex::m_pos, and te::gm::LineString::setPoint().
Referenced by te::edit::VertexTool::mouseMoveEvent().
| te::edit::Feature * te::edit::PickFeature | ( | const te::map::AbstractLayerPtr & | layer, |
| const te::gm::Envelope & | env, | ||
| int | srid | ||
| ) |
Definition at line 57 of file src/terralib/edit/Utils.cpp.
Referenced by te::edit::MergeGeometriesTool::editingFinished(), te::edit::DeleteGeometryTool::mousePressEvent(), te::edit::DeletePartTool::mousePressEvent(), te::edit::MergeGeometriesTool::pickFeature(), te::edit::EditInfoTool::pickFeature(), te::edit::SubtractAreaTool::pickFeature(), te::edit::RotateGeometryTool::pickFeature(), te::edit::AggregateAreaTool::pickFeature(), te::edit::MoveGeometryTool::pickFeature(), and te::edit::VertexTool::pickFeature().
| te::edit::Feature * te::edit::PickFeature | ( | const te::map::AbstractLayer * | layer, |
| const te::gm::Envelope & | env, | ||
| int | srid | ||
| ) |
Definition at line 62 of file src/terralib/edit/Utils.cpp.
References te::edit::Feature::clone(), te::da::GenerateOID(), te::gm::Envelope::getCenter(), te::map::AbstractLayer::getData(), te::map::AbstractLayer::getExtent(), te::da::GetFirstGeomProperty(), te::gm::GetGeomFromEnvelope(), te::map::AbstractLayer::getId(), te::da::GetOIDPropertyNames(), te::map::AbstractLayer::getSchema(), te::map::AbstractLayer::getSRID(), te::map::AbstractLayer::getVisibility(), te::gm::INTERSECTS, te::gm::Envelope::intersects(), te::map::AbstractLayer::isValid(), te::edit::Feature::setOperationTypeId(), TE_UNKNOWN_SRS, te::gm::Envelope::transform(), UPDATE, te::map::VISIBLE, te::gm::Coord2D::x, and te::gm::Coord2D::y.
| void te::edit::RemoveVertex | ( | std::vector< te::gm::LineString * > & | lines, |
| const VertexIndex & | index | ||
| ) |
Definition at line 188 of file src/terralib/edit/Utils.cpp.
References te::gm::LineString::getX(), te::gm::LineString::getY(), IsSpecialRingVertex(), te::edit::VertexIndex::isValid(), te::edit::VertexIndex::m_line, te::edit::VertexIndex::m_pos, te::gm::LineString::setPoint(), and te::gm::LineString::size().
Referenced by te::edit::VertexTool::mousePressEvent().
| void te::edit::Rotate | ( | te::gm::Geometry * | geom, |
| double | angle | ||
| ) |
Definition at line 559 of file src/terralib/edit/Utils.cpp.
References dx, te::gm::Geometry::getCentroid(), GetLines(), te::gm::LineString::getPointN(), te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), and te::gm::LineString::setPoint().
Referenced by te::edit::RotateGeometryTool::mouseMoveEvent().
| void te::edit::TrySnap | ( | te::gm::Coord2D & | coord, |
| int | srid | ||
| ) |
Definition at line 393 of file src/terralib/edit/Utils.cpp.
References te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::edit::CreateLineTool::mouseMoveEvent(), te::edit::CreatePolygonTool::mouseMoveEvent(), te::edit::DeleteGeometryByAreaTool::mouseMoveEvent(), te::edit::CreateLineTool::mousePressEvent(), te::edit::CreatePointTool::mousePressEvent(), te::edit::DeleteGeometryByAreaTool::mousePressEvent(), and te::edit::CreatePolygonTool::mousePressEvent().