ToolMap
Loading...
Searching...
No Matches
EditVertexDLG Class Reference

Display a dialog for editing vertex position. More...

#include <editvertex_dlg.h>

Inheritance diagram for EditVertexDLG:

Public Member Functions

 EditVertexDLG (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Edit Vertex"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 Constructor.
 
 ~EditVertexDLG ()
 Destructor.
 
virtual bool TransferDataToWindow ()
 Data transfert.
 
virtual bool TransferDataFromWindow ()
 Data transfert.
 

Public Attributes

wxArrayRealPoints m_VertexPts
 
long m_SelectedOID
 
int m_LayerType
 

Detailed Description

Display a dialog for editing vertex position.

The displayed dialog contain a wxGrid with two columns displaying coordinates. It may be used for lines and for points. The pseudo-code bellow indicate how to use this class

EditVertexDLG myDlg (parent);
// init member data for data transfert
myDlg.m_SelectedOID = selectedoid;
myDlg.m_LayerType = LAYER_SPATIAL_LINE;
myDlg.m_VertexPts = wxArrayRealPoints;
// now display the dialog
myDlg.ShowDialogModal();
Display a dialog for editing vertex position.
Definition editvertex_dlg.h:67
Author
Lucien Schreiber (c) CREALP 2009
Date
24 February 2009

Constructor & Destructor Documentation

◆ EditVertexDLG()

EditVertexDLG::EditVertexDLG ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  title = _("Edit Vertex"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER 
)

Constructor.

Author
Lucien Schreiber (c) CREALP 2009
Date
23 February 2009

◆ ~EditVertexDLG()

EditVertexDLG::~EditVertexDLG ( )

Destructor.

Author
Lucien Schreiber (c) CREALP 2009
Date
23 February 2009

Member Function Documentation

◆ TransferDataFromWindow()

bool EditVertexDLG::TransferDataFromWindow ( )
virtual

Data transfert.

This function is automatically called when dialog is closed

Author
Lucien Schreiber (c) CREALP 2009
Date
23 February 2009

◆ TransferDataToWindow()

bool EditVertexDLG::TransferDataToWindow ( )
virtual

Data transfert.

This function is automatically called when dialog is diasplayed

Author
Lucien Schreiber (c) CREALP 2009
Date
23 February 2009

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