16 #include "cxResourceExport.h" 22 #include <boost/shared_ptr.hpp> 23 #include <boost/weak_ptr.hpp> 49 mAcquisitionTime(QDateTime()),
50 mSoftwareAcquisitionTime(QDateTime()),
51 mOriginalAcquisitionTime(QDateTime())
55 mSoftwareAcquisitionTime(QDateTime()),
56 mOriginalAcquisitionTime(QDateTime())
58 this->setAcquisitionTime(acquisitionTime);
63 return mAcquisitionTime.toMSecsSinceEpoch();
67 mAcquisitionTime.setMSecsSinceEpoch(mSecsSinceEpoch);
72 return mSoftwareAcquisitionTime.toMSecsSinceEpoch();
76 return mOriginalAcquisitionTime.toMSecsSinceEpoch();
88 class cxResource_EXPORT
Data:
public QObject
92 Data(
const QString& uid,
const QString& name =
"");
95 void setUid(
const QString& uid);
96 void setName(
const QString& name);
97 void setAcquisitionTime(QDateTime time);
98 void setSoftwareAcquisitionTime(QDateTime time);
99 void setOriginalAcquisitionTime(QDateTime time);
100 virtual RegistrationHistoryPtr get_rMd_History();
101 LandmarksPtr getLandmarks();
103 virtual QString getUid()
const;
104 virtual QString getName()
const;
106 virtual QDateTime getAcquisitionTime()
const;
107 virtual TimeInfo getAdvancedTimeInfo()
const;
113 virtual bool isEqual(
DataPtr metric);
115 virtual QString getFilename()
const;
116 virtual void setFilename(QString val);
118 virtual QString getSpace();
119 virtual QString getParentSpace();
121 virtual std::vector<Vector3D> getPointCloud()
const;
123 virtual void addXml(QDomNode& dataNode);
124 virtual void parseXml(QDomNode& dataNode);
127 virtual bool load(QString path) = 0;
128 virtual void save(
const QString& basePath) = 0;
134 virtual void addPersistentClipPlane(
vtkPlanePtr plane);
135 virtual std::vector<vtkPlanePtr> getAllClipPlanes();
136 virtual void clearPersistentClipPlanes();
137 virtual void setInteractiveClipPlane(
vtkPlanePtr plane);
140 void removeInteractiveClipPlane(
vtkPlanePtr plane);
142 void transformChanged();
143 void propertiesChanged();
144 void clipPlanesChanged();
168 void addPlane(
vtkPlanePtr plane, std::vector<vtkPlanePtr> &planes);
171 typedef boost::shared_ptr<Data>
DataPtr;
std::vector< vtkPlanePtr > mInteractiveClipPlanes
boost::shared_ptr< class RegistrationHistory > RegistrationHistoryPtr
QDateTime mOriginalAcquisitionTime
Original aquisition time (from hardware if possible)
double getSoftwareAcquisitionTime() const
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::weak_ptr< class Rep > RepWeakPtr
boost::shared_ptr< class Landmarks > LandmarksPtr
boost::shared_ptr< class Data > DataPtr
double getScannerAcquisitionTime() const
void setAcquisitionTime(double mSecsSinceEpoch)
virtual QString getType() const
double getAcquisitionTime() const
Identification of a Coordinate system.
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
QDateTime mSoftwareAcquisitionTime
Time stamp created in at arrival in CX or CX related software.
vtkPlanePtr mInteractiveClipPlane
QDateTime mAcquisitionTime
Possibly modified time stamp.
RegistrationHistoryPtr m_rMd_History
Superclass for all data objects.
virtual void transformChangedSlot()
TimeInfo(double acquisitionTime)
REGISTRATION_STATUS mRegistrationStatus
vtkSmartPointer< class vtkPlane > vtkPlanePtr
Namespace for all CustusX production code.
std::vector< vtkPlanePtr > mPersistentClipPlanes