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

Go to the source code of this file.

Classes

class  CctwDoubleMatrix3x3Property
 
class  CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper
 

Macros

#define CCTW_DOUBLEMATRIX3X3_PROPERTY(propname)
 

Functions

template<typename T >
QDataStream & operator<< (QDataStream &stream, const CctwMatrix3x3< T > &matrix)
 
template<typename T >
QDataStream & operator>> (QDataStream &stream, CctwMatrix3x3< T > &matrix)
 

Macro Definition Documentation

#define CCTW_DOUBLEMATRIX3X3_PROPERTY (   propname)

Definition at line 71 of file cctwdoublematrix3x3property.h.

Function Documentation

template<typename T >
QDataStream& operator<< ( QDataStream &  stream,
const CctwMatrix3x3< T > &  matrix 
)

Definition at line 108 of file cctwdoublematrix3x3property.h.

109 {
110  for (int row = 0; row < 3; ++row)
111  for (int col = 0; col < 3; ++col)
112  stream << double(matrix(row, col));
113  return stream;
114 }
template<typename T >
QDataStream& operator>> ( QDataStream &  stream,
CctwMatrix3x3< T > &  matrix 
)

Definition at line 117 of file cctwdoublematrix3x3property.h.

118 {
119  double x;
120  for (int row = 0; row < 3; ++row) {
121  for (int col = 0; col < 3; ++col) {
122  stream >> x;
123  matrix(row, col) = T(x);
124  }
125  }
126  return stream;
127 }