VTK  9.1.0
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
35class VTKGUISUPPORTQTSQL_EXPORT vtkQtTimePointUtility : public vtkObject
36{
37public:
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
46protected:
48 ~vtkQtTimePointUtility() override = default;
49
50private:
52 void operator=(const vtkQtTimePointUtility&) = delete;
53};
54
55#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
performs common time operations
~vtkQtTimePointUtility() override=default
static vtkTypeUInt64 QDateTimeToTimePoint(QDateTime time)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkQtTimePointUtility()=default
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