Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkClosedSurfaceToFractionalLabelmapConversionRule.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 the Applied Cancer Research Unit program of Cancer Care
17  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
18 
19 ==============================================================================*/
20 
21 #ifndef __vtkClosedSurfaceToFractionalLabelmapConversionRule_h
22 #define __vtkClosedSurfaceToFractionalLabelmapConversionRule_h
23 
24 // SegmentationCore includes
27 #include <vtkSegmentationCoreConfigure.h>
29 
30 // DicomRtImportExport includes
31 #include "vtkSegmentationCoreConfigure.h"
32 
33 // VTK includes
34 #include <vtkPolyDataToImageStencil.h>
35 
36 class vtkPolyData;
37 
44 {
45 
46 public:
49  virtual vtkSegmentationConverterRule* CreateRuleInstance() VTK_OVERRIDE;
50 
54  virtual vtkDataObject* ConstructRepresentationObjectByRepresentation(std::string representationName) VTK_OVERRIDE;
55 
59  virtual vtkDataObject* ConstructRepresentationObjectByClass(std::string className) VTK_OVERRIDE;
60 
62  virtual bool Convert(vtkDataObject* sourceRepresentation, vtkDataObject* targetRepresentation) VTK_OVERRIDE;
63 
65  virtual unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=NULL, vtkDataObject* targetRepresentation=NULL) VTK_OVERRIDE;
66 
68  virtual const char* GetName() VTK_OVERRIDE { return "Closed surface to fractional labelmap (simple image stencil)"; };
69 
72 
75 
76 protected:
77  // Oversampling factor that will be used to calculate the size of the binary labelmap
78  int NumberOfOffsets;
79 
80 protected:
84 };
85 
86 #endif // __vtkClosedSurfaceToFractionalLabelmapConversionRule_h
virtual const char * GetTargetRepresentationName() VTK_OVERRIDE
Human-readable name of the target representation.
virtual vtkSegmentationConverterRule * CreateRuleInstance() VTK_OVERRIDE
static vtkClosedSurfaceToBinaryLabelmapConversionRule * New()
void operator=(const vtkClosedSurfaceToBinaryLabelmapConversionRule &)
LRU Cache.
Abstract converter rule class. Subclasses perform conversions between specific representation types...
Convert closed surface representation (vtkPolyData type) to binary labelmap representation (vtkOrient...
static const char * GetSegmentationClosedSurfaceRepresentationName()
static const char * GetSegmentationFractionalLabelmapRepresentationName()
virtual const char * GetSourceRepresentationName() VTK_OVERRIDE
Human-readable name of the source representation.
Convert closed surface representation (vtkPolyData type) to fractional labelmap representation (vtkOr...