Medical Imaging Interaction Toolkit  2018.4.99-cfdaacfc
Medical Imaging Interaction Toolkit
mitk::DataNode Class Reference

Class for nodes of the DataTree. More...

#include <mitkDataNode.h>

Inheritance diagram for mitk::DataNode:
Collaboration diagram for mitk::DataNode:

Public Types

typedef mitk::Geometry3D::Pointer Geometry3DPointer
 
typedef std::vector< itk::SmartPointer< Mapper > > MapperVector
 
typedef std::map< std::string, mitk::PropertyList::PointerMapOfPropertyLists
 
typedef std::vector< MapOfPropertyLists::key_type > PropertyListKeyNames
 
typedef std::set< std::string > GroupTagList
 
typedef itk::DataObject Superclass
 
typedef itk::SmartPointer< Self > Pointer
 
typedef itk::SmartPointer< const Self > ConstPointer
 

Public Member Functions

 itkEventMacro (InteractorChangedEvent, itk::AnyEvent) typedef DataNode Self
 Definition of an itk::Event that is invoked when a DataInteractor is set on this DataNode. More...
 
virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
BaseProperty::ConstPointer GetConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) const override
 Get property by its key. More...
 
std::vector< std::string > GetPropertyKeys (const std::string &contextName="", bool includeDefaultContext=false) const override
 Query keys of existing properties. More...
 
std::vector< std::string > GetPropertyContextNames () const override
 Query names of existing contexts. More...
 
BasePropertyGetNonConstProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=true) override
 Get property by its key. More...
 
