|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Superclass of all classes generating some kind of mitk::BaseData. More...
#include <mitkBaseDataSource.h>


Public Types | |
| typedef BaseData | OutputType |
| Output data type. More... | |
| typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
| Identifier type for named data objects. More... | |
Public Member Functions | |
| mitkClassMacroItkParent (BaseDataSource, itk::ProcessObject) | |
| OutputType * | GetOutput () |
| const OutputType * | GetOutput () const |
| OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
| const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
| virtual void | GraftOutput (OutputType *output) |
| Graft the specified BaseData onto this BaseDataSource's output. More... | |
| virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
| Graft the specified base data object onto a named output. More... | |
| virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
| Graft the specified base data object onto this BaseDataSource's idx'th output. More... | |
| DataObjectPointer | MakeOutput (DataObjectPointerArraySizeType idx) override=0 |
| Create the output data object for the given index. More... | |
| DataObjectPointer | MakeOutput (const DataObjectIdentifierType &name) override=0 |
| Create the output data object for the given name. More... | |
| bool | Updating () const |
| Check whether the pipeline is currently executing. More... | |
Protected Member Functions | |
| BaseDataSource () | |
| Constructor. More... | |
| ~BaseDataSource () override | |
| Destructor. More... | |
Static Protected Member Functions | |
| static Pointer | New () |
Superclass of all classes generating some kind of mitk::BaseData.
In ITK and VTK the generated result of a ProcessObject is only guaranteed to be up-to-date when Update() of the ProcessObject or the generated DataObject is called immediately before access of the data stored in the DataObject. This is also true for subclasses of mitk::BaseProcess. But many of the subclasses of mitk::BaseProcess define additional access functions to the generated output that guarantee an up-to-date result; see for example mitk::ImageSource.
Definition at line 71 of file mitkBaseDataSource.h.
| typedef itk::DataObject::DataObjectIdentifierType mitk::BaseDataSource::DataObjectIdentifierType |
Identifier type for named data objects.
Definition at line 80 of file mitkBaseDataSource.h.
Output data type.
Definition at line 77 of file mitkBaseDataSource.h.
|
protected |
Constructor.
|
overrideprotected |
Destructor.
| OutputType* mitk::BaseDataSource::GetOutput | ( | ) |
| const OutputType* mitk::BaseDataSource::GetOutput | ( | ) | const |
| OutputType* mitk::BaseDataSource::GetOutput | ( | DataObjectPointerArraySizeType | idx | ) |
| const OutputType* mitk::BaseDataSource::GetOutput | ( | DataObjectPointerArraySizeType | idx | ) | const |
|
virtual |
Graft the specified base data object onto this BaseDataSource's idx'th output.
Similar to GraftOutput except it allows you to specify which output is affected by index. The specified index must be a valid output number (less than ProcessObject::GetNumberOfOutputs()).
| [in] | idx | The zero-based index of the output to graft onto. |
| [in] | output | The BaseData object to graft. |
|
virtual |
Graft the specified base data object onto a named output.
Similar to the GraftOutput method except it allows you to specify which output is affected by name.
| [in] | key | The identifier of the output to graft onto. |
| [in] | output | The BaseData object to graft. |
|
virtual |
Graft the specified BaseData onto this BaseDataSource's output.
This method is used when a process object is implemented using a mini-pipeline defined in its GenerateData() method. The usage is:
| [in] | output | The BaseData object to graft onto this source's primary output. |
|
overridepure virtual |
Create the output data object for the given name.
Implemented in mitk::ContourModelSetToImageFilter, mitk::PlanarFigureSource, mitk::SurfaceSource, mitk::PointSetSource, mitk::ImageSource, mitk::ContourModelSource, mitk::ContourModelSetSource, and mitk::GeometryDataSource.
|
overridepure virtual |
Create the output data object for the given index.
Implemented in mitk::ContourModelSetToImageFilter, mitk::PlanarFigureSource, mitk::SurfaceSource, mitk::PointSetSource, mitk::ImageSource, mitk::ContourModelSource, mitk::ContourModelSetSource, and mitk::GeometryDataSource.
| mitk::BaseDataSource::mitkClassMacroItkParent | ( | BaseDataSource | , |
| itk::ProcessObject | |||
| ) |
|
staticprotected |
| bool mitk::BaseDataSource::Updating | ( | ) | const |
Check whether the pipeline is currently executing.
Accesses itk::ProcessObject::m_Updating, which prevents infinite recursion when pipelines have loops.