VTK
dox
opt
build
vtk6-6.3.0+dfsg2
GUISupport
QtSQL
vtkQtTimePointUtility.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtTimePointUtility.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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
30
#ifndef vtkQtTimePointUtility_h
31
#define vtkQtTimePointUtility_h
32
33
#include "
vtkGUISupportQtSQLModule.h
"
34
#include "
vtkObject.h
"
35
#include <QDateTime>
36
37
class
VTKGUISUPPORTQTSQL_EXPORT
vtkQtTimePointUtility
:
public
vtkObject
38
{
39
public
:
40
vtkTypeMacro
(
vtkQtTimePointUtility
,
vtkObject
);
41
42
static
QDateTime
TimePointToQDateTime
(vtkTypeUInt64
time
);
43
static
vtkTypeUInt64
QDateTimeToTimePoint
(QDateTime
time
);
44
static
vtkTypeUInt64
QDateToTimePoint
(QDate
date
);
45
static
vtkTypeUInt64
QTimeToTimePoint
(QTime
time
);
46
47
protected
:
48
vtkQtTimePointUtility
() {}
49
~vtkQtTimePointUtility
() {}
50
51
private
:
52
vtkQtTimePointUtility
(
const
vtkQtTimePointUtility
&);
// Not implemented.
53
void
operator=(
const
vtkQtTimePointUtility
&);
// Not implemented.
54
};
55
56
#endif
vtkQtTimePointUtility::QDateTimeToTimePoint
static vtkTypeUInt64 QDateTimeToTimePoint(QDateTime time)
vtkQtTimePointUtility
performs common time operations
Definition:
vtkQtTimePointUtility.h:38
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkX3D::time
@ time
Definition:
vtkX3D.h:497
vtkQtTimePointUtility::TimePointToQDateTime
static QDateTime TimePointToQDateTime(vtkTypeUInt64 time)
VTKGUISUPPORTQTSQL_EXPORT
#define VTKGUISUPPORTQTSQL_EXPORT
Definition:
vtkGUISupportQtSQLModule.h:15
vtkQtTimePointUtility::~vtkQtTimePointUtility
~vtkQtTimePointUtility()
Definition:
vtkQtTimePointUtility.h:49
vtkObject.h
vtkQtTimePointUtility::QDateToTimePoint
static vtkTypeUInt64 QDateToTimePoint(QDate date)
vtkQtTimePointUtility::vtkQtTimePointUtility
vtkQtTimePointUtility()
Definition:
vtkQtTimePointUtility.h:48
vtkGUISupportQtSQLModule.h
vtkX3D::date
@ date
Definition:
vtkX3D.h:319
vtkQtTimePointUtility::QTimeToTimePoint
static vtkTypeUInt64 QTimeToTimePoint(QTime time)
Generated by
1.8.20