16 #include "cxResourceExport.h"
22 #include <boost/shared_ptr.hpp>
23 #include <boost/weak_ptr.hpp>
50 mAcquisitionTime(QDateTime()),
51 mSoftwareAcquisitionTime(QDateTime()),
52 mOriginalAcquisitionTime(QDateTime())
56 mSoftwareAcquisitionTime(QDateTime()),
57 mOriginalAcquisitionTime(QDateTime())
59 this->setAcquisitionTime(acquisitionTime);
64 return mAcquisitionTime.toMSecsSinceEpoch();
68 mAcquisitionTime.setMSecsSinceEpoch(mSecsSinceEpoch);
73 return mSoftwareAcquisitionTime.toMSecsSinceEpoch();
77 return mOriginalAcquisitionTime.toMSecsSinceEpoch();
89 class cxResource_EXPORT
Data:
public QObject
93 Data(
const QString& uid,
const QString& name =
"");
96 void setUid(
const QString& uid);
97 void setName(
const QString& name);
98 void setAcquisitionTime(QDateTime time);
99 void setSoftwareAcquisitionTime(QDateTime time);
100 void setOriginalAcquisitionTime(QDateTime time);
104 virtual QString getUid()
const;
105 virtual QString getName()
const;
107 virtual QDateTime getAcquisitionTime()
const;
108 virtual TimeInfo getAdvancedTimeInfo()
const;
114 virtual bool isEqual(
DataPtr metric);
116 virtual QString getFilename()
const;
117 virtual void setFilename(QString val);
119 virtual QString getSpace();
120 virtual QString getParentSpace();
122 virtual std::vector<Vector3D> getPointCloud()
const;
124 virtual void addXml(QDomNode& dataNode);
125 virtual void parseXml(QDomNode& dataNode);
135 virtual void addPersistentClipPlane(
vtkPlanePtr plane);
136 virtual std::vector<vtkPlanePtr> getAllClipPlanes();
137 virtual void clearPersistentClipPlanes();
138 virtual void setInteractiveClipPlane(
vtkPlanePtr plane);
141 void removeInteractiveClipPlane(
vtkPlanePtr plane);
143 void transformChanged();
144 void propertiesChanged();
145 void clipPlanesChanged();
169 void addPlane(
vtkPlanePtr plane, std::vector<vtkPlanePtr> &planes);
172 typedef boost::shared_ptr<Data>
DataPtr;