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 
vtkTemporalSnapToTimeStep::SnapMode
int SnapMode
Definition: vtkTemporalSnapToTimeStep.h:89
vtkTemporalSnapToTimeStep::SetSnapModeToNextAboveOrEqual
void SetSnapModeToNextAboveOrEqual()
Definition: vtkTemporalSnapToTimeStep.h:60
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTemporalSnapToTimeStep::InputTimeValues
std::vector< double > InputTimeValues
Definition: vtkTemporalSnapToTimeStep.h:87
vtkTemporalSnapToTimeStep::SetSnapModeToNextBelowOrEqual
void SetSnapModeToNextBelowOrEqual()
Definition: vtkTemporalSnapToTimeStep.h:59
vtkAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTemporalSnapToTimeStep::SetSnapModeToNearest
void SetSnapModeToNearest()
Definition: vtkTemporalSnapToTimeStep.h:58
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTemporalSnapToTimeStep::VTK_SNAP_NEXTBELOW_OR_EQUAL
Definition: vtkTemporalSnapToTimeStep.h:52
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkTemporalSnapToTimeStep::HasDiscrete
int HasDiscrete
Definition: vtkTemporalSnapToTimeStep.h:88
vtkTemporalSnapToTimeStep
modify the time range/steps of temporal data
Definition: vtkTemporalSnapToTimeStep.h:43