00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 5308 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 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 notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef _MITK_UNSTRUCTURED_GRID_DATA_SOURCE_H_HEADER_ 00020 #define _MITK_UNSTRUCTURED_GRID_DATA_SOURCE_H_HEADER_ 00021 00022 #include "mitkBaseProcess.h" 00023 #include "MitkExtExports.h" 00024 00025 namespace mitk { 00026 class UnstructuredGrid; 00027 //##Documentation 00028 //## @brief Superclass of all classes generating unstructured grids (instances of class 00029 //## UnstructuredGrid) as output. 00030 //## 00031 //## In itk and vtk the generated result of a ProcessObject is only guaranteed 00032 //## to be up-to-date, when Update() of the ProcessObject or the generated 00033 //## DataObject is called immediately before access of the data stored in the 00034 //## DataObject. This is also true for subclasses of mitk::BaseProcess and thus 00035 //## for mitk::UnstructuredGridSource. 00036 //## @ingroup Process 00037 class MitkExt_EXPORT UnstructuredGridSource : public BaseProcess 00038 { 00039 public: 00040 mitkClassMacro(UnstructuredGridSource, BaseProcess); 00041 00042 itkNewMacro(Self); 00043 00044 typedef itk::DataObject::Pointer DataObjectPointer; 00045 00046 virtual DataObjectPointer MakeOutput(unsigned int idx); 00047 00048 00049 void SetOutput(mitk::UnstructuredGrid* output); 00050 00051 mitk::UnstructuredGrid* GetOutput(); 00052 00053 mitk::UnstructuredGrid* GetOutput(unsigned int idx); 00054 00055 virtual void GraftOutput(mitk::UnstructuredGrid* graft); 00056 00057 virtual void GraftNthOutput(unsigned int idx, mitk::UnstructuredGrid *graft); 00058 00059 protected: 00060 UnstructuredGridSource(); 00061 00062 virtual ~UnstructuredGridSource(); 00063 }; 00064 00065 } // namespace mitk 00066 00067 00068 00069 #endif /* _MITK_UNSTRUCTURED_GRID_DATA_SOURCE_H_HEADER_ */