41 #ifndef CXVIDEOSOURCESHM_H_
42 #define CXVIDEOSOURCESHM_H_
44 #include "cxResourceExport.h"
49 #include <boost/shared_ptr.hpp>
51 #include "vtkSmartPointer.h"
82 int width()
const {
return mImageWidth; }
83 int height()
const {
return mImageHeight; }
84 int depth()
const {
return mImageColorDepth; }
86 virtual QString getUid();
87 virtual QString getName();
89 virtual double getTimestamp();
91 virtual QString getInfoString()
const;
92 virtual QString getStatusString()
const;
97 virtual bool validData()
const;
98 virtual bool isConnected()
const;
99 virtual bool isStreaming()
const;
101 void connectServer(
const QString& key);
102 void disconnectServer();
103 virtual void setResolution(
double resolution);
124 bool mImportInitialized;
125 bool mStartWhenConnected;
131 void serverPollSlot();
vtkSmartPointer< class vtkImageImport > vtkImageImportPtr
boost::shared_ptr< VideoSourceSHM > VideoSourceSHMPtr
vtkSmartPointer< class vtkImageImport > vtkImageImportPtr
VideoSource for connecting to shared memory.