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

Go to the source code of this file.

Classes

class  CctwIntVector3DProperty
 
class  CctwIntVector3DPropertySpinBoxHelper
 

Macros

#define CCTW_INTVECTOR3D_PROPERTY(propname)
 

Functions

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

Macro Definition Documentation

#define CCTW_INTVECTOR3D_PROPERTY (   propname)

Definition at line 65 of file cctwintvector3dproperty.h.

Function Documentation

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

Definition at line 252 of file cctwintvector3dproperty.cpp.

253 {
254  for (int i = 0; i < 3; ++i) {
255  stream << vec(i);
256  }
257 
258  return stream;
259 }
QDataStream& operator>> ( QDataStream &  stream,
CctwIntVector3D vec 
)

Definition at line 261 of file cctwintvector3dproperty.cpp.

262 {
263  int x;
264  for (int i = 0; i < 3; ++i) {
265  stream >> x;
266  vec(i) = x;
267  }
268 
269  return stream;
270 }