Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
vtRoadLayer Class Reference
Inheritance diagram for vtRoadLayer:
vtLayer RoadMapEdit vtRoadMap

Public Member Functions

bool GetExtent (DRECT &rect)
 Get the extents.
 
void DrawLayer (wxDC *pDC, vtScaledView *pView)
 
bool TransformCoords (vtProjection &proj)
 Transform the coordinates into another CRS.
 
bool OnSave (bool progress_callback(int)=NULL)
 
bool OnLoad ()
 
bool AppendDataFrom (vtLayer *pL)
 Merge the contents of another layer (of the same type)
 
void GetProjection (vtProjection &proj)
 Get the CRS.
 
void SetProjection (const vtProjection &proj)
 Set the CRS, which does not reproject.
 
void Offset (const DPoint2 &p)
 Shift all the coordinates by a horizontal offset.
 
void GetPropertyText (wxString &strIn)
 
void OnLeftDown (BuilderView *pView, UIContext &ui)
 
void OnLeftUp (BuilderView *pView, UIContext &ui)
 
void OnRightUp (BuilderView *pView, UIContext &ui)
 
void OnLeftDoubleClick (BuilderView *pView, UIContext &ui)
 
int GetSelectedNodes ()
 
int GetSelectedLinks ()
 
void ToggleLinkDirection (LinkEdit *pLink)
 
bool SelectArea (const DRECT &box, bool nodemode, bool crossSelect)
 
void DoClean ()
 
void MoveSelectedNodes (const DPoint2 &offset)
 
void CarveRoadway (class vtElevLayer *pElev, float margin)
 
bool EditNodeProperties (BuilderView *pView, const DPoint2 &point, float error, DRECT &bound)
 
bool EditLinkProperties (const DPoint2 &point, float error, DRECT &bound)
 
bool EditNodesProperties (BuilderView *pView)
 
bool EditLinksProperties (BuilderView *pView)
 
- Public Member Functions inherited from vtLayer
 vtLayer (LayerType type)
 
LayerType GetType ()
 
bool SetVisible (bool bVisible)
 
bool GetVisible ()
 
void SetModified (bool bModified)
 
bool GetModified ()
 
void SetSticky (bool bSticky)
 
bool GetSticky ()
 
bool IsNative ()
 
wxString GetImportedFrom ()
 
void SetImportedFrom (const wxString &fname)
 
bool Save (bool progress_callback(int)=NULL)
 
bool SaveAs (const wxString &filename=_T(""), bool progress_callback(int)=NULL)
 
bool Load (const wxString &filename=_T(""))
 
virtual bool SetExtent (const DRECT &rect)
 
virtual wxString GetFileExtension ()
 
virtual bool CanBeSaved ()
 
virtual wxString GetLayerFilename ()
 
virtual void SetLayerFilename (const wxString &fname)
 
virtual bool AskForSaveFilename ()
 
vtString GetExportFilename (const wxString &format_filter)
 
bool GetAreaExtent (DRECT &rect)
 
virtual void OnRightDown (BuilderView *pView, UIContext &ui)
 
virtual void OnMouseMove (BuilderView *pView, UIContext &ui)
 
virtual void SetLayerName (const vtString &fname)=0
 
virtual vtString GetLayerName ()=0
 
virtual void SetVisible (bool vis)=0
 
virtual bool GetVisible ()=0
 
- Public Member Functions inherited from RoadMapEdit
LinkEditGetFirstLink ()
 
NodeEditGetFirstNode ()
 
NodeEditNewNode ()
 
LinkEditNewLink ()
 
void AddElementsFromDLG (vtDLGFile *pDlg)
 
bool ApplyCFCC (LinkEdit *pR, const char *str)
 
void AddElementsFromSHP (const wxString &filename, const vtProjection &proj, bool progress_callback(int)=NULL)
 
void AddElementsFromOGR (class OGRDataSource *datasource, bool progress_callback(int)=NULL)
 
LinkEditAddRoadSegment (class OGRLineString *pLineString)
 
bool ImportFromOSM (const char *fname, bool progress_callback(int)=NULL)
 
