cctw  0.2.1
Functions
cctwdoublevector3dproperty.cpp File Reference
#include "cctwdoublevector3dproperty.h"
#include "qcepmutexlocker.h"
#include "qcepdebug.h"
#include "qcepsettingssaver.h"
#include <QScriptEngine>
#include <stdio.h>
Include dependency graph for cctwdoublevector3dproperty.cpp:

Go to the source code of this file.

Functions

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

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 }