Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkNodePredicateIsDWI.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkNodePredicateIsDWI.h"
18 #include "mitkDataNode.h"
20 
23 {
24 }
25 
27 {
28 }
29 
30 
32 {
33  if (node == nullptr)
34  throw std::invalid_argument("NodePredicateIsDWI: invalid node");
35 
36  mitk::Image* image = dynamic_cast<mitk::Image*>(node->GetData());
37 
39 }
NodePredicateIsDWI()
Constructor to check for a named property.
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
virtual bool CheckNode(const mitk::DataNode *node) const override
Checks, if the node's data contains a property that is equal to m_ValidProperty.
Image class for storing images.
Definition: mitkImage.h:76
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
virtual ~NodePredicateIsDWI()
Standard Destructor.
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66