MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkNavigationDataVisualizationFilter.cpp
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
14
15namespace mitk{
16
20
24
26 {
27 // Process object is not const-correct so the const_cast is required here
28 this->ProcessObject::SetNthInput(0, const_cast<NavigationData*>(nd));
29 this->CreateOutputsForAllInputs();
30 }
31
33 {
34 // Process object is not const-correct so the const_cast is required here
35 this->ProcessObject::SetNthInput(idx, const_cast<NavigationData*>(nd));
36 this->CreateOutputsForAllInputs();
37 }
38
40 {
41 if (this->GetNumberOfInputs() < 1)
42 return nullptr;
43
44 return static_cast<const NavigationData*>(this->ProcessObject::GetInput(0));
45 }
46
48 {
49 if (this->GetNumberOfInputs() < 1)
50 return nullptr;
51
52 return static_cast<const NavigationData*>(this->ProcessObject::GetInput(idx));
53 }
54
55} //namespace mitk
virtual void SetInput(const NavigationData *nd)
Set the input of this filter.
const NavigationData * GetInput(void)
Get the input of this filter.
IGT Exceptions.