17 #include <itksys/SystemTools.hxx>
22 m_CaptureWidth(204),m_CaptureHeight(204),m_PixelNumber(41616),m_SourceDataSize(0),
23 m_ThreadID(0),m_CameraActive(false),m_CameraConnected(false),m_ImageSequence(0)
86 boolValue = boolprop->GetValue();
93 if(stringProp.IsNull())
99 string = stringProp->GetValue();
112 integer = intProp->GetValue();
161 itksys::SystemTools::Delay(100);
167 itksys::SystemTools::Delay(100);
virtual BaseProperty * GetProperty(const char *propertyKey)
get a BaseProperty from the property list
virtual int GetRGBCaptureHeight()
bool GetBoolProperty(const char *propertyKey, bool &boolValue)
get a bool from the property list
int m_RGBPixelNumber
number of pixels in the range image (m_RGBImageWidth*m_RGBImageHeight)
bool GetStringProperty(const char *propertyKey, std::string &string)
get a string from the property list
float * m_IntensityArray
float array holding the intensity image
virtual bool IsCameraConnected()
returns true if the camera is connected
int m_PixelNumber
number of pixels in the range image (m_CaptureWidth*m_CaptureHeight)
DataCollection - Class to facilitate loading/accessing structured data.
PropertyList::Pointer m_PropertyList
a list of the corresponding properties
float * m_DistanceArray
float array holding the distance image
int m_ThreadID
ID of the started thread.
bool GetIntProperty(const char *propertyKey, int &integer)
get an int from the property list
itk::FastMutexLock::Pointer m_CameraActiveMutex
mutex for the cameraActive flag
itk::MultiThreader::Pointer m_MultiThreader
itk::MultiThreader used for thread handling
Abstract base class for properties.
virtual void SetProperty(const char *propertyKey, BaseProperty *propertyValue)
set a BaseProperty property in the property list
int m_RGBImageHeight
height of the RGB image (y dimension)
virtual bool OnConnectCamera()=0
Opens a connection to the ToF camera. Has to be implemented in the specialized inherited classes...
bool m_CameraActive
flag indicating if the camera is currently active or not. Caution: thread safe access only! ...
bool m_CameraConnected
flag indicating if the camera is successfully connected or not. Caution: thread safe access only! ...
int m_CaptureWidth
width of the range image (x dimension)
virtual bool ConnectCamera()
ConnectCamera Internally calls OnConnectCamera() of the respective device implementation.
itk::FastMutexLock::Pointer m_ImageMutex
mutex for images provided by the range camera
virtual void AllocatePixelArrays()
method for allocating memory for pixel arrays m_IntensityArray, m_DistanceArray and m_AmplitudeArray ...
virtual void StopCamera()
stops the continuous updating of the camera
int m_CaptureHeight
height of the range image (y dimension)
float * m_AmplitudeArray
float array holding the amplitude image
virtual void CleanupPixelArrays()
method for cleanup memory allocated for pixel arrays m_IntensityArray, m_DistanceArray and m_Amplitud...
void SetIntProperty(const char *propertyKey, int intValue)
set an int property in the property list
void SetBoolProperty(const char *propertyKey, bool boolValue)
set a bool property in the property list
int m_RGBImageWidth
width of the RGB image (x dimension)
void SetFloatProperty(const char *propertyKey, float floatValue)
set a float property in the property list
virtual int GetRGBCaptureWidth()
virtual bool IsCameraActive()
returns true if the camera is connected and started
void SetStringProperty(const char *propertyKey, const char *stringValue)
set a string property in the property list
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.