Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkImageLabelCombine.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkImageLabelCombine.h,v $
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or https://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15
16#ifndef __vtkImageLabelCombine_h
17#define __vtkImageLabelCombine_h
18
19#include <vtkVersion.h>
20
21#include "vtkTeemConfigure.h"
22
23#include "vtkThreadedImageAlgorithm.h"
24
30class VTK_Teem_EXPORT vtkImageLabelCombine : public vtkThreadedImageAlgorithm
31{
32public:
34 vtkTypeMacro(vtkImageLabelCombine, vtkThreadedImageAlgorithm);
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
39 vtkSetMacro(OverwriteInput, int);
40 vtkGetMacro(OverwriteInput, int);
41
44 virtual void SetInput1(vtkDataObject* in) { this->SetInputData(0, in); }
45 virtual void SetInput2(vtkDataObject* in) { this->SetInputData(1, in); }
46
47protected:
49 ~vtkImageLabelCombine() override = default;
50
52
53 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
54
55 void ThreadedRequestData(vtkInformation* request,
56 vtkInformationVector** inputVector,
57 vtkInformationVector* outputVector,
58 vtkImageData*** inData,
59 vtkImageData** outData,
60 int extent[6],
61 int threadId) override;
62
63 int FillInputPortInformation(int port, vtkInformation* info) override;
64
65private:
67 void operator=(const vtkImageLabelCombine&) = delete;
68};
69
70#endif
virtual void SetInput1(vtkDataObject *in)
Set the two inputs to this filter.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int FillInputPortInformation(int port, vtkInformation *info) override
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void SetInput2(vtkDataObject *in)
~vtkImageLabelCombine() override=default
void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId) override
static vtkImageLabelCombine * New()