VTK
dox
Filters
Extraction
vtkExtractTimeSteps.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkExtractTimeSteps.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
=========================================================================*/
29
#ifndef vtkExtractTimeSteps_h
30
#define vtkExtractTimeSteps_h
31
32
#include "vtkFiltersExtractionModule.h"
// for export macro
33
#include "
vtkPassInputTypeAlgorithm.h
"
34
35
#include <set>
// for time step indices
36
37
38
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractTimeSteps
:
public
vtkPassInputTypeAlgorithm
39
{
40
public
:
41
vtkTypeMacro(
vtkExtractTimeSteps
,
vtkPassInputTypeAlgorithm
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
44
static
vtkExtractTimeSteps
*
New
();
45
49
int
GetNumberOfTimeSteps
()
const
50
{
51
return
static_cast<
int
>
(this->TimeStepIndices.size());
52
}
53
57
void
AddTimeStepIndex
(
int
timeStepIndex);
58
60
64
void
SetTimeStepIndices
(
int
count,
const
int
*timeStepIndices);
65
void
GetTimeStepIndices
(
int
*timeStepIndices)
const
;
67
71
void
GenerateTimeStepIndices
(
int
begin,
int
end,
int
step);
72
74
77
void
ClearTimeStepIndices
()
78
{
79
this->TimeStepIndices.clear();
80
this->
Modified
();
81
}
83
84
protected
:
85
vtkExtractTimeSteps
() {};
86
~vtkExtractTimeSteps
() {};
87
88
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
89
vtkInformationVector
*);
90
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
91
vtkInformationVector
*);
92
93
std::set<int>
TimeStepIndices
;
94
95
private
:
96
vtkExtractTimeSteps
(
const
vtkExtractTimeSteps
&) VTK_DELETE_FUNCTION;
97
void
operator=(
const
vtkExtractTimeSteps
&) VTK_DELETE_FUNCTION;
98
};
99
100
#endif // vtkExtractTimeSteps_h
vtkExtractTimeSteps::SetTimeStepIndices
void SetTimeStepIndices(int count, const int *timeStepIndices)
Get/Set an array of time step indices.
vtkExtractTimeSteps
extract specific time-steps from dataset
Definition:
vtkExtractTimeSteps.h:39
vtkPassInputTypeAlgorithm.h
vtkExtractTimeSteps::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkExtractTimeSteps::~vtkExtractTimeSteps
~vtkExtractTimeSteps()
Definition:
vtkExtractTimeSteps.h:86
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:42
vtkObject::Modified
virtual void Modified()
Update the modification time for this object.
vtkExtractTimeSteps::AddTimeStepIndex
void AddTimeStepIndex(int timeStepIndex)
Add a time step index.
vtkExtractTimeSteps::vtkExtractTimeSteps
vtkExtractTimeSteps()
Definition:
vtkExtractTimeSteps.h:85
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkExtractTimeSteps::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkExtractTimeSteps::New
static vtkExtractTimeSteps * New()
vtkExtractTimeSteps::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
vtkExtractTimeSteps::GenerateTimeStepIndices
void GenerateTimeStepIndices(int begin, int end, int step)
Generate a range of indices in [begin, end) with a step size of 'step'.
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:87
vtkExtractTimeSteps::GetTimeStepIndices
void GetTimeStepIndices(int *timeStepIndices) const
vtkExtractTimeSteps::TimeStepIndices
std::set< int > TimeStepIndices
Definition:
vtkExtractTimeSteps.h:93
vtkExtractTimeSteps::ClearTimeStepIndices
void ClearTimeStepIndices()
Clear the time step indices.
Definition:
vtkExtractTimeSteps.h:77
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition:
vtkPassInputTypeAlgorithm.h:51
vtkExtractTimeSteps::GetNumberOfTimeSteps
int GetNumberOfTimeSteps() const
Get the number of time steps that will be extracted.
Definition:
vtkExtractTimeSteps.h:49
Generated by
1.8.20