VTK
9.0.1
Filters
Core
vtkMaskPolyData.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMaskPolyData.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
=========================================================================*/
27
#ifndef vtkMaskPolyData_h
28
#define vtkMaskPolyData_h
29
30
#include "vtkFiltersCoreModule.h"
// For export macro
31
#include "
vtkPolyDataAlgorithm.h
"
32
33
class
VTKFILTERSCORE_EXPORT
vtkMaskPolyData
:
public
vtkPolyDataAlgorithm
34
{
35
public
:
36
static
vtkMaskPolyData
*
New
();
37
vtkTypeMacro(
vtkMaskPolyData
,
vtkPolyDataAlgorithm
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
39
41
44
vtkSetClampMacro(OnRatio,
int
, 1,
VTK_INT_MAX
);
45
vtkGetMacro(OnRatio,
int
);
47
49
52
vtkSetClampMacro(Offset,
vtkIdType
, 0,
VTK_ID_MAX
);
53
vtkGetMacro(Offset,
vtkIdType
);
55
56
protected
:
57
vtkMaskPolyData
();
58
~vtkMaskPolyData
()
override
{}
59
60
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
61
int
OnRatio
;
// every OnRatio entity is on; all others are off.
62
vtkIdType
Offset
;
// offset (or starting point id)
63
64
private
:
65
vtkMaskPolyData
(
const
vtkMaskPolyData
&) =
delete
;
66
void
operator=(
const
vtkMaskPolyData
&) =
delete
;
67
};
68
69
#endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition:
vtkType.h:155
vtkMaskPolyData
sample subset of input polygonal data cells
Definition:
vtkMaskPolyData.h:33
vtkIdType
int vtkIdType
Definition:
vtkType.h:338
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkMaskPolyData::~vtkMaskPolyData
~vtkMaskPolyData() override
Definition:
vtkMaskPolyData.h:58
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:73
vtkMaskPolyData::OnRatio
int OnRatio
Definition:
vtkMaskPolyData.h:61
VTK_ID_MAX
#define VTK_ID_MAX
Definition:
vtkType.h:342
vtkMaskPolyData::Offset
vtkIdType Offset
Definition:
vtkMaskPolyData.h:62
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition:
vtkPolyDataAlgorithm.h:41
Generated on Thu Jun 25 2020 08:30:37 for VTK by
1.8.17