00001 00002 00003 #ifndef POINT_VIEW_H 00004 #define POINT_VIEW_H 00005 00006 00007 #include "vtkProperty.h" 00008 #include "vtkActor.h" 00009 #include "vtkSphereSource.h" 00010 #include "vtkPolyDataMapper.h" 00011 #include "wxVtkBaseView.h" 00012 #include <vector> 00013 00014 class PointView 00015 { 00016 public: 00017 PointView(); 00018 ~PointView(); 00019 00020 void DeletePoints(); 00021 void SetWxVtkBaseView(wxVtkBaseView *wxvtkbaseview); 00022 void Refresh(); 00023 void CreateNewPoint(double x, double y, int type); 00024 00025 enum PointTypes 00026 { 00027 BLUE = 0, 00028 MAGENTA, 00029 GREEN, 00030 YELLOW 00031 }; 00032 00033 private: 00034 wxVtkBaseView *_wxvtkbaseview; 00035 00036 std::vector<vtkPolyDataMapper*> point_mapped; 00037 std::vector<vtkActor*> point_actor; 00038 //vtkActor *_contourVtkActor; 00039 //vtkPolyDataMapper *_bboxMapper; 00040 00041 void DeleteVtkObjects(); 00042 00043 }; 00044 00045 #endif // PointView 00046 00047