#include "ModelShowNPoints.h"
+#include "ViewShowNPoints.h"
#include <wx/panel.h>
#include <wx/textctrl.h>
#include <wx/slider.h>
#include <wx/stattext.h>
-#include <vtkRenderer.h>
-#include <vtkTextActor3D.h>
-#include <vtkSphereSource.h>
class WidgetShowNPoints : public wxPanel
virtual void UpdatePoints(wxCommandEvent &event);
- void RefreshPoint(int id);
-
+ // EED 2022-05-19
+ //void RefreshPoint(int id);
+ //void RefreshPoints();
+ //void AddVtkPoint();
+
void SetColour(std::vector<double> colour);
void SetOpacity(double opacity);
void SetRadio(double radio);
void DeleteAllPoints();
ModelShowNPoints* GetModelShowNPoints();
- void RefreshPoints();
- void AddVtkPoint();
+ ViewShowNPoints* GetViewShowNPoints();
void SetInitLstPoints( std::vector<int> initLstPointsX, std::vector<int> initLstPointsY, std::vector<int> initLstPointsZ, std::vector<std::string> initLstLabels );
void SetType(int type);
virtual void SetOutputBox();
private:
- void ErasePoint(int id);
- vtkRenderer *renderer;
- std::vector<vtkActor*> lstActorsSphere;//NTU changed from prop3D to Actor
- std::vector<vtkTextActor3D*> lstActorsText;
+ void ErasePoint(int id);
+
+ // EED 2022-05-19
+ //vtkRenderer *renderer;
+ //std::vector<vtkActor*> lstActorsSphere;//NTU changed from prop3D to Actor
+ //std::vector<vtkTextActor3D*> lstActorsText;
+ //std::vector<vtkSphereSource*> lstSourceSphere;
+ //std::vector<double> mcolour;
+ //ModelShowNPoints *mmodelShowNPoints;
+ //double mopacity;
+ std::vector<ViewShowNPoints*> lstViewShowNPoints;
+
//NTU: For updating points
- std::vector<vtkSphereSource*> lstSourceSphere;
- std::vector<double> mcolour;
- wxStaticText *askPointLabel;
- wxTextCtrl *textCtrl;
- wxStaticText *txtNrPoints;
- wxSlider *sdrOpacity;
- wxSlider *sdrRadio;
- ModelShowNPoints *mmodelShowNPoints;
- int mtype;
- double mopacity;
+ wxStaticText *askPointLabel;
+ wxTextCtrl *textCtrl;
+ wxStaticText *txtNrPoints;
+ wxSlider *sdrOpacity;
+ wxSlider *sdrRadio;
+
+ std::vector<ModelShowNPoints*> lstModelShowNPoints;
+ int mActualLstPoints;
+
+ int mtype;
};