Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Class for nodes of the DataTree. More...
#include <mitkDataNode.h>
Public Types | |
typedef mitk::Geometry3D::Pointer | Geometry3DPointer |
typedef std::vector< itk::SmartPointer< Mapper > > | MapperVector |
typedef std::map< std::string, mitk::PropertyList::Pointer > | MapOfPropertyLists |
typedef std::vector< MapOfPropertyLists::key_type > | PropertyListKeyNames |
typedef std::set< std::string > | GroupTagList |
typedef DataNode | Self |
typedef itk::DataObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
itkEventMacro (InteractorChangedEvent, itk::AnyEvent) | |
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 |
mitk::Mapper * | GetMapper (MapperSlotId id) const |
BaseData * | GetData () 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::DataNode & | operator= (const DataNode &right) |
mitk::DataNode & | operator= (BaseData *right) |
virtual void | SetMapper (MapperSlotId id, mitk::Mapper *mapper) |
virtual void | UpdateOutputInformation () override |
virtual void | SetRequestedRegionToLargestPossibleRegion () override |
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () override |
virtual bool | VerifyRequestedRegion () override |
virtual void | SetRequestedRegion (const itk::DataObject *data) override |
virtual 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 NULL, 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 NULL, 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 NULL, use BaseRenderer-independent PropertyList). This is set-by-value. More... | |
mitk::PropertyList * | GetPropertyList (const mitk::BaseRenderer *renderer=nullptr) const |
Get the PropertyList of the renderer. If renderer is NULL, the BaseRenderer-independent PropertyList of this DataNode is returned. More... | |
mitk::PropertyList * | GetPropertyList (const std::string &rendererName) const |
void | ConcatenatePropertyList (PropertyList *pList, bool replace=false) |
Add values from another PropertyList. More... | |
mitk::BaseProperty * | GetProperty (const char *propertyKey, const mitk::BaseRenderer *renderer=nullptr) 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... | |
virtual 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... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Protected Member Functions | |
DataNode () | |
virtual | ~DataNode () |
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 |
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).
SetProperty( "key", new SomeProperty("value") )
. Definition at line 66 of file mitkDataNode.h.
typedef itk::SmartPointer<const Self> mitk::DataNode::ConstPointer |
Definition at line 81 of file mitkDataNode.h.
Definition at line 69 of file mitkDataNode.h.
typedef std::set<std::string> mitk::DataNode::GroupTagList |
Definition at line 73 of file mitkDataNode.h.
typedef std::map<std::string, mitk::PropertyList::Pointer> mitk::DataNode::MapOfPropertyLists |
Definition at line 71 of file mitkDataNode.h.
typedef std::vector<itk::SmartPointer<Mapper> > mitk::DataNode::MapperVector |
Definition at line 70 of file mitkDataNode.h.
typedef itk::SmartPointer<Self> mitk::DataNode::Pointer |
Definition at line 81 of file mitkDataNode.h.
typedef std::vector<MapOfPropertyLists::key_type> mitk::DataNode::PropertyListKeyNames |
Definition at line 72 of file mitkDataNode.h.
typedef DataNode mitk::DataNode::Self |
Definition at line 81 of file mitkDataNode.h.
typedef itk::DataObject mitk::DataNode::Superclass |
Definition at line 81 of file mitkDataNode.h.
|
protected |
Definition at line 85 of file mitkDataNode.cpp.
References m_Mappers, m_PropertyList, m_PropertyListModifiedObserverTag, mitk::New(), mitk::PropertyList::New(), and PropertyListModified().
|
protectedvirtual |
Definition at line 97 of file mitkDataNode.cpp.
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 NULL, 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.
Definition at line 487 of file mitkDataNode.cpp.
Referenced by mitk::VtkShaderRepository::AddDefaultProperties(), mitk::PlanarFigureObjectFactory::SetDefaultProperties(), mitk::TbssImageMapper::SetDefaultProperties(), mitk::PlanarFigureVtkMapper3D::SetDefaultProperties(), mitk::SimulationVtkMapper2D::SetDefaultProperties(), mitk::SimulationVtkMapper3D::SetDefaultProperties(), mitk::ContourModelGLMapper2D::SetDefaultProperties(), mitk::FiberBundleMapper3D::SetDefaultProperties(), mitk::ContourModelSetGLMapper2D::SetDefaultProperties(), mitk::UnstructuredGridVtkMapper3D::SetDefaultProperties(), mitk::FiberBundleMapper2D::SetDefaultProperties(), mitk::PlaneGeometryDataMapper2D::SetDefaultProperties(), mitk::GPUVolumeMapper3D::SetDefaultProperties(), mitk::SurfaceVtkMapper2D::SetDefaultProperties(), mitk::EnhancedPointSetVtkMapper3D::SetDefaultProperties(), mitk::ContourModelMapper2D::SetDefaultProperties(), mitk::ContourModelSetMapper3D::SetDefaultProperties(), mitk::ConnectomicsNetworkMapper3D::SetDefaultProperties(), mitk::ContourModelMapper3D::SetDefaultProperties(), mitk::SurfaceVtkMapper3D::SetDefaultProperties(), mitk::CompositeMapper::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().
Pointer mitk::DataNode::Clone | ( | ) | const |
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
replace. | |
replace | true: if |
pList | contains 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. |
Definition at line 218 of file mitkDataNode.cpp.
|
overridevirtual |
Definition at line 192 of file mitkDataNode.cpp.
bool mitk::DataNode::GetBoolProperty | ( | const char * | propertyKey, |
bool & | boolValue, | ||
const mitk::BaseRenderer * | renderer = nullptr |
||
) | const |
Convenience access method for bool properties (instances of BoolProperty)
Definition at line 283 of file mitkDataNode.cpp.
Referenced by mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::PlanarFigureVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::PlanarFigureVtkMapper3D::ApplyPlanarFigureProperties(), mitk::SimulationVtkMapper3D::ApplySimulationProperties(), mitk::EventStateMachine::FilterEvents(), mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), mitk::FiberBundleMapper3D::GenerateDataForRenderer(), mitk::SimulationVtkMapper2D::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::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::ContourModelSetGLMapper2D::InternalDrawContour(), mitk::GPUVolumeMapper3D::IsRenderable(), QmlMitkProperties::notify(), QmitkSlicesInterpolator::On3DInterpolationActivated(), mitk::ContourModelGLMapper2D::Paint(), mitk::VtkPropRenderer::PickObject(), mitk::RegEvaluationMapper2D::PrepareContour(), mitk::PersistenceService::RestorePropertyListsFromPersistentDataNodes(), QmitkSlicesInterpolator::SetCurrentContourListID(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), and QmitkDataManagerView::TextureInterpolationChanged().
|
inlinevirtual |
Definition at line 81 of file mitkDataNode.h.
|
virtual |
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)
Definition at line 353 of file mitkDataNode.cpp.
Referenced by mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::PlanarFigureVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::EnhancedPointSetVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::VtkMapper::ApplyColorAndOpacityProperties(), mitk::PlaneGeometryDataMapper2D::ApplyColorAndOpacityProperties2D(), mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::Mapper::GetColor(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), and QmitkToolWorkingDataSelectionBox::UpdateDataDisplay().
mitk::BaseData * mitk::DataNode::GetData | ( | ) | const |
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
Definition at line 48 of file mitkDataNode.cpp.
Referenced by mitk::Gizmo::AddGizmoToNode(), QmitkBoundingObjectWidget::AddItem(), QmitkDataStorageTableModel::AddNode(), QmitkDataStorageListModel::AddNodeToInternalList(), mitk::SimulationVtkMapper3D::ApplySimulationProperties(), mitk::PixelManipulationTool::CalculateImage(), QmitkBSplineRegistrationView::CalculateTransformation(), mitk::FileWriter::CanWriteDataType(), mitk::ImageWriter::CanWriteDataType(), mitk::PlanarFigureWriter::CanWriteDataType(), QmitkPointListModel::CheckForPointSetInNode(), mitk::NodePredicateDataProperty::CheckNode(), mitk::NodePredicateDataType::CheckNode(), mitk::NodePredicateDimension::CheckNode(), mitk::NodePredicateIsDWI::CheckNode(), mitk::NodePredicateData::CheckNode(), mitk::TNodePredicateDataType< T >::CheckNode(), mitk::SceneReaderV1::ClearNodePropertyListWithExceptions(), QmitkDataManagerView::ComponentActionChanged(), mitk::QuantificationObjectFactory::CreateMapper(), mitk::ContourObjectFactory::CreateMapper(), mitk::SegmentationObjectFactory::CreateMapper(), mitk::BoundingShapeObjectFactory::CreateMapper(), mitk::SimulationObjectFactory::CreateMapper(), mitk::MultilabelObjectFactory::CreateMapper(), mitk::TubeGraphObjectFactory::CreateMapper(), mitk::PlanarFigureObjectFactory::CreateMapper(), mitk::DiffusionCoreObjectFactory::CreateMapper(), mitk::ConnectomicsObjectFactory::CreateMapper(), mitk::CoreObjectFactory::CreateMapper(), mitk::RegEvaluationObjectFactory::CreateMapper(), mitk::FiberTrackingObjectFactory::CreateMapper(), mitk::GizmoObjectFactory::CreateMapper(), mitk::MAPRegistrationWrapperObjectFactory::CreateMapper(), QmitkTbssRoiAnalysisWidget::CreateTracts(), mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), mitk::SimulationInteractor::DataNodeChanged(), QmitkPythonVariableStackTableModel::dropMimeData(), QmitkDataStorageTreeModel::dropMimeData(), mitk::FiberBundle::ExtractFiberIdSubset(), mitk::FiberBundle::ExtractFiberSubset(), mitk::FiberBundleMapper3D::GenerateDataForRenderer(), mitk::SimulationVtkMapper2D::GenerateDataForRenderer(), mitk::SimulationVtkMapper3D::GenerateDataForRenderer(), mitk::UnstructuredGridMapper2D::GenerateDataForRenderer(), mitk::PlaneGeometryDataMapper2D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), mitk::UnstructuredGridVtkMapper3D::GetInput(), mitk::VectorImageMapper2D::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::DataStorage::GetNamedDerivedObject(), mitk::DataStorage::GetNamedObject(), mitk::GetRelevantRegKernelOfNode(), QmitkBoundingObjectWidget::GetSelectedBoundingObject(), QmitkFunctionalityComponentContainer::ImageSelected(), mitk::SegmentationSink::InsertBelowGroupNode(), QmitkSlicesInterpolator::Interpolate(), mitk::DiffusionPropertyHelper::IsDiffusionWeightedImage(), mitk::Mapper::BaseLocalStorage::IsGenerateDataRequired(), mitk::MITKRegistrationHelper::IsRegNode(), mitk::DicomSeriesReader::LoadDicomSeries(), mitkPointSetVtkMapper2DTransformedPointsTest(), QmlMitkProperties::notify(), QmitkPointListModel::ObserveNewPointSet(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), mitk::LiveWireTool2D::OnInitLiveWire(), QmitkSlicesInterpolator::OnInterpolationActivated(), QmitkBoundingObjectWidget::OnItemDataChanged(), QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmitkSurfaceStampWidget::OnStamp(), QmitkMaskStampWidget::OnStamp(), QmitkSurfaceBasedInterpolatorWidget::OnToolManagerWorkingDataModified(), QmitkSliceBasedInterpolatorWidget::OnToolManagerWorkingDataModified(), operator=(), mitk::AutoCropTool::ProcessOneWorkingData(), mitk::CalculateVolumetryTool::ProcessOneWorkingData(), mitk::CreateSurfaceTool::ProcessOneWorkingData(), mitk::CalculateGrayValueStatisticsTool::ProcessOneWorkingData(), QmitkToolSelectionBox::RecreateButtons(), QmitkBoundingObjectWidget::RemoveItem(), QmitkDataStorageListModel::RemoveNodeFromInternalList(), mitk::SceneIO::SaveScene(), QmitkSlicesInterpolator::SetCurrentContourListID(), QmitkDataStorageTreeModel::setData(), QmitkTransferFunctionGeneratorWidget::SetDataNode(), QmitkTransferFunctionWidget::SetDataNode(), QmlMitkTransferFunctionItem::SetDataNode(), mitk::AbstractFileReader::SetDefaultDataNodeProperties(), mitk::QuantificationObjectFactory::SetDefaultProperties(), mitk::BoundingShapeObjectFactory::SetDefaultProperties(), mitk::ContourObjectFactory::SetDefaultProperties(), mitk::MultilabelObjectFactory::SetDefaultProperties(), mitk::TubeGraphObjectFactory::SetDefaultProperties(), mitk::PlanarFigureObjectFactory::SetDefaultProperties(), mitk::MAPRegistrationWrapperObjectFactory::SetDefaultProperties(), mitk::DiffusionCoreObjectFactory::SetDefaultProperties(), mitk::ConnectomicsObjectFactory::SetDefaultProperties(), mitk::SimulationObjectFactory::SetDefaultProperties(), mitk::CoreObjectFactory::SetDefaultProperties(), mitk::FiberTrackingObjectFactory::SetDefaultProperties(), mitk::SimulationVtkMapper3D::SetDefaultProperties(), mitk::GizmoObjectFactory::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(), mitk::RegEvaluationObject::SetTargetNode(), mitk::LabelSetImageVtkMapper2D::Update(), mitk::Mapper::Update(), and mitk::SurfaceVtkMapper2D::Update().
|
virtual |
Definition at line 591 of file mitkDataNode.cpp.
Referenced by mitk::Dispatcher::AddDataInteractor().
|
inline |
Get the timestamp of the last change of the reference to the BaseData.
Definition at line 547 of file mitkDataNode.h.
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.
Definition at line 315 of file mitkDataNode.cpp.
Referenced by mitk::SurfaceVtkMapper2D::ApplyAllProperties().
bool mitk::DataNode::GetFloatProperty | ( | const char * | propertyKey, |
float & | floatValue, | ||
const mitk::BaseRenderer * | renderer = nullptr |
||
) | const |
Convenience access method for float properties (instances of FloatProperty)
Definition at line 303 of file mitkDataNode.cpp.
Referenced by mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::EnhancedPointSetVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::ContourModelSetMapper3D::ApplyContourModelSetProperties(), mitk::SurfaceVtkMapper3D::ApplyMitkPropertiesToVtkProperty(), mitk::PlanarFigureVtkMapper3D::ApplyPlanarFigureProperties(), mitk::FiberBundleMapper3D::GenerateDataForRenderer(), mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::ContourModelSetGLMapper2D::InternalDrawContour(), QmitkDataManagerView::OpacityActionChanged(), mitk::PlanarFigureMapper2D::Paint(), mitk::Gizmo::RemoveGizmoFromNode(), and mitk::VtkShaderRepository::UpdateShaderProgram().
mitk::DataNode::GroupTagList mitk::DataNode::GetGroupTags | ( | ) | const |
Get a set of all group tags from this node's property list.
Definition at line 263 of file mitkDataNode.cpp.
bool mitk::DataNode::GetIntProperty | ( | const char * | propertyKey, |
int & | intValue, | ||
const mitk::BaseRenderer * | renderer = nullptr |
||
) | const |
Convenience access method for int properties (instances of IntProperty)
Definition at line 293 of file mitkDataNode.cpp.
Referenced by mitk::FiberBundleMapper3D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), mitk::GetGridGeometryFromNode(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), mitk::RegEvaluationMapper2D::PrepareBlend(), mitk::RegEvaluationMapper2D::PrepareCheckerBoard(), mitk::PlaneGeometryDataVtkMapper3D::ProcessNode(), and mitk::VtkShaderRepository::UpdateShaderProgram().
bool mitk::DataNode::GetLevelWindow | ( | mitk::LevelWindow & | levelWindow, |
const mitk::BaseRenderer * | renderer = nullptr , |
||
const char * | propertyKey = "levelwindow" |
||
) | const |
Convenience access method for level-window properties (instances of LevelWindowProperty)
Definition at line 373 of file mitkDataNode.cpp.
Referenced by mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::RegEvaluationMapper2D::ApplyLevelWindow(), and mitk::Mapper::GetLevelWindow().
mitk::Mapper * mitk::DataNode::GetMapper | ( | MapperSlotId | id | ) | const |
Definition at line 34 of file mitkDataNode.cpp.
References mitk::CoreObjectFactory::GetInstance(), and m_Mappers.
Referenced by mitk::VtkPropRenderer::PickObject(), mitk::PlaneGeometryDataVtkMapper3D::ProcessNode(), and mitk::VtkPropRenderer::Update().
|
overridevirtual |
Get the timestamp of the last change of the contents of this node or the referenced BaseData.
Definition at line 510 of file mitkDataNode.cpp.
Referenced by mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), mitk::FiberBundleThreadMonitorMapper3D::GenerateDataForRenderer(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::RegEvaluationMapper2D::Update(), mitk::ImageVtkMapper2D::Update(), mitk::DoseImageVtkMapper2D::Update(), and mitk::SurfaceVtkMapper2D::Update().
|
inline |
Convenience access method for accessing the name of an object (instance of StringProperty with property-key "name")
Definition at line 366 of file mitkDataNode.h.
Referenced by QmitkDataStorageTreeModel::data(), QmitkDataStorageListModel::data(), QmitkPythonVariableStackTableModel::dropMimeData(), QmitkLevelWindowWidgetContextMenu::getContextMenu(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), mitk::PlanarFigureMapper2D::Paint(), mitk::CalculateGrayValueStatisticsTool::ProcessOneWorkingData(), mitk::PersistenceService::RestorePropertyListsFromPersistentDataNodes(), mitk::SceneIO::SaveScene(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateSuccessful(), mitk::LabelSetImageToSurfaceThreadedFilter::ThreadedUpdateSuccessful(), mitk::ShowSegmentationAsSurface::ThreadedUpdateSuccessful(), and QmitkToolWorkingDataSelectionBox::UpdateDataDisplay().
|
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.
Definition at line 382 of file mitkDataNode.h.
References mitk::StringProperty::GetValue().
bool mitk::DataNode::GetOpacity | ( | float & | opacity, |
const mitk::BaseRenderer * | renderer, | ||
const char * | propertyKey = "opacity" |
||
) | const |
Convenience access method for opacity properties (instances of FloatProperty)
Definition at line 363 of file mitkDataNode.cpp.
Referenced by mitk::Gizmo::AddGizmoToNode(), mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::PlanarFigureVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::EnhancedPointSetVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::VtkMapper::ApplyColorAndOpacityProperties(), mitk::PlaneGeometryDataMapper2D::ApplyColorAndOpacityProperties2D(), mitk::SurfaceVtkMapper3D::ApplyMitkPropertiesToVtkProperty(), mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), and mitk::Mapper::GetOpacity().
mitk::BaseProperty * mitk::DataNode::GetProperty | ( | const char * | propertyKey, |
const mitk::BaseRenderer * | renderer = nullptr |
||
) | 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 NULL 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.
Definition at line 223 of file mitkDataNode.cpp.
References mitk::BaseRenderer::GetName().
Referenced by QmitkDataStorageTableModel::AddNode(), mitk::SurfaceVtkMapper2D::ApplyAllProperties(), mitk::EnhancedPointSetVtkMapper3D::ApplyColorAndOpacityProperties(), mitk::RegEvaluationMapper2D::ApplyLookuptable(), mitk::SurfaceVtkMapper3D::ApplyMitkPropertiesToVtkProperty(), mitk::NodePredicateProperty::CheckNode(), QmitkDataManagerView::ColorActionChanged(), QmitkDataManagerView::ColorChanged(), QmitkDataManagerView::ColormapActionToggled(), QmitkDataManagerView::ColormapMenuAboutToShow(), QmitkDataManagerView::ComponentActionChanged(), QmitkDataStorageTreeModel::data(), mitk::PlaneGeometryDataMapper2D::DetermineThickSliceMode(), mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), QmitkLevelWindowWidgetContextMenu::getContextMenu(), mitk::GetGridGeometryFromNode(), mitk::GetRelevantRegKernelOfNode(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), QmitkDataStorageComboBox::InsertNode(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::ContourModelSetGLMapper2D::InternalDrawContour(), mitk::DicomSeriesReader::LoadDicom(), mitk::RegEvaluationMapper2D::PrepareWipe(), mitk::PropertyIsOutdated(), QmitkDataStorageComboBoxWithSelectNone::RemoveNode(), QmitkDataStorageComboBox::RemoveNode(), QmitkTransferFunctionGeneratorWidget::SetDataNode(), QmitkTransferFunctionWidget::SetDataNode(), QmlMitkTransferFunctionItem::SetDataNode(), mitk::AbstractFileReader::SetDefaultDataNodeProperties(), mitk::UnstructuredGridVtkMapper3D::SetDefaultProperties(), mitk::GPUVolumeMapper3D::SetDefaultProperties(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), QmitkDataStorageComboBoxWithSelectNone::SetNode(), QmitkDataManagerView::SurfaceRepresentationActionToggled(), QmitkDataManagerView::SurfaceRepresentationMenuAboutToShow(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateSuccessful(), mitk::ShowSegmentationAsSurface::ThreadedUpdateSuccessful(), and mitk::VtkShaderRepository::UpdateShaderProgram().
|
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 NULL 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.
Definition at line 243 of file mitkDataNode.h.
|
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 NULL 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.
Definition at line 263 of file mitkDataNode.h.
mitk::PropertyList * mitk::DataNode::GetPropertyList | ( | const mitk::BaseRenderer * | renderer = nullptr | ) | const |
Get the PropertyList of the renderer. If renderer is NULL, the BaseRenderer-independent PropertyList of this DataNode is returned.
Definition at line 195 of file mitkDataNode.cpp.
References mitk::BaseRenderer::GetName().
Referenced by mitk::DataStorageSelection::AddListener(), QmitkBSplineRegistrationView::CalculateTransformation(), mitk::SceneReaderV1::DecorateNodeWithProperties(), mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::DicomSeriesReader::LoadDicom(), mitk::PlaneGeometryDataVtkMapper3D::ProcessNode(), mitk::Gizmo::RemoveGizmoFromNode(), mitk::PersistenceService::RestorePropertyListsFromPersistentDataNodes(), mitk::SceneIO::SaveScene(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::RegEvaluationMapper2D::Update(), mitk::ImageVtkMapper2D::Update(), mitk::DoseImageVtkMapper2D::Update(), and mitk::SurfaceVtkMapper2D::Update().
mitk::PropertyList * mitk::DataNode::GetPropertyList | ( | const std::string & | rendererName | ) | const |
Definition at line 203 of file mitkDataNode.cpp.
References mitk::PropertyList::New().
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 182 of file mitkDataNode.cpp.
Referenced by mitk::SceneIO::SaveScene().
|
inline |
Convenience access method for GenericProperty<T> properties (T being the type of the second parameter)
Definition at line 275 of file mitkDataNode.h.
References mitk::GenericProperty< T >::GetValue().
Referenced by mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), and mitk::RegEvaluationMapper2D::GenerateDataForRenderer().
|
inlinestatic |
Definition at line 81 of file mitkDataNode.h.
bool mitk::DataNode::GetStringProperty | ( | const char * | propertyKey, |
std::string & | string, | ||
const mitk::BaseRenderer * | renderer = nullptr |
||
) | const |
Convenience access method for string properties (instances of StringProperty)
Definition at line 336 of file mitkDataNode.cpp.
Referenced by QmitkBoundingObjectWidget::AddItem(), mitk::CheckUID(), mitk::EnsureUID(), mitk::PlanarFigureMapper2D::InitializePlanarFigurePropertiesFromDataNode(), mitk::ImageVtkMapper2D::SetDefaultProperties(), and mitk::DoseImageVtkMapper2D::SetDefaultProperties().
|
inline |
Convenience access method for visibility properties (instances of BoolProperty with property-key "visible")
Definition at line 413 of file mitkDataNode.h.
Referenced by mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::PointSetVtkMapper2D::GenerateDataForRenderer(), mitk::Mapper::GetVisibility(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::ContourModelSetGLMapper2D::InternalDrawContour(), mitk::GPUVolumeMapper3D::IsRenderable(), QmitkRenderWindowMenu::OnCrossHairMenuAboutToShow(), mitk::ContourModelGLMapper2D::Paint(), mitk::ContourModelSetGLMapper2D::Paint(), mitk::LabelSetImageVtkMapper2D::Update(), and mitk::SurfaceVtkMapper2D::Update().
vtkLinearTransform * mitk::DataNode::GetVtkTransform | ( | int | t = 0 | ) | const |
Get the transformation applied prior to displaying the data as a vtkTransform.
Definition at line 498 of file mitkDataNode.cpp.
References mitk::BaseGeometry::GetVtkTransform().
Referenced by mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), and mitk::ContourModelSetGLMapper2D::InternalDrawContour().
|
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!
Definition at line 434 of file mitkDataNode.h.
Referenced by mitk::PlaneGeometryDataVtkMapper3D::ProcessNode().
bool mitk::DataNode::IsSelected | ( | const mitk::BaseRenderer * | renderer = nullptr | ) |
set the node as selected
Definition at line 569 of file mitkDataNode.cpp.
|
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!
Definition at line 453 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().
mitk::DataNode::itkEventMacro | ( | InteractorChangedEvent | , |
itk::AnyEvent | |||
) |
Definition of an itk::Event that is invoked when a DataInteractor is set on this DataNode.
|
static |
Referenced by mitk::OtsuTool3D::Activated(), mitk::FastMarchingTool3D::Activated(), mitk::FastMarchingTool::Activated(), mitk::AdaptiveRegionGrowingTool::AdaptiveRegionGrowingTool(), mitk::SegTool2D::AddContourmarker(), mitk::InteractionTestHelper::AddDisplayPlaneSubTree(), QmitkStdMultiWidget::AddDisplayPlaneSubTree(), mitk::Gizmo::AddGizmoToNode(), mitk::PixelManipulationTool::AddImageToDataStorage(), addPlaneToDataStorage(), mitk::BaseRenderer::BaseRenderer(), mitk::BinaryThresholdTool::BinaryThresholdTool(), mitk::BinaryThresholdULTool::BinaryThresholdULTool(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), mitk::PickingTool::ConfirmSegmentation(), mitk::NavigationToolReader::ConvertDataNodeToNavigationTool(), mitk::NavigationToolWriter::ConvertToDataNode(), QmitkBoundingObjectWidget::CreateBoundingObject(), mitk::Tool::CreateSegmentationNode(), mitk::NavigationToolStorageTestHelper::CreateTestData_ComplexStorage(), mitk::WatershedTool::DoIt(), mitk::FeedbackContourTool::FeedbackContourTool(), mitk::DataNodeFactory::GenerateData(), mitk::generateMappedResultNode(), QmitkNDIConfigurationWidget::GenerateNavigationTool(), QmitkODFRenderWidget::GenerateODF(), mitk::generateRegistrationResultNode(), QmitkBoundingObjectWidget::GetAllBoundingObjects(), mitk::LegacyFileWriterService::GetConfidenceLevel(), mitk::DataCollection::GetDataNode(), mitk::PersistenceService::GetDataNodes(), Step6::Initialize(), QmitkNavigationToolCreationWidget::InitializeUIToolLandmarkLists(), QmitkToFPointSetWidget::InitializeWidget(), mitk::IOUtil::Load(), mitk::SceneReaderV1::LoadBaseDataFromDataTag(), mitk::IOUtil::LoadDataNode(), main(), mitkDataNodeTest(), mitkDataStorageTest(), mitkDispatcherTest(), mitkNodePredicateSourceTest(), mitkPropertySerializationTest(), mitkSurfaceVtkMapper3DTexturedSphereTest(), mitkVtkPropRendererTest(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), QmitkNavigationToolCreationWidget::OnFinished(), mitk::LiveWireTool2D::OnInitLiveWire(), 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::DicomSeriesReaderService::Read(), mitk::BaseDICOMReaderService::Read(), mitk::AbstractFileReader::Read(), mitk::RTStructureSetReader::ReadStructureSet(), QmitkNavigationToolCreationAdvancedWidget::ReInitialize(), QmitkNavigationToolCreationAdvancedWidget::RetrieveAndInitializeDataForTooltipManipulation(), mitk::OtsuTool3D::RunSegmentation(), QmitkFiducialRegistrationWidget::setDataStorage(), QmitkDataStorageTreeModel::SetDataStorage(), mitk::VtkModel::SetMode(), Step7::StartRegionGrowing(), TestDataStorage(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateSuccessful(), mitk::ShowSegmentationAsSurface::ThreadedUpdateSuccessful(), and mitk::LabelSetImageToSurfaceThreadedFilter::ThreadedUpdateSuccessful().
mitk::DataNode & mitk::DataNode::operator= | ( | const DataNode & | right | ) |
Definition at line 106 of file mitkDataNode.cpp.
mitk::DataNode & mitk::DataNode::operator= | ( | mitk::BaseData * | right | ) |
Definition at line 113 of file mitkDataNode.cpp.
|
protectedvirtual |
Invoked when the property list was modified. Calls Modified() of the DataNode.
Definition at line 596 of file mitkDataNode.cpp.
Referenced by DataNode().
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 NULL, use BaseRenderer-independent PropertyList). This is set-by-reference.
If renderer is NULL the property is set in the BaseRenderer-independent PropertyList of this DataNode.
Definition at line 480 of file mitkDataNode.cpp.
|
overridevirtual |
Definition at line 168 of file mitkDataNode.cpp.
void mitk::DataNode::SetBoolProperty | ( | const char * | propertyKey, |
bool | boolValue, | ||
const mitk::BaseRenderer * | renderer = nullptr |
||
) |
Convenience method for setting boolean properties (instances of BoolProperty)
Definition at line 437 of file mitkDataNode.cpp.
References mitk::BoolProperty::New().
Referenced by mitk::ConfigureNodeAsDoseNode(), mitkSurfaceDepthSortingTest(), QmitkBoundingObjectWidget::SelectionChanged(), QmlMitkProperties::setLod(), QmlMitkProperties::setMode(), QmlMitkProperties::setRendering(), and QmitkDataManagerView::TextureInterpolationToggled().
void mitk::DataNode::SetColor | ( | const mitk::Color & | color, |
const mitk::BaseRenderer * | renderer = nullptr , |
||
const char * | propertyKey = "color" |
||
) |
Convenience method for setting color properties (instances of ColorProperty)
Definition at line 386 of file mitkDataNode.cpp.
References mitk::ColorProperty::New().
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 393 of file mitkDataNode.cpp.
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 403 of file mitkDataNode.cpp.
References mitk::ColorProperty::New().
|
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.
Definition at line 53 of file mitkDataNode.cpp.
References mitk::BaseData::Clear(), and mitk::CoreObjectFactory::GetInstance().
Referenced by QmitkBSplineRegistrationView::CalculateTransformation(), mitk::DicomSeriesReader::LoadDicom(), mitk::DicomSeriesReader::LoadDicomSeries(), operator=(), and mitk::AutoCropTool::ProcessOneWorkingData().
|
virtual |
Set the Interactor.
Definition at line 579 of file mitkDataNode.cpp.
Referenced by QmitkBoundingObjectWidget::SelectionChanged(), and mitk::DataInteractor::SetDataNode().
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 456 of file mitkDataNode.cpp.
References MITK_WARN, and mitk::DoubleProperty::New().
void mitk::DataNode::SetFloatProperty | ( | const char * | propertyKey, |
float | floatValue, | ||
const mitk::BaseRenderer * | renderer = nullptr |
||
) |
Convenience method for setting float properties (instances of FloatProperty)
Definition at line 444 of file mitkDataNode.cpp.
References MITK_WARN, and mitk::FloatProperty::New().
Referenced by mitk::Gizmo::AddGizmoToNode(), mitk::ConfigureNodeAsDoseNode(), and QmitkDataManagerView::OpacityChanged().
void mitk::DataNode::SetIntProperty | ( | const char * | propertyKey, |
int | intValue, | ||
const mitk::BaseRenderer * | renderer = nullptr |
||
) |
Convenience method for setting int properties (instances of IntProperty)
Definition at line 433 of file mitkDataNode.cpp.
References mitk::IntProperty::New().
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 424 of file mitkDataNode.cpp.
References mitk::LevelWindowProperty::New().
|
virtual |
Definition at line 148 of file mitkDataNode.cpp.
References mitk::Mapper::SetDataNode().
Referenced by mitk::DiffusionCoreObjectFactory::CreateMapper().
|
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 395 of file mitkDataNode.h.
References mitk::StringProperty::New().
Referenced by mitk::DicomSeriesReader::LoadDicom(), and QmitkBoundingObjectWidget::OnItemDataChanged().
|
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 406 of file mitkDataNode.h.
References SetName().
Referenced by SetName().
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 417 of file mitkDataNode.cpp.
References mitk::FloatProperty::New().
Referenced by mitk::Gizmo::AddGizmoToNode(), mitkSurfaceDepthPeelingTest(), mitkSurfaceDepthSortingTest(), and mitk::Gizmo::RemoveGizmoFromNode().
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 NULL, use BaseRenderer-independent PropertyList). This is set-by-value.
SetProperty( "key", new SomeProperty("value") )
.Definition at line 473 of file mitkDataNode.cpp.
Referenced by QmitkStdMultiWidget::AddDisplayPlaneSubTree(), QmitkDataManagerView::ColorChanged(), QmitkDataManagerView::ColormapMenuAboutToShow(), mitk::ConfigureNodeAsDoseNode(), mitk::PlaneGeometryDataVtkMapper3D::GenerateDataForRenderer(), mitk::CalculateVolumetryTool::ProcessOneWorkingData(), QmitkTransferFunctionGeneratorWidget::SetDataNode(), QmitkTransferFunctionWidget::SetDataNode(), QmlMitkTransferFunctionItem::SetDataNode(), mitk::AbstractFileReader::SetDefaultDataNodeProperties(), mitk::TubeGraphObjectFactory::SetDefaultProperties(), mitk::GizmoMapper2D::SetDefaultProperties(), mitk::UnstructuredGridVtkMapper3D::SetDefaultProperties(), mitk::FiberBundleMapper2D::SetDefaultProperties(), mitk::GPUVolumeMapper3D::SetDefaultProperties(), mitk::LabelSetImageVtkMapper2D::SetDefaultProperties(), mitk::RegEvaluationMapper2D::SetDefaultProperties(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), and mitk::CalculateSegmentationVolume::ThreadedUpdateFunction().
|
overridevirtual |
Definition at line 178 of file mitkDataNode.cpp.
|
overridevirtual |
Definition at line 164 of file mitkDataNode.cpp.
void mitk::DataNode::SetSelected | ( | bool | selected, |
const mitk::BaseRenderer * | renderer = nullptr |
||
) |
set the node as selected
Definition at line 524 of file mitkDataNode.cpp.
References mitk::BoolProperty::New().
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 466 of file mitkDataNode.cpp.
References mitk::StringProperty::New().
Referenced by mitk::EnsureUID(), and QmitkDataStorageTreeModel::setData().
void mitk::DataNode::SetVisibility | ( | bool | visible, |
const mitk::BaseRenderer * | renderer = nullptr , |
||
const char * | propertyKey = "visible" |
||
) |
Convenience method for setting visibility properties (instances of BoolProperty)
visible | If set to true, the data will be rendered. If false, the render will skip this data. |
renderer | Specify a renderer if the visibility shall be specific to a renderer |
propertykey | Can be used to specify a user defined name of the visibility propery. |
Definition at line 410 of file mitkDataNode.cpp.
References mitk::BoolProperty::New().
Referenced by QmitkToolReferenceDataSelectionBox::EnsureOnlyReferenceImageIsVisibile(), QmitkBoundingObjectWidget::OnItemDataChanged(), QmitkMaskStampWidget::OnStamp(), QmitkRenderWindowMenu::SetCrossHairVisibility(), QmitkDataStorageTreeModel::setData(), mitk::AbstractFileReader::SetDefaultDataNodeProperties(), QmitkBoundingObjectWidget::setEnabled(), and QmitkStdMultiWidget::SetWidgetPlaneVisibility().
|
overridevirtual |
Definition at line 156 of file mitkDataNode.cpp.
|
overridevirtual |
Definition at line 173 of file mitkDataNode.cpp.
|
protected |
The data object (instance of BaseData, e.g., an Image) managed by this DataNode.
Definition at line 563 of file mitkDataNode.h.
|
protected |
Definition at line 576 of file mitkDataNode.h.
|
protected |
Timestamp of the last change of m_Data.
Definition at line 579 of file mitkDataNode.h.
|
mutableprotected |
Map associating each BaseRenderer with its own PropertyList.
Definition at line 574 of file mitkDataNode.h.
|
mutableprotected |
Mapper-slots.
Definition at line 557 of file mitkDataNode.h.
Referenced by DataNode(), and GetMapper().
|
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 571 of file mitkDataNode.h.
Referenced by DataNode().
|
protected |
Definition at line 581 of file mitkDataNode.h.
Referenced by DataNode().