|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
15 #include <QDomDocument>
109 std::vector<Vector3D> retval;
111 for (
unsigned x=0; x<2; ++x)
112 for (
unsigned y=0; y<2; ++y)
113 for (
unsigned z=0; z<2; ++z)
114 retval.push_back(bb.
corner(x,y,z));
125 QDomDocument doc = dataNode.ownerDocument();
129 dataNode.toElement().setAttribute(
"uid",
mUid);
130 dataNode.toElement().setAttribute(
"name",
mName);
131 dataNode.toElement().setAttribute(
"type", this->
getType());
133 QDomElement filePathNode = doc.createElement(
"filePath");
134 filePathNode.appendChild(doc.createTextNode(this->getFilename()));
135 dataNode.appendChild(filePathNode);
137 QDomElement acqTimeNode = doc.createElement(
"acqusitionTime");
139 dataNode.appendChild(acqTimeNode);
143 QDomElement landmarksNode = doc.createElement(
"landmarks");
145 dataNode.appendChild(landmarksNode);
151 if (dataNode.isNull())
154 QDomNode registrationHistory = dataNode.namedItem(
"registrationHistory");
157 if (!dataNode.namedItem(
"acqusitionTime").toElement().isNull())
162 mLandmarks->parseXml(dataNode.namedItem(
"landmarks"));
175 QRegExp tsReg(
"[0-9]{8}T[0-9]{6}");
176 if (tsReg.indexIn(
mUid) > 0)
227 void Data::addPlane(
vtkPlanePtr plane, std::vector<vtkPlanePtr> &planes)
229 if (std::count(planes.begin(), planes.end(), plane))
231 planes.push_back(plane);
virtual QString getType() const
virtual std::vector< vtkPlanePtr > getAllClipPlanes()
void removeInteractiveClipPlane(vtkPlanePtr plane)
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,...
A history of registration events.
virtual void addXml(QDomNode &dataNode)
adds xml information about the data and its variabels
QString timestampMilliSecondsFormat()
Namespace for all CustusX production code.
Vector3D corner(int x, int y, int z) const
virtual Transform3D get_rMd() const
virtual TimeInfo getAdvancedTimeInfo() const
virtual QString getParentSpace()
virtual QString getFilename() const
std::vector< vtkPlanePtr > mPersistentClipPlanes
void transformChanged()
emitted when transform is changed
virtual void clearPersistentClipPlanes()
std::vector< vtkPlanePtr > mInteractiveClipPlanes
virtual bool isEqual(DataPtr metric)
void setSoftwareAcquisitionTime(QDateTime time)
void setOriginalAcquisitionTime(QDateTime time)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
RegistrationHistoryPtr m_rMd_History
vtkPlanePtr mInteractiveClipPlane
boost::shared_ptr< class RegistrationHistory > RegistrationHistoryPtr
boost::shared_ptr< class Data > DataPtr
void setAcquisitionTime(QDateTime time)
QDateTime mAcquisitionTime
Possibly modified time stamp.
QString timestampSecondsFormat()
vtkSmartPointer< class vtkPlane > vtkPlanePtr
virtual QString getSpace()
virtual QString getUid() const
boost::shared_ptr< class Landmarks > LandmarksPtr
virtual void addPersistentClipPlane(vtkPlanePtr plane)
QDateTime mSoftwareAcquisitionTime
Time stamp created in at arrival in CX or CX related software.
void setUid(const QString &uid)
void addInteractiveClipPlane(vtkPlanePtr plane)
LandmarksPtr getLandmarks()
void propertiesChanged()
emitted when one of the metadata properties (uid, name etc) changes
virtual void parseXml(QDomNode &dataNode)
Use a XML node to load data.
virtual CoordinateSystem getCoordinateSystem()
static LandmarksPtr create()
virtual RegistrationHistoryPtr get_rMd_History()
virtual DoubleBoundingBox3D boundingBox() const =0
virtual QString getName() const
virtual void transformChangedSlot()
QString streamXml2String(T &val)
virtual QDateTime getAcquisitionTime() const
void setName(const QString &name)
virtual std::vector< Vector3D > getPointCloud() const
Identification of a Coordinate system.
Data(const QString &uid, const QString &name="")
virtual void setInteractiveClipPlane(vtkPlanePtr plane)
set a plane that is not saved
QDateTime mOriginalAcquisitionTime
Original aquisition time (from hardware if possible)
virtual void setFilename(QString val)