VTK
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:
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:
50 
51 private:
52  vtkQtTimePointUtility(const vtkQtTimePointUtility&); // Not implemented.
53  void operator=(const vtkQtTimePointUtility&); // Not implemented.
54 };
55 
56 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
performs common time operations