VTK  9.2.6
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  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
41  static QDateTime TimePointToQDateTime(vtkTypeUInt64 time);
42  static vtkTypeUInt64 QDateTimeToTimePoint(QDateTime time);
43  static vtkTypeUInt64 QDateToTimePoint(QDate date);
44  static vtkTypeUInt64 QTimeToTimePoint(QTime time);
45 
46 protected:
47  vtkQtTimePointUtility() = default;
48  ~vtkQtTimePointUtility() override = default;
49 
50 private:
52  void operator=(const vtkQtTimePointUtility&) = delete;
53 };
54 
55 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
performs common time operations