1 /*=========================================================================
4 Module: $RCSfile: CutModelSaveBinInfo.h,v $
6 Date: $Date: 2009/11/19 15:24:57 $
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 __CutModelSaveBinInfoH__
22 #define __CutModelSaveBinInfoH__
26 #include "CutModelException.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>
44 class CutModelSaveBinInfo {
48 CutModelSaveBinInfo(int id, int currentaction,UNDOTYPE actiontype, std::string path);
49 ~CutModelSaveBinInfo();
55 UNDOTYPE getActionType(){
58 std::string getSTDFileName()throw( CutModelException){
60 throw new CutModelException("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( CutModelException);
81 void saveMatrix4x4(vtkMatrix4x4* matrix);
82 vtkTransform* getTransformFromMatrixFile()throw( CutModelException);
84 void setRange(double* range){
87 void setIsInside(bool isinside){
101 UNDOTYPE _actiontype;
105 std::string _stdFilename;
106 std::string _matrixFilename;