te::edit Namespace Reference

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  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  FeatureType { TO_BLOCKEDIT = 0, TO_ADD = 1, TO_UPDATE = 2, TO_DELETE = 3 }
 Defines the feature type(Add, Update, Delete ...). More...
 
enum  MouseEventEdition { mouseDoubleClick = 0, mouseReleaseRightClick = 1 }
 Defines which mouse event will be used in the tool to complete an operation. More...
 

Functions

TEEDITEXPORT void AddVertex (std::vector< te::gm::LineString * > &lines, const double &x, const double &y, const te::gm::Envelope &env, int srid)
 
TEEDITEXPORT te::gm::GeometryConvertGeomType (const te::map::AbstractLayerPtr &layer, te::gm::Geometry *geom, int srid)
 
TEEDITQTEXPORT te::map::AbstractLayerPtr CreateShapeFileLayer (const te::gm::GeomType &type, const int &srid)
 
TEEDITEXPORT VertexIndex FindSegment (std::vector< te::gm::LineString * > &lines, const te::gm::Envelope &env, int srid)
 
TEEDITEXPORT te::da::ObjectIdGenerateId ()
 
TEEDITEXPORT void GetCoordinates (te::gm::Geometry *geom, std::vector< te::gm::Coord2D > &coords)
 
TEEDITEXPORT double GetDistance (const te::gm::Coord2D &c1, const te::gm::Coord2D &c2)
 
TEEDITEXPORT void GetLines (te::gm::Geometry *geom, std::vector< te::gm::LineString * > &lines)
 
TEEDITEXPORT void GetLines (te::gm::GeometryCollection *gc, std::vector< te::gm::LineString * > &lines)
 
TEEDITEXPORT void GetLines (te::gm::Polygon *p, std::vector< te::gm::LineString * > &lines)
 
TEEDITEXPORT void GetLines (te::gm::LineString *l, std::vector< te::gm::LineString * > &lines)
 
TEEDITQTEXPORT QPointF GetPosition (QMouseEvent *e)
 
TEEDITEXPORT bool IsSpecialRingVertex (te::gm::LineString *l, const VertexIndex &index)
 
TEEDITEXPORT void MoveGeometry (te::gm::Geometry *geom, const double &deltax, const double &deltay)
 
TEEDITEXPORT void MoveVertex (std::vector< te::gm::LineString * > &lines, const VertexIndex &index, const double &x, const double &y)
 
TEEDITEXPORT FeaturePickFeature (const te::map::AbstractLayerPtr &layer, const te::gm::Envelope &env, int srid, FeatureType type)
 
TEEDITEXPORT FeaturePickFeature (const te::map::AbstractLayer *layer, const te::gm::Envelope &env, int srid, FeatureType type)
 
TEEDITEXPORT void RemoveVertex (std::vector< te::gm::LineString * > &lines, const VertexIndex &index)
 
TEEDITEXPORT void TrySnap (te::gm::Coord2D &coord, int srid)
 

Enumeration Type Documentation

Defines the feature type(Add, Update, Delete ...).

Enumerator
TO_BLOCKEDIT 

block feature to edition.

TO_ADD 

To be added.

TO_UPDATE 

To be updated.

TO_DELETE 

To be removed.

Definition at line 89 of file Utils.h.

Defines which mouse event will be used in the tool to complete an operation.

Enumerator
mouseDoubleClick 
mouseReleaseRightClick 

Definition at line 102 of file Utils.h.

Function Documentation

TEEDITEXPORT void te::edit::AddVertex ( std::vector< te::gm::LineString * > &  lines,
const double &  x,
const double &  y,
const te::gm::Envelope env,
int  srid 
)
TEEDITEXPORT te::gm::Geometry* te::edit::ConvertGeomType ( const te::map::AbstractLayerPtr layer,
te::gm::Geometry geom,
int  srid 
)
TEEDITQTEXPORT te::map::AbstractLayerPtr te::edit::CreateShapeFileLayer ( const te::gm::GeomType type,
const int &  srid 
)
TEEDITEXPORT VertexIndex te::edit::FindSegment ( std::vector< te::gm::LineString * > &  lines,
const te::gm::Envelope env,
int  srid 
)
TEEDITEXPORT te::da::ObjectId* te::edit::GenerateId ( )
TEEDITEXPORT void te::edit::GetCoordinates ( te::gm::Geometry geom,
std::vector< te::gm::Coord2D > &  coords 
)
TEEDITEXPORT double te::edit::GetDistance ( const te::gm::Coord2D c1,
const te::gm::Coord2D c2 
)
TEEDITEXPORT void te::edit::GetLines ( te::gm::Geometry geom,
std::vector< te::gm::LineString * > &  lines 
)
TEEDITEXPORT void te::edit::GetLines ( te::gm::GeometryCollection gc,
std::vector< te::gm::LineString * > &  lines 
)
TEEDITEXPORT void te::edit::GetLines ( te::gm::Polygon p,
std::vector< te::gm::LineString * > &  lines 
)
TEEDITEXPORT void te::edit::GetLines ( te::gm::LineString l,
std::vector< te::gm::LineString * > &  lines 
)
TEEDITQTEXPORT QPointF te::edit::GetPosition ( QMouseEvent *  e)
TEEDITEXPORT bool te::edit::IsSpecialRingVertex ( te::gm::LineString l,
const VertexIndex index 
)
TEEDITEXPORT void te::edit::MoveGeometry ( te::gm::Geometry geom,
const double &  deltax,
const double &  deltay 
)
TEEDITEXPORT void te::edit::MoveVertex ( std::vector< te::gm::LineString * > &  lines,
const VertexIndex index,
const double &  x,
const double &  y 
)
TEEDITEXPORT Feature* te::edit::PickFeature ( const te::map::AbstractLayerPtr layer,
const te::gm::Envelope env,
int  srid,
FeatureType  type 
)
TEEDITEXPORT Feature* te::edit::PickFeature ( const te::map::AbstractLayer layer,
const te::gm::Envelope env,
int  srid,
FeatureType  type 
)
TEEDITEXPORT void te::edit::RemoveVertex ( std::vector< te::gm::LineString * > &  lines,
const VertexIndex index 
)
TEEDITEXPORT void te::edit::TrySnap ( te::gm::Coord2D coord,
int  srid 
)