Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
RegisterImagesModuleLogic.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Maverick
4 Module: $RCSfile: config.h,v $
5 
6 Copyright (c) Kitware Inc. 28 Corporate Drive,
7 Clifton Park, NY, 12065, USA.
8 
9 See COPYRIGHT.txt
10 or http://www.slicer.org/copyright/copyright.txt for details.
11 
12 All rights reserved.
13 
14 IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
15 DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
16 OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
17 EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18 
19 THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
20 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
21 PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN
22 "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
23 MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
24 
25 =========================================================================*/
26 #ifndef __RegisterImagesModuleLogic_h
27 #define __RegisterImagesModuleLogic_h
28 
29 #include "vtkSharedModuleLogic.h"
30 #include <vector>
31 
32 class VTK_EXPORT RegisterImagesModuleLogic : public vtkSharedModuleLogic
33 {
34 public:
35 
36  static RegisterImagesModuleLogic * New();
37 
38  vtkTypeMacro( RegisterImagesModuleLogic, vtkSharedModuleLogic );
39  void PrintSelf( ostream& os, vtkIndent indent );
40 
41  vtkSetMRMLNodeArgumentAsStringMacro( FixedVolumeNodeId, fixedImage )
42  vtkSetMRMLNodeArgumentAsStringMacro( MovingVolumeNodeId, movingImage )
43  vtkSetMRMLNodeArgumentAsStringMacro( ResampledVolumeNodeId, resampledImage )
44 
45  vtkGetMRMLNodeArgumentAsStringMacro( FixedVolumeNodeId, fixedImage )
46  vtkGetMRMLNodeArgumentAsStringMacro( MovingVolumeNodeId, movingImage )
47  vtkGetMRMLNodeArgumentAsStringMacro( ResampledVolumeNodeId, resampledImage )
48 
49  vtkSetMRMLNodeArgumentAsStringMacro( Registration, registration );
50 
51  vtkSetMRMLNodeArgumentAsStringMacro( Initialization, initialization );
52 
53  vtkSetMRMLNodeArgumentAsStringMacro( Interpolation, interpolation );
54 
55  vtkSetMRMLNodeArgumentAsStringMacro( LoadTransform, loadTransform );
56 
57  vtkSetMRMLNodeArgumentAsStringMacro( SaveTransform, saveTransform );
58 
59  vtkSetMRMLNodeArgumentAsStringMacro( RegionOfInterest, regionOfInterest );
60 
61  void SetLandmarks( const std::vector<std::vector<float> > & fixed, const std::vector<std::vector<float> > & moving );
62 
63  int AddLandmark( const std::vector<float> & fixed, const std::vector<float> & moving );
64 
67  void SetLandmark( int landmark, const std::vector<float> & fixed, const std::vector<float> & moving );
68 
69  void RemoveLandmark( int landmark );
70 
71 protected:
72  vtkSetMRMLNodeArgumentAsStringMacro( FixedLandmarks, fixedLandmarks );
73  vtkSetMRMLNodeArgumentAsStringMacro( MovingLandmarks, movingLandmarks );
74 
76  virtual ~RegisterImagesModuleLogic( void );
78  void operator=( const RegisterImagesModuleLogic & );
79 
80  // Derived to modified the output node
81  void ApplyTask( void *clientdata );
82 
83  std::vector<std::vector<float> > m_FixedLandmarks;
84  std::vector<std::vector<float> > m_MovingLandmarks;
85 };
86 
87 #endif
std::vector< std::vector< float > > m_MovingLandmarks
std::vector< std::vector< float > > m_FixedLandmarks