void SetProperty (const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
 Add new or change existent property. More...
 
void RemoveProperty (const std::string &propertyKey, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
 Removes a property. If the property does not exist, nothing will be done. More...
 
mitk::MapperGetMapper (MapperSlotId id) const
 
BaseDataGetData () const
 Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode. More...
 
vtkLinearTransform * GetVtkTransform (int t=0) const
 Get the transformation applied prior to displaying the data as a vtkTransform. More...
 
virtual void SetData (mitk::BaseData *baseData)
 Set the data object (instance of BaseData, e.g., an Image) managed by this DataNode. More...
 
virtual void SetDataInteractor (const DataInteractor::Pointer interactor)
 Set the Interactor. More...
 
virtual DataInteractor::Pointer GetDataInteractor () const
 
mitk::DataNodeoperator= (const DataNode &right)
 
mitk::DataNodeoperator= (BaseData *right)
 
virtual void SetMapper (MapperSlotId id, mitk::Mapper *mapper)
 
void UpdateOutputInformation () override
 
void SetRequestedRegionToLargestPossibleRegion () override
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
bool VerifyRequestedRegion () override
 
void SetRequestedRegion (const itk::DataObject *data) override
 
void CopyInformation (const itk::DataObject *data) override
 
PropertyListKeyNames GetPropertyListNames () const
 The "names" used for (renderer-specific) PropertyLists in GetPropertyList(string). More...
 
void SetProperty (const char *propertyKey, BaseProperty *property, const mitk::BaseRenderer *renderer=nullptr)
 Set the property (instance of BaseProperty) with key propertyKey in the PropertyList of the renderer (if nullptr, use BaseRenderer-independent PropertyList). This is set-by-value. More...
 
void ReplaceProperty (const char *propertyKey, BaseProperty *property, const mitk::BaseRenderer *renderer=nullptr)
 Replace the property (instance of BaseProperty) with key propertyKey in the PropertyList of the renderer (if nullptr, use BaseRenderer-independent PropertyList). This is set-by-reference. More...
 
void AddProperty (const char *propertyKey, BaseProperty *property, const mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
 Add the property (instance of BaseProperty) if it does not exist (or always ifoverwrite istrue) with key propertyKey in the PropertyList of the renderer (if nullptr, use BaseRenderer-independent PropertyList). This is set-by-value. More...
 
mitk::PropertyListGetPropertyList (const mitk::BaseRenderer *renderer=nullptr) const
 Get the PropertyList of the renderer. If renderer is nullptr, the BaseRenderer-independent PropertyList of this DataNode is returned. More...
 
mitk::PropertyListGetPropertyList (const std::string &rendererName) const
 
void ConcatenatePropertyList (PropertyList *pList, bool replace=false)
 Add values from another PropertyList. More...
 
mitk::BasePropertyGetProperty (const char *propertyKey, const mitk::BaseRenderer *renderer=nullptr, bool fallBackOnDataProperties=true) const
 Get the property (instance of BaseProperty) with key propertyKey from the PropertyList of the renderer, if available there, otherwise use the BaseRenderer-independent PropertyList. More...
 
template<typename T >
bool GetProperty (itk::SmartPointer< T > &property, const char *propertyKey, const mitk::BaseRenderer *renderer=nullptr) const
 Get the property of type T with key propertyKey from the PropertyList of the renderer, if available there, otherwise use the BaseRenderer-independent PropertyList. More...
 
template<typename T >
bool GetProperty (T *&property, const char *propertyKey, const mitk::BaseRenderer *renderer=nullptr) const
 Get the property of type T with key propertyKey from the PropertyList of the renderer, if available there, otherwise use the BaseRenderer-independent PropertyList. More...
 
template<typename T >
bool GetPropertyValue (const char *propertyKey, T &value, const mitk::BaseRenderer *renderer=nullptr) const
 Convenience access method for GenericProperty<T> properties (T being the type of the second parameter) More...
 
GroupTagList GetGroupTags () const
 Get a set of all group tags from this node's property list. More...
 
bool GetBoolProperty (const char *propertyKey, bool &boolValue, const mitk::BaseRenderer *renderer=nullptr) const
 Convenience access method for bool properties (instances of BoolProperty) More...
 
bool GetIntProperty (const char *propertyKey, int &intValue, const mitk::BaseRenderer *renderer=nullptr) const
 Convenience access method for int properties (instances of IntProperty) More...
 
bool GetFloatProperty (const char *propertyKey, float &floatValue, const mitk::BaseRenderer *renderer=nullptr) const
 Convenience access method for float properties (instances of FloatProperty) More...
 
bool GetDoubleProperty (const char *propertyKey, double &doubleValue, const mitk::BaseRenderer *renderer=nullptr) const
 Convenience access method for double properties (instances of DoubleProperty) More...
 
bool GetStringProperty (const char *propertyKey, std::string &string, const mitk::BaseRenderer *renderer=nullptr) const
 Convenience access method for string properties (instances of StringProperty) More...
 
bool GetColor (float rgb[3], const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="color") const
 Convenience access method for color properties (instances of ColorProperty) More...
 
bool GetLevelWindow (mitk::LevelWindow &levelWindow, const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="levelwindow") const
 Convenience access method for level-window properties (instances of LevelWindowProperty) More...
 
void SetSelected (bool selected, const mitk::BaseRenderer *renderer=nullptr)
 set the node as selected More...
 
bool IsSelected (const mitk::BaseRenderer *renderer=nullptr)
 set the node as selected More...
 
bool GetName (std::string &nodeName, const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="name") const
 Convenience access method for accessing the name of an object (instance of StringProperty with property-key "name") More...
 
virtual std::string GetName () const
 Extra convenience access method for accessing the name of an object (instance of StringProperty with property-key "name"). More...
 
virtual void SetName (const char *name)
 Extra convenience access method to set the name of an object. More...
 
virtual void SetName (const std::string name)
 Extra convenience access method to set the name of an object. More...
 
bool GetVisibility (bool &visible, const mitk::BaseRenderer *renderer, const char *propertyKey="visible") const
 Convenience access method for visibility properties (instances of BoolProperty with property-key "visible") More...
 
bool GetOpacity (float &opacity, const mitk::BaseRenderer *renderer, const char *propertyKey="opacity") const
 Convenience access method for opacity properties (instances of FloatProperty) More...
 
bool IsOn (const char *propertyKey, const mitk::BaseRenderer *renderer, bool defaultIsOn=true) const
 Convenience access method for boolean properties (instances of BoolProperty). Return value is the value of the property. If the property is not found, the value of defaultIsOn is returned. More...
 
bool IsVisible (const mitk::BaseRenderer *renderer, const char *propertyKey="visible", bool defaultIsOn=true) const
 Convenience access method for visibility properties (instances of BoolProperty). Return value is the visibility. Default is visible==true, i.e., true is returned even if the property (propertyKey) is not found. More...
 
void SetColor (const mitk::Color &color, const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="color")
 Convenience method for setting color properties (instances of ColorProperty) More...
 
void SetColor (float red, float green, float blue, const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="color")
 Convenience method for setting color properties (instances of ColorProperty) More...
 
void SetColor (const float rgb[3], const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="color")
 Convenience method for setting color properties (instances of ColorProperty) More...
 
void SetVisibility (bool visible, const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="visible")
 Convenience method for setting visibility properties (instances of BoolProperty) More...
 
void SetOpacity (float opacity, const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="opacity")
 Convenience method for setting opacity properties (instances of FloatProperty) More...
 
void SetLevelWindow (mitk::LevelWindow levelWindow, const mitk::BaseRenderer *renderer=nullptr, const char *propertyKey="levelwindow")
 Convenience method for setting level-window properties (instances of LevelWindowProperty) More...
 
void SetIntProperty (const char *propertyKey, int intValue, const mitk::BaseRenderer *renderer=nullptr)
 Convenience method for setting int properties (instances of IntProperty) More...
 
void SetBoolProperty (const char *propertyKey, bool boolValue, const mitk::BaseRenderer *renderer=nullptr)
 Convenience method for setting boolean properties (instances of BoolProperty) More...
 
void SetFloatProperty (const char *propertyKey, float floatValue, const mitk::BaseRenderer *renderer=nullptr)
 Convenience method for setting float properties (instances of FloatProperty) More...
 
void SetDoubleProperty (const char *propertyKey, double doubleValue, const mitk::BaseRenderer *renderer=nullptr)
 Convenience method for setting double properties (instances of DoubleProperty) More...
 
void SetStringProperty (const char *propertyKey, const char *string, const mitk::BaseRenderer *renderer=nullptr)
 Convenience method for setting string properties (instances of StringProperty) More...
 
unsigned long GetMTime () const override
 Get the timestamp of the last change of the contents of this node or the referenced BaseData. More...
 
unsigned long GetDataReferenceChangedTime () const
 Get the timestamp of the last change of the reference to the BaseData. More...
 
- Public Member Functions inherited from mitk::IPropertyOwner
 ~IPropertyOwner () override
 
- Public Member Functions inherited from mitk::IPropertyProvider
virtual ~IPropertyProvider ()
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
static std::string NO_NAME_VALUE ()
 

Protected Member Functions

 DataNode ()
 
 ~DataNode () override
 
virtual void PropertyListModified (const itk::Object *caller, const itk::EventObject &event)
 Invoked when the property list was modified. Calls Modified() of the DataNode. More...
 

Protected Attributes

MapperVector m_Mappers
 Mapper-slots. More...
 
BaseData::Pointer m_Data
 The data object (instance of BaseData, e.g., an Image) managed by this DataNode. More...
 
PropertyList::Pointer m_PropertyList
 BaseRenderer-independent PropertyList. More...
 
MapOfPropertyLists m_MapOfPropertyLists
 Map associating each BaseRenderer with its own PropertyList. More...
 
DataInteractor::Pointer m_DataInteractor
 
itk::TimeStamp m_DataReferenceChangedTime
 Timestamp of the last change of m_Data. More...
 
unsigned long m_PropertyListModifiedObserverTag
 

Detailed Description

Class for nodes of the DataTree.

Contains the data (instance of BaseData), a list of mappers, which can draw the data, a transform (vtkTransform) and a list of properties (PropertyList).

Warning
Change in semantics of SetProperty() since Aug 25th 2006. Check your usage of this method if you do more with properties than just call SetProperty( "key", new SomeProperty("value") ).

Definition at line 64 of file mitkDataNode.h.

Member Typedef Documentation

◆ ConstPointer

Definition at line 78 of file mitkDataNode.h.

◆ Geometry3DPointer

◆ GroupTagList

typedef std::set<std::string> mitk::DataNode::GroupTagList

Definition at line 71 of file mitkDataNode.h.

◆ MapOfPropertyLists

Definition at line 69 of file mitkDataNode.h.

◆ MapperVector

Definition at line 68 of file mitkDataNode.h.

◆ Pointer

Definition at line 78 of file mitkDataNode.h.

◆ PropertyListKeyNames

typedef std::vector<MapOfPropertyLists::key_type> mitk::DataNode::PropertyListKeyNames

Definition at line 70 of file mitkDataNode.h.

◆ Superclass

typedef itk::DataObject mitk::DataNode::Superclass

Definition at line 78 of file mitkDataNode.h.

Constructor & Destructor Documentation

◆ DataNode()

mitk::DataNode::DataNode ( )
protected

◆ ~DataNode()

mitk::DataNode::~DataNode ( )
overrideprotected

Definition at line 93 of file mitkDataNode.cpp.

References m_Data, m_Mappers, m_PropertyList, and m_PropertyListModifiedObserverTag.

Member Function Documentation

◆ AddProperty()

void mitk::DataNode::AddProperty ( const char *  propertyKey,
BaseProperty property,
const mitk::BaseRenderer renderer = nullptr,
bool  overwrite = false 
)

Add the property (instance of BaseProperty) if it does not exist (or always ifoverwrite istrue) with key propertyKey in the PropertyList of the renderer (if nullptr, use BaseRenderer-independent PropertyList). This is set-by-value.

Foroverwrite ==false the property isnot changed if it already exists. Foroverwrite ==true the method is identical to SetProperty.

See also
SetProperty
GetProperty
m_PropertyList
m_MapOfPropertyLists

Definition at line 469 of file mitkDataNode.cpp.

References GetProperty(), and SetProperty().

Referenced by mitk::PlanarFigureObjectFactory::SetDefaultProperties(), mitk::PlanarFigureVtkMapper3D::SetDefaultProperties(), mitk::ContourModelGLMapper2D::SetDefaultProperties(), mitk::ContourModelSetGLMapper2D::SetDefaultProperties(), mitk::UnstructuredGridVtkMapper3D::SetDefaultProperties(), mitk::VolumeMapperVtkSmart3D::SetDefaultProperties(), mitk::GPUVolumeMapper3D::SetDefaultProperties(), mitk::PlaneGeometryDataMapper2D::SetDefaultProperties(), mitk::SurfaceVtkMapper2D::SetDefaultProperties(), mitk::EnhancedPointSetVtkMapper3D::SetDefaultProperties(), mitk::ContourModelMapper2D::SetDefaultProperties(), mitk::ContourModelSetMapper3D::SetDefaultProperties(), mitk::ContourModelMapper3D::SetDefaultProperties(), mitk::SurfaceVtkMapper3D::SetDefaultProperties(), mitk::PointSetVtkMapper3D::SetDefaultProperties(), mitk::PlanarFigureMapper2D::SetDefaultProperties(), mitk::PointSetVtkMapper2D::SetDefaultProperties(), mitk::Mapper::SetDefaultProperties(), mitk::RegEvaluationMapper2D::SetDefaultProperties(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), and mitk::SurfaceVtkMapper3D::SetDefaultPropertiesForVtkProperty().

◆ Clone()

Pointer mitk::DataNode::Clone ( ) const

◆ ConcatenatePropertyList()

void mitk::DataNode::ConcatenatePropertyList ( PropertyList pList,
bool  replace = false 
)

Add values from another PropertyList.

Overwrites values in m_PropertyList only when possible (i.e. when types are compatible). If you want to allow for object type changes (replacing a "visible":BoolProperty with "visible":IntProperty, set the

Parameters
replace.
replacetrue: if
pListcontains a property "visible" of type ColorProperty and our m_PropertyList also has a "visible" property of a different type (e.g. BoolProperty), change the type, i.e. replace the objects behind the pointer.
See also
SetProperty
ReplaceProperty
m_PropertyList

Definition at line 214 of file mitkDataNode.cpp.

References m_PropertyList.

◆ CopyInformation()

void mitk::DataNode::CopyInformation ( const itk::DataObject *  data)
override

Definition at line 188 of file mitkDataNode.cpp.

◆ GetBoolProperty()

bool mitk::DataNode::GetBoolProperty ( const char *  propertyKey,
bool &  boolValue,
const mitk::BaseRenderer renderer = nullptr 
) const

Convenience access method for bool properties (instances of BoolProperty)

Returns
true property was found

Definition at line 265 of file mitkDataNode.cpp.

References GetProperty().

Referenced by mitk::SurfaceVtkMapper3D::ApplyAllProperties(), mitk::PointSetVtkMapper3D::ApplyAllProperties(), mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::DoseImageVtkMapper2D::ApplyColor(), mitk::ImageVtkMapper2D::ApplyColor(), mitk::PlanarFigureVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::PlanarFigureVtkMapper3D::ApplyPlanarFigureProperties(), mitk::ImageVtkMapper2D::ApplyRenderingMode(), mitk::DoseImageVtkMapper2D::ApplyRenderingMode(), mitk::PlanarFigureInteractor::CheckFigureIsDeletable(), mitk::PlanarFigureInteractor::CheckFigureIsEditable(), mitk::PlanarFigureInteractor::CheckFigureIsExtendable(), mitk::PlanarFigureInteractor::CheckResetOnPointSelect(), mitk::PlanarFigureInteractor::CheckSelection(), mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), mitk::ContourModelMapper2D::CreateVtkPolyDataFromContour(), mitk::PointSetVtkMapper3D::CreateVTKRenderObjects(), mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), mitk::EventStateMachine::FilterEvents(), mitk::ContourVtkMapper3D::GenerateDataForRenderer(), mitk::VolumeMapperVtkSmart3D::GenerateDataForRenderer(), mitk::MeshVtkMapper3D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper3D::GenerateDataForRenderer(), mitk::PointSetVtkMapper3D::GenerateDataForRenderer(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), QmitkLevelWindowWidgetContextMenu::GetContextMenu(), mitk::GizmoMapper2D::GetVtkPolyData(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), QmitkDataNodeTextureInterpolationAction::InitializeWithDataNode(), mitk::GPUVolumeMapper3D::IsGPUEnabled(), mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), mitk::GPUVolumeMapper3D::IsLODEnabled(), mitk::GPUVolumeMapper3D::IsMIPEnabled(), mitk::GPUVolumeMapper3D::IsRAYEnabled(), mitk::GPUVolumeMapper3D::IsRenderable(), IsSelected(), mitk::ContourModelGLMapper2D::MitkRender(), mitk::PlanarFigureInteractor::MoveCurrentPoint(), QmitkSlicesInterpolator::On3DInterpolationActivated(), mitk::VectorImageMapper2D::Paint(), mitk::VtkPropRenderer::PickObject(), mitk::RegEvaluationMapper2D::PrepareContour(), mitk::PlanarFigureMapper2D::RenderControlPoints(), mitk::PlanarFigureInteractor::RequestContextMenu(), mitk::PersistenceService::RestorePropertyListsFromPersistentDataNodes(), QmitkSlicesInterpolator::SetCurrentContourListID(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), mitk::PlanarFigureInteractor::SetPreviewPointPosition(), mitk::VolumeMapperVtkSmart3D::UpdateRenderMode(), mitk::VolumeMapperVtkSmart3D::UpdateTransferFunctions(), and mitk::GPUVolumeMapper3D::UpdateTransferFunctions().

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::DataNode::GetClassHierarchy ( ) const
inlinevirtual

Definition at line 78 of file mitkDataNode.h.

◆ GetClassName()

virtual const char* mitk::DataNode::GetClassName ( ) const
virtual

◆ GetColor()

bool mitk::DataNode::GetColor ( float  rgb[3],
const mitk::BaseRenderer renderer = nullptr,
const char *  propertyKey = "color" 
) const

Convenience access method for color properties (instances of ColorProperty)

Returns
true property was found

Definition at line 335 of file mitkDataNode.cpp.

References GetProperty().

Referenced by mitk::SplineVtkMapper3D::ApplyAllProperties(), mitk::PointSetVtkMapper3D::ApplyAllProperties(), mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::DoseImageVtkMapper2D::ApplyColor(), mitk::ImageVtkMapper2D::ApplyColor(), mitk::ContourModelGLMapper2DBase::ApplyColorAndOpacityProperties(), mitk::ContourMapper2D::ApplyColorAndOpacityProperties(), mitk::ContourSetMapper2D::ApplyColorAndOpacityProperties(), mitk::PlanarFigureVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::GLMapper::ApplyColorAndOpacityProperties(), mitk::EnhancedPointSetVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::VtkMapper::ApplyColorAndOpacityProperties(), mitk::PlanarFigureMapper2D::ApplyColorAndOpacityProperties(), mitk::PlaneGeometryDataMapper2D::ApplyColorAndOpacityProperties2D(), mitk::PickingTool::ConfirmSegmentation(), mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), mitk::MeshVtkMapper3D::GenerateDataForRenderer(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::Mapper::GetColor(), QmitkColoredNodeDescriptor::GetIcon(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), QmitkDataNodeColorAction::InitializeWithDataNode(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), and QmitkToolWorkingDataSelectionBox::UpdateDataDisplay().

◆ GetConstProperty()

mitk::BaseProperty::ConstPointer mitk::DataNode::GetConstProperty ( const std::string &  propertyKey,
const std::string &  contextName = "",
bool  fallBackOnDefaultContext = true 
) const
overridevirtual

Get property by its key.

Parameters
[in]propertyKeyKey of property.
[in]contextNameOptional, default is empty string (default context). Search in specified context.
[in]fallBackOnDefaultContextOptional, default is true. Also search in default context if property was not found in given context.
Returns
Found property, nullptr otherwise.

Implements mitk::IPropertyProvider.

Definition at line 583 of file mitkDataNode.cpp.

References m_Data, m_MapOfPropertyLists, and m_PropertyList.

◆ GetData()

mitk::BaseData * mitk::DataNode::GetData ( ) const

Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.

Definition at line 44 of file mitkDataNode.cpp.

References m_Data.

Referenced by mitk::Gizmo::AddGizmoToNode(), QmitkInitialValuesModel::addInitialParameterImage(), mitk::PlanarFigureInteractor::AddInitialPoint(), QmitkBoundingObjectWidget::AddItem(), QmitkDataStorageTableModel::AddNode(), QmitkDataStorageListModel::AddNodeToInternalList(), mitk::LabelSetImageVtkMapper2D::ApplyLookuptable(), mitk::PlanarFigureVtkMapper3D::ApplyPlanarFigureProperties(), mitk::PixelManipulationTool::CalculateImage(), mitk::Mapper::CalculateTimeStep(), mitk::FileWriter::CanWriteDataType(), mitk::ImageWriter::CanWriteDataType(), mitk::PlanarFigureWriter::CanWriteDataType(), mitk::PlanarFigureInteractor::CheckControlPointHovering(), mitk::PlanarFigureInteractor::CheckFigureFinished(), mitk::PlanarFigureInteractor::CheckFigureHovering(), mitk::PlanarFigureInteractor::CheckFigureOnRenderingGeometry(), mitk::PlanarFigureInteractor::CheckFigurePlaced(), QmitkPointListModel::CheckForPointSetInNode(), mitk::PlanarFigureInteractor::CheckMinimalFigureFinished(), mitk::CheckModelFitUID(), mitk::NodePredicateDataUID::CheckNode(), mitk::NodePredicateDataProperty::CheckNode(), mitk::NodePredicateDataType::CheckNode(), mitk::NodePredicateDimension::CheckNode(), mitk::NodePredicateData::CheckNode(), mitk::NodePredicateGeometry::CheckNode(), mitk::TNodePredicateDataType< T >::CheckNode(), mitk::PlanarFigureInteractor::CheckPointValidity(), mitk::PlanarFigureInteractor::CheckResetOnPointSelect(), mitk::SceneReaderV1::ClearNodePropertyListWithExceptions(), mitk::ConfigureNodeAsDoseNode(), mitk::ConfigureNodeAsIsoLineNode(), mitk::FastMarchingTool3D::ConfirmSegmentation(), CreateHandle(), mitk::ContourObjectFactory::CreateMapper(), mitk::BoundingShapeObjectFactory::CreateMapper(), mitk::SegmentationObjectFactory::CreateMapper(), mitk::MultilabelObjectFactory::CreateMapper(), mitk::TubeGraphObjectFactory::CreateMapper(), mitk::PlanarFigureObjectFactory::CreateMapper(), mitk::CoreObjectFactory::CreateMapper(), mitk::RegEvaluationObjectFactory::CreateMapper(), mitk::GizmoObjectFactory::CreateMapper(), mitk::MAPRegistrationWrapperObjectFactory::CreateMapper(), mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), mitk::SurfaceDeformationDataInteractor3D::DataNodeChanged(), mitk::SinglePointDataInteractor::DataNodeChanged(), mitk::TubeGraphDataInteractor::DataNodeChanged(), mitk::PointSetDataInteractor::DataNodeChanged(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::PlanarFigureInteractor::DeleteFigure(), mitk::PlanarFigureInteractor::DeselectPoint(), QmitkPythonVariableStackTableModel::dropMimeData(), QmitkDataStorageTreeModel::dropMimeData(), mitk::PlanarFigureInteractor::EndHovering(), mitk::PlanarFigureInteractor::EndInteraction(), mitk::EnsureModelFitUID(), mitk::PlanarFigureInteractor::FinalizeFigure(), mitk::UnstructuredGridMapper2D::GenerateDataForRenderer(), mitk::ContourModelSetMapper3D::GenerateDataForRenderer(), mitk::ContourModelMapper2D::GenerateDataForRenderer(), mitk::ContourModelMapper3D::GenerateDataForRenderer(), mitk::PlaneGeometryDataMapper2D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), mitk::GetCaseIDFromDataNode(), mitk::Mapper::GetData(), mitk::GetDICOMDateFromDataNode(), mitk::GetDICOMModalityFromDataNode(), mitk::GetIDFromDataNode(), mitk::MeshMapper2D::GetInput(), mitk::ContourSetVtkMapper3D::GetInput(), mitk::ContourModelMapper2D::GetInput(), mitk::ContourVtkMapper3D::GetInput(), mitk::ContourModelMapper3D::GetInput(), mitk::ContourModelSetMapper3D::GetInput(), mitk::UnstructuredGridVtkMapper3D::GetInput(), mitk::VectorImageMapper2D::GetInput(), mitk::ContourMapper2D::GetInput(), mitk::ContourSetMapper2D::GetInput(), mitk::TubeGraphVtkMapper3D::GetInput(), mitk::MeshVtkMapper3D::GetInput(), mitk::GPUVolumeMapper3D::GetInput(), mitk::SurfaceVtkMapper2D::GetInput(), mitk::EnhancedPointSetVtkMapper3D::GetInput(), mitk::SurfaceVtkMapper3D::GetInput(), mitk::PointSetVtkMapper3D::GetInput(), mitk::PlaneGeometryDataVtkMapper3D::GetInput(), mitk::PointSetVtkMapper2D::GetInput(), mitk::ImageVtkMapper2D::GetInput(), mitk::DoseImageVtkMapper2D::GetInput(), mitk::VolumeMapperVtkSmart3D::GetInputImage(), mitk::modelFit::GetMandatoryProperty(), mitk::RegEvaluationMapper2D::GetMovingImage(), mitk::RegEvaluationMapper2D::GetMovingNode(), mitk::DataStorage::GetNamedDerivedObject(), mitk::DataStorage::GetNamedObject(), QmitkSemanticRelationsUIHelper::GetPixmapFromImageNode(), GetPixmapFromImageNode(), mitk::PointSetDataInteractor::GetPointIndexByPosition(), mitk::PropertyRelationRuleBase::GetPropertyKeys(), mitk::RegEvaluationMapper2D::GetRegistration(), mitk::GetRelevantRegKernelOfNode(), QmitkBoundingObjectWidget::GetSelectedBoundingObject(), mitk::RegEvaluationMapper2D::GetTargetImage(), mitk::RegEvaluationMapper2D::GetTargetNode(), mitk::AffineBaseDataInteractor3D::GetUpdatedTimeGeometry(), mitk::PlanarFigureInteractor::HidePreviewPoint(), QmitkFunctionalityComponentContainer::ImageSelected(), QmitkDataNodeComponentAction::InitializeWithDataNode(), mitk::AffineBaseDataInteractor3D::InitMembers(), mitk::ClippingPlaneInteractor3D::InitRotate(), mitk::ClippingPlaneInteractor3D::InitTranslate(), mitk::SegmentationSink::InsertBelowGroupNode(), QmitkDataStorageComboBox::InsertNode(), QmitkSlicesInterpolator::Interpolate(), mitk::Mapper::BaseLocalStorage::IsGenerateDataRequired(), mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), mitk::MITKRegistrationHelper::IsRegNode(), mitk::DicomSeriesReader::LoadDicomSeries(), mitkPointSetVtkMapper2DTransformedPointsTest(), mitk::ContourModelGLMapper2D::MitkRender(), mitk::ContourModelSetGLMapper2D::MitkRender(), mitk::PlanarFigureMapper2D::MitkRender(), mitk::PlanarFigureInteractor::MoveCurrentPoint(), QmitkPointListModel::ObserveNewPointSet(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), mitk::ContourModelInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnCheckPointClick(), mitk::ContourModelInteractor::OnDeletePoint(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), mitk::ContourModelInteractor::OnFinishEditing(), QmitkSlicesInterpolator::OnInterpolationActivated(), QmitkBoundingObjectWidget::OnItemDataChanged(), mitk::ContourModelInteractor::OnMoveContour(), mitk::ContourModelInteractor::OnMovePoint(), mitk::ContourModelLiveWireInteractor::OnMovePoint(), QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmitkNodeDetailsDialog::OnSelectionChanged(), QmitkSurfaceStampWidget::OnStamp(), QmitkMaskStampWidget::OnStamp(), QmitkSurfaceBasedInterpolatorWidget::OnToolManagerWorkingDataModified(), QmitkSliceBasedInterpolatorWidget::OnToolManagerWorkingDataModified(), operator=(), mitk::PlanarFigureInteractor::PerformPointResetOnSelect(), mitk::CalculateVolumetryTool::ProcessOneWorkingData(), mitk::AutoCropTool::ProcessOneWorkingData(), mitk::CreateSurfaceTool::ProcessOneWorkingData(), mitk::CalculateGrayValueStatisticsTool::ProcessOneWorkingData(), QmitkToolSelectionBox::RecreateButtons(), QmitkBoundingObjectWidget::RemoveItem(), QmitkDataStorageComboBox::RemoveNodeAndPropertyLists(), QmitkDataStorageListModel::RemoveNodeFromInternalList(), mitk::PlanarFigureInteractor::RemoveSelectedPoint(), mitk::DataStorageCompare::Report(), mitk::PlanarFigureInteractor::RequestContextMenu(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), mitk::IOUtil::Save(), mitk::SceneIO::SaveScene(), mitk::SurfaceDeformationDataInteractor3D::ScaleRadius(), mitk::PlanarFigureInteractor::SelectFigure(), mitk::PlanarFigureInteractor::SelectPoint(), mitk::PointSetDataInteractor::SelectPoint(), QmitkSlicesInterpolator::SetCurrentContourListID(), QmitkInitialValuesModel::setData(), QmitkDataStorageTreeModel::setData(), QmitkTransferFunctionGeneratorWidget::SetDataNode(), QmitkTransferFunctionWidget::SetDataNode(), QmitkLabelSetWidget::SetDataStorage(), mitk::AbstractFileReader::SetDefaultDataNodeProperties(), mitk::BoundingShapeObjectFactory::SetDefaultProperties(), mitk::ContourObjectFactory::SetDefaultProperties(), mitk::MultilabelObjectFactory::SetDefaultProperties(), mitk::TubeGraphObjectFactory::SetDefaultProperties(), mitk::PlanarFigureObjectFactory::SetDefaultProperties(), mitk::MAPRegistrationWrapperObjectFactory::SetDefaultProperties(), mitk::CoreObjectFactory::SetDefaultProperties(), mitk::GizmoObjectFactory::SetDefaultProperties(), mitk::VolumeMapperVtkSmart3D::SetDefaultProperties(), mitk::GPUVolumeMapper3D::SetDefaultProperties(), mitk::SurfaceVtkMapper3D::SetDefaultProperties(), mitk::RegEvaluationMapper2D::SetDefaultProperties(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), mitk::GizmoInteractor::SetGizmoNode(), mitk::ImageWriter::SetInput(), mitk::PlanarFigureWriter::SetInput(), mitk::GizmoInteractor::SetManipulatedObjectNode(), mitk::RegEvaluationObject::SetMovingNode(), QmitkPatientInfoWidget::SetPatientInfo(), mitk::PlanarFigureInteractor::SetPreviewPointPosition(), mitk::RegEvaluationObject::SetTargetNode(), mitk::PlanarFigureInteractor::StartHovering(), mitk::modelFit::StoreResultsInDataStorage(), mitk::ClippingPlaneInteractor3D::TranslateObject(), mitk::AffineBaseDataInteractor3D::TranslateObject(), mitk::PointSetDataInteractor::UnselectAll(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::LabelSetImageVtkMapper2D::Update(), mitk::Mapper::Update(), mitk::SurfaceVtkMapper2D::Update(), QmitkLabelSetWidget::UpdateControls(), mitk::PointSetDataInteractor::UpdatePointSet(), and QmitkDataNodeColorMapAction::UseWholePixelRange().

◆ GetDataInteractor()

mitk::DataInteractor::Pointer mitk::DataNode::GetDataInteractor ( ) const
virtual

Definition at line 573 of file mitkDataNode.cpp.

References m_DataInteractor.

Referenced by mitk::Dispatcher::AddDataInteractor().

◆ GetDataReferenceChangedTime()

unsigned long mitk::DataNode::GetDataReferenceChangedTime ( ) const
inline

Get the timestamp of the last change of the reference to the BaseData.

Definition at line 563 of file mitkDataNode.h.

◆ GetDoubleProperty()

bool mitk::DataNode::GetDoubleProperty ( const char *  propertyKey,
double &  doubleValue,
const mitk::BaseRenderer renderer = nullptr 
) const

Convenience access method for double properties (instances of DoubleProperty)

If there is no DoubleProperty for the givenpropertyKey argument, the method looks for a corresponding FloatProperty instance.

Returns
true property was found

Definition at line 297 of file mitkDataNode.cpp.

References GetFloatProperty(), and GetProperty().

Referenced by mitk::SurfaceVtkMapper3D::ApplyAllProperties(), mitk::SurfaceVtkMapper2D::ApplyAllProperties(), and mitk::GizmoMapper2D::GetVtkPolyData().

◆ GetFloatProperty()

bool mitk::DataNode::GetFloatProperty ( const char *  propertyKey,
float &  floatValue,
const mitk::BaseRenderer renderer = nullptr 
) const

Convenience access method for float properties (instances of FloatProperty)

Returns
true property was found

Definition at line 285 of file mitkDataNode.cpp.

References GetProperty().

Referenced by mitk::PlaneGeometryDataMapper2D::ApplyAllProperties(), mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::EnhancedPointSetVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::ContourModelSetMapper3D::ApplyContourModelSetProperties(), mitk::SurfaceVtkMapper3D::ApplyMitkPropertiesToVtkProperty(), mitk::PlanarFigureVtkMapper3D::ApplyPlanarFigureProperties(), mitk::DoseImageVtkMapper2D::CreateOutlinePolyData(), mitk::ContourVtkMapper3D::GenerateDataForRenderer(), mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), GetDoubleProperty(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), QmitkDataNodeOpacityAction::InitializeWithDataNode(), mitk::PlanarFigureMapper2D::MitkRender(), mitk::Gizmo::RemoveGizmoFromNode(), mitk::AffineBaseDataInteractor3D::RotateDownKey(), mitk::AffineBaseDataInteractor3D::RotateDownModifierKey(), mitk::AffineBaseDataInteractor3D::RotateGeometry(), mitk::AffineBaseDataInteractor3D::RotateLeftKey(), mitk::AffineBaseDataInteractor3D::RotateRightKey(), mitk::AffineBaseDataInteractor3D::RotateUpKey(), mitk::AffineBaseDataInteractor3D::RotateUpModifierKey(), mitk::AffineBaseDataInteractor3D::ScaleDownKey(), mitk::AffineBaseDataInteractor3D::ScaleGeometry(), mitk::AffineBaseDataInteractor3D::ScaleUpKey(), mitk::AffineBaseDataInteractor3D::TranslateDownKey(), mitk::AffineBaseDataInteractor3D::TranslateDownModifierKey(), mitk::AffineBaseDataInteractor3D::TranslateLeftKey(), mitk::AffineBaseDataInteractor3D::TranslateRightKey(), mitk::AffineBaseDataInteractor3D::TranslateUpKey(), mitk::AffineBaseDataInteractor3D::TranslateUpModifierKey(), and mitk::VolumeMapperVtkSmart3D::UpdateRenderMode().

