59 QFile file(mFileName);
60 if (!QFileInfo(mFileName).exists() || !file.open(QIODevice::ReadOnly))
63 reportWarning(QString(
"Failed to open file %1 for reading ").arg(file.fileName()));
69 QString positionString = file.readLine();
70 positionString +=
" " + file.readLine();
71 positionString +=
" " + file.readLine();
72 positionString +=
" " + file.readLine();
73 retval = Transform3D::fromString(positionString, &localOk);
88 QFile file(mFileName);
89 if (!file.open(QIODevice::Truncate | QIODevice::WriteOnly | QIODevice::Text))
91 reportWarning(QString(
"Failed to open file %1 for writing.").arg(file.fileName()));
QString qstring_cast(const T &val)
DoubleBoundingBox3D transform(const Transform3D &m, const DoubleBoundingBox3D &bb)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
void reportWarning(QString msg)
Namespace for all CustusX production code.