10 #include "PlusConfigure.h" 16 #include <vtkImageData.h> 17 #include <vtkObjectFactory.h> 20 #include "usb3_frm13_import.h" 42 os << indent <<
"DAQVideoSource: CameraLink Camera" << std::endl;
49 LOG_DEBUG(
"Configure CameraLink Camera");
53 const char* dataModeString = deviceConfig->GetAttribute(
"DataMode");
56 switch(std::atoi(dataModeString)){
84 LOG_ERROR(
"DAQVideoSource CameraLink: Failed to open.");
99 LOG_ERROR(
"DAQVideoSource CameraLink: Failed to init.");
115 LOG_ERROR(
"DAQVideoSource CameraLink: Failed to start");
135 std::ostringstream ss;
140 LOG_ERROR(
"vtkPlusDAQVideoSource::InternalUpdate Unable to read data");
144 this->
m_currentTime = vtkIGSIOAccurateTimer::GetSystemTime();
147 LOG_DEBUG(
"vtkPlusDAQVideoSource::InternalUpdate Unable to receive frame");
160 LOG_DEBUG(
"Unable to grab a video source. Skipping frame.");
174 FrameSizeType frameSize = { static_cast<unsigned int>(this->
m_nwidth), static_cast<unsigned int>(this->
m_nheight), 1 };
188 LOG_WARNING(
"vtkPlusDAQVideoSource is expecting one output channel and there are " << this->
OutputChannels.size() <<
" channels. First output channel will be used.");
193 LOG_ERROR(
"No output channels defined for vtkPlusDAQVideoSource. Cannot proceed.");
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
PlusStatus InternalUpdate()
#define XML_FIND_DEVICE_ELEMENT_REQUIRED_FOR_WRITING(deviceConfig, rootConfigElement)
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkStandardNewMacro(vtkPlusDAQVideoSource)
PlusStatus SetInputFrameSize(unsigned int x, unsigned int y, unsigned int z)
virtual PlusStatus AddItem(vtkImageData *frame, US_IMAGE_ORIENTATION usImageOrientation, US_IMAGE_TYPE imageType, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL)
unsigned short CAMERADATATYPE_t
bool RequireImageOrientationInConfiguration
PlusStatus SetImageType(US_IMAGE_TYPE imageType)
virtual PlusStatus InternalConnect() VTK_OVERRIDE
PlusStatus SetPixelType(igsioCommon::VTKScalarPixelType pixelType)
PlusStatus GetFirstActiveOutputVideoSource(vtkPlusDataSource *&aVideoSource)
PlusStatus WriteConfiguration(vtkXMLDataElement *config)
unsigned long FrameNumber
#define XML_FIND_DEVICE_ELEMENT_REQUIRED_FOR_READING(deviceConfig, rootConfigElement)
virtual PlusStatus NotifyConfigured()
Class for interfacing an Infrared capture device and recording frames into a Plus buffer.
virtual US_IMAGE_ORIENTATION GetInputImageOrientation()
bool StartThreadForInternalUpdates
PlusStatus ReadConfiguration(vtkXMLDataElement *config)
virtual PlusStatus InternalDisconnect() VTK_OVERRIDE
ChannelContainer OutputChannels
PlusStatus SetNumberOfScalarComponents(unsigned int numberOfScalarComponents)
unsigned char * pImgBufAux
enum vtkPlusDAQVideoSource::DATAMODE_E m_dataMode
CAMERADATATYPE_t * pImgBuf
virtual int GetNumberOfItems()
enum vtkPlusDAQVideoSource::CAMERAMODE_E cameraMode
Interface to a 3D positioning tool, video source, or generalized data stream.