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 -------------------------------------------------------------------------*/
31 #ifndef vtkQtTimePointUtility_h
32 #define vtkQtTimePointUtility_h
33 
34 #include "vtkGUISupportQtSQLModule.h" // For export macro
35 #include "vtkObject.h"
36 #include <QDateTime> // Needed for method return types
37 
38 class VTKGUISUPPORTQTSQL_EXPORT vtkQtTimePointUtility : public vtkObject
39 {
40 public:
42 
43  static QDateTime TimePointToQDateTime(vtkTypeUInt64 time);
44  static vtkTypeUInt64 QDateTimeToTimePoint(QDateTime time);
45  static vtkTypeUInt64 QDateToTimePoint(QDate date);
46  static vtkTypeUInt64 QTimeToTimePoint(QTime time);
47 
48 protected:
51 
52 private:
53  vtkQtTimePointUtility(const vtkQtTimePointUtility&) VTK_DELETE_FUNCTION;
54  void operator=(const vtkQtTimePointUtility&) VTK_DELETE_FUNCTION;
55 };
56 
57 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
performs common time operations