37 #include "cxResourceExport.h" 43 #include <boost/shared_ptr.hpp> 44 #include <boost/weak_ptr.hpp> 70 mAcquisitionTime(QDateTime()),
71 mSoftwareAcquisitionTime(QDateTime()),
72 mOriginalAcquisitionTime(QDateTime())
76 mSoftwareAcquisitionTime(QDateTime()),
77 mOriginalAcquisitionTime(QDateTime())
79 this->setAcquisitionTime(acquisitionTime);
84 return mAcquisitionTime.toMSecsSinceEpoch();
88 mAcquisitionTime.setMSecsSinceEpoch(mSecsSinceEpoch);
93 return mSoftwareAcquisitionTime.toMSecsSinceEpoch();
97 return mOriginalAcquisitionTime.toMSecsSinceEpoch();
109 class cxResource_EXPORT
Data:
public QObject
113 Data(
const QString& uid,
const QString& name =
"");
116 void setUid(
const QString& uid);
117 void setName(
const QString& name);
118 void setAcquisitionTime(QDateTime time);
119 void setSoftwareAcquisitionTime(QDateTime time);
120 void setOriginalAcquisitionTime(QDateTime time);
121 virtual RegistrationHistoryPtr get_rMd_History();
122 LandmarksPtr getLandmarks();
124 virtual QString getUid()
const;
125 virtual QString getName()
const;
127 virtual QDateTime getAcquisitionTime()
const;
128 virtual TimeInfo getAdvancedTimeInfo()
const;
134 virtual bool isEqual(
DataPtr metric);
136 virtual QString getFilename()
const;
137 virtual void setFilename(QString val);
139 virtual QString getSpace();
140 virtual QString getParentSpace();
142 virtual std::vector<Vector3D> getPointCloud()
const;
144 virtual void addXml(QDomNode& dataNode);
145 virtual void parseXml(QDomNode& dataNode);
148 virtual bool load(QString path) = 0;
149 virtual void save(
const QString& basePath) = 0;
155 virtual void addPersistentClipPlane(
vtkPlanePtr plane);
156 virtual std::vector<vtkPlanePtr> getAllClipPlanes();
157 virtual void clearPersistentClipPlanes();
158 virtual void setInteractiveClipPlane(
vtkPlanePtr plane);
161 void removeInteractiveClipPlane(
vtkPlanePtr plane);
163 void transformChanged();
164 void propertiesChanged();
165 void clipPlanesChanged();
189 void addPlane(
vtkPlanePtr plane, std::vector<vtkPlanePtr> &planes);
192 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