int MergeRedundantNodes (bool bDegrees, bool progress_callback(int)=NULL)
 
int RemoveDegenerateLinks ()
 
int RemoveUnnecessaryNodes ()
 
int CleanLinkPoints ()
 
int DeleteDanglingLinks ()
 
int FixOverlappedLinks (bool bDegrees)
 
int FixExtraneousParallels ()
 
void Draw (wxDC *pDC, vtScaledView *pView, bool bNodes)
 
void GuessIntersectionTypes ()
 
DRECTDeleteSelected (int &nBounds)
 
LinkEditFindLink (DPoint2 point, float error)
 
bool SelectLink (DPoint2 point, float error, DRECT &bound)
 
int SelectLinks (DRECT bound, bool bval)
 
bool SelectAndExtendLink (DPoint2 point, float error, DRECT &bound)
 
bool SelectHwyNum (int num)
 
bool CrossSelectLinks (DRECT bound, bool bval)
 
void InvertSelection ()
 
bool SelectNode (const DPoint2 &point, float epsilon, DRECT &bound)
 
int SelectNodes (DRECT bound, bool bval)
 
int NumSelectedNodes ()
 
int NumSelectedLinks ()
 
DRECTDeSelectAll (int &numRegions)
 
- Public Member Functions inherited from vtRoadMap
void DeleteElements ()
 
DRECT GetMapExtent ()
 
void ComputeExtents ()
 
int NumLinks () const
 
int NumNodes () const
 
TLinkGetFirstLink ()
 
TNodeGetFirstNode ()
 
void AddNode (TNode *pNode)
 
void AddLink (TLink *pLink)
 
TNodeFindNodeByID (int id)
 
TNodeFindNodeAtPoint (const DPoint2 &point, double epsilon)
 
int RemoveUnusedNodes ()
 
void RemoveNode (TNode *pNode)
 
void RemoveLink (TLink *pLink)
 
bool ReadRMF (const char *filename, bool bHwy, bool bPaved, bool bDirt)
 
bool WriteRMF (const char *filename)
 
vtProjectionGetProjection ()
 

Static Public Member Functions

static bool GetDrawNodes ()
 
static void SetDrawNodes (bool d)
 
static bool GetShowDirection ()
 
static void SetShowDirection (bool d)
 
static bool GetDrawWidth ()
 
static void SetDrawWidth (bool d)
 
- Static Public Member Functions inherited from vtLayer
static vtLayerCreateNewLayer (LayerType ltype)
 

Static Protected Attributes

static bool m_bDrawNodes = false
 
static bool m_bShowDirection = false
 
static bool m_bDrawWidth = false
 

Additional Inherited Members

- Static Public Attributes inherited from vtLayer
static wxArrayString LayerTypeNames
 
static const wxChar * LayerFileExtension []
 
- Protected Member Functions inherited from vtLayer
wxString GetSaveFileDialogFilter ()
 
void SetMessageText (const wxString &msg)
 
- Protected Member Functions inherited from RoadMapEdit
void ApplyDLGAttributes (int road_type, int &lanes, SurfaceType &stype, int &priority)
 
bool extract_road_attributes (const char *strEntity, int &lanes, SurfaceType &stype, int &priority)
 
bool attribute_filter_roads (DLGLine *pLine, int &lanes, SurfaceType &stype, int &priority)
 
bool AppendFromOGRLayer (OGRLayer *pLayer)
 
void AddLinkFromLineString (OGRLineString *pLineString)
 
void DeleteSingleLink (LinkEdit *pLink)
 
void ReplaceNode (NodeEdit *pN, NodeEdit *pN2)
 
- Protected Attributes inherited from vtLayer
wxString m_wsFilename
 
wxString m_wsImportedFrom
 
LayerType m_type
 
bool m_bVisible
 
bool m_bModified
 
bool m_bNative
 
bool m_bSticky
 
- Protected Attributes inherited from vtRoadMap
DRECT m_extents
 
bool m_bValidExtents
 
TLinkm_pFirstLink
 
TNodem_pFirstNode
 
vtProjection m_proj
 

The documentation for this class was generated from the following files: