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 =========================================================================*/
34 #ifndef vtkTemporalSnapToTimeStep_h
35 #define vtkTemporalSnapToTimeStep_h
36 
37 #include "vtkFiltersHybridModule.h" // For export macro
38 #include "vtkAlgorithm.h"
39 
40 //BTX
41 #include <vector> // used because I am a bad boy. So there.
42 //ETX
43 
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
51 //BTX
52  enum {
53  VTK_SNAP_NEAREST=0,
55  VTK_SNAP_NEXTABOVE_OR_EQUAL
56  };
57 //ETX
58  vtkSetMacro(SnapMode,int);
59  vtkGetMacro(SnapMode,int);
60  void SetSnapModeToNearest() { this->SetSnapMode(VTK_SNAP_NEAREST); }
61  void SetSnapModeToNextBelowOrEqual() { this->SetSnapMode(VTK_SNAP_NEXTBELOW_OR_EQUAL); }
62  void SetSnapModeToNextAboveOrEqual() { this->SetSnapMode(VTK_SNAP_NEXTABOVE_OR_EQUAL); }
63 
64 protected:
67 
69 
70  virtual int ProcessRequest(vtkInformation* request,
71  vtkInformationVector** inputVector,
72  vtkInformationVector* outputVector);
74 
76  virtual int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info);
77 
78  virtual int RequestUpdateExtent (vtkInformation *,
81  virtual int RequestInformation (vtkInformation *,
84 
85  virtual int RequestData(vtkInformation *,
88 
89 //BTX
90  std::vector<double> InputTimeValues;
92  int SnapMode;
93 //ETX
94 
95 private:
96  vtkTemporalSnapToTimeStep(const vtkTemporalSnapToTimeStep&); // Not implemented.
97  void operator=(const vtkTemporalSnapToTimeStep&); // Not implemented.
98 };
99 
100 
101 
102 #endif
103 
104 
105 
Store vtkAlgorithm input/output information.
modify the time range/steps of temporal data
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSHYBRID_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
std::vector< double > InputTimeValues
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)