1 /*=========================================================================
4 Module: $RCSfile: CutModel2SaveBinInfo.h,v $
6 Date: $Date: 2009/11/19 15:00:33 $
7 Version: $Revision: 1.1 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
21 #ifndef __CutModel2SaveBinInfoH__
22 #define __CutModel2SaveBinInfoH__
26 #include "CutModel2Exception.h"
28 #include <vtkPolyData.h>
29 #include <vtkPolyDataWriter.h>
30 #include <vtkPolyDataReader.h>
31 #include <vtkPolyDataMapper.h>
32 #include <vtkTransform.h>
33 #include <vtkMatrix4x4.h>
39 CUTMODEL2_REMOVE = 10,
44 class CutModel2SaveBinInfo {
48 CutModel2SaveBinInfo(int id, int currentaction,UNDOTYPE actiontype, std::string path);
49 ~CutModel2SaveBinInfo();
55 UNDOTYPE getActionType(){
58 std::string getSTDFileName()throw( CutModel2Exception){
60 throw new CutModel2Exception("Filename undoredo does not exists");
65 /*void setSTDFileName(std::string filename){
66 _stdFilename = filename;
69 int getCurrentShape(){
73 void setCurrentShape(int currentshape){
74 _currentshape=currentshape;
77 void savePolyData(vtkPolyData* polydata);
79 vtkTransform* getPolyDataTransform()throw( CutModel2Exception);
81 void saveMatrix4x4(vtkMatrix4x4* matrix);
82 vtkTransform* getTransformFromMatrixFile()throw( CutModel2Exception);
84 void setRange(double* range){
87 void setIsInside(bool isinside){
101 UNDOTYPE _actiontype;
105 std::string _stdFilename;
106 std::string _matrixFilename;