more piCout operators in piqt.h
This commit is contained in:
@@ -887,6 +887,32 @@ inline PICout operator<<(PICout s, const QColor & v) {
|
||||
return s;
|
||||
}
|
||||
|
||||
inline PICout operator<<(PICout s, const QVector2D & v) {
|
||||
s << PIMathVectorT2d({v[0], v[1]});
|
||||
return s;
|
||||
}
|
||||
|
||||
inline PICout operator<<(PICout s, const QVector3D & v) {
|
||||
s << PIMathVectorT3d({v[0], v[1], v[2]});
|
||||
return s;
|
||||
}
|
||||
|
||||
inline PICout operator<<(PICout s, const QVector4D & v) {
|
||||
s << PIMathVectorT4d({v[0], v[1], v[2], v[3]});
|
||||
return s;
|
||||
}
|
||||
|
||||
template<int N, int M, typename T>
|
||||
inline PICout operator<<(PICout s, const QGenericMatrix<N, M, T> & v) {
|
||||
s << Q2PIMathMatrixT(v);
|
||||
return s;
|
||||
}
|
||||
|
||||
inline PICout operator<<(PICout s, const QMatrix4x4 & v) {
|
||||
s << Q2PIMathMatrixT(v);
|
||||
return s;
|
||||
}
|
||||
|
||||
#ifdef PIQT_HAS_GEOPOSITION
|
||||
inline PICout operator<<(PICout s, const QGeoCoordinate & v) {
|
||||
s << Q2PIGeoPosition(v);
|
||||
|
||||
Reference in New Issue
Block a user