#include "vtkActor.h"
#include "vtkImageData.h"
#include "vtkRenderer.h"
+#include "vtkTextActor3D.h"
namespace bbcreaMaracasVisu
{
WidgetShowNPoints( wxWindow *parent, ShowNPoints *box);
~WidgetShowNPoints();
void OnAddPoint(wxCommandEvent &event);
- void ErasePoint(int id);
+ void OnRenamePoint(wxCommandEvent& event);
void OnErasePoint(wxCommandEvent& event);
void OnEraseLastPoint(wxCommandEvent &event);
void OnDeleteAllPoints(wxCommandEvent &event);
+ void OnSavePoints(wxCommandEvent &event);
+ void OnLoadPoints(wxCommandEvent &event);
- void SetOutputBox();
void SetPoint(std::vector<int> ppoint);
void SetColour(std::vector<double> colour);
void SetOpacity(double opacity);
std::vector<std::string> GetLstLabels();
private:
- ShowNPoints *mbbShowNPoints;
- vtkRenderer *renderer;
- std::vector<int> lstPointsX;
- std::vector<int> lstPointsY;
- std::vector<int> lstPointsZ;
- std::vector<std::string> lstLabels;
- std::vector<vtkProp3D*> lstActorsSphere;
- std::vector<vtkProp3D*> lstActorsText;
+
+ std::string CleanSpaces(std::string ss);
+ int GetNearestPoint();
+ void ErasePoint(int id);
+ void SetOutputBox();
+
+ ShowNPoints *mbbShowNPoints;
+ vtkRenderer *renderer;
+ std::vector<int> lstPointsX;
+ std::vector<int> lstPointsY;
+ std::vector<int> lstPointsZ;
+ std::vector<std::string> lstLabels;
+ std::vector<vtkProp3D*> lstActorsSphere;
+ std::vector<vtkTextActor3D*> lstActorsText;
- std::vector<int> mpoint;
- vtkImageData *mimage;
- std::vector<double> mcolour;
- double mopacity;
- double mradio;
- wxTextCtrl *textCtrl;
+ std::vector<int> mpoint;
+ vtkImageData *mimage;
+ std::vector<double> mcolour;
+ double mopacity;
+ double mradio;
+ wxTextCtrl *textCtrl;
+ wxStaticText *txtNrPoints;
};