7 #ifndef __vtkPlusUsDevice_h 8 #define __vtkPlusUsDevice_h 10 #include "igsioCommon.h" 11 #include "PlusConfigure.h" 12 #include "vtkPlusDataCollectionExport.h" 14 #include <igtlioUsSectorDefinitions.h> 49 virtual PlusStatus AddVideoItemToVideoSource(
vtkPlusDataSource& videoSource,
const igsioVideoFrame& frame,
long frameNumber,
double unfilteredTimestamp = UNDEFINED_TIMESTAMP,
50 double filteredTimestamp = UNDEFINED_TIMESTAMP,
const igsioFieldMapType* customFields = NULL);
53 unsigned int numberOfScalarComponents, US_IMAGE_TYPE imageType,
int numberOfBytesToSkip,
long frameNumber,
double unfilteredTimestamp = UNDEFINED_TIMESTAMP,
54 double filteredTimestamp = UNDEFINED_TIMESTAMP,
const igsioFieldMapType* customFields = NULL);
57 virtual PlusStatus AddVideoItemToVideoSources(
const std::vector<vtkPlusDataSource*>& videoSources,
const igsioVideoFrame& frame,
long frameNumber,
double unfilteredTimestamp = UNDEFINED_TIMESTAMP,
58 double filteredTimestamp = UNDEFINED_TIMESTAMP,
const igsioFieldMapType* customFields = NULL)
override;
61 virtual PlusStatus AddVideoItemToVideoSources(
const std::vector<vtkPlusDataSource*>& videoSources,
void* imageDataPtr, US_IMAGE_ORIENTATION usImageOrientation,
const FrameSizeType& frameSizeInPx,
62 igsioCommon::VTKScalarPixelType pixelType,
unsigned int numberOfScalarComponents, US_IMAGE_TYPE imageType,
int numberOfBytesToSkip,
long frameNumber,
double unfilteredTimestamp = UNDEFINED_TIMESTAMP,
63 double filteredTimestamp = UNDEFINED_TIMESTAMP,
const igsioFieldMapType* customFields = NULL)
override;
72 vtkGetStdStringMacro(ImageToTransducerTransformName);
73 vtkSetStdStringMacro(ImageToTransducerTransformName);
84 bool IsKnownKey(
const std::string& queryKey)
const;
90 virtual IGTLIO_PROBE_TYPE GetProbeType();
93 virtual std::vector<double> CalculateOrigin();
98 virtual std::vector<double> CalculateAngles();
102 virtual std::vector<double> CalculateBoundingBox();
105 virtual std::vector<double> CalculateDepths();
108 virtual double CalculateLinearWidth();
112 virtual PlusStatus InternalApplyImagingParameterChange();
114 void CalculateImageToTransducer(igsioFieldMapType& customFields);
124 double CurrentPixelSpacingMm[3];
126 int CurrentTransducerOriginPixels[3];
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract interface for tracker and video devices.
This class is used to store a configuration of the imaging parameters of an ultrasound video device....
virtual PlusStatus SetParameter(const std::string &key, const std::string &value)
virtual std::string GetParameter(const std::string &key) const
vtkPlusUsImagingParameters * ImagingParameters
Store the current imaging parameters.
std::string ImageToTransducerTransformName
virtual PlusStatus ReadConfiguration(vtkXMLDataElement *)
virtual PlusStatus WriteConfiguration(vtkXMLDataElement *)
const char const char * value
igsioTransformName ImageToTransducerTransform
Contains an optional timestamped circular buffer containing the video images and a number of timestam...
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)
Abstract interface for ultrasound video devices.
static vtkPlusDevice * New()
Interface to a 3D positioning tool, video source, or generalized data stream.