38 QFile file(mFileName);
39 if (!QFileInfo(mFileName).exists() || !file.open(QIODevice::ReadOnly))
42 reportWarning(QString(
"Failed to open file %1 for reading ").arg(file.fileName()));
48 QString positionString = file.readLine();
49 positionString +=
" " + file.readLine();
50 positionString +=
" " + file.readLine();
51 positionString +=
" " + file.readLine();
52 retval = Transform3D::fromString(positionString, &localOk);
67 QFile file(mFileName);
68 if (!file.open(QIODevice::Truncate | QIODevice::WriteOnly | QIODevice::Text))
70 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.