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 =========================================================================*/
31 #ifndef __vtkTemporalSnapToTimeStep_h
32 #define __vtkTemporalSnapToTimeStep_h
33 
35 
36 //BTX
37 #include <vtkstd/vector> // used because I am a bad boy. So there.
38 //ETX
39 
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
47 //BTX
48  enum {
49  VTK_SNAP_NEAREST=0,
51  VTK_SNAP_NEXTABOVE_OR_EQUAL
52  };
53 //ETX
54  vtkSetMacro(SnapMode,int);
55  vtkGetMacro(SnapMode,int);
56  void SetSnapModeToNearest() { this->SetSnapMode(VTK_SNAP_NEAREST); }
57  void SetSnapModeToNextBelowOrEqual() { this->SetSnapMode(VTK_SNAP_NEXTBELOW_OR_EQUAL); }
58  void SetSnapModeToNextAboveOrEqual() { this->SetSnapMode(VTK_SNAP_NEXTABOVE_OR_EQUAL); }
59 
60 protected:
63 
64  virtual int RequestUpdateExtent (vtkInformation *,
67  virtual int RequestInformation (vtkInformation *,
70 
71  virtual int RequestData(vtkInformation *,
74 
75 //BTX
76  vtkstd::vector<double> InputTimeValues;
78  int SnapMode;
79 //ETX
80 
81 private:
82  vtkTemporalSnapToTimeStep(const vtkTemporalSnapToTimeStep&); // Not implemented.
83  void operator=(const vtkTemporalSnapToTimeStep&); // Not implemented.
84 };
85 
86 
87 
88 #endif
89 
90 
91