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