Loading...
Searching...
No Matches
qwt_point_3d.cpp
/******************************************************************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
#include "qwt_point_3d.h"
#if QT_VERSION >= 0x050200
static QwtPoint3D qwtPointToPoint3D( const QPointF& point )
{
return QwtPoint3D( point );
}
#endif
namespace
{
static const struct RegisterQwtPoint3D
{
inline RegisterQwtPoint3D()
{
qRegisterMetaType< QwtPoint3D >();
#if QT_VERSION >= 0x050200
QMetaType::registerConverter< QPointF, QwtPoint3D >( qwtPointToPoint3D );
#endif
}
} qwtRegisterQwtPoint3D;
}
#ifndef QT_NO_DEBUG_STREAM
#include <qdebug.h>
QDebug operator<<( QDebug debug, const QwtPoint3D& point )
{
debug.nospace() << "QwtPoint3D(" << point.x()
<< "," << point.y() << "," << point.z() << ")";
return debug.space();
}
#endif
QwtPoint3D
QwtPoint3D class defines a 3D point in double coordinates.
Definition qwt_point_3d.h:23
QwtPoint3D::z
double z() const
Definition qwt_point_3d.h:115
QwtPoint3D::y
double y() const
Definition qwt_point_3d.h:109
QwtPoint3D::x
double x() const
Definition qwt_point_3d.h:103