VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Hybrid
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
34
#include "
vtkTemporalDataSetAlgorithm.h
"
35
36
//BTX
37
#include <vtkstd/vector>
// used because I am a bad boy. So there.
38
//ETX
39
40
class
VTK_HYBRID_EXPORT
vtkTemporalSnapToTimeStep
:
public
vtkTemporalDataSetAlgorithm
41
{
42
public
:
43
static
vtkTemporalSnapToTimeStep
*
New
();
44
vtkTypeMacro(
vtkTemporalSnapToTimeStep
,
vtkTemporalDataSetAlgorithm
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
47
//BTX
48
enum
{
49
VTK_SNAP_NEAREST=0,
50
VTK_SNAP_NEXTBELOW_OR_EQUAL
,
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
:
61
vtkTemporalSnapToTimeStep
();
62
~
vtkTemporalSnapToTimeStep
();
63
64
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
65
vtkInformationVector
**,
66
vtkInformationVector
*);
67
virtual
int
RequestInformation
(
vtkInformation
*,
68
vtkInformationVector
**,
69
vtkInformationVector
*);
70
71
virtual
int
RequestData
(
vtkInformation
*,
72
vtkInformationVector
**,
73
vtkInformationVector
*);
74
75
//BTX
76
vtkstd::vector<double>
InputTimeValues
;
77
int
HasDiscrete
;
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
Generated on Wed Nov 21 2012 21:33:56 for VTK by
1.8.2