◆ GetGroupTags()

mitk::DataNode::GroupTagList mitk::DataNode::GetGroupTags ( ) const

Get a set of all group tags from this node's property list.

Definition at line 245 of file mitkDataNode.cpp.

References m_PropertyList.

◆ GetIntProperty()

bool mitk::DataNode::GetIntProperty ( const char *  propertyKey,
int &  intValue,
const mitk::BaseRenderer renderer = nullptr 
) const

◆ GetLevelWindow()

bool mitk::DataNode::GetLevelWindow ( mitk::LevelWindow levelWindow,
const mitk::BaseRenderer renderer = nullptr,
const char *  propertyKey = "levelwindow" 
) const

◆ GetMapper()

◆ GetMTime()

unsigned long mitk::DataNode::GetMTime ( ) const
override

◆ GetName() [1/2]

◆ GetName() [2/2]

virtual std::string mitk::DataNode::GetName ( ) const
inlinevirtual

Extra convenience access method for accessing the name of an object (instance of StringProperty with property-key "name").

This method does not take the renderer specific propertylists into account, because the name of an object should never be renderer specific.

Returns
a std::string with the name of the object (content of "name" Property). If there is no "name" Property, an empty string will be returned.

Definition at line 392 of file mitkDataNode.h.

References mitk::StringProperty::GetValue().

