PlusLib
2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
|
Abstract interface for tracker and video devices. More...
#include <src/PlusDataCollection/vtkPlusDevice.h>
Public Types | |
typedef vtkImageAlgorithm | Superclass |
Public Member Functions | |
PlusStatus | AddFieldDataSource (vtkPlusDataSource *aSource) |
PlusStatus | AddInputChannel (vtkPlusChannel *aChannel) |
PlusStatus | AddOutputChannel (vtkPlusChannel *aChannel) |
PlusStatus | AddTool (vtkPlusDataSource *tool, bool requireUniquePortName=true) |
PlusStatus | AddVideoSource (vtkPlusDataSource *anImage) |
void | ClearAllBuffers () |
virtual PlusStatus | Connect () |
virtual PlusStatus | CreateDefaultOutputChannel (const char *channelId=NULL, bool addSource=true) |
void | DeepCopy (const vtkPlusDevice &device) |
virtual PlusStatus | Disconnect () |
virtual PlusStatus | ForceUpdate () |
virtual double | GetAcquisitionRate () const |
virtual PlusStatus | GetBufferSize (vtkPlusChannel &aChannel, int &outVal, const std::string &aSourceId=std::string("")) |
virtual const char * | GetClassName () |
virtual int | GetConnected () const |
virtual bool | GetCorrectlyConfigured () const |
PlusStatus | GetDataSource (const char *aSourceId, vtkPlusDataSource *&aSource) |
PlusStatus | GetDataSource (const std::string &aSourceId, vtkPlusDataSource *&aSource) |
virtual double | GetDesiredTimestamp () |
virtual std::string | GetDeviceId () const |
PlusStatus | GetFieldDataSource (const char *aSourceId, vtkPlusDataSource *&aSource) const |
PlusStatus | GetFieldDataSource (const std::string &aSourceId, vtkPlusDataSource *&aSource) const |
DataSourceContainerConstIterator | GetFieldDataSourcessIteratorBegin () const |
DataSourceContainerConstIterator | GetFieldDataSourcessIteratorEnd () const |
PlusStatus | GetFirstActiveOutputVideoSource (vtkPlusDataSource *&aVideoSource) |
PlusStatus | GetFirstActiveTool (vtkPlusDataSource *&aTool) const |
PlusStatus | GetFirstOutputChannel (vtkPlusChannel *&aChannel) |
PlusStatus | GetFirstVideoSource (vtkPlusDataSource *&anImage) |
virtual unsigned long | GetFrameNumber () const |
virtual double | GetFrameTimeStamp () const |
virtual PlusStatus | GetImage (const std::string &requestedImageId, std::string &assignedImageId, const std::string &imageReferencFrameName, vtkImageData *imageData, vtkMatrix4x4 *ijkToReferenceTransform) |
virtual PlusStatus | GetImageMetaData (igsioCommon::ImageMetaDataList &imageMetaDataItems) |
virtual US_IMAGE_TYPE | GetImageType (vtkPlusChannel &aChannel) |
PlusStatus | GetInputDevices (std::vector< vtkPlusDevice * > &outDeviceList) const |
PlusStatus | GetInputDevicesRecursive (std::vector< vtkPlusDevice * > &outDeviceList) const |
virtual PlusStatus | GetInputFrameSize (vtkPlusChannel &aChannel, unsigned int &x, unsigned int &y, unsigned int &z) const |
virtual PlusStatus | GetInputFrameSize (vtkPlusChannel &aChannel, FrameSizeType &dim) const |
double | GetInternalUpdateRate () const |
virtual double | GetLocalTimeOffsetSec () const |
double | GetMissingInputGracePeriodSec () const |
virtual int | GetNumberOfFieldDataSources () const |
virtual int | GetNumberOfTools () const |
virtual int | GetNumberOfVideoSources () const |
PlusStatus | GetOutputChannelByName (vtkPlusChannel *&aChannel, const char *aChannelId) |
PlusStatus | GetOutputChannelByName (vtkPlusChannel *&aChannel, const std::string &aChannelId) |
ChannelContainerConstIterator | GetOutputChannelsEnd () const |
ChannelContainerIterator | GetOutputChannelsEnd () |
ChannelContainerConstIterator | GetOutputChannelsStart () const |
ChannelContainerIterator | GetOutputChannelsStart () |
virtual PlusStatus | GetOutputFrameSize (vtkPlusChannel &aChannel, unsigned int &x, unsigned int &y, unsigned int &z) const |
virtual PlusStatus | GetOutputFrameSize (vtkPlusChannel &aChannel, FrameSizeType &dim) const |
virtual std::string | GetParameter (const std::string &key) const |
virtual PlusStatus | GetParameter (const std::string &key, std::string &outValue) const |
virtual igsioCommon::VTKScalarPixelType | GetPixelType (vtkPlusChannel &aChannel) |
virtual std::string | GetSdkVersion () |
virtual double | GetStartTime () |
virtual double | GetTimestampClosestToDesired () |
PlusStatus | GetTool (const char *aToolSourceId, vtkPlusDataSource *&aTool) const |
PlusStatus | GetTool (const std::string &aToolSourceId, vtkPlusDataSource *&aTool) const |
PlusStatus | GetToolByPortName (const char *aPortName, vtkPlusDataSource *&aSource) |
PlusStatus | GetToolByPortName (const std::string &aPortName, vtkPlusDataSource *&aSource) |
DataSourceContainerConstIterator | GetToolIteratorBegin () const |
DataSourceContainerConstIterator | GetToolIteratorEnd () const |
std::string | GetToolReferenceFrameName () const |
virtual int | GetUpdateWithDesiredTimestamp () |
PlusStatus | GetVideoSource (const char *aSourceId, vtkPlusDataSource *&aVideoSource) |
PlusStatus | GetVideoSourceByIndex (const unsigned int index, vtkPlusDataSource *&aVideoSource) |
DataSourceContainerConstIterator | GetVideoSourceIteratorBegin () const |
DataSourceContainerConstIterator | GetVideoSourceIteratorEnd () const |
std::vector< vtkPlusDataSource * > | GetVideoSources () const |
PlusStatus | GetVideoSourcesByPortName (const char *aPortName, std::vector< vtkPlusDataSource * > &sources) |
PlusStatus | GetVideoSourcesByPortName (const std::string &aPortName, std::vector< vtkPlusDataSource * > &sources) |
virtual PlusStatus | InternalUpdate () |
virtual int | IsA (const char *type) |
virtual bool | IsConnected () const |
virtual bool | IsRecording () const |
virtual bool | IsResettable () |
virtual bool | IsTracker () const |
virtual bool | IsVirtual () const |
virtual PlusStatus | NotifyConfigured () |
virtual int | OutputChannelCount () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
virtual PlusStatus | Probe () |
virtual PlusStatus | ReadConfiguration (vtkXMLDataElement *) |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual PlusStatus | Reset () |
virtual PlusStatus | SendText (const std::string &textToSend, std::string *textReceived=NULL) |
PlusStatus | SetAcquisitionRate (double aRate) |
virtual PlusStatus | SetBufferSize (vtkPlusChannel &aChannel, int FrameBufferSize, const std::string &aSourceId=std::string("")) |
virtual void | SetDataCollector (vtkPlusDataCollector *_arg) |
virtual void | SetDesiredTimestamp (double) |
void | SetDeviceId (const std::string &id) |
void | SetFieldDataSourcesBufferSize (int aBufferSize) |
virtual PlusStatus | SetImageType (vtkPlusChannel &aChannel, US_IMAGE_TYPE imageType) |
virtual PlusStatus | SetInputFrameSize (vtkPlusDataSource &aSource, unsigned int x, unsigned int y, unsigned int z) |
virtual void | SetLocalTimeOffsetSec (double aTimeOffsetSec) |
virtual void | SetMissingInputGracePeriodSec (double) |
virtual PlusStatus | SetParameter (const std::string &key, const std::string &value) |
virtual PlusStatus | SetPixelType (vtkPlusChannel &aChannel, igsioCommon::VTKScalarPixelType pixelType) |
virtual void | SetStartTime (double startTime) |
void | SetToolReferenceFrameName (const std::string &frameName) |
void | SetToolsBufferSize (int aBufferSize) |
virtual void | SetUpdateWithDesiredTimestamp (int) |
virtual PlusStatus | StartRecording () |
virtual PlusStatus | StopRecording () |
virtual void | UpdateWithDesiredTimestampOff () |
virtual void | UpdateWithDesiredTimestampOn () |
virtual PlusStatus | WriteConfiguration (vtkXMLDataElement *) |
virtual PlusStatus | WriteToolsToSequenceFile (const std::string &filename, bool useCompression=false) |
Static Public Member Functions | |
static PlusStatus | GetToolReferenceFrameFromTrackedFrame (igsioTrackedFrame &aFrame, std::string &aToolReferenceFrameName) |
static int | IsTypeOf (const char *type) |
static vtkPlusDevice * | New () |
static vtkPlusDevice * | SafeDownCast (vtkObject *o) |
Public Attributes | |
double | InternalUpdateRate |
vtkIGSIORecursiveCriticalSection * | UpdateMutex |
vtkTimeStamp | UpdateTime |
Static Public Attributes | |
static const std::string | BMODE_PORT_NAME = "B" |
static const std::string | PARAMETER_XML_ELEMENT_TAG = "Parameter" |
static const std::string | PARAMETERS_XML_ELEMENT_TAG = "Parameters" |
static const std::string | RFMODE_PORT_NAME = "Rf" |
Protected Member Functions | |
virtual PlusStatus | AddVideoItemToVideoSources (const std::vector< vtkPlusDataSource * > &videoSources, const igsioVideoFrame &frame, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL) |
virtual PlusStatus | AddVideoItemToVideoSources (const std::vector< vtkPlusDataSource * > &videoSources, void *imageDataPtr, US_IMAGE_ORIENTATION usImageOrientation, const FrameSizeType &frameSizeInPx, igsioCommon::VTKScalarPixelType pixelType, unsigned int numberOfScalarComponents, US_IMAGE_TYPE imageType, int numberOfBytesToSkip, long frameNumber, double unfilteredTimestamp=UNDEFINED_TIMESTAMP, double filteredTimestamp=UNDEFINED_TIMESTAMP, const igsioFieldMapType *customFields=NULL) |
PlusStatus | EnsureUniqueDataSourceId (const std::string &aSourceId) |
vtkXMLDataElement * | FindInputChannelElement (vtkXMLDataElement *rootXMLElement, const char *aChannelId) |
vtkXMLDataElement * | FindOutputChannelElement (vtkXMLDataElement *rootXMLElement, const char *aChannelId) |
vtkXMLDataElement * | FindThisDeviceElement (vtkXMLDataElement *rootXMLElement) |
virtual vtkPlusDataCollector * | GetDataCollector () |
double | GetRecordingStartTime () const |
bool | GetStartThreadForInternalUpdates () const |
bool | HasGracePeriodExpired () |
virtual PlusStatus | InternalConnect () |
virtual PlusStatus | InternalDisconnect () |
virtual PlusStatus | InternalStartRecording () |
virtual PlusStatus | InternalStopRecording () |
virtual void | InternalWriteInputChannels (vtkXMLDataElement *rootXMLElement) |
virtual void | InternalWriteOutputChannels (vtkXMLDataElement *rootXMLElement) |
virtual void | SetCorrectlyConfigured (bool) |
virtual void | SetRecordingStartTime (double) |
virtual void | SetStartThreadForInternalUpdates (bool) |
virtual PlusStatus | ToolTimeStampedUpdate (const std::string &aToolSourceId, vtkMatrix4x4 *matrix, ToolStatus status, unsigned long frameNumber, double unfilteredtimestamp, const igsioFieldMapType *customFields=NULL) |
virtual PlusStatus | ToolTimeStampedUpdateWithoutFiltering (const std::string &aToolSourceId, vtkMatrix4x4 *matrix, ToolStatus status, double unfilteredtimestamp, double filteredtimestamp, const igsioFieldMapType *customFields=NULL) |
vtkPlusDevice () | |
virtual | ~vtkPlusDevice () |
Static Protected Member Functions | |
static void * | vtkDataCaptureThread (vtkMultiThreader::ThreadInfo *data) |
Protected Attributes | |
double | AcquisitionRate |
int | Connected |
bool | CorrectlyConfigured |
StreamBufferItem * | CurrentStreamBufferItem |
vtkPlusDataCollector * | DataCollector |
double | DesiredTimestamp |
std::string | DeviceId |
DataSourceContainer | Fields |
unsigned long | FrameNumber |
double | FrameTimeStamp |
ChannelContainer | InputChannels |
double | LocalTimeOffsetSec |
double | MissingInputGracePeriodSec |
ChannelContainer | OutputChannels |
int | OutputNeedsInitialization |
std::map< std::string, std::string > | Parameters |
int | Recording |
double | RecordingStartTime |
std::set< std::string > | ReportedUnknownTools |
bool | RequireImageOrientationInConfiguration |
bool | RequirePortNameInDeviceSetConfiguration |
bool | StartThreadForInternalUpdates |
bool | ThreadAlive |
vtkMultiThreader * | Threader |
int | ThreadId |
double | TimestampClosestToDesired |
std::string | ToolReferenceFrameName |
DataSourceContainer | Tools |
int | UpdateWithDesiredTimestamp |
DataSourceContainer | VideoSources |
Static Protected Attributes | |
static const int | VIRTUAL_DEVICE_FRAME_RATE = 50 |
Abstract interface for tracker and video devices.
vtkPlusDevice is an abstract VTK interface to real-time tracking and imaging systems. Derived classes should override the InternalConnect(), InternalDisconnect(), GetSdkVersion(), ReadConfiguration(), WriteConfiguration() methods.
Definition at line 60 of file vtkPlusDevice.h.
typedef vtkImageAlgorithm vtkPlusDevice::Superclass |
Definition at line 64 of file vtkPlusDevice.h.
|
protected |
Definition at line 123 of file vtkPlusDevice.cxx.
|
protectedvirtual |
Definition at line 154 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::AddFieldDataSource | ( | vtkPlusDataSource * | aSource | ) |
Add field data to the device
Definition at line 364 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::AddInputChannel | ( | vtkPlusChannel * | aChannel | ) |
Add an input channel
Definition at line 2034 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::AddOutputChannel | ( | vtkPlusChannel * | aChannel | ) |
Add an output channel
Definition at line 2360 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::AddTool | ( | vtkPlusDataSource * | tool, |
bool | requireUniquePortName = true |
||
) |
Add tool to the device
Definition at line 282 of file vtkPlusDevice.cxx.
|
protectedvirtual |
This function can be called to add a video item to the specified video data sources
Reimplemented in vtkPlusUsDevice.
Definition at line 1648 of file vtkPlusDevice.cxx.
|
protectedvirtual |
This function can be called to add a video item to the specified video data sources
Reimplemented in vtkPlusUsDevice.
Definition at line 1663 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::AddVideoSource | ( | vtkPlusDataSource * | anImage | ) |
Add image to the device
Definition at line 2159 of file vtkPlusDevice.cxx.
void vtkPlusDevice::ClearAllBuffers | ( | ) |
Clear all tool buffers
Definition at line 1581 of file vtkPlusDevice.cxx.
|
virtual |
Connect to device. Connection is needed for recording or single frame acquisition
Definition at line 1224 of file vtkPlusDevice.cxx.
|
virtual |
Creates a default output channel for the device with the name channelId or "OutputChannel".
addSource | If true then for imaging devices a default 'Video' source is added to the output. |
Definition at line 2395 of file vtkPlusDevice.cxx.
void vtkPlusDevice::DeepCopy | ( | const vtkPlusDevice & | device | ) |
Make this device into a copy of another device.
Definition at line 601 of file vtkPlusDevice.cxx.
|
virtual |
Disconnect from device. This method must be called before application exit, or else the application might hang during exit.
Definition at line 1249 of file vtkPlusDevice.cxx.
|
protected |
Ensure uniqueness of given ID
Definition at line 2095 of file vtkPlusDevice.cxx.
|
protected |
Helper function used during configuration to locate the correct XML element for an input stream
Definition at line 900 of file vtkPlusDevice.cxx.
|
protected |
Helper function used during configuration to locate the correct XML element for an output stream
Definition at line 869 of file vtkPlusDevice.cxx.
|
protected |
Helper function used during configuration to locate the correct XML element for a device
Definition at line 836 of file vtkPlusDevice.cxx.
|
virtual |
Force the hardware to device to acquire a frame It requires overriding of the InternalUpdate() function in the child class.
Definition at line 1598 of file vtkPlusDevice.cxx.
|
virtual |
Set the acquisition rate
Reimplemented in vtkPlusVirtualVolumeReconstructor, vtkPlusVirtualDeinterlacer, vtkPlusVirtualMixer, and vtkPlusVirtualSwitcher.
Definition at line 2063 of file vtkPlusDevice.cxx.
|
virtual |
Get size of the internal frame buffer.
Definition at line 1425 of file vtkPlusDevice.cxx.
|
virtual |
Reimplemented in vtkPlusNDITracker, vtkPlusSonixVideoSource, vtkPlusVirtualTextRecognizer, vtkPlusPhidgetSpatialTracker, vtkPlusMmfVideoSource, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusWin32VideoSource2, vtkPlusBrachyTracker, vtkPlusFakeTracker, vtkPlusV4L2VideoSource, vtkPlusOptimetConoProbeMeasurer, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusVirtualDeinterlacer, vtkPlusAgilentScopeTracker, vtkPlusNDICertusTracker, vtkPlusICCapturingSource, vtkPlusIntuitiveDaVinciTracker, vtkPlusOpenCVCaptureVideoSource, vtkPlusSavedDataSource, vtkPlusUSDigitalEncodersTracker, vtkPlusDeckLinkVideoSource, vtkPlusTelemedVideoSource, vtkPlusUsDevice, vtkPlusChRoboticsTracker, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlus3dConnexionTracker, vtkPlusAndorVideoSource, vtkPlusClariusOEM, vtkInfraredSeekCam, vtkPlusLeapMotion, vtkPlusOpticalMarkerTracker, vtkPlusStealthLinkTracker, vtkPlusGenericSerialDevice, vtkPlusWinProbeVideoSource, vtkPlusOpenHapticsDevice, vtkPlusOpenIGTLinkDevice, vtkPlusBkProFocusOemVideoSource, vtkPlusCapistranoVideoSource, vtkPlusImageProcessorVideoSource, vtkPlusNvidiaDVPVideoSource, vtkPlusOvrvisionProVideoSource, vtkPlusUsSimulatorVideoSource, vtkPlusClarius, vtkPlusEpiphanVideoSource, vtkPlusGenericSensorTracker, vtkPlusOpenIGTLinkVideoSource, vtkPlusVirtualCapture, vtkPlusVirtualVolumeReconstructor, vtkPlusAtracsysTracker, vtkPlusDAQVideoSource, vtkPlusIntersonVideoSource, vtkPlusMicronTracker, vtkPlusPhilips3DProbeVideoSource, vtkPlusThorLabsVideoSource, vtkPlusUltravioletPCOUVCam, vtkPlusVirtualMixer, vtkPlusMicrochipTracker, vtkPlusOpenIGTLinkTracker, vtkPlusSpinnakerVideoSource, vtkPlusVirtualSwitcher, vtkPlusAscension3DGTrackerBase, vtkPlusAzureKinect, vtkPlusIntelRealSense, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusSteamVRTracker, vtkPlusNvidiaDVPVideoSource, vtkPlusRevopoint3DCamera, and vtkPlusWitMotionTracker.
|
virtual |
Are we connected?
Definition at line 1824 of file vtkPlusDevice.cxx.
|
virtual |
Is the device correctly configured?
Definition at line 830 of file vtkPlusDevice.cxx.
|
protectedvirtual |
Reimplemented in vtkPlusVirtualVolumeReconstructor, and vtkPlusVirtualCapture.
Definition at line 2135 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetDataSource | ( | const char * | aSourceId, |
vtkPlusDataSource *& | aSource | ||
) |
Get the data source object for the specified Id name, checks both video and tools
Definition at line 2262 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetDataSource | ( | const std::string & | aSourceId, |
vtkPlusDataSource *& | aSource | ||
) |
Definition at line 2283 of file vtkPlusDevice.cxx.
|
virtual |
Get the desired timestamp
|
virtual |
Definition at line 691 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetFieldDataSource | ( | const char * | aSourceId, |
vtkPlusDataSource *& | aSource | ||
) | const |
Get the field data source for the specified field data id
Definition at line 328 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetFieldDataSource | ( | const std::string & | aSourceId, |
vtkPlusDataSource *& | aSource | ||
) | const |
Definition at line 340 of file vtkPlusDevice.cxx.
DataSourceContainerConstIterator vtkPlusDevice::GetFieldDataSourcessIteratorBegin | ( | ) | const |
Get the beginning of the field data iterator
Definition at line 352 of file vtkPlusDevice.cxx.
DataSourceContainerConstIterator vtkPlusDevice::GetFieldDataSourcessIteratorEnd | ( | ) | const |
Get the end of the field data iterator
Definition at line 358 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetFirstActiveOutputVideoSource | ( | vtkPlusDataSource *& | aVideoSource | ) |
Convenience function for getting the first available video source in the output channels
Definition at line 2439 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetFirstActiveTool | ( | vtkPlusDataSource *& | aTool | ) | const |
Get the first active tool among all the source tools
Definition at line 398 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetFirstOutputChannel | ( | vtkPlusChannel *& | aChannel | ) |
Access the available output channels
Definition at line 1986 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetFirstVideoSource | ( | vtkPlusDataSource *& | anImage | ) |
Get the first active image object
Definition at line 2200 of file vtkPlusDevice.cxx.
|
virtual |
Get the frame number (some devices has frame numbering, otherwise just increment if new frame received)
Definition at line 703 of file vtkPlusDevice.cxx.
|
virtual |
Get a time stamp in seconds (resolution of milliseconds) for the most recent frame. Time began on Jan 1, 1970. This timestamp is only valid after the Output has been Updated. Usually set to the timestamp for the output if UpdateWithDesiredTimestamp is off, otherwise it is the timestamp for the most recent frame, which is not necessarily the output
Definition at line 709 of file vtkPlusDevice.cxx.
|
virtual |
Return the specified volume from the corresponding device. The assignedImageId and requestedImageId should be the same If requestedImageId is empty then GetImage will return the default image and set assignedImageId to the ID of this default image. If requestedImageId is not empty then assignedImageId is the same as the requestedImageId.
Reimplemented in vtkPlusStealthLinkTracker.
Definition at line 2468 of file vtkPlusDevice.cxx.
|
virtual |
Return a list of items that describe what image volumes this device can provide
Reimplemented in vtkPlusStealthLinkTracker.
Definition at line 2461 of file vtkPlusDevice.cxx.
|
virtual |
Get the image pixel type (B-mode, RF, ...)
Definition at line 1961 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetInputDevices | ( | std::vector< vtkPlusDevice * > & | outDeviceList | ) | const |
Build a list of all of the input devices directly connected to this device (if any)
Definition at line 546 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetInputDevicesRecursive | ( | std::vector< vtkPlusDevice * > & | outDeviceList | ) | const |
Recursively assemble all devices that feed into this device (if any)
Definition at line 558 of file vtkPlusDevice.cxx.
|
virtual |
Get the full-frame size
Definition at line 1897 of file vtkPlusDevice.cxx.
|
virtual |
Get the full-frame size
Definition at line 1915 of file vtkPlusDevice.cxx.
double vtkPlusDevice::GetInternalUpdateRate | ( | ) | const |
Get the internal update rate for this tracking system. This is the number of buffer entry items sent by the device per second (per tool).
Definition at line 663 of file vtkPlusDevice.cxx.
|
virtual |
Definition at line 534 of file vtkPlusDevice.cxx.
double vtkPlusDevice::GetMissingInputGracePeriodSec | ( | ) | const |
Definition at line 2389 of file vtkPlusDevice.cxx.
|
virtual |
Get number of field data sources
Definition at line 392 of file vtkPlusDevice.cxx.
|
virtual |
Get number of images
Definition at line 276 of file vtkPlusDevice.cxx.
|
virtual |
Get number of images
Definition at line 2153 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetOutputChannelByName | ( | vtkPlusChannel *& | aChannel, |
const char * | aChannelId | ||
) |
Definition at line 2000 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetOutputChannelByName | ( | vtkPlusChannel *& | aChannel, |
const std::string & | aChannelId | ||
) |
Definition at line 2022 of file vtkPlusDevice.cxx.
ChannelContainerConstIterator vtkPlusDevice::GetOutputChannelsEnd | ( | ) | const |
Definition at line 2301 of file vtkPlusDevice.cxx.
ChannelContainerIterator vtkPlusDevice::GetOutputChannelsEnd | ( | ) |
Definition at line 2307 of file vtkPlusDevice.cxx.
ChannelContainerConstIterator vtkPlusDevice::GetOutputChannelsStart | ( | ) | const |
Definition at line 2289 of file vtkPlusDevice.cxx.
ChannelContainerIterator vtkPlusDevice::GetOutputChannelsStart | ( | ) |
Definition at line 2295 of file vtkPlusDevice.cxx.
|
virtual |
Get the full-frame size
Definition at line 1863 of file vtkPlusDevice.cxx.
|
virtual |
Get the full-frame size
Definition at line 1881 of file vtkPlusDevice.cxx.
|
virtual |
Reimplemented in vtkPlusUsDevice.
Definition at line 578 of file vtkPlusDevice.cxx.
|
virtual |
Reimplemented in vtkPlusUsDevice.
Definition at line 589 of file vtkPlusDevice.cxx.
|
virtual |
Get the pixel type (char, unsigned short, ...)
Definition at line 1946 of file vtkPlusDevice.cxx.
|
protected |
Definition at line 2129 of file vtkPlusDevice.cxx.
|
virtual |
Hardware device SDK version. This method should be overridden in subclasses.
Reimplemented in vtkPlusNDITracker, vtkPlusTelemedVideoSource, vtkPlusSonixVideoSource, vtkPlusCapistranoVideoSource, vtkPlusICCapturingSource, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusAndorVideoSource, vtkPlusClarius, vtkPlusNDICertusTracker, vtkPlusIntuitiveDaVinciTracker, vtkPlusClariusOEM, vtkPlusIntersonVideoSource, vtkPlusOpenIGTLinkDevice, vtkPlusOpenHapticsDevice, vtkPlusAtracsysTracker, and vtkPlusMicronTracker.
Definition at line 241 of file vtkPlusDevice.cxx.
|
protected |
Definition at line 2123 of file vtkPlusDevice.cxx.
|
virtual |
Get recording start time
Definition at line 1535 of file vtkPlusDevice.cxx.
|
virtual |
Get the timestamp for the video frame returned with desired timestamping
PlusStatus vtkPlusDevice::GetTool | ( | const char * | aToolSourceId, |
vtkPlusDataSource *& | aTool | ||
) | const |
Get the tool object for the specified tool name
Definition at line 413 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetTool | ( | const std::string & | aToolSourceId, |
vtkPlusDataSource *& | aTool | ||
) | const |
Definition at line 431 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetToolByPortName | ( | const char * | aPortName, |
vtkPlusDataSource *& | aSource | ||
) |
Get the tool object for the specified tool port name
Definition at line 437 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetToolByPortName | ( | const std::string & | aPortName, |
vtkPlusDataSource *& | aSource | ||
) |
Definition at line 449 of file vtkPlusDevice.cxx.
DataSourceContainerConstIterator vtkPlusDevice::GetToolIteratorBegin | ( | ) | const |
Get the beginning of the tool iterator
Definition at line 264 of file vtkPlusDevice.cxx.
DataSourceContainerConstIterator vtkPlusDevice::GetToolIteratorEnd | ( | ) | const |
Get the end of the tool iterator
Definition at line 270 of file vtkPlusDevice.cxx.
|
static |
Return the reference frame
Definition at line 2313 of file vtkPlusDevice.cxx.
std::string vtkPlusDevice::GetToolReferenceFrameName | ( | ) | const |
Get Reference name of the tools
Definition at line 824 of file vtkPlusDevice.cxx.
|
virtual |
The result of GetOutput() will be the frame closest to DesiredTimestamp if it is set and if UpdateWithDesiredTimestamp is set on (default off)
PlusStatus vtkPlusDevice::GetVideoSource | ( | const char * | aSourceId, |
vtkPlusDataSource *& | aVideoSource | ||
) |
Get the video source for the specified source name
Definition at line 2214 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetVideoSourceByIndex | ( | const unsigned int | index, |
vtkPlusDataSource *& | aVideoSource | ||
) |
Get the video source for the specified source index
Definition at line 2243 of file vtkPlusDevice.cxx.
DataSourceContainerConstIterator vtkPlusDevice::GetVideoSourceIteratorBegin | ( | ) | const |
Get the beginning of the image iterator
Definition at line 2141 of file vtkPlusDevice.cxx.
DataSourceContainerConstIterator vtkPlusDevice::GetVideoSourceIteratorEnd | ( | ) | const |
Get the end of the image iterator
Definition at line 2147 of file vtkPlusDevice.cxx.
std::vector< vtkPlusDataSource * > vtkPlusDevice::GetVideoSources | ( | ) | const |
Get all video sources
Definition at line 2232 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetVideoSourcesByPortName | ( | const char * | aPortName, |
std::vector< vtkPlusDataSource * > & | sources | ||
) |
Get the video source objects for the specified video port name
Definition at line 464 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::GetVideoSourcesByPortName | ( | const std::string & | aPortName, |
std::vector< vtkPlusDataSource * > & | sources | ||
) |
Definition at line 476 of file vtkPlusDevice.cxx.
|
protected |
Definition at line 2383 of file vtkPlusDevice.cxx.
|
protectedvirtual |
Should be overridden to connect to the hardware
Reimplemented in vtkPlusWinProbeVideoSource, vtkPlusAndorVideoSource, vtkPlusSonixVideoSource, vtkPlusCapistranoVideoSource, vtkPlusNDITracker, vtkPlusSonixPortaVideoSource, vtkPlusClarius, vtkPlusBkProFocusOemVideoSource, vtkPlusICCapturingSource, vtkPlusVirtualVolumeReconstructor, vtkPlusVirtualCapture, vtkPlusTelemedVideoSource, vtkPlusAgilentScopeTracker, vtkPlusClariusOEM, vtkPlusSavedDataSource, vtkPlusWin32VideoSource2, vtkPlusEpiphanVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusMmfVideoSource, vtkPlusPhilips3DProbeVideoSource, vtkPlusV4L2VideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusStealthLinkTracker, vtkPlusOpenCVCaptureVideoSource, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusIntersonVideoSource, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusVirtualTextRecognizer, vtkPlusIntuitiveDaVinciTracker, vtkPlusPhidgetSpatialTracker, vtkPlusAtracsysTracker, vtkPlusThorLabsVideoSource, vtkPlusOvrvisionProVideoSource, vtkPlusMicronTracker, vtkPlusLeapMotion, vtkInfraredSeekCam, vtkPlusUsSimulatorVideoSource, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlusAzureKinect, vtkPlusRevopoint3DCamera, vtkPlusNvidiaDVPVideoSource, vtkPlusBrachyTracker, vtkPlusUltravioletPCOUVCam, vtkPlusImageProcessorVideoSource, vtkPlusOpenHapticsDevice, vtkPlusFakeTracker, vtkPlusIntelRealSense, vtkPlusDAQVideoSource, vtkPlusOptimetConoProbeMeasurer, vtkPlusNDICertusTracker, vtkPlusNvidiaDVPVideoSource, vtkPlusUSDigitalEncodersTracker, vtkPlusSteamVRTracker, vtkPlusDeckLinkVideoSource, vtkPlusOpticalMarkerTracker, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusGenericSerialDevice, vtkPlusGenericSensorTracker, vtkPlusOpenIGTLinkDevice, vtkPlusChRoboticsTracker, vtkPlus3dConnexionTracker, vtkPlusAscension3DGTrackerBase, and vtkPlusMicrochipTracker.
Definition at line 1401 of file vtkPlusDevice.cxx.
|
protectedvirtual |
Release the video driver. Should be overridden to disconnect from the hardware.
Reimplemented in vtkPlusWinProbeVideoSource, vtkPlusAndorVideoSource, vtkPlusSonixVideoSource, vtkPlusCapistranoVideoSource, vtkPlusNDITracker, vtkPlusSonixPortaVideoSource, vtkPlusClarius, vtkPlusBkProFocusOemVideoSource, vtkPlusICCapturingSource, vtkPlusVirtualVolumeReconstructor, vtkPlusClariusOEM, vtkPlusVirtualCapture, vtkPlusSavedDataSource, vtkPlusTelemedVideoSource, vtkPlusAgilentScopeTracker, vtkPlusWin32VideoSource2, vtkPlusEpiphanVideoSource, vtkPlusMmfVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusPhilips3DProbeVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusStealthLinkTracker, vtkPlusV4L2VideoSource, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusOpenCVCaptureVideoSource, vtkPlusIntersonVideoSource, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusVirtualTextRecognizer, vtkPlusIntuitiveDaVinciTracker, vtkPlusPhidgetSpatialTracker, vtkPlusAtracsysTracker, vtkPlusThorLabsVideoSource, vtkPlusOvrvisionProVideoSource, vtkPlusMicronTracker, vtkPlusLeapMotion, vtkPlusUsSimulatorVideoSource, vtkInfraredSeekCam, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlusAzureKinect, vtkPlusRevopoint3DCamera, vtkPlusBrachyTracker, vtkPlusNvidiaDVPVideoSource, vtkPlusFakeTracker, vtkPlusOpenHapticsDevice, vtkPlusUltravioletPCOUVCam, vtkPlusImageProcessorVideoSource, vtkPlusOptimetConoProbeMeasurer, vtkPlusIntelRealSense, vtkPlusNDICertusTracker, vtkPlusUSDigitalEncodersTracker, vtkPlusDAQVideoSource, vtkPlusNvidiaDVPVideoSource, vtkPlusSteamVRTracker, vtkPlusDeckLinkVideoSource, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusGenericSerialDevice, vtkPlusOpenIGTLinkDevice, vtkPlusChRoboticsTracker, vtkPlusGenericSensorTracker, vtkPlus3dConnexionTracker, vtkPlusAscension3DGTrackerBase, vtkPlusMicrochipTracker, and vtkPlusOpenIGTLinkTracker.
Definition at line 1407 of file vtkPlusDevice.cxx.
|
protectedvirtual |
Called at the end of StartRecording to allow hardware-specific actions for starting the recording
Reimplemented in vtkPlusWinProbeVideoSource, vtkPlusAndorVideoSource, vtkPlusSonixVideoSource, vtkPlusCapistranoVideoSource, vtkPlusNDITracker, vtkPlusSonixPortaVideoSource, vtkPlusBrachyTracker, vtkPlusBkProFocusOemVideoSource, vtkPlusICCapturingSource, vtkPlusPhidgetSpatialTracker, vtkPlusClariusOEM, vtkPlusUSDigitalEncodersTracker, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusWin32VideoSource2, vtkPlusEpiphanVideoSource, vtkPlusMmfVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusAscension3DGTrackerBase, vtkPlusStealthLinkTracker, vtkPlusV4L2VideoSource, vtkPlusNDICertusTracker, vtkPlusFakeTracker, vtkPlusIntersonVideoSource, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlus3dConnexionTracker, vtkPlusIntuitiveDaVinciTracker, vtkPlusSpinnakerVideoSource, vtkPlusChRoboticsTracker, vtkPlusThorLabsVideoSource, vtkPlusLeapMotion, vtkPlusMicronTracker, vtkPlusDeckLinkVideoSource, vtkPlusGenericSensorTracker, vtkPlusAzureKinect, vtkPlusIntelRealSense, and vtkPlusRevopoint3DCamera.
Definition at line 1413 of file vtkPlusDevice.cxx.
|
protectedvirtual |
Called at the beginning of StopRecording to allow hardware-specific actions for stopping the recording
Reimplemented in vtkPlusWinProbeVideoSource, vtkPlusAndorVideoSource, vtkPlusSonixVideoSource, vtkPlusCapistranoVideoSource, vtkPlusNDITracker, vtkPlusSonixPortaVideoSource, vtkPlusBrachyTracker, vtkPlusBkProFocusOemVideoSource, vtkPlusICCapturingSource, vtkPlusPhidgetSpatialTracker, vtkPlusClariusOEM, vtkPlusUSDigitalEncodersTracker, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusWin32VideoSource2, vtkPlusEpiphanVideoSource, vtkPlusMmfVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusAscension3DGTrackerBase, vtkPlusStealthLinkTracker, vtkPlusNDICertusTracker, vtkPlusFakeTracker, vtkPlusIntersonVideoSource, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusV4L2VideoSource, vtkPlus3dConnexionTracker, vtkPlusIntuitiveDaVinciTracker, vtkPlusSpinnakerVideoSource, vtkPlusChRoboticsTracker, vtkPlusThorLabsVideoSource, vtkPlusLeapMotion, vtkPlusDeckLinkVideoSource, vtkPlusAzureKinect, vtkPlusGenericSensorTracker, vtkPlusIntelRealSense, and vtkPlusRevopoint3DCamera.
Definition at line 1419 of file vtkPlusDevice.cxx.
|
virtual |
The subclass will do all the hardware-specific update stuff in this function. It should call ToolUpdate() for each tool. Note that vtkPlusDevice.cxx starts up a separate thread after InternalStartRecording() is called, and that InternalUpdate() is called repeatedly from within that thread. Therefore, any code within InternalUpdate() must be thread safe. You can temporarily pause the thread by locking this->UpdateMutex->Lock() e.g. if you need to communicate with the device from outside of InternalUpdate(). A call to this->UpdateMutex->Unlock() will resume the thread.
Reimplemented in vtkPlusWinProbeVideoSource, vtkPlusAndorVideoSource, vtkPlusCapistranoVideoSource, vtkPlusNDITracker, vtkPlusBrachyTracker, vtkPlusBkProFocusOemVideoSource, vtkPlusSavedDataSource, vtkPlusWin32VideoSource2, vtkPlusVirtualTextRecognizer, vtkPlusEpiphanVideoSource, vtkPlusStealthLinkTracker, vtkPlusVirtualVolumeReconstructor, vtkPlusIntersonSDKCxxVideoSource, vtkPlusPhilips3DProbeVideoSource, vtkPlusFakeTracker, vtkPlusIntersonVideoSource, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusThorLabsVideoSource, vtkPlusAtracsysTracker, vtkPlusOptimetConoProbeMeasurer, vtkPlusOvrvisionProVideoSource, vtkPlusUSDigitalEncodersTracker, vtkPlusClariusOEM, vtkPlusLeapMotion, vtkPlusNDICertusTracker, vtkPlusUsSimulatorVideoSource, vtkPlusV4L2VideoSource, vtkPlusNvidiaDVPVideoSource, vtkPlusVirtualDeinterlacer, vtkPlusAscension3DGTrackerBase, vtkPlusAzureKinect, vtkPlusOpenCVCaptureVideoSource, vtkPlusRevopoint3DCamera, vtkPlusAgilentScopeTracker, vtkPlusChRoboticsTracker, vtkPlus3dConnexionTracker, vtkPlusNvidiaDVPVideoSource, vtkPlusGenericSerialDevice, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusTelemedVideoSource, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlusIntelRealSense, vtkPlusVirtualSwitcher, vtkInfraredSeekCam, vtkPlusOpenHapticsDevice, vtkPlusSteamVRTracker, vtkPlusOpticalMarkerTracker, vtkPlusGenericSensorTracker, vtkPlusUltravioletPCOUVCam, vtkPlusDAQVideoSource, vtkPlusMicrochipTracker, vtkPlusImageProcessorVideoSource, vtkPlusVirtualCapture, vtkPlusMicronTracker, vtkPlusOpenIGTLinkTracker, vtkPlusOpenIGTLinkVideoSource, and vtkPlusWitMotionTracker.
Definition at line 540 of file vtkPlusDevice.cxx.
|
protectedvirtual |
Method that writes output streams to XML
Definition at line 2082 of file vtkPlusDevice.cxx.
|
protectedvirtual |
Method that writes output streams to XML
Reimplemented in vtkPlusVirtualVolumeReconstructor, and vtkPlusVirtualCapture.
Definition at line 2069 of file vtkPlusDevice.cxx.
|
virtual |
Reimplemented in vtkPlusNDITracker, vtkPlusSonixVideoSource, vtkPlusVirtualTextRecognizer, vtkPlusPhidgetSpatialTracker, vtkPlusMmfVideoSource, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusWin32VideoSource2, vtkPlusBrachyTracker, vtkPlusFakeTracker, vtkPlusV4L2VideoSource, vtkPlusOptimetConoProbeMeasurer, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusVirtualDeinterlacer, vtkPlusAgilentScopeTracker, vtkPlusNDICertusTracker, vtkPlusICCapturingSource, vtkPlusIntuitiveDaVinciTracker, vtkPlusOpenCVCaptureVideoSource, vtkPlusSavedDataSource, vtkPlusUSDigitalEncodersTracker, vtkPlusDeckLinkVideoSource, vtkPlusTelemedVideoSource, vtkPlusUsDevice, vtkPlusChRoboticsTracker, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlus3dConnexionTracker, vtkPlusAndorVideoSource, vtkPlusClariusOEM, vtkInfraredSeekCam, vtkPlusLeapMotion, vtkPlusOpticalMarkerTracker, vtkPlusStealthLinkTracker, vtkPlusGenericSerialDevice, vtkPlusWinProbeVideoSource, vtkPlusOpenHapticsDevice, vtkPlusOpenIGTLinkDevice, vtkPlusBkProFocusOemVideoSource, vtkPlusCapistranoVideoSource, vtkPlusImageProcessorVideoSource, vtkPlusNvidiaDVPVideoSource, vtkPlusOvrvisionProVideoSource, vtkPlusUsSimulatorVideoSource, vtkPlusClarius, vtkPlusEpiphanVideoSource, vtkPlusGenericSensorTracker, vtkPlusOpenIGTLinkVideoSource, vtkPlusVirtualCapture, vtkPlusVirtualVolumeReconstructor, vtkPlusAtracsysTracker, vtkPlusDAQVideoSource, vtkPlusIntersonVideoSource, vtkPlusMicronTracker, vtkPlusPhilips3DProbeVideoSource, vtkPlusThorLabsVideoSource, vtkPlusUltravioletPCOUVCam, vtkPlusVirtualMixer, vtkPlusMicrochipTracker, vtkPlusOpenIGTLinkTracker, vtkPlusSpinnakerVideoSource, vtkPlusVirtualSwitcher, vtkPlusAscension3DGTrackerBase, vtkPlusAzureKinect, vtkPlusIntelRealSense, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusSteamVRTracker, vtkPlusNvidiaDVPVideoSource, vtkPlusRevopoint3DCamera, and vtkPlusWitMotionTracker.
|
virtual |
Definition at line 1830 of file vtkPlusDevice.cxx.
|
virtual |
Get whether recording is underway
Definition at line 685 of file vtkPlusDevice.cxx.
|
virtual |
Return whether or not the device can be reset
Reimplemented in vtkPlusPhidgetSpatialTracker, and vtkPlusVirtualMixer.
Definition at line 249 of file vtkPlusDevice.cxx.
|
virtual |
Is this device a tracker
Reimplemented in vtkPlusSonixPortaVideoSource, vtkPlusSonixVideoSource, vtkPlusWinProbeVideoSource, vtkPlusNDITracker, vtkPlusVirtualVolumeReconstructor, vtkPlusICCapturingSource, vtkPlusBrachyTracker, vtkPlusVirtualCapture, vtkPlusVirtualTextRecognizer, vtkPlusWin32VideoSource2, vtkPlusSavedDataSource, vtkPlusClarius, vtkPlusMmfVideoSource, vtkPlus3dConnexionTracker, vtkPlusPhidgetSpatialTracker, vtkPlusNDICertusTracker, vtkPlusFakeTracker, vtkPlusChRoboticsTracker, vtkPlusAtracsysTracker, vtkPlusGenericSerialDevice, vtkPlusCapistranoVideoSource, vtkPlusV4L2VideoSource, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusOpticalMarkerTracker, vtkPlusOpenCVCaptureVideoSource, vtkPlusImageProcessorVideoSource, vtkPlusOptimetConoProbeMeasurer, vtkPlusTelemedVideoSource, vtkPlusVirtualDeinterlacer, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusAgilentScopeTracker, vtkPlusAzureKinect, vtkInfraredSeekCam, vtkPlusIntelRealSense, vtkPlusIntuitiveDaVinciTracker, vtkPlusVirtualSwitcher, vtkPlusRevopoint3DCamera, vtkPlusClariusOEM, vtkPlusMicrochipTracker, vtkPlusOpenIGTLinkTracker, vtkPlusUSDigitalEncodersTracker, vtkPlusUsSimulatorVideoSource, vtkPlusOpenIGTLinkVideoSource, vtkPlusUltravioletPCOUVCam, vtkPlusNvidiaDVPVideoSource, vtkPlusDeckLinkVideoSource, vtkPlusStealthLinkTracker, vtkPlusDAQVideoSource, vtkPlusPhilips3DProbeVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusAndorVideoSource, vtkPlusOpenHapticsDevice, vtkPlusLeapMotion, vtkPlusNvidiaDVPVideoSource, vtkPlusThorLabsVideoSource, vtkPlusBkProFocusOemVideoSource, vtkPlusGenericSensorTracker, vtkPlusMicronTracker, vtkPlusOvrvisionProVideoSource, vtkPlusEpiphanVideoSource, vtkPlusVirtualMixer, vtkPlusIntersonVideoSource, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusAscension3DGTrackerBase, vtkPlusSteamVRTracker, and vtkPlusWitMotionTracker.
Definition at line 2347 of file vtkPlusDevice.cxx.
|
static |
|
virtual |
Reimplemented in vtkPlusVirtualVolumeReconstructor, vtkPlusVirtualCapture, vtkPlusVirtualTextRecognizer, vtkPlusAtracsysTracker, vtkPlusOpticalMarkerTracker, vtkPlusAzureKinect, vtkPlusImageProcessorVideoSource, vtkPlusVirtualDeinterlacer, vtkPlusRevopoint3DCamera, vtkPlusIntelRealSense, vtkPlusVirtualSwitcher, vtkPlusClariusOEM, vtkPlusDeckLinkVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusVirtualMixer, vtkPlusOptiTrack, and vtkPlusPicoScopeDataSource.
Definition at line 2354 of file vtkPlusDevice.cxx.
|
static |
|
virtual |
Perform any completion tasks once configured
Reimplemented in vtkPlusSonixVideoSource, vtkPlusICCapturingSource, vtkPlusGenericSerialDevice, vtkPlusVirtualVolumeReconstructor, vtkPlusSavedDataSource, vtkPlusTelemedVideoSource, vtkPlusVirtualTextRecognizer, vtkPlusWin32VideoSource2, vtkPlusEpiphanVideoSource, vtkPlusMmfVideoSource, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusCapistranoVideoSource, vtkPlusLeapMotion, vtkPlusMicronTracker, vtkPlusOpenHapticsDevice, vtkPlusClarius, vtkPlusV4L2VideoSource, vtkPlusAgilentScopeTracker, vtkPlusClariusOEM, vtkPlusAzureKinect, vtkPlusRevopoint3DCamera, vtkPlusBrachyTracker, vtkPlusOpenCVCaptureVideoSource, vtkPlusIntelRealSense, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusVirtualDeinterlacer, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkInfraredSeekCam, vtkPlusVirtualMixer, vtkPlusAndorVideoSource, vtkPlusDeckLinkVideoSource, vtkPlusOpticalMarkerTracker, vtkPlusOpenIGTLinkVideoSource, vtkPlusUltravioletPCOUVCam, vtkPlusOvrvisionProVideoSource, vtkPlusDAQVideoSource, vtkPlusNvidiaDVPVideoSource, vtkPlusSteamVRTracker, vtkPlusWitMotionTracker, vtkPlusBkProFocusOemVideoSource, vtkPlusImageProcessorVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusPhilips3DProbeVideoSource, vtkPlusUsSimulatorVideoSource, vtkPlusVirtualCapture, vtkPlusVirtualSwitcher, vtkPlusIntersonVideoSource, vtkPlusNvidiaDVPVideoSource, and vtkPlusThorLabsVideoSource.
Definition at line 2057 of file vtkPlusDevice.cxx.
|
virtual |
Reimplemented in vtkPlusVirtualVolumeReconstructor, and vtkPlusVirtualCapture.
Definition at line 2028 of file vtkPlusDevice.cxx.
|
virtual |
Reimplemented in vtkPlusNDITracker, vtkPlusSonixVideoSource, vtkPlusVirtualTextRecognizer, vtkPlusPhidgetSpatialTracker, vtkPlusMmfVideoSource, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusWin32VideoSource2, vtkPlusBrachyTracker, vtkPlusV4L2VideoSource, vtkPlusOptimetConoProbeMeasurer, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusVirtualDeinterlacer, vtkPlusAgilentScopeTracker, vtkPlusNDICertusTracker, vtkPlusClarius, vtkPlusICCapturingSource, vtkPlusIntuitiveDaVinciTracker, vtkPlusOpenCVCaptureVideoSource, vtkPlusSavedDataSource, vtkPlusUSDigitalEncodersTracker, vtkPlusDeckLinkVideoSource, vtkPlusTelemedVideoSource, vtkPlusUsDevice, vtkPlusChRoboticsTracker, vtkPlusClariusOEM, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlusAndorVideoSource, vtkInfraredSeekCam, vtkPlusLeapMotion, vtkPlusOpticalMarkerTracker, vtkPlusStealthLinkTracker, vtkPlusGenericSerialDevice, vtkPlusWinProbeVideoSource, vtkPlusOpenIGTLinkDevice, vtkPlusBkProFocusOemVideoSource, vtkPlusCapistranoVideoSource, vtkPlusImageProcessorVideoSource, vtkPlusNvidiaDVPVideoSource, vtkPlusOvrvisionProVideoSource, vtkPlusUsSimulatorVideoSource, vtkPlusEpiphanVideoSource, vtkPlusGenericSensorTracker, vtkPlusOpenIGTLinkVideoSource, vtkPlusVirtualCapture, vtkPlusVirtualVolumeReconstructor, vtkPlusAtracsysTracker, vtkPlusDAQVideoSource, vtkPlusIntersonVideoSource, vtkPlusPhilips3DProbeVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusThorLabsVideoSource, vtkPlusUltravioletPCOUVCam, vtkPlusVirtualMixer, vtkPlusOpenIGTLinkTracker, vtkPlusVirtualSwitcher, vtkPlusAscension3DGTrackerBase, vtkPlusAzureKinect, vtkPlusIntelRealSense, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusSteamVRTracker, vtkPlusNvidiaDVPVideoSource, and vtkPlusRevopoint3DCamera.
Definition at line 195 of file vtkPlusDevice.cxx.
|
virtual |
Probe to see to see if the device is connected to the computer. This method should be overridden in subclasses.
Reimplemented in vtkPlusNDITracker, vtkPlusSavedDataSource, vtkPlusPhidgetSpatialTracker, vtkPlusAtracsysTracker, vtkPlusUSDigitalEncodersTracker, vtkPlusBrachyTracker, vtkPlusNDICertusTracker, vtkPlusFakeTracker, vtkPlusAgilentScopeTracker, vtkPlusAscension3DGTrackerBase, vtkPlusDeckLinkVideoSource, vtkPlusIntuitiveDaVinciTracker, vtkPlusClarius, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusChRoboticsTracker, vtkPlusOpenIGTLinkDevice, vtkPlus3dConnexionTracker, vtkPlusGenericSensorTracker, vtkPlusOpenHapticsDevice, vtkPlusClariusOEM, vtkPlusLeapMotion, vtkPlusMicronTracker, and vtkPlusSteamVRTracker.
Definition at line 1563 of file vtkPlusDevice.cxx.
|
virtual |
Read main configuration from xml data
Reimplemented in vtkPlusNDITracker, vtkPlusBrachyTracker, vtkPlusWinProbeVideoSource, vtkPlusStealthLinkTracker, vtkPlusVirtualVolumeReconstructor, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusPhidgetSpatialTracker, vtkPlusVirtualTextRecognizer, vtkPlusSonixVideoSource, vtkPlusMmfVideoSource, vtkPlusICCapturingSource, vtkPlusAtracsysTracker, vtkPlusCapistranoVideoSource, vtkPlusFakeTracker, vtkPlusOpenHapticsDevice, vtkPlusAgilentScopeTracker, vtkPlusChRoboticsTracker, vtkPlusOptimetConoProbeMeasurer, vtkPlusUSDigitalEncodersTracker, vtkPlus3dConnexionTracker, vtkPlusGenericSerialDevice, vtkPlusClarius, vtkPlusV4L2VideoSource, vtkPlusClariusOEM, vtkPlusIntuitiveDaVinciTracker, vtkPlusVirtualDeinterlacer, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusOpenIGTLinkDevice, vtkPlusMicronTracker, vtkPlusThorLabsVideoSource, vtkPlusAndorVideoSource, vtkPlusOpenCVCaptureVideoSource, vtkPlusSavedDataSource, vtkPlusVirtualMixer, vtkPlusDeckLinkVideoSource, vtkPlusLeapMotion, vtkPlusOvrvisionProVideoSource, vtkPlusAscension3DGTrackerBase, vtkPlusTelemedVideoSource, vtkPlusVirtualSwitcher, vtkPlusUsDevice, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlusOpenIGTLinkTracker, vtkPlusBkProFocusOemVideoSource, vtkInfraredSeekCam, vtkPlusOpenIGTLinkVideoSource, vtkPlusOpticalMarkerTracker, vtkPlusEpiphanVideoSource, vtkPlusImageProcessorVideoSource, vtkPlusIntersonVideoSource, vtkPlusNvidiaDVPVideoSource, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusUsSimulatorVideoSource, vtkPlusVirtualCapture, vtkPlusDAQVideoSource, vtkPlusPhilips3DProbeVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusUltravioletPCOUVCam, vtkPlusGenericSensorTracker, vtkPlusAzureKinect, vtkPlusIntelRealSense, vtkPlusNvidiaDVPVideoSource, and vtkPlusRevopoint3DCamera.
Definition at line 929 of file vtkPlusDevice.cxx.
|
virtual |
Return the latest or desired image frame. This method can be overridden in subclasses Part of the vtkAlgorithm pipeline
Definition at line 1754 of file vtkPlusDevice.cxx.
|
virtual |
Return the latest or desired image frame. This method can be overridden in subclasses Part of the vtkAlgorithm pipeline
Definition at line 1706 of file vtkPlusDevice.cxx.
|
virtual |
Reset the device. The actual reset action is defined in subclasses. A reset is typically performed on the users request while the device is connected. A reset can be used for zeroing sensors, canceling an operation in progress, etc.
Reimplemented in vtkPlusPhidgetSpatialTracker, vtkPlusVirtualVolumeReconstructor, vtkPlusVirtualCapture, and vtkPlusVirtualMixer.
Definition at line 256 of file vtkPlusDevice.cxx.
|
static |
|
virtual |
Send text message to the device. If a non-NULL pointer is passed as textReceived then the device waits for a response and returns it in textReceived.
Reimplemented in vtkPlusGenericSerialDevice.
Definition at line 2475 of file vtkPlusDevice.cxx.
PlusStatus vtkPlusDevice::SetAcquisitionRate | ( | double | aRate | ) |
Definition at line 669 of file vtkPlusDevice.cxx.
|
virtual |
Get the buffer that is used to hold the data There are cases when multiple externally controlled buffers are needed. There must always be a valid buffer in the data object, therefore the input parameter shall not be NULL.
Set size of the internal frame buffer, i.e. the number of most recent frames that are stored in the video source class internally.
Definition at line 1468 of file vtkPlusDevice.cxx.
|
protectedvirtual |
|
virtual |
Set the parent data collector
Definition at line 2377 of file vtkPlusDevice.cxx.
|
virtual |
Set the desired timestamp. The result of GetOutput() will be the frame closest to DesiredTimestamp if it is set and if UpdateWithDesiredTimestamp is set on (default off)
void vtkPlusDevice::SetDeviceId | ( | const std::string & | id | ) |
Definition at line 697 of file vtkPlusDevice.cxx.
void vtkPlusDevice::SetFieldDataSourcesBufferSize | ( | int | aBufferSize | ) |
Set buffer size of all available field data sources
Definition at line 507 of file vtkPlusDevice.cxx.
|
virtual |
Set the image type (B-mode, RF, ...) provided by the video source.
Definition at line 1974 of file vtkPlusDevice.cxx.
|
virtual |
Set the full-frame size. This must be an allowed size for the device, the device may either refuse a request for an illegal frame size or automatically choose a new frame size.
Definition at line 1836 of file vtkPlusDevice.cxx.
|
virtual |
Set local time offset of all available buffers
Definition at line 517 of file vtkPlusDevice.cxx.
|
virtual |
|
virtual |
Reimplemented in vtkPlusUsDevice.
Definition at line 570 of file vtkPlusDevice.cxx.
|
virtual |
Set the pixel type (char, unsigned short, ...)
Definition at line 1931 of file vtkPlusDevice.cxx.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Set recording start time
Definition at line 1516 of file vtkPlusDevice.cxx.
void vtkPlusDevice::SetToolReferenceFrameName | ( | const std::string & | frameName | ) |
Set Reference name of the tools
Definition at line 818 of file vtkPlusDevice.cxx.
void vtkPlusDevice::SetToolsBufferSize | ( | int | aBufferSize | ) |
Set buffer size of all available tools
Definition at line 497 of file vtkPlusDevice.cxx.
|
virtual |
The result of GetOutput() will be the frame closest to DesiredTimestamp if it is set and if UpdateWithDesiredTimestamp is set on (default off)
|
virtual |
Record incoming data at the specified acquisition rate. The recording continues indefinitely until StopRecording() is called.
Definition at line 1273 of file vtkPlusDevice.cxx.
|
virtual |
Stop recording
Definition at line 1316 of file vtkPlusDevice.cxx.
|
protectedvirtual |
This function is called by InternalUpdate() so that the subclasses can communicate information back to the vtkPlusDevice base class, which will in turn relay the information to the appropriate vtkPlusDataSource.
Definition at line 1678 of file vtkPlusDevice.cxx.
|
protectedvirtual |
This function is called by InternalUpdate() so that the subclasses can communicate information back to the vtkPlusDevice base class, which will in turn relay the information to the appropriate vtkPlusDataSource. This function is for devices has no frame numbering, just auto increment tool frame number if new frame received
Definition at line 1619 of file vtkPlusDevice.cxx.
|
virtual |
|
virtual |
The result of GetOutput() will be the frame closest to DesiredTimestamp if it is set and if UpdateWithDesiredTimestamp is set on (default off)
|
staticprotected |
Definition at line 1355 of file vtkPlusDevice.cxx.
|
virtual |
Write main configuration to xml data
Reimplemented in vtkPlusNDITracker, vtkPlusBrachyTracker, vtkPlusWinProbeVideoSource, vtkPlusStealthLinkTracker, vtkPlusVirtualVolumeReconstructor, vtkPlusBkProFocusCameraLinkVideoSource, vtkPlusPhidgetSpatialTracker, vtkPlusVirtualTextRecognizer, vtkPlusSonixVideoSource, vtkPlusMmfVideoSource, vtkPlusAtracsysTracker, vtkPlusICCapturingSource, vtkPlusCapistranoVideoSource, vtkPlusOpenHapticsDevice, vtkPlusAgilentScopeTracker, vtkPlusChRoboticsTracker, vtkPlusOptimetConoProbeMeasurer, vtkPlusUSDigitalEncodersTracker, vtkPlus3dConnexionTracker, vtkPlusGenericSerialDevice, vtkPlusClarius, vtkPlusClariusOEM, vtkPlusIntuitiveDaVinciTracker, vtkPlusV4L2VideoSource, vtkPlusVirtualDeinterlacer, vtkPlusIntersonArraySDKCxxVideoSource, vtkPlusIntersonSDKCxxVideoSource, vtkPlusOpenIGTLinkDevice, vtkPlusThorLabsVideoSource, vtkPlusMicronTracker, vtkPlusAndorVideoSource, vtkPlusLeapMotion, vtkPlusOpenCVCaptureVideoSource, vtkPlusSavedDataSource, vtkPlusDeckLinkVideoSource, vtkPlusAscension3DGTrackerBase, vtkPlusOvrvisionProVideoSource, vtkPlusUsDevice, vtkPlusOpenIGTLinkTracker, vtkPlusTelemedVideoSource, vtkPlusInfraredTEEV2Cam, vtkInfraredTEQ1Cam, vtkPlusOpenIGTLinkVideoSource, vtkPlusOpticalMarkerTracker, vtkPlusBkProFocusOemVideoSource, vtkInfraredSeekCam, vtkPlusEpiphanVideoSource, vtkPlusImageProcessorVideoSource, vtkPlusOptiTrack, vtkPlusPicoScopeDataSource, vtkPlusIntersonVideoSource, vtkPlusNvidiaDVPVideoSource, vtkPlusVirtualCapture, vtkPlusDAQVideoSource, vtkPlusPhilips3DProbeVideoSource, vtkPlusSpinnakerVideoSource, vtkPlusUltravioletPCOUVCam, vtkPlusAzureKinect, vtkPlusIntelRealSense, vtkPlusNvidiaDVPVideoSource, and vtkPlusRevopoint3DCamera.
Definition at line 1136 of file vtkPlusDevice.cxx.
|
virtual |
Dump the current state of the device to sequence file (with each tools and buffers)
Definition at line 715 of file vtkPlusDevice.cxx.
|
protected |
Acquisition rate
Definition at line 564 of file vtkPlusDevice.h.
|
static |
Definition at line 67 of file vtkPlusDevice.h.
|
protected |
Definition at line 538 of file vtkPlusDevice.h.
|
protected |
Is this device correctly configured?
Definition at line 582 of file vtkPlusDevice.h.
|
protected |
A stream buffer item to use as a temporary staging point
Definition at line 550 of file vtkPlusDevice.h.
|
protected |
Definition at line 561 of file vtkPlusDevice.h.
|
protected |
if we want to update according to the frame closest to the timestamp specified by desiredTimestamp
Definition at line 570 of file vtkPlusDevice.h.
|
protected |
Id of the device
Definition at line 559 of file vtkPlusDevice.h.
|
protected |
Definition at line 553 of file vtkPlusDevice.h.
|
protected |
Sequential number of frame, possibly since last re-initialization.
Definition at line 575 of file vtkPlusDevice.h.
|
protected |
Definition at line 576 of file vtkPlusDevice.h.
|
protected |
Definition at line 547 of file vtkPlusDevice.h.
double vtkPlusDevice::InternalUpdateRate |
Definition at line 290 of file vtkPlusDevice.h.
|
protected |
Value to use when mixing data with another temporally calibrated device
Definition at line 591 of file vtkPlusDevice.h.
|
protected |
Adjust the device reporting behaviour depending on whether or not a grace period has expired
Definition at line 594 of file vtkPlusDevice.h.
|
protected |
Definition at line 546 of file vtkPlusDevice.h.
|
protected |
Set if output needs to be cleared to be cleared before being written
Definition at line 579 of file vtkPlusDevice.h.
|
static |
Definition at line 70 of file vtkPlusDevice.h.
|
protected |
Map to store general purpose device parameters
Definition at line 606 of file vtkPlusDevice.h.
|
static |
Definition at line 69 of file vtkPlusDevice.h.
|
protected |
Definition at line 567 of file vtkPlusDevice.h.
|
protected |
Adjust the device reporting behaviour depending on whether or not a grace period has expired
Definition at line 596 of file vtkPlusDevice.h.
|
protected |
The list contains the IDs of the tools that have been already reported to be unknown. This list is used to only report an unknown tool once (after the connection has been established), not at each attempt to access it.
Definition at line 603 of file vtkPlusDevice.h.
|
protected |
Definition at line 615 of file vtkPlusDevice.h.
|
protected |
Definition at line 616 of file vtkPlusDevice.h.
|
static |
Definition at line 68 of file vtkPlusDevice.h.
|
protected |
If enabled, then a data capture thread is created when the device is connected that regularly calls InternalUpdate. This update mechanism is useful for devices that don't provide callback functions but require polling.
Definition at line 588 of file vtkPlusDevice.h.
|
protected |
Flag to store recording thread state
Definition at line 535 of file vtkPlusDevice.h.
|
protected |
Thread used for acquisition
Definition at line 541 of file vtkPlusDevice.h.
|
protected |
Recording thread id
Definition at line 544 of file vtkPlusDevice.h.
|
protected |
Definition at line 572 of file vtkPlusDevice.h.
|
protected |
Reference name of the tools
Definition at line 556 of file vtkPlusDevice.h.
|
protected |
Definition at line 551 of file vtkPlusDevice.h.
vtkIGSIORecursiveCriticalSection* vtkPlusDevice::UpdateMutex |
Definition at line 288 of file vtkPlusDevice.h.
vtkTimeStamp vtkPlusDevice::UpdateTime |
Definition at line 289 of file vtkPlusDevice.h.
|
protected |
Definition at line 571 of file vtkPlusDevice.h.
|
protected |
Definition at line 552 of file vtkPlusDevice.h.
|
staticprotected |
Definition at line 608 of file vtkPlusDevice.h.