]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/kernel/marDynData.h
0a20e9e55ebecfaeaa59424fb419fc8f4e647fa6
[creaMaracasVisu.git] / lib / maracasVisuLib / src / kernel / marDynData.h
1 /*=========================================================================
2
3   Program:   wxMaracas
4   Module:    $RCSfile: marDynData.h,v $
5   Language:  C++
6   Date:      $Date: 2008/10/31 16:32:55 $
7   Version:   $Revision: 1.1 $
8
9   Copyright: (c) 2002, 2003
10   License:
11   
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.
15
16 =========================================================================*/
17 #ifndef __MAR__KERNEL__DYNDATA__HXX__
18 #define __MAR__KERNEL__DYNDATA__HXX__
19
20 #include "marObject.h"
21 //#include "marAxis.h"
22 #include "volume.hxx"
23 #include "marImageData.h"
24
25 #include <vtkImageData.h>
26
27 class MAR_KERNEL_EXPORT marDynData : public marObject
28 {
29 public:
30
31   marDynData( marParameters* p = NULL );
32   ~marDynData( ) ;
33
34   void loadData( kVolume* vol, int* voi );
35
36 // EED Borrame
37 //  void loadDataDXMM( kVolume* vol, int* voi );
38
39   float getActualVoxel() { return getParameters()->getVoxelSize( ); }
40   kVolume* getVolume( ) { return( _volume );    };
41
42   //General methods
43   void reset( );
44   void copyFrom( const marObject& from );
45
46   //Persistence methods
47   bool save( std::ofstream& os );
48   bool load( std::ifstream& is );
49
50   marImageData* GetMarImageData();
51
52
53 private:
54
55         marImageData    *_marimagedata;
56         kVolume                 *_volume;
57 };
58
59 #endif // __MAR__KERNEL__DYNDATA__HXX__