manualViewPoint.h

Go to the documentation of this file.
00001 #ifndef manualViewPoint_h
00002 #define manualViewPoint_h
00003 
00004 #include "vtkRenderWindow.h"
00005 
00006 #include "vtkRenderer.h"
00007 #include "vtkRenderWindowInteractor.h" //extremely important with VC++ don't remove !
00008 #include "vtkCommand.h"
00009 #include "vtkPolyData.h"
00010 #include "vtkCellArray.h"
00011 #include "vtkPolyDataMapper.h"
00012 #include "vtkInteractorObserver.h"
00013 #include "vtkInteractorStyleImage.h"
00014 #include <vtkKochanekSpline.h> 
00015 
00016 #include <vtkCellPicker.h> 
00017 
00018 
00019 #include <vtkCamera.h> 
00020 #include <vtkPolyLine.h>
00021 #include <vtkDataSetMapper.h>
00022 #include <vtkUnstructuredGrid.h>
00023 
00024 #include "wxVTKRenderWindowInteractor.h"
00025 
00026 
00027 //--
00028 
00029 #include <vector>
00030 #include "wxVtkBaseView.h"
00031 #include "marTypes.h"
00032 
00033 //--------------------------------------------------------
00034 
00035 class manualViewPoint{
00036 public:
00037 
00038 //      static int range;
00039 
00040         manualViewPoint(wxVtkBaseView *wxvtkbaseview);
00041         ~manualViewPoint();
00042         void            SetSelected(bool selected);
00043         void            SetPosibleSelected(bool posibleSelected);
00044         bool            GetSelected();
00045         bool            GetPosibleSelected();
00046         void            DeleteVtkObjects();
00047         vtkActor*       CreateVtkPointActor();
00048         void            SetPositionXY(double x, double y, double range, double posZ);
00049         vtkActor*   GetVtkActor();
00050         void            UpdateColorActor();     
00051         void            GetSpacing(double spc[3]);
00052         void            SetSpacing(double spc[3]);
00053         void            SetWidthLine( double width);
00054 
00055 
00056 private:
00057         bool                            _selected;      
00058         bool                            _posibleSelected;
00059         vtkPoints                       *_pts;
00060         vtkPolyData                     *_pd;
00061         vtkActor                        *_pointVtkActor;
00062         vtkPolyDataMapper       *_bboxMapper;
00063         wxVtkBaseView           *_wxvtkbaseview;
00064         double                          _widthline;
00065 protected:
00066         double                          _spc[3];
00067 };
00068 
00069 #endif // manualViewPoint_h

Generated on Wed Jul 29 16:35:28 2009 for creaMaracasVisu_lib by  doxygen 1.5.3