X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2FCutModule%2Fkernel%2FCutModelManager.h;h=abc8d3e95686142707cf1d225f6da9b39aa95075;hb=4f65d8cc3ee3c4c7bd83e2947c33619acc1bc6ee;hp=3d84c8f3c48f453ba77c03cea9c9fe688fffd341;hpb=241ec043d82df169705445f317b332207fd1b6b2;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.h b/lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.h index 3d84c8f..abc8d3e 100644 --- a/lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.h +++ b/lib/maracasVisuLib/src/CutModule/kernel/CutModelManager.h @@ -1,17 +1,17 @@ /*========================================================================= - Program: wxMaracas - Module: $RCSfile: CutModelManager.h,v $ - Language: C++ - Date: $Date: 2009/12/08 13:42:39 $ - Version: $Revision: 1.4 $ - - Copyright: (c) 2002, 2003 - License: - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notice for more information. +Program: wxMaracas +Module: $RCSfile: CutModelManager.h,v $ +Language: C++ +Date: $Date: 2010/02/24 13:56:08 $ +Version: $Revision: 1.5 $ + +Copyright: (c) 2002, 2003 +License: + +This software is distributed WITHOUT ANY WARRANTY; without even +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. See the above copyright notice for more information. =========================================================================*/ @@ -28,12 +28,26 @@ #include "vtkImageData.h" #include "vtkRenderWindowInteractor.h" #include "vtkRenderer.h" +#include "wxVtkBaseView.h" +#include "wxVtk3DBaseView.h" #include #include "CutModelException.h" #include "CutModelData.h" #include "CutModelSaveBinInfo.h" +#include "vtkPoints.h" +#include "CutModelPolygon.h" +#include "vtkInteractorStyleTrackballCamera.h" +#include "vtkInteractorStyleCutter.h" +#include "wxVTKRenderWindowInteractor.h" +#include "vtkImplicitSelectionLoop.h" +#include "vtkPolyDataMapper.h" +#include "vtkSampleFunction.h" +#include "vtkContourFilter.h" +#include "vtkPolyData.h" +#include "vtkActor.h" + class CutModelManager { @@ -44,10 +58,14 @@ public: void setImageData(vtkImageData* img); + vtkImageData* getImageData(); + void setInteractor(vtkRenderWindowInteractor* interactor); void setRenderer(vtkRenderer* renderer); - + + void setBaseView(wxVtkBaseView* baseView); + void onAddCutModel(int id, vtkCommand* observer) throw( CutModelException); double* getImageRange()throw( CutModelException); @@ -80,8 +98,18 @@ public: int Redo()throw( CutModelException); + void ParallelProjectionOn(); + + void ParallelProjectionOff(); + + void UpdatePolygon(bool mode); + + void ExecuteCutPolygon(bool inOutCut); + + void InitializePolygonInteractorStyle(); + private: - + int _currentaction; void checkInvariant() throw( CutModelException); @@ -94,7 +122,19 @@ private: std::vector _vectordata; std::vector _undoredo; CutModelData* getCutModelData(int id)throw( CutModelException); - + + CutModelPolygon* _polygonCutter; + vtkPoints *contourPoints ; + double *contourDirection; + vtkInteractorStyleTrackballCamera *interactorstyle; + vtkInteractorStyleCutter *cutterstyle; + vtkContourFilter *contour; + vtkSampleFunction *sample; + vtkPolyData *actor; + vtkActor *actor3D; + vtkImplicitSelectionLoop *loop; + vtkPolyDataMapper *mapper; + }; #endif