◆ GetNonConstProperty()

mitk::BaseProperty * mitk::DataNode::GetNonConstProperty ( const std::string &  propertyKey,
const std::string &  contextName = "",
bool  fallBackOnDefaultContext = true 
)
overridevirtual

Get property by its key.

Parameters
[in]propertyKeyKey of property.
[in]contextNameOptional, default is empty string (default context). Search in specified context.
[in]fallBackOnDefaultContextOptional, default is true. Also search in default context if property was not found in given context.
Returns
Found property, nullptr otherwise.

Implements mitk::IPropertyOwner.

Definition at line 614 of file mitkDataNode.cpp.

References m_Data, m_MapOfPropertyLists, and m_PropertyList.

◆ GetOpacity()

◆ GetProperty() [1/3]

mitk::BaseProperty * mitk::DataNode::GetProperty ( const char *  propertyKey,
const mitk::BaseRenderer renderer = nullptr,
bool  fallBackOnDataProperties = true 
) const

Get the property (instance of BaseProperty) with key propertyKey from the PropertyList of the renderer, if available there, otherwise use the BaseRenderer-independent PropertyList.

If renderer is nullptr or the propertyKey cannot be found in the PropertyList specific to renderer or is disabled there, the BaseRenderer-independent PropertyList of this DataNode is queried.

