#include <vtkDataSetMapper.h>
#include <vtkUnstructuredGrid.h>
-#include "wxVTKRenderWindowInteractor.h"
+#include "creawxVTKRenderWindowInteractor.h"
//--
// ----------------------------------------------------------------------------
-class creaMaracasVisu_EXPORT manualViewBaseContour{
+class creaMaracasVisu_EXPORT manualViewBaseContour
+{
//---------------------------------------------------
// PUBLIC METHODS & ATTS
virtual void Refresh();
int GetNumberOfPoints(); // ???
- //int GetNumberOfPointsSpline(); //JSTG 25-02-08 In ContourModel is the same method
+ //int GetNumberOfPointsSpline(); //JSTG 25-02-08 In ContourModel is the same method
//void SetNumberOfPointsSpline(int size); //JSTG 25-02-08 In ContourModel is the same method
void CreateNewContour();
void UpdateColorActor();
void SetRange(double range);
- double GetRange();
+ double GetRange();
void SetZ(int z);
int GetZ();
virtual void ConstructVTKObjects();
+ void SetCellArray(bool type);
//---------------------------------------------------
// PRIVATE METHODS & ATTS
//---------------------------------------------------
private:
- vtkPolyData *_pd;
- vtkActor *_contourVtkActor;
- vtkPolyDataMapper *_bboxMapper;
+ vtkPolyData *_pd;
+ vtkCellArray *_splineCell;
+ vtkCellArray *_lineCell;
+ vtkActor *_contourVtkActor;
+ vtkPolyDataMapper *_bboxMapper;
void DeleteVtkObjects();
protected:
- double _range;
+ double _range;
- double _coulorEdit_r;
- double _coulorEdit_g;
- double _coulorEdit_b;
- double _coulorNormal_r;
- double _coulorNormal_g;
- double _coulorNormal_b;
- double _coulorSelection_r;
- double _coulorSelection_g;
- double _coulorSelection_b;
- double _widthline;
+ double _coulorEdit_r;
+ double _coulorEdit_g;
+ double _coulorEdit_b;
+ double _coulorNormal_r;
+ double _coulorNormal_g;
+ double _coulorNormal_b;
+ double _coulorSelection_r;
+ double _coulorSelection_g;
+ double _coulorSelection_b;
+ double _widthline;
//
// Reference to VTKBaseView
//
- wxVtkBaseView *_wxvtkbaseview;
+ wxVtkBaseView *_wxvtkbaseview;
//
// Is the contour selected
//
- bool _selected;
- bool *_editable;
- bool _posibleSelected;
- bool _viewControlPoints;
+ bool _selected;
+ bool *_editable;
+ bool _posibleSelected;
+ bool _viewControlPoints;
// text
- bool _show_text;
- int _id_viewPoint_for_text;
- vtkTextActor *_textActor;
- vtkTextActor *_textActor2;
+ bool _show_text;
+ int _id_viewPoint_for_text;
+ vtkTextActor *_textActor;
+ vtkTextActor *_textActor2;
//
// Contour model
//
- manualBaseModel *_manContModel;
+ manualBaseModel *_manContModel;
- vtkPoints *_pts;
+ vtkPoints *_pts;
// JSTG 25-02-08 --------------------------------------------
- int _sizePointsContour;
+ int _sizePointsContour;
//-----------------------------------------------------------
//
//
// Spacing
//
- double _spc[3];
+ double _spc[3];
virtual void RefreshText();