te::edit Namespace Reference

Classes

class  CreateLineTool
 This class implements a concrete tool to create lines. More...
 
class  CreatePolygonTool
 This class implements a concrete tool to create polygons. More...
 
class  EditionLayer
 This class represents a layer being created from user-edition. More...
 
class  Feature
 
class  FeatureAttributesDialog
 A widget used to show and setup feature attributes. More...
 
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...
 
struct  VertexIndex
 
class  VertexTool
 This class implements a concrete tool for vertex operations (move, add, etc.). More...
 

Typedefs

typedef boost::intrusive_ptr< EditionLayerEditionLayerPtr
 

Functions

TEEDITEXPORT void AddVertex (std::vector< te::gm::LineString * > &lines, const double &x, const double &y, const te::gm::Envelope &env, 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)
 
TEEDITEXPORT void RemoveVertex (std::vector< te::gm::LineString * > &lines, const VertexIndex &index)
 
TEEDITEXPORT void TrySnap (te::gm::Coord2D &coord, int srid)
 

Typedef Documentation

typedef boost::intrusive_ptr<EditionLayer> te::edit::EditionLayerPtr

Definition at line 122 of file EditionLayer.h.

Function Documentation

void te::edit::AddVertex ( std::vector< te::gm::LineString * > &  lines,
const double &  x,
const double &  y,
const te::gm::Envelope env,
int  srid 
)
te::da::ObjectId * te::edit::GenerateId ( )

Definition at line 361 of file Utils.cpp.

References te::da::ObjectId::addValue().

Referenced by te::edit::Repository::add(), and te::edit::Feature::Feature().

double te::edit::GetDistance ( const te::gm::Coord2D c1,
const te::gm::Coord2D c2 
)

Definition at line 295 of file Utils.cpp.

References te::gm::Coord2D::x, and te::gm::Coord2D::y.

Referenced by te::edit::SnapVertex::search().

void te::edit::GetLines ( te::gm::GeometryCollection gc,
std::vector< te::gm::LineString * > &  lines 
)
void te::edit::GetLines ( te::gm::Polygon p,
std::vector< te::gm::LineString * > &  lines 
)

Definition at line 142 of file 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 152 of file Utils.cpp.

bool te::edit::IsSpecialRingVertex ( te::gm::LineString l,
const VertexIndex index 
)
void te::edit::MoveGeometry ( te::gm::Geometry geom,
const double &  deltax,
const double &  deltay 
)
void te::edit::MoveVertex ( std::vector< te::gm::LineString * > &  lines,
const VertexIndex index,
const double &  x,
const double &  y 
)