VTK
dox
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
=========================================================================*/
30
#ifndef vtkMaskPolyData_h
31
#define vtkMaskPolyData_h
32
33
#include "vtkFiltersCoreModule.h"
// For export macro
34
#include "
vtkPolyDataAlgorithm.h
"
35
36
class
VTKFILTERSCORE_EXPORT
vtkMaskPolyData
:
public
vtkPolyDataAlgorithm
37
{
38
public
:
39
static
vtkMaskPolyData
*
New
();
40
vtkTypeMacro(
vtkMaskPolyData
,
vtkPolyDataAlgorithm
);
41
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
42
44
47
vtkSetClampMacro(OnRatio,
int
,1,
VTK_INT_MAX
);
48
vtkGetMacro(OnRatio,
int
);
50
52
55
vtkSetClampMacro(Offset,
vtkIdType
,0,
VTK_ID_MAX
);
56
vtkGetMacro(Offset,
vtkIdType
);
58
59
protected
:
60
vtkMaskPolyData
();
61
~vtkMaskPolyData
()
override
{}
62
63
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
64
int
OnRatio
;
// every OnRatio entity is on; all others are off.
65
vtkIdType
Offset
;
// offset (or starting point id)
66
67
private
:
68
vtkMaskPolyData
(
const
vtkMaskPolyData
&) =
delete
;
69
void
operator=(
const
vtkMaskPolyData
&) =
delete
;
70
};
71
72
#endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition:
vtkType.h:159
vtkMaskPolyData
sample subset of input polygonal data cells
Definition:
vtkMaskPolyData.h:36
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:41
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:61
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:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:86
vtkMaskPolyData::OnRatio
int OnRatio
Definition:
vtkMaskPolyData.h:64
VTK_ID_MAX
#define VTK_ID_MAX
Definition:
vtkType.h:351
vtkMaskPolyData::Offset
vtkIdType Offset
Definition:
vtkMaskPolyData.h:65
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition:
vtkPolyDataAlgorithm.h:44
Generated by
1.8.16