00001 /*========================================================================= 00002 00003 Program: wxMaracas 00004 Module: $RCSfile: marDynData.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009/05/14 13:54:43 $ 00007 Version: $Revision: 1.4 $ 00008 00009 Copyright: (c) 2002, 2003 00010 License: 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notice for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __MAR__KERNEL__DYNDATA__HXX__ 00018 #define __MAR__KERNEL__DYNDATA__HXX__ 00019 00020 #include "marObject.h" 00021 //#include "marAxis.h" 00022 #include "volume.hxx" 00023 #include "marImageData.h" 00024 00025 #include <vtkImageData.h> 00026 00027 class creaMaracasVisu_EXPORT marDynData : public marObject 00028 { 00029 public: 00030 00031 marDynData( marParameters* p = NULL ); 00032 ~marDynData( ) ; 00033 00034 void loadData( kVolume* vol, int* voi ); 00035 00036 // EED Borrame 00037 // void loadDataDXMM( kVolume* vol, int* voi ); 00038 00039 float getActualVoxel() { return getParameters()->getVoxelSize( ); } 00040 kVolume* getVolume( ) { return( _volume ); }; 00041 00042 //General methods 00043 void reset( ); 00044 void copyFrom( const marObject& from ); 00045 00046 //Persistence methods 00047 bool save( std::ofstream& os ); 00048 bool load( std::ifstream& is ); 00049 00050 marImageData* GetMarImageData(); 00051 00052 00053 private: 00054 00055 marImageData *_marimagedata; 00056 kVolume *_volume; 00057 }; 00058 00059 #endif // __MAR__KERNEL__DYNDATA__HXX__