VTK  9.2.6
vtkTemporalSnapToTimeStep.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkTemporalSnapToTimeStep.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=========================================================================*/
35#ifndef vtkTemporalSnapToTimeStep_h
36#define vtkTemporalSnapToTimeStep_h
37
38#include "vtkFiltersHybridModule.h" // For export macro
40
41#include <vector> // used because I am a bad boy. So there.
42
43class VTKFILTERSHYBRID_EXPORT vtkTemporalSnapToTimeStep : public vtkPassInputTypeAlgorithm
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
50 enum
51 {
52 VTK_SNAP_NEAREST = 0,
54 VTK_SNAP_NEXTABOVE_OR_EQUAL
55 };
56
57 vtkSetMacro(SnapMode, int);
58 vtkGetMacro(SnapMode, int);
59 void SetSnapModeToNearest() { this->SetSnapMode(VTK_SNAP_NEAREST); }
60 void SetSnapModeToNextBelowOrEqual() { this->SetSnapMode(VTK_SNAP_NEXTBELOW_OR_EQUAL); }
61 void SetSnapModeToNextAboveOrEqual() { this->SetSnapMode(VTK_SNAP_NEXTABOVE_OR_EQUAL); }
62
63protected:
66
71 vtkInformationVector* outputVector) override;
72
74 vtkInformationVector* outputVector) override;
75
77 vtkInformationVector* outputVector) override;
78
79 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
80 vtkInformationVector* outputVector) override;
81
82 std::vector<double> InputTimeValues;
85
86private:
88 void operator=(const vtkTemporalSnapToTimeStep&) = delete;
89};
90
91#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
modify the time range/steps of temporal data
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
~vtkTemporalSnapToTimeStep() override
static vtkTemporalSnapToTimeStep * New()
std::vector< double > InputTimeValues
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks for Information.
int vtkTypeBool
Definition: vtkABI.h:69