VTK
9.2.6
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
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
#include "vtkImagingCoreModule.h"
// For export macro
36
#include "
vtkThreadedImageAlgorithm.h
"
37
38
class
VTKIMAGINGCORE_EXPORT
vtkImageExtractComponents
:
public
vtkThreadedImageAlgorithm
39
{
40
public
:
41
static
vtkImageExtractComponents
*
New
();
42
vtkTypeMacro(
vtkImageExtractComponents
,
vtkThreadedImageAlgorithm
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
44
46
49
void
SetComponents
(
int
c1);
50
void
SetComponents
(
int
c1,
int
c2);
51
void
SetComponents
(
int
c1,
int
c2,
int
c3);
52
vtkGetVector3Macro(Components,
int
);
54
56
60
vtkGetMacro(NumberOfComponents,
int
);
62
63
protected
:
64
vtkImageExtractComponents
();
65
~vtkImageExtractComponents
()
override
=
default
;
66
67
int
NumberOfComponents
;
68
int
Components[3];
69
70
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
71
72
void
ThreadedExecute
(
vtkImageData
* inData,
vtkImageData
* outData,
int
ext[6],
int
id
)
override
;
73
74
private
:
75
vtkImageExtractComponents
(
const
vtkImageExtractComponents
&) =
delete
;
76
void
operator=(
const
vtkImageExtractComponents
&) =
delete
;
77
};
78
79
#endif
vtkImageData
topologically and geometrically regular array of data
Definition
vtkImageData.h:54
vtkImageExtractComponents
Outputs a single component.
Definition
vtkImageExtractComponents.h:39
vtkImageExtractComponents::SetComponents
void SetComponents(int c1, int c2, int c3)
Set/Get the components to extract.
vtkImageExtractComponents::~vtkImageExtractComponents
~vtkImageExtractComponents() override=default
vtkImageExtractComponents::SetComponents
void SetComponents(int c1, int c2)
Set/Get the components to extract.
vtkImageExtractComponents::vtkImageExtractComponents
vtkImageExtractComponents()
vtkImageExtractComponents::NumberOfComponents
int NumberOfComponents
Definition
vtkImageExtractComponents.h:67
vtkImageExtractComponents::ThreadedExecute
void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int ext[6], int id) override
vtkImageExtractComponents::SetComponents
void SetComponents(int c1)
Set/Get the components to extract.
vtkImageExtractComponents::New
static vtkImageExtractComponents * New()
vtkImageExtractComponents::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageExtractComponents::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition
vtkInformationVector.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition
vtkInformation.h:74
vtkThreadedImageAlgorithm
Generic filter that has one input.
Definition
vtkThreadedImageAlgorithm.h:45
vtkThreadedImageAlgorithm.h
Generated on Tue Oct 8 2024 00:00:00 for VTK by
1.12.0