cctw  0.2.1
Classes | Macros | Functions
cctwdoublevector3dproperty.h File Reference
#include "qcepproperty.h"
#include "cctwvector3d.h"
Include dependency graph for cctwdoublevector3dproperty.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CctwDoubleVector3DProperty
 
class  CctwDoubleVector3DPropertyDoubleSpinBoxHelper
 

Macros

#define CCTW_DOUBLEVECTOR3D_PROPERTY(propname)
 

Functions

QDataStream & operator<< (QDataStream &stream, const CctwDoubleVector3D &vec)
 
QDataStream & operator>> (QDataStream &stream, CctwDoubleVector3D &vec)
 

Macro Definition Documentation

#define CCTW_DOUBLEVECTOR3D_PROPERTY (   propname)

Definition at line 64 of file cctwdoublevector3dproperty.h.

Function Documentation

QDataStream& operator<< ( QDataStream &  stream,
const CctwDoubleVector3D vec 
)

Definition at line 237 of file cctwdoublevector3dproperty.cpp.

238 {
239  for (int i = 0; i < 3; ++i) {
240  stream << vec(i);
241  }
242 
243  return stream;
244 }
QDataStream& operator>> ( QDataStream &  stream,
CctwDoubleVector3D vec 
)

Definition at line 246 of file cctwdoublevector3dproperty.cpp.

247 {
248  double x;
249  for (int i = 0; i < 3; ++i) {
250  stream >> x;
251  vec(i) = x;
252  }
253 
254  return stream;
255 }