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);
124 virtual QString getUid()
const;
125 virtual QString getName()
const;
127 virtual QDateTime getAcquisitionTime()
const;
128 virtual TimeInfo getAdvancedTimeInfo()
const;
135 virtual QString getFilename()
const;
136 virtual void setFilename(QString val);
138 virtual QString getSpace();
139 virtual QString getParentSpace();
142 virtual void addXml(QDomNode& dataNode);
143 virtual void parseXml(QDomNode& dataNode);
146 virtual bool load(QString path) = 0;
147 virtual void save(
const QString& basePath) = 0;
153 virtual void addPersistentClipPlane(
vtkPlanePtr plane);
154 virtual std::vector<vtkPlanePtr> getAllClipPlanes();
155 virtual void clearPersistentClipPlanes();
156 virtual void setInteractiveClipPlane(
vtkPlanePtr plane);
159 void removeInteractiveClipPlane(
vtkPlanePtr plane);
161 void transformChanged();
162 void propertiesChanged();
163 void clipPlanesChanged();
187 void addPlane(
vtkPlanePtr plane, std::vector<vtkPlanePtr> &planes);
190 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
std::vector< vtkPlanePtr > mPersistentClipPlanes