VTK
vtkImageExtractComponents.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkImageExtractComponents.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://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=========================================================================*/
32#ifndef vtkImageExtractComponents_h
33#define vtkImageExtractComponents_h
34
35
36#include "vtkImagingCoreModule.h" // For export macro
38
39class VTKIMAGINGCORE_EXPORT vtkImageExtractComponents : public vtkThreadedImageAlgorithm
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent);
45
47
50 void SetComponents(int c1);
51 void SetComponents(int c1, int c2);
52 void SetComponents(int c1, int c2, int c3);
53 vtkGetVector3Macro(Components,int);
55
57
61 vtkGetMacro(NumberOfComponents,int);
63
64protected:
67
69 int Components[3];
70
73
74 void ThreadedExecute (vtkImageData *inData, vtkImageData *outData,
75 int ext[6], int id);
76private:
77 vtkImageExtractComponents(const vtkImageExtractComponents&) VTK_DELETE_FUNCTION;
78 void operator=(const vtkImageExtractComponents&) VTK_DELETE_FUNCTION;
79};
80
81#endif
82
83
84
85
86
87
88
89
90
91
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
Outputs a single component.
void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int ext[6], int id)
void SetComponents(int c1, int c2, int c3)
void SetComponents(int c1, int c2)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetComponents(int c1)
Set/Get the components to extract.
static vtkImageExtractComponents * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Generic filter that has one input.