18 #ifndef __igstkWebcamWinVideoImager_h
19 #define __igstkWebcamWinVideoImager_h
22 #pragma warning ( disable : 4018 )
25 #pragma warning( disable : 4284 )
27 #include "igstkConfigure.h"
32 #include <sys/types.h>
100 virtual
void PrintSelf( std::ostream& os, itk::Indent indent ) const;
104 VideoImagerToolType * imagerTool );
108 VideoImagerToolType * imagerTool );
113 void operator=(const Self&);
119 itk::MutexLock::
Pointer m_BufferLock;
122 unsigned int m_NumberOfTools;
125 typedef std::map< std::
string, igstk::
Frame* >
126 VideoImagerToolFrameContainerType;
129 VideoImagerToolFrameContainerType m_ToolFrameBuffer;
132 std::map< std::
string,
int > m_ToolStatusContainer;
140 #ifdef IGSTK_USE_OpenCV
141 CvCapture *m_Capture;
148 #endif //__igstk_WebcamWinVideoImager_h_
virtual ResultType InternalStartImaging(void)
Put the imaging device into imaging mode.
virtual ResultType InternalOpen(void)
Open communication with the imaging device.
igstkStandardAbstractClassTraitsMacro(VideoImager, Object) public typedef VideoImagerTool VideoImagerToolType
Macro with standard traits declarations.
#define igstkGetMacro(name, type)
Get built-in type.
static itk::MutexLock::Pointer m_FrameBufferLock
Members and functions for communication with the webcam.
Base class for all the IGSTK classes.
virtual ResultType ValidateSpecifiedFrequency(double frequencyInHz)
The "ValidateSpecifiedFrequency" method checks if the specified frequency is valid for the imaging de...
::itk::SmartPointer< Self > Pointer
virtual ResultType InternalUpdateStatus(void)
Update the status and the transforms for all VideoImagerTools.
virtual ResultType AddVideoImagerToolToInternalDataContainers(const VideoImagerToolType *imagerTool)
Add imager tool entry to internal containers.
virtual ResultType InternalStopImaging(void)
Take the imaging device out of imaging mode.
Abstract superclass for concrete IGSTK VideoImager classes.
virtual ResultType InternalReset(void)
Reset the imaging device to put it back to its original state.
igstkStandardClassTraitsMacro(WebcamWinVideoImager, VideoImager) public
Macro with standard traits declarations.
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
Print object information.
virtual ResultType InternalThreadedUpdateStatus(void)
Update the status and the frames.
This derivation of the VideoImager class provides communication to a Webcam in Windows.
virtual ResultType VerifyVideoImagerToolInformation(const VideoImagerToolType *)
Verify imager tool information.
Frame from an external input device.
virtual ResultType InternalClose(void)
Close communication with the imaging device.
virtual ResultType RemoveVideoImagerToolFromInternalDataContainers(const VideoImagerToolType *imagerTool)
Remove imager tool entry from internal containers.