VTK
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
39#include "vtkAlgorithm.h"
40
41#include <vector> // used because I am a bad boy. So there.
42
43class VTKFILTERSHYBRID_EXPORT vtkTemporalSnapToTimeStep : public vtkAlgorithm
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent);
49
50 enum {
51 VTK_SNAP_NEAREST=0,
53 VTK_SNAP_NEXTABOVE_OR_EQUAL
54 };
55
56 vtkSetMacro(SnapMode,int);
57 vtkGetMacro(SnapMode,int);
58 void SetSnapModeToNearest() { this->SetSnapMode(VTK_SNAP_NEAREST); }
59 void SetSnapModeToNextBelowOrEqual() { this->SetSnapMode(VTK_SNAP_NEXTBELOW_OR_EQUAL); }
60 void SetSnapModeToNextAboveOrEqual() { this->SetSnapMode(VTK_SNAP_NEXTABOVE_OR_EQUAL); }
61
62protected:
65
69 virtual int ProcessRequest(vtkInformation* request,
70 vtkInformationVector** inputVector,
71 vtkInformationVector* outputVector);
72
74 virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info);
75
82
86
87 std::vector<double> InputTimeValues;
90
91private:
92 vtkTemporalSnapToTimeStep(const vtkTemporalSnapToTimeStep&) VTK_DELETE_FUNCTION;
93 void operator=(const vtkTemporalSnapToTimeStep&) VTK_DELETE_FUNCTION;
94};
95
96
97
98#endif
99
100
101
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
modify the time range/steps of temporal data
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info)
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
see vtkAlgorithm for details
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkTemporalSnapToTimeStep * New()
std::vector< double > InputTimeValues
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.