Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkSlicerDijkstraGraphGeodesicPath.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4  Queen's University, Kingston, ON, Canada. All Rights Reserved.
5 
6  See COPYRIGHT.txt
7  or http://www.slicer.org/copyright/copyright.txt for details.
8 
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14 
15  This file was originally developed by Kyle Sunderland, PerkLab, Queen's University
16  and was supported through CANARIE's Research Software Program, Cancer
17  Care Ontario, OpenAnatomy, and Brigham and Women's Hospital through NIH grant R01MH112748.
18 
19 ==============================================================================*/
20 
21 #ifndef __vtkSlicerDijkstraGraphGeodesicPath_h
22 #define __vtkSlicerDijkstraGraphGeodesicPath_h
23 
24 // VTK includes
25 #include <vtkDijkstraGraphGeodesicPath.h>
26 
27 // export
28 #include "vtkSlicerMarkupsModuleMRMLExport.h"
29 
31 class VTK_SLICER_MARKUPS_MODULE_MRML_EXPORT vtkSlicerDijkstraGraphGeodesicPath : public vtkDijkstraGraphGeodesicPath
32 {
33 public:
34  vtkTypeMacro(vtkSlicerDijkstraGraphGeodesicPath, vtkDijkstraGraphGeodesicPath);
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
44  enum
45  {
51  };
52  static const char* GetCostFunctionTypeAsString(int costFunctionType);
53  static int GetCostFunctionTypeFromString(const char* costFunctionType);
54  vtkSetMacro(CostFunctionType, int);
55  vtkGetMacro(CostFunctionType, int);
56 
57 protected:
59  int RequestData(vtkInformation*, vtkInformationVector**,
60  vtkInformationVector*) override;
61 
65  double CalculateStaticEdgeCost(vtkDataSet* inData, vtkIdType u, vtkIdType v) override;
66 
70 
71 protected:
75  void operator=(const vtkSlicerDijkstraGraphGeodesicPath&) = delete;
76 };
77 
78 #endif
Filter that generates curves between points of an input polydata.