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 
43 class VTKFILTERSHYBRID_EXPORT vtkTemporalSnapToTimeStep : public vtkAlgorithm
44 {
45 public:
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 
62 protected:
65 
69  virtual int ProcessRequest(vtkInformation* request,
70  vtkInformationVector** inputVector,
71  vtkInformationVector* outputVector);
72 
74  virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info);
75 
76  virtual int RequestUpdateExtent (vtkInformation *,
79  virtual int RequestInformation (vtkInformation *,
82 
83  virtual int RequestData(vtkInformation *,
86 
87  std::vector<double> InputTimeValues;
89  int SnapMode;
90 
91 private:
92  vtkTemporalSnapToTimeStep(const vtkTemporalSnapToTimeStep&) VTK_DELETE_FUNCTION;
93  void operator=(const vtkTemporalSnapToTimeStep&) VTK_DELETE_FUNCTION;
94 };
95 
96 
97 
98 #endif
99 
100 
101 
Store vtkAlgorithm input/output information.
modify the time range/steps of temporal data
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
std::vector< double > InputTimeValues
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()