If fallBackOnDataProperties is true, the data property list is queried as a last resort.

See also
GetPropertyList
m_PropertyList
m_MapOfPropertyLists

Definition at line 219 of file mitkDataNode.cpp.

References mitk::BaseRenderer::GetName(), m_Data, m_MapOfPropertyLists, and m_PropertyList.

Referenced by QmitkDataStorageTableModel::AddNode(), AddProperty(), mitk::PlaneGeometryDataMapper2D::ApplyAllProperties(), mitk::SplineVtkMapper3D::ApplyAllProperties(), mitk::SurfaceVtkMapper3D::ApplyAllProperties(), mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::DoseImageVtkMapper2D::ApplyColor(), mitk::ImageVtkMapper2D::ApplyColor(), mitk::EnhancedPointSetVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::ImageVtkMapper2D::ApplyColorTransferFunction(), mitk::DoseImageVtkMapper2D::ApplyColorTransferFunction(), mitk::ContourModelMapper2D::ApplyContourProperties(), mitk::ContourModelSetMapper3D::ApplyContourProperties(), mitk::ContourModelMapper3D::ApplyContourProperties(), mitk::RegEvaluationMapper2D::ApplyLookuptable(), mitk::ImageVtkMapper2D::ApplyLookuptable(), mitk::DoseImageVtkMapper2D::ApplyLookuptable(), mitk::SurfaceVtkMapper3D::ApplyMitkPropertiesToVtkProperty(), mitk::ImageVtkMapper2D::ApplyRenderingMode(), mitk::DoseImageVtkMapper2D::ApplyRenderingMode(), mitk::NodePredicateProperty::CheckNode(), mitk::PointSetVtkMapper3D::CreateContour(), mitk::DoseImageVtkMapper2D::CreateOutlinePolyData(), mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), mitk::PointSetVtkMapper3D::CreateVTKRenderObjects(), mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), QmitkDataStorageTreeModel::data(), mitk::PlaneGeometryDataMapper2D::DetermineThickSliceMode(), mitk::BoundingShapeVtkMapper3D::GenerateDataForRenderer(), mitk::MeshVtkMapper3D::GenerateDataForRenderer(), mitk::PointSetVtkMapper3D::GenerateDataForRenderer(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), GetBoolProperty(), GetColor(), QmitkLevelWindowWidgetContextMenu::GetContextMenu(), GetDoubleProperty(), GetFloatProperty(), mitk::GetGridGeometryFromNode(), GetIntProperty(), GetLevelWindow(), GetOpacity(), mitk::GetRelevantRegKernelOfNode(), GetStringProperty(), mitk::GizmoMapper2D::GetVtkPolyData(), mitk::LevelWindowManager::IgnoreNode(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), QmitkDataNodeComponentAction::InitializeWithDataNode(), mitk::DicomSeriesReader::LoadDicom(), mitk::ContourMapper2D::MitkRender(), mitk::MeshMapper2D::Paint(), mitk::VectorImageMapper2D::Paint(), mitk::RegEvaluationMapper2D::PrepareWipe(), mitk::PropertyIsOutdated(), mitk::IOUtil::Save(), QmitkTransferFunctionGeneratorWidget::SetDataNode(), QmitkTransferFunctionWidget::SetDataNode(), mitk::AbstractFileReader::SetDefaultDataNodeProperties(), mitk::UnstructuredGridVtkMapper3D::SetDefaultProperties(), mitk::VolumeMapperVtkSmart3D::SetDefaultProperties(), mitk::GPUVolumeMapper3D::SetDefaultProperties(), mitk::BoundingShapeVtkMapper2D::SetDefaultProperties(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), SetDoubleProperty(), SetFloatProperty(), SetSelected(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateSuccessful(), mitk::VolumeMapperVtkSmart3D::UpdateTransferFunctions(), and mitk::GPUVolumeMapper3D::UpdateTransferFunctions().

◆ GetProperty() [2/3]

template<typename T >
bool mitk::DataNode::GetProperty ( itk::SmartPointer< T > &  property,
const char *  propertyKey,
const mitk::BaseRenderer renderer = nullptr 
) const
inline

Get the property of type T with key propertyKey from the PropertyList of the renderer, if available there, otherwise use the BaseRenderer-independent PropertyList.

If renderer is nullptr or the propertyKey cannot be found in the PropertyList specific to renderer or is disabled there, the BaseRenderer-independent PropertyList of this DataNode is queried.

See also
GetPropertyList
m_PropertyList
m_MapOfPropertyLists

Definition at line 253 of file mitkDataNode.h.

◆ GetProperty() [3/3]

template<typename T >
bool mitk::DataNode::GetProperty ( T *&  property,
const char *  propertyKey,
const mitk::BaseRenderer renderer = nullptr 
) const
inline

Get the property of type T with key propertyKey from the PropertyList of the renderer, if available there, otherwise use the BaseRenderer-independent PropertyList.

If renderer is nullptr or the propertyKey cannot be found in the PropertyList specific to renderer or is disabled there, the BaseRenderer-independent PropertyList of this DataNode is queried.

See also
GetPropertyList
m_PropertyList
m_MapOfPropertyLists

Definition at line 273 of file mitkDataNode.h.

◆ GetPropertyContextNames()

std::vector< std::string > mitk::DataNode::GetPropertyContextNames ( ) const
overridevirtual

Query names of existing contexts.

Returns
List of context names.

Implements mitk::IPropertyProvider.

Definition at line 729 of file mitkDataNode.cpp.

References GetPropertyListNames().

◆ GetPropertyKeys()

std::vector< std::string > mitk::DataNode::GetPropertyKeys ( const std::string &  contextName = "",
bool  includeDefaultContext = false 
) const
overridevirtual

Query keys of existing properties.

Parameters
[in]contextNameOptional, default is empty string (default context). Search in specified context.
[in]includeDefaultContextOptional, default is false. Include default context.
Returns
List of property keys.

Implements mitk::IPropertyProvider.

Definition at line 695 of file mitkDataNode.cpp.

References m_MapOfPropertyLists, and m_PropertyList.

◆ GetPropertyList() [1/2]

mitk::PropertyList * mitk::DataNode::GetPropertyList ( const mitk::BaseRenderer renderer = nullptr) const

Get the PropertyList of the renderer. If renderer is nullptr, the BaseRenderer-independent PropertyList of this DataNode is returned.

See also
GetProperty
m_PropertyList
m_MapOfPropertyLists

Definition at line 191 of file mitkDataNode.cpp.

References mitk::BaseRenderer::GetName(), and m_PropertyList.

Referenced by mitk::DataStorageSelection::AddListener(), mitk::SurfaceVtkMapper3D::ApplyAllProperties(), mitk::PointSetVtkMapper3D::ApplyAllProperties(), mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::PointSetVtkMapper3D::CreateVTKRenderObjects(), mitk::SceneReaderV1::DecorateNodeWithProperties(), mitk::SplineVtkMapper3D::GenerateDataForRenderer(), mitk::PointSetVtkMapper3D::GenerateDataForRenderer(), mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::RenderWindowLayerController::HideDataNodeInAllRenderer(), QmitkDataStorageComboBox::InsertNode(), mitk::DicomSeriesReader::LoadDicom(), mitk::PlaneGeometryDataVtkMapper3D::ProcessNode(), mitk::Gizmo::RemoveGizmoFromNode(), mitk::RenderWindowLayerController::RemoveLayerNode(), QmitkDataStorageComboBox::RemoveNodeAndPropertyLists(), ReplaceProperty(), mitk::DataStorageCompare::Report(), mitk::PersistenceService::RestorePropertyListsFromPersistentDataNodes(), mitk::SceneIO::SaveScene(), SetBoolProperty(), SetColor(), SetData(), SetDoubleProperty(), SetFloatProperty(), SetIntProperty(), SetLevelWindow(), SetOpacity(), SetProperty(), SetStringProperty(), SetVisibility(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::LabelSetImageVtkMapper2D::Update(), mitk::RegEvaluationMapper2D::Update(), mitk::ImageVtkMapper2D::Update(), mitk::DoseImageVtkMapper2D::Update(), and mitk::SurfaceVtkMapper2D::Update().

◆ GetPropertyList() [2/2]

mitk::PropertyList * mitk::DataNode::GetPropertyList ( const std::string &  rendererName) const

Definition at line 199 of file mitkDataNode.cpp.

References m_MapOfPropertyLists, m_PropertyList, and mitk::PropertyList::New().

◆ GetPropertyListNames()

mitk::DataNode::PropertyListKeyNames mitk::DataNode::GetPropertyListNames ( ) const

The "names" used for (renderer-specific) PropertyLists in GetPropertyList(string).

All possible values for the "renderer" parameters of the diverse GetProperty/List() methods.

Definition at line 178 of file mitkDataNode.cpp.

References m_MapOfPropertyLists.

Referenced by GetPropertyContextNames(), mitk::DataStorageCompare::Report(), and mitk::SceneIO::SaveScene().

◆ GetPropertyValue()

template<typename T >
bool mitk::DataNode::GetPropertyValue ( const char *  propertyKey,
T &  value,
const mitk::BaseRenderer renderer = nullptr 
) const
inline

Convenience access method for GenericProperty<T> properties (T being the type of the second parameter)

Returns
true property was found

Definition at line 285 of file mitkDataNode.h.

References mitk::GenericProperty< T >::GetValue(), and Json::intValue.

Referenced by mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), and mitk::RegEvaluationMapper2D::GenerateDataForRenderer().

◆ GetStaticNameOfClass()

static const char* mitk::DataNode::GetStaticNameOfClass ( )
inlinestatic

Definition at line 78 of file mitkDataNode.h.

◆ GetStringProperty()

bool mitk::DataNode::GetStringProperty ( const char *  propertyKey,
std::string &  string,
const mitk::BaseRenderer renderer = nullptr 
) const

◆ GetVisibility()

bool mitk::DataNode::GetVisibility ( bool &  visible,
const mitk::BaseRenderer renderer,
const char *  propertyKey = "visible" 
) const
inline

Convenience access method for visibility properties (instances of BoolProperty with property-key "visible")

Returns
true property was found
See also
IsVisible

Definition at line 429 of file mitkDataNode.h.

Referenced by mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), QmitkRenderWindowDataStorageListModel::data(), QmitkDataStorageLayerStackModel::data(), mitk::ContourSetVtkMapper3D::GenerateDataForRenderer(), mitk::ContourVtkMapper3D::GenerateDataForRenderer(), mitk::UnstructuredGridVtkMapper3D::GenerateDataForRenderer(), mitk::MeshVtkMapper3D::GenerateDataForRenderer(), mitk::SplineVtkMapper3D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper3D::GenerateDataForRenderer(), mitk::PointSetVtkMapper3D::GenerateDataForRenderer(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::Mapper::GetVisibility(), mitk::GPUVolumeMapper3D::IsRenderable(), mitk::Mapper::IsVisible(), mitk::ContourMapper2D::MitkRender(), mitk::ContourSetMapper2D::MitkRender(), mitk::ContourModelGLMapper2D::MitkRender(), mitk::GLMapper::MitkRender(), mitk::PlanarFigureMapper2D::MitkRender(), mitk::VtkMapper::MitkRenderOpaqueGeometry(), mitk::VtkMapper::MitkRenderOverlay(), mitk::VtkMapper::MitkRenderTranslucentGeometry(), mitk::VtkMapper::MitkRenderVolumetricGeometry(), mitk::MeshMapper2D::Paint(), mitk::VectorImageMapper2D::Paint(), mitk::UnstructuredGridMapper2D::Paint(), mitk::BoundingShapeVtkMapper2D::SetDefaultProperties(), mitk::RenderWindowLayerUtilities::SetRenderWindowProperties(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::LabelSetImageVtkMapper2D::Update(), mitk::RegEvaluationMapper2D::Update(), mitk::ImageVtkMapper2D::Update(), mitk::DoseImageVtkMapper2D::Update(), and mitk::SurfaceVtkMapper2D::Update().

◆ GetVtkTransform()

◆ IsOn()

bool mitk::DataNode::IsOn ( const char *  propertyKey,
const mitk::BaseRenderer renderer,
bool  defaultIsOn = true 
) const
inline

Convenience access method for boolean properties (instances of BoolProperty). Return value is the value of the property. If the property is not found, the value of defaultIsOn is returned.

Thus, the return value has a different meaning than in the GetBoolProperty method!

See also
GetBoolProperty

Definition at line 450 of file mitkDataNode.h.

Referenced by mitk::PlaneGeometryDataVtkMapper3D::ProcessNode().

◆ IsSelected()

bool mitk::DataNode::IsSelected ( const mitk::BaseRenderer renderer = nullptr)

set the node as selected

Returns
true node is selected

Definition at line 551 of file mitkDataNode.cpp.

References GetBoolProperty().

◆ IsVisible()

bool mitk::DataNode::IsVisible ( const mitk::BaseRenderer renderer,
const char *  propertyKey = "visible",
bool  defaultIsOn = true 
) const
inline

Convenience access method for visibility properties (instances of BoolProperty). Return value is the visibility. Default is visible==true, i.e., true is returned even if the property (propertyKey) is not found.

Thus, the return value has a different meaning than in the GetVisibility method!

See also
GetVisibility
IsOn

Definition at line 469 of file mitkDataNode.h.

Referenced by mitk::EnhancedPointSetVtkMapper3D::ApplyColorAndOpacityProperties(), QmitkDataStorageTreeModel::data(), mitk::PlaneGeometryDataMapper2D::GenerateDataForRenderer(), QmitkLevelWindowWidgetContextMenu::GetContextMenu(), QmitkSlicesInterpolator::On3DInterpolationActivated(), QmitkSlicesInterpolator::OnSurfaceInterpolationFinished(), mitk::PlaneGeometryDataVtkMapper3D::ProcessNode(), and QmitkToolSelectionBox::SetGUIEnabledAccordingToToolManagerState().

◆ itkEventMacro()

mitk::DataNode::itkEventMacro ( InteractorChangedEvent  ,
itk::AnyEvent   
)

Definition of an itk::Event that is invoked when a DataInteractor is set on this DataNode.

◆ New()

static Pointer mitk::DataNode::New ( )
static
Examples:
Step5.cpp, Step6.cpp, and Step7.cpp.

Referenced by QmitkRenderWindowWidget::ActivateCrosshair(), mitk::OtsuTool3D::Activated(), mitk::FastMarchingTool3D::Activated(), mitk::FastMarchingTool::Activated(), mitk::AdaptiveRegionGrowingTool::AdaptiveRegionGrowingTool(), mitk::SegTool2D::AddContourmarker(), QmitkStdMultiWidget::AddDisplayPlaneSubTree(), mitk::InteractionTestHelper::AddDisplayPlaneSubTree(), AddGeneratedDataToStorage(), mitk::Gizmo::AddGizmoToNode(), mitk::PixelManipulationTool::AddImageToDataStorage(), addPlaneToDataStorage(), mitk::BaseRenderer::BaseRenderer(), mitk::BinaryThresholdTool::BinaryThresholdTool(), mitk::BinaryThresholdULTool::BinaryThresholdULTool(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), mitk::LiveWireTool2D::ClearSegmentation(), mitk::PickingTool::ConfirmSegmentation(), mitk::NavigationDataSet::ConvertNavigationDataToPointSet(), mitk::NavigationToolWriter::ConvertToDataNode(), QmitkBoundingObjectWidget::CreateBoundingObject(), mitk::CreateImageStatisticsNode(), mitk::modelFit::CreateNode(), DescriptionParameterBackgroundJob::CreateResultNodes(), mitk::Tool::CreateSegmentationNode(), mitk::NavigationToolStorageTestHelper::CreateTestData_ComplexStorage(), createTextAnnotationWithLayouter(), mitk::WatershedTool::DoIt(), mitk::FeedbackContourTool::FeedbackContourTool(), FreeFunction(), mitk::generateMappedResultNode(), generateModelFitTestNode(), generateModelFitTestStorage(), QmitkNDIConfigurationWidget::GenerateNavigationTool(), mitk::generateRegistrationResultNode(), QmitkBoundingObjectWidget::GetAllBoundingObjects(), mitk::SceneIOTestScenarioProvider::GetAllScenarios(), mitk::LegacyFileWriterService::GetConfidenceLevel(), QmitkRenderWindowDataStorageTreeModel::GetCurrentRenderer(), mitk::DataCollection::GetDataNode(), mitk::PersistenceService::GetDataNodes(), mitk::DicomSeriesReader::GetDICOMTagsToMITKPropertyMap(), Step6::Initialize(), QmitkToFPointSetWidget::InitializeWidget(), mitk::IOUtil::Load(), mitk::SceneReaderV1::LoadBaseDataFromDataTag(), main(), mitk::DataNodeSource::MakeOutput(), mitkDataNodeTest(), mitkDataStorageTest(), mitkDispatcherTest(), mitkModelFitInfoTest(), mitkModelFitUIDHelperTest(), mitkNodePredicateSourceTest(), mitkPropertySerializationTest(), mitkVtkPropRendererTest(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), QmitkNavigationToolCreationWidget::OnEditToolTipFinished(), mitk::PaintbrushTool::OnMousePressed(), mitk::BinaryThresholdTool::OnRoiDataChanged(), mitk::BinaryThresholdULTool::OnRoiDataChanged(), QmitkPythonVariableStackTableView::OnVariableStackDoubleClicked(), operator=(), mitk::PaintbrushTool::PaintbrushTool(), mitk::PickingTool::PickingTool(), QmitkSliceBasedInterpolatorWidget::QmitkSliceBasedInterpolatorWidget(), QmitkSlicesInterpolator::QmitkSlicesInterpolator(), QmitkSurfaceBasedInterpolatorWidget::QmitkSurfaceBasedInterpolatorWidget(), mitk::BaseDICOMReaderService::Read(), mitk::AbstractFileReader::Read(), mitk::OtsuTool3D::RunSegmentation(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), SaveSliceOrImageAsPNG(), QmitkFiducialRegistrationWidget::setDataStorage(), QmitkDataStorageTreeModel::SetDataStorage(), mitk::NavigationTool::SetDefaultSurface(), Step7::StartRegionGrowing(), TestDataStorage(), mitk::ShowSegmentationAsSurface::ThreadedUpdateFunction(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateSuccessful(), mitk::LabelSetImageToSurfaceThreadedFilter::ThreadedUpdateSuccessful(), QmitkLabelSetWidget::UpdateControls(), and QmitkDataStorageSimpleTreeModel::~QmitkDataStorageSimpleTreeModel().

◆ NO_NAME_VALUE()

static std::string mitk::DataNode::NO_NAME_VALUE ( )
inlinestatic

◆ operator=() [1/2]

mitk::DataNode & mitk::DataNode::operator= ( const DataNode right)

Definition at line 102 of file mitkDataNode.cpp.

References GetData(), New(), and SetData().

◆ operator=() [2/2]

mitk::DataNode & mitk::DataNode::operator= ( mitk::BaseData right)

Definition at line 109 of file mitkDataNode.cpp.

References New(), mitk::operator<<(), mitk::operator>>(), and SetData().

◆ PropertyListModified()

void mitk::DataNode::PropertyListModified ( const itk::Object *  caller,
const itk::EventObject &  event 
)
protectedvirtual

Invoked when the property list was modified. Calls Modified() of the DataNode.

Definition at line 578 of file mitkDataNode.cpp.

Referenced by DataNode().

◆ RemoveProperty()

void mitk::DataNode::RemoveProperty ( const std::string &  propertyKey,
const std::string &  contextName = "",
bool  fallBackOnDefaultContext = false 
)
overridevirtual

Removes a property. If the property does not exist, nothing will be done.

Parameters
[in]propertyKeyKey of property.
[in]contextNameOptional, default is empty string (default context). Context in which the property is removed.
[in]fallBackOnDefaultContextOptional, default is false. Remove property in default context if given context does not exist.
Precondition
If a context is specified by contextName, this context must be known by the owner or fallBackOnDefaultContext must be true. If violated an mitk::Exception is thrown.
propertyKey must be a none empty string. If violated an mitk::Exception is thrown.

Implements mitk::IPropertyOwner.

Definition at line 670 of file mitkDataNode.cpp.

References m_MapOfPropertyLists, m_PropertyList, and mitkThrow.

◆ ReplaceProperty()

void mitk::DataNode::ReplaceProperty ( const char *  propertyKey,
BaseProperty property,
const mitk::BaseRenderer renderer = nullptr 
)

Replace the property (instance of BaseProperty) with key propertyKey in the PropertyList of the renderer (if nullptr, use BaseRenderer-independent PropertyList). This is set-by-reference.

If renderer is nullptr the property is set in the BaseRenderer-independent PropertyList of this DataNode.

See also
GetProperty
m_PropertyList
m_MapOfPropertyLists

Definition at line 462 of file mitkDataNode.cpp.

References GetPropertyList(), and mitk::PropertyList::ReplaceProperty().

◆ RequestedRegionIsOutsideOfTheBufferedRegion()

bool mitk::DataNode::RequestedRegionIsOutsideOfTheBufferedRegion ( )
override

Definition at line 164 of file mitkDataNode.cpp.

◆ SetBoolProperty()

◆ SetColor() [1/3]

void mitk::DataNode::SetColor ( const mitk::Color color,
const mitk::BaseRenderer renderer = nullptr,
const char *  propertyKey = "color" 
)

◆ SetColor() [2/3]

void mitk::DataNode::SetColor ( float  red,
float  green,
float  blue,
const mitk::BaseRenderer renderer = nullptr,
const char *  propertyKey = "color" 
)

Convenience method for setting color properties (instances of ColorProperty)

Definition at line 375 of file mitkDataNode.cpp.

References SetColor().

◆ SetColor() [3/3]

void mitk::DataNode::SetColor ( const float  rgb[3],
const mitk::BaseRenderer renderer = nullptr,
const char *  propertyKey = "color" 
)

Convenience method for setting color properties (instances of ColorProperty)

Definition at line 385 of file mitkDataNode.cpp.

References GetPropertyList(), mitk::ColorProperty::New(), and mitk::PropertyList::SetProperty().

◆ SetData()

void mitk::DataNode::SetData ( mitk::BaseData baseData)
virtual

Set the data object (instance of BaseData, e.g., an Image) managed by this DataNode.

Prior set properties are kept if previous data of the node already exists and has the same type as the new data to be set. Otherwise, the default properties are used. In case that previous data already exists, the property list of the data node is cleared before setting new default properties.

Warning
the actor-mode of the vtkInteractor does not work any more, if the transform of the data-tree-node is connected to the transform of the basedata via vtkTransform->SetInput.

Definition at line 49 of file mitkDataNode.cpp.

References mitk::PropertyList::Clear(), mitk::CoreObjectFactory::GetInstance(), GetPropertyList(), m_Data, m_DataReferenceChangedTime, and m_Mappers.

Referenced by mitk::ExampleInteractor::ConnectActionsAndFunctions(), mitk::SinglePointDataInteractor::DataNodeChanged(), mitk::PointSetDataInteractor::DataNodeChanged(), QmitkAdaptiveRegionGrowingToolGUI::EnableControls(), mitk::DicomSeriesReader::LoadDicom(), mitk::DicomSeriesReader::LoadDicomSeries(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), mitk::ContourModelLiveWireInteractor::OnMovePoint(), operator=(), and mitk::AutoCropTool::ProcessOneWorkingData().

◆ SetDataInteractor()

void mitk::DataNode::SetDataInteractor ( const DataInteractor::Pointer  interactor)
virtual

Set the Interactor.

Definition at line 561 of file mitkDataNode.cpp.

References m_DataInteractor.

Referenced by mitk::Dispatcher::QueueEvent(), and QmitkBoundingObjectWidget::SelectionChanged().

◆ SetDoubleProperty()

void mitk::DataNode::SetDoubleProperty ( const char *  propertyKey,
double  doubleValue,
const mitk::BaseRenderer renderer = nullptr 
)

Convenience method for setting double properties (instances of DoubleProperty)

Definition at line 438 of file mitkDataNode.cpp.

References GetProperty(), GetPropertyList(), MITK_WARN, mitk::DoubleProperty::New(), and mitk::PropertyList::SetProperty().

◆ SetFloatProperty()

void mitk::DataNode::SetFloatProperty ( const char *  propertyKey,
float  floatValue,
const mitk::BaseRenderer renderer = nullptr 
)

◆ SetIntProperty()

◆ SetLevelWindow()

void mitk::DataNode::SetLevelWindow ( mitk::LevelWindow  levelWindow,
const mitk::BaseRenderer renderer = nullptr,
const char *  propertyKey = "levelwindow" 
)

Convenience method for setting level-window properties (instances of LevelWindowProperty)

Definition at line 406 of file mitkDataNode.cpp.

References GetPropertyList(), mitk::LevelWindowProperty::New(), and mitk::PropertyList::SetProperty().

Referenced by QmitkDataNodeColorMapAction::UseWholePixelRange().

◆ SetMapper()

void mitk::DataNode::SetMapper ( MapperSlotId  id,
mitk::Mapper mapper 
)
virtual

Definition at line 144 of file mitkDataNode.cpp.

References m_Mappers, and mitk::Mapper::SetDataNode().

Referenced by mitk::ConfigureNodeAsIsoLineNode().

◆ SetName() [1/2]

virtual void mitk::DataNode::SetName ( const char *  name)
inlinevirtual

Extra convenience access method to set the name of an object.

The name will be stored in the non-renderer-specific PropertyList in a StringProperty named "name".

Definition at line 411 of file mitkDataNode.h.

References mitk::StringProperty::New().

Referenced by mitk::DicomSeriesReader::LoadDicom(), QmitkBoundingObjectWidget::OnItemDataChanged(), and QmitkDataStorageSimpleTreeModel::setData().

◆ SetName() [2/2]

virtual void mitk::DataNode::SetName ( const std::string  name)
inlinevirtual

Extra convenience access method to set the name of an object.

The name will be stored in the non-renderer-specific PropertyList in a StringProperty named "name".

Definition at line 422 of file mitkDataNode.h.

References SetName().

Referenced by SetName().

◆ SetOpacity()

void mitk::DataNode::SetOpacity ( float  opacity,
const mitk::BaseRenderer renderer = nullptr,
const char *  propertyKey = "opacity" 
)

Convenience method for setting opacity properties (instances of FloatProperty)

Definition at line 399 of file mitkDataNode.cpp.

References GetPropertyList(), mitk::FloatProperty::New(), and mitk::PropertyList::SetProperty().

Referenced by mitk::Gizmo::AddGizmoToNode(), mitkSurfaceDepthSortingTest(), and mitk::Gizmo::RemoveGizmoFromNode().

◆ SetProperty() [1/2]

void mitk::DataNode::SetProperty ( const std::string &  propertyKey,
BaseProperty property,
const std::string &  contextName = "",
bool  fallBackOnDefaultContext = false 
)
overridevirtual

Add new or change existent property.

Parameters
[in]propertyKeyKey of property.
[in]propertyThe actual property.
[in]contextNameOptional, default is empty string (default context). Context in which the property is set.
[in]fallBackOnDefaultContextOptional, default is false. Set property in default context if given context does not exist.
Precondition
If a context is specified by contextName, this context must be known by the owner or fallBackOnDefaultContext must be true. If violated an mitk::Exception is thrown.
propertyKey must be a none empty string. If violated an mitk::Exception is thrown.

Implements mitk::IPropertyOwner.

Definition at line 645 of file mitkDataNode.cpp.

References m_MapOfPropertyLists, m_PropertyList, and mitkThrow.

Referenced by AddProperty(), mitk::ConfigureNodeAsDoseNode(), mitk::ConfigureNodeAsIsoLineNode(), mitk::ExampleInteractor::ConnectActionsAndFunctions(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::PointSetDataInteractor::InitMove(), mitk::CalculateVolumetryTool::ProcessOneWorkingData(), mitk::IOUtil::Save(), QmitkTransferFunctionGeneratorWidget::SetDataNode(), QmitkTransferFunctionWidget::SetDataNode(), mitk::AbstractFileReader::SetDefaultDataNodeProperties(), mitk::TubeGraphObjectFactory::SetDefaultProperties(), mitk::GizmoMapper2D::SetDefaultProperties(), mitk::UnstructuredGridVtkMapper3D::SetDefaultProperties(), mitk::VolumeMapperVtkSmart3D::SetDefaultProperties(), mitk::GPUVolumeMapper3D::SetDefaultProperties(), mitk::LabelSetImageVtkMapper2D::SetDefaultProperties(), mitk::RegEvaluationMapper2D::SetDefaultProperties(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), SetSelected(), and mitk::CalculateSegmentationVolume::ThreadedUpdateFunction().

◆ SetProperty() [2/2]

void mitk::DataNode::SetProperty ( const char *  propertyKey,
BaseProperty property,
const mitk::BaseRenderer renderer = nullptr 
)

Set the property (instance of BaseProperty) with key propertyKey in the PropertyList of the renderer (if nullptr, use BaseRenderer-independent PropertyList). This is set-by-value.

Warning
Change in semantics since Aug 25th 2006. Check your usage of this method if you do more with properties than just call SetProperty( "key", new SomeProperty("value") ).
See also
GetProperty
m_PropertyList
m_MapOfPropertyLists

Definition at line 455 of file mitkDataNode.cpp.

References GetPropertyList(), and mitk::PropertyList::SetProperty().

◆ SetRequestedRegion()

void mitk::DataNode::SetRequestedRegion ( const itk::DataObject *  data)
override

Definition at line 174 of file mitkDataNode.cpp.

◆ SetRequestedRegionToLargestPossibleRegion()

void mitk::DataNode::SetRequestedRegionToLargestPossibleRegion ( )
override

Definition at line 160 of file mitkDataNode.cpp.

◆ SetSelected()

void mitk::DataNode::SetSelected ( bool  selected,
const mitk::BaseRenderer renderer = nullptr 
)

set the node as selected

Definition at line 506 of file mitkDataNode.cpp.

References GetProperty(), mitk::BoolProperty::New(), and SetProperty().

◆ SetStringProperty()

void mitk::DataNode::SetStringProperty ( const char *  propertyKey,
const char *  string,
const mitk::BaseRenderer renderer = nullptr 
)

Convenience method for setting string properties (instances of StringProperty)

Definition at line 448 of file mitkDataNode.cpp.

References GetPropertyList(), mitk::StringProperty::New(), and mitk::PropertyList::SetProperty().

Referenced by mitk::EnsureUID(), and QmitkDataStorageTreeModel::setData().

◆ SetVisibility()

◆ UpdateOutputInformation()

void mitk::DataNode::UpdateOutputInformation ( )
override

Definition at line 152 of file mitkDataNode.cpp.

◆ VerifyRequestedRegion()

bool mitk::DataNode::VerifyRequestedRegion ( )
override

Definition at line 169 of file mitkDataNode.cpp.

Member Data Documentation

◆ m_Data

BaseData::Pointer mitk::DataNode::m_Data
protected

The data object (instance of BaseData, e.g., an Image) managed by this DataNode.

Definition at line 580 of file mitkDataNode.h.

Referenced by GetConstProperty(), GetData(), GetMTime(), GetNonConstProperty(), GetProperty(), GetVtkTransform(), SetData(), and ~DataNode().

◆ m_DataInteractor

DataInteractor::Pointer mitk::DataNode::m_DataInteractor
protected

Definition at line 593 of file mitkDataNode.h.

Referenced by GetDataInteractor(), and SetDataInteractor().

◆ m_DataReferenceChangedTime

itk::TimeStamp mitk::DataNode::m_DataReferenceChangedTime
protected

Timestamp of the last change of m_Data.

Definition at line 596 of file mitkDataNode.h.

Referenced by SetData().

◆ m_MapOfPropertyLists

MapOfPropertyLists mitk::DataNode::m_MapOfPropertyLists
mutableprotected

◆ m_Mappers

MapperVector mitk::DataNode::m_Mappers
mutableprotected

Mapper-slots.

Definition at line 574 of file mitkDataNode.h.

Referenced by DataNode(), GetMapper(), SetData(), SetMapper(), and ~DataNode().

◆ m_PropertyList

PropertyList::Pointer mitk::DataNode::m_PropertyList
protected

BaseRenderer-independent PropertyList.

Properties herein can be overwritten specifically for each BaseRenderer by the BaseRenderer-specific properties defined in m_MapOfPropertyLists.

Definition at line 588 of file mitkDataNode.h.

Referenced by ConcatenatePropertyList(), DataNode(), GetConstProperty(), GetGroupTags(), GetNonConstProperty(), GetProperty(), GetPropertyKeys(), GetPropertyList(), RemoveProperty(), SetProperty(), and ~DataNode().

◆ m_PropertyListModifiedObserverTag

unsigned long mitk::DataNode::m_PropertyListModifiedObserverTag
protected

Definition at line 598 of file mitkDataNode.h.

Referenced by DataNode(), and ~DataNode().


The documentation for this class was generated from the following files: