• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/GUISupport/Qt/vtkQtTimePointUtility.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkQtTimePointUtility.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00027 #ifndef __vtkQtTimePointUtility_h
00028 #define __vtkQtTimePointUtility_h
00029 
00030 #include "QVTKWin32Header.h"
00031 #include "vtkObject.h"
00032 #include <QDateTime>
00033 
00034 class QVTK_EXPORT vtkQtTimePointUtility : public vtkObject
00035 {
00036 public:
00037   vtkTypeRevisionMacro(vtkQtTimePointUtility,vtkObject);
00038 
00039   static QDateTime TimePointToQDateTime(vtkTypeUInt64 time);
00040   static vtkTypeUInt64 QDateTimeToTimePoint(QDateTime time);  
00041   static vtkTypeUInt64 QDateToTimePoint(QDate date);  
00042   static vtkTypeUInt64 QTimeToTimePoint(QTime time);  
00043 
00044 protected:
00045   vtkQtTimePointUtility() {};
00046   ~vtkQtTimePointUtility() {};
00047 
00048 private:
00049   vtkQtTimePointUtility(const vtkQtTimePointUtility&);  // Not implemented.
00050   void operator=(const vtkQtTimePointUtility&);  // Not implemented.
00051 };
00052 
00053 #endif

Generated by  doxygen 1.7.1