VTK
dox
Imaging
Core
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
37
#include "
vtkThreadedImageAlgorithm.h
"
38
39
class
VTKIMAGINGCORE_EXPORT
vtkImageExtractComponents
:
public
vtkThreadedImageAlgorithm
40
{
41
public
:
42
static
vtkImageExtractComponents
*
New
();
43
vtkTypeMacro(
vtkImageExtractComponents
,
vtkThreadedImageAlgorithm
);
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
64
protected
:
65
vtkImageExtractComponents
();
66
~vtkImageExtractComponents
() {}
67
68
int
NumberOfComponents
;
69
int
Components[3];
70
71
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
72
vtkInformationVector
*);
73
74
void
ThreadedExecute
(
vtkImageData
*inData,
vtkImageData
*outData,
75
int
ext[6],
int
id
);
76
private
:
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
vtkImageExtractComponents::~vtkImageExtractComponents
~vtkImageExtractComponents()
Definition:
vtkImageExtractComponents.h:66
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:42
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition:
vtkThreadedImageAlgorithm.h:44
vtkThreadedImageAlgorithm.h
vtkImageExtractComponents::SetComponents
void SetComponents(int c1, int c2)
vtkImageExtractComponents::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageExtractComponents::NumberOfComponents
int NumberOfComponents
Definition:
vtkImageExtractComponents.h:68
vtkImageExtractComponents::New
static vtkImageExtractComponents * New()
vtkImageExtractComponents::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageExtractComponents
Outputs a single component.
Definition:
vtkImageExtractComponents.h:40
vtkImageExtractComponents::ThreadedExecute
void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int ext[6], int id)
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:87
vtkImageExtractComponents::SetComponents
void SetComponents(int c1, int c2, int c3)
vtkImageExtractComponents::vtkImageExtractComponents
vtkImageExtractComponents()
vtkImageExtractComponents::SetComponents
void SetComponents(int c1)
Set/Get the components to extract.
Generated by
1.8.20