43 #ifndef SVK_DATA_MODEL_H
44 #define SVK_DATA_MODEL_H
49 #include <vtkObject.h>
51 #include <vtkImageData.h>
52 #include <vtkObjectFactory.h>
53 #include <vtkImageFlip.h>
54 #include <vtkCallbackCommand.h>
57 #include <vtkAlgorithmOutput.h>
58 #include <vtkTrivialProducer.h>
59 #include <vtkSmartPointer.h>
61 #include <vtkAlgorithm.h>
62 #include <vtkImageReader2.h>
115 virtual bool WriteToFile(
string objectName,
string fileName);
122 virtual void SetModelState( map< string, void* > modelState );
123 virtual bool AddState(
string stateName,
void* stateValue );
124 virtual bool ChangeState(
string stateName,
void* stateValue );
125 virtual void*
GetState(
string stateName );
141 map<string, svkImageData*> allDataObjectsByKeyName;
142 map<string, string > allDataFileNamesByKeyName;
143 static void UpdateProgressCallback(vtkObject* subject,
unsigned long,
void* thisObject,
void* callData);
144 void UpdateProgress(
double amount);
152 map<string, void*> modelState;
158 vtkCallbackCommand* progressCallback;
166 #endif //SVK_DATA_MODEL_H
string GetProgressText()
Definition: svkDataModel.cc:517
vtkTypeMacro(svkDataModel, vtkObject)
Definition: svkImageReader2.h:60
virtual void SetModelState(map< string, void * > modelState)
Definition: svkDataModel.cc:399
virtual void * GetState(string stateName)
Definition: svkDataModel.cc:457
svkDcmHeader * GetDcmHeader(string fileName)
Definition: svkDataModel.cc:322
virtual svkImageData * GetDataObject(string objectName)
Definition: svkDataModel.cc:214
static svkDataModel * New()
virtual bool RemoveDataObject(string objectName)
Definition: svkDataModel.cc:124
virtual map< string, svkImageData * > GetAllDataObjects()
Definition: svkDataModel.cc:226
virtual string GetDataFileName(string objectName)
Definition: svkDataModel.cc:250
virtual bool ChangeDataObject(string objectName, svkImageData *dataObject)
Definition: svkDataModel.cc:162
virtual bool ReplaceDataFromFile(string objectName, string fileName)
Definition: svkDataModel.cc:190
virtual bool DataExists(string objectName)
Definition: svkDataModel.cc:474
virtual svkImageData * AddFileToModel(string objectName, string fileName, bool onlyOneInputFile=false)
Definition: svkDataModel.cc:336
~svkDataModel()
Destructor.
Definition: svkDataModel.cc:69
virtual map< string, void * > GetModelState()
Definition: svkDataModel.cc:388
virtual svkImageData * LoadFile(string fileName, bool onlyOneInputFile=false)
Definition: svkDataModel.cc:273
virtual bool StateExists(string stateName)
Definition: svkDataModel.cc:497
void SetProgressText(string progressText)
Definition: svkDataModel.cc:512
virtual bool AddDataObject(string objectName, svkImageData *dataObject)
Definition: svkDataModel.cc:102
virtual bool ChangeState(string stateName, void *stateValue)
Definition: svkDataModel.cc:436
virtual void RemoveAllDataObjects()
Definition: svkDataModel.cc:140
Definition: svkDataModel.h:83
virtual bool SetDataFileName(string objectName, string fileName)
Definition: svkDataModel.cc:235
Definition: svkImageData.h:107
svkDataModel()
Constructor.
Definition: svkDataModel.cc:53
virtual bool AddState(string stateName, void *stateValue)
Definition: svkDataModel.cc:415
virtual bool WriteToFile(string objectName, string fileName)
Definition: svkDataModel.cc:352