Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::USCombinedModality Class Reference

Combination of USDevice and NavigationDataSource. This class can be used as any USDevice subclass. Additionally tracking data be retrieved from the NavigationDataSource returned by GetTrackingDevice(). More...

#include <mitkUSCombinedModality.h>

Inheritance diagram for mitk::USCombinedModality:
Collaboration diagram for mitk::USCombinedModality:

Public Member Functions

 mitkClassMacro (USCombinedModality, USDevice)
 
 mitkNewMacro4Param (USCombinedModality, USDevice::Pointer, itk::SmartPointer< NavigationDataSource >, std::string, std::string)
 
virtual itk::SmartPointer< USDeviceGetUltrasoundDevice ()
 
virtual void SetUltrasoundDevice (itk::SmartPointer< USDevice > _arg)
 
virtual itk::SmartPointer< NavigationDataSourceGetTrackingDevice ()
 
virtual void SetTrackingDevice (itk::SmartPointer< NavigationDataSource > _arg)
 
AffineTransform3D::Pointer GetCalibration ()
 Getter for calibration data of the currently active depth and probe. More...
 
AffineTransform3D::Pointer GetCalibration (std::string depth)
 Getter for calibration data of the given depth and the currently active probe. More...
 
AffineTransform3D::Pointer GetCalibration (std::string depth, std::string probe)
 Getter for calibration data of the given depth and probe. More...
 
void SetCalibration (AffineTransform3D::Pointer calibration)
 Sets a transformation as calibration data. Calibration data is set for the currently activated probe and their current zoom factor. It also marks the device as calibrated. More...
 
bool RemoveCalibration ()
 Removes the calibration data of the currently active depth and probe. More...
 
bool RemoveCalibration (std::string depth)
 Removes the calibration data of the given depth and the currently active probe. More...
 
bool RemoveCalibration (std::string depth, std::string probe)
 Removes the calibration data of the given depth and probe. More...
 
virtual std::string GetDeviceClass () override
 Returns the Class of the Device. More...
 
virtual USImageSource::Pointer GetUSImageSource () override
 Wrapper for returning USImageSource of the UltrasoundDevice. More...
 
virtual itk::SmartPointer< USAbstractControlInterfaceGetControlInterfaceCustom () override
 Wrapper for returning custom control interface of the UltrasoundDevice. More...
 
virtual itk::SmartPointer< USControlInterfaceBModeGetControlInterfaceBMode () override
 Wrapper for returning B mode control interface of the UltrasoundDevice. More...
 
virtual itk::SmartPointer< USControlInterfaceProbesGetControlInterfaceProbes () override
 Wrapper for returning probes control interface of the UltrasoundDevice. More...
 
virtual itk::SmartPointer< USControlInterfaceDopplerGetControlInterfaceDoppler () override
 Wrapper for returning doppler control interface of the UltrasoundDevice. More...
 
virtual itk::SmartPointer< mitk::NavigationDataSourceGetNavigationDataSource ()
 
bool GetIsCalibratedForCurrentStatus ()
 
bool GetContainsAtLeastOneCalibration ()
 
void UnregisterOnService ()
 Remove this device from the micro service. This method is public for mitk::USCombinedModality, because this devices can be completly removed. This is not possible for API devices, which should be available while their sub module is loaded. More...
 
std::string SerializeCalibration ()
 Serializes all contained calibrations into an xml fragment. More...
 
void DeserializeCalibration (const std::string &xmlString, bool clearPreviousCalibrations=true)
 Deserializes a string provided by a prior call to Serialize(). If the bool flag is true, all prior calibrations will be deleted. If the flag is set to false, prior calibrations will be retained, but overwritten if one of equal name is present. More...
 
void SetNumberOfSmoothingValues (unsigned int numberOfSmoothingValues)
 
void SetDelayCount (unsigned int delayCount)
 
void RegisterAsMicroservice ()
 
- Public Member Functions inherited from mitk::USDevice
 mitkClassMacro (USDevice, mitk::ImageSource)
 
bool Initialize ()
 Changes device state to mitk::USDevice::State_Initialized. During initialization the virtual method mitk::USDevice::OnInitialization will be called. If this method returns false the initialization process will be canceled. Otherwise the mitk::USDevice is registered in a micro service. More...
 
bool Connect ()
 Connects this device. A connected device is ready to deliver images (i.e. be Activated). A Connected Device can be active. A disconnected Device cannot be active. Internally calls onConnect and then registers the device with the service. A device usually should override the OnConnection() method, but never the Connect() method, since this will possibly exclude the device from normal service management. The exact flow of events is: 0. Check if the device is already connected. If yes, return true anyway, but don't do anything. More...
 
void ConnectAsynchron ()
 
bool Disconnect ()
 Works analogously to mitk::USDevice::Connect(). Don't override this Method, but onDisconnection instead. More...
 
bool Activate ()
 Activates this device. After the activation process, the device will start to produce images. This Method will fail, if the device is not connected. More...
 
void Deactivate ()
 Deactivates this device. After the deactivation process, the device will no longer produce images, but still be connected. More...
 
virtual void SetIsFreezed (bool freeze)
 Can toggle if ultrasound image is currently updated or freezed. More...
 
virtual bool GetIsFreezed ()
 
void PushFilter (AbstractOpenCVImageFilter::Pointer filter)
 
void PushFilterIfNotPushedBefore (AbstractOpenCVImageFilter::Pointer filter)
 
bool RemoveFilter (AbstractOpenCVImageFilter::Pointer filter)
 
void ProbeChanged (std::string probename)
 To be called when the used probe changed. Will update the service properties. More...
 
void DepthChanged (double depth)
 To be called when the scanning depth of the probe changed. Will update the service properties. More...
 
void UpdateServiceProperty (std::string key, std::string value)
 Given property is updated in the device micro service. This method is mainly for being used by the control interface superclasses. You do not need to call it by yoursefs in your concrete control interface classes. More...
 
void UpdateServiceProperty (std::string key, double value)
 
void UpdateServiceProperty (std::string key, bool value)
 
bool GetIsInitialized ()
 True, if the device object is created and initialized, false otherwise. More...
 
bool GetIsActive ()
 True, if the device is currently generating image data, false otherwise. More...
 
bool GetIsConnected ()
 True, if the device is currently ready to start transmitting image data or is already transmitting image data. A disconnected device cannot be activated. More...
 
mitk::USDevice::USImageCropArea GetCropArea ()
 
std::string GetDeviceManufacturer ()
 Deprecated -> use GetManufacturer() instead. More...
 
std::string GetDeviceModel ()
 Deprecated -> use GetName() instead. More...
 
std::string GetDeviceComment ()
 Deprecated -> use GetCommend() instead. More...
 
virtual std::string GetManufacturer ()
 
virtual std::string GetName ()
 
virtual std::string GetComment ()
 
void SetManufacturer (std::string manufacturer)
 
void SetName (std::string name)
 
void SetComment (std::string comment)
 
virtual DeviceStates GetDeviceState ()
 
virtual us::ServiceProperties GetServiceProperties ()
 
void GrabImage ()
 
- Public Member Functions inherited from mitk::ImageSource
virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
OutputTypeGetOutput ()
 Get the output data of this image source object. More...
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 Make a DataObject of the correct type to used as the specified output. More...
 
virtual itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 
virtual vtkImageData * GetVtkImageData ()
 
virtual const vtkImageData * GetVtkImageData () const
 
- Public Member Functions inherited from mitk::BaseDataSource
OutputTypeGetOutput ()
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual void GraftOutput (OutputType *output)
 Graft the specified BaseData onto this BaseDataSource's output. More...
 
virtual void GraftOutput (const DataObjectIdentifierType &key, OutputType *output)
 
virtual void GraftNthOutput (unsigned int idx, OutputType *output)
 Graft the specified base data object onto this BaseDataSource's idx'th output. More...
 
bool Updating () const
 Access itk::ProcessObject::m_Updating. More...
 

Static Public Attributes

static const std::string DeviceClassIdentifier
 
static const char * DefaultProbeIdentifier
 
static const char * ProbeAndDepthSeperator
 
static const std::string US_INTERFACE_NAME
 These Constants are used in conjunction with Microservices. More...
 
static const std::string US_PROPKEY_DEVICENAME
 
static const std::string US_PROPKEY_CLASS
 
static const std::string US_PROPKEY_ID
 

Protected Member Functions

 USCombinedModality (USDevice::Pointer usDevice, itk::SmartPointer< NavigationDataSource > trackingDevice, std::string manufacturer="", std::string model="")
 
virtual ~USCombinedModality ()
 
virtual bool OnInitialization () override
 Initializes UltrasoundDevice. More...
 
virtual bool OnConnection () override
 Connects UltrasoundDevice. More...
 
virtual bool OnDisconnection () override
 Disconnects UltrasoundDevice. More...
 
virtual bool OnActivation () override
 Activates UltrasoundDevice. More...
 
virtual bool OnDeactivation () override
 Deactivates UltrasoundDevice. More...
 
virtual void OnFreeze (bool) override
 Freezes or unfreezes UltrasoundDevice. More...
 
void GenerateData () override
 Grabs the next frame from the input. This method is called internally, whenever Update() is invoked by an Output. More...
 
std::string GetIdentifierForCurrentCalibration ()
 
std::string GetIdentifierForCurrentProbe ()
 
std::string GetCurrentDepthValue ()
 
void RebuildFilterPipeline ()
 
- Protected Member Functions inherited from mitk::USDevice
virtual void SetImage (mitk::Image::Pointer _arg)
 
virtual void SetSpawnAcquireThread (bool _arg)
 
virtual bool GetSpawnAcquireThread ()
 
void ProvideViaOIGTL ()
 Registers an OpenIGTLink device as a microservice so that we can send the images of this device via the network. More...
 
void DisableOIGTL ()
 Deregisters the microservices for OpenIGTLink. More...
 
us::ServiceProperties ConstructServiceProperties ()
 This Method constructs the service properties which can later be used to register the object with the Microservices Return service properties. More...
 
void UnregisterOnService ()
 Remove this device from the micro service. More...
 
 USDevice (std::string manufacturer, std::string model)
 Enforces minimal Metadata to be set. More...
 
 USDevice (mitk::USImageMetadata::Pointer metadata)
 Constructs a device with the given Metadata. Make sure the Metadata contains meaningful content! More...
 
virtual ~USDevice ()
 
std::string GetServicePropertyLabel ()
 
- Protected Member Functions inherited from mitk::ImageSource
 ImageSource ()
 
virtual ~ImageSource ()
 
virtual void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId)
 If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData(). More...
 
virtual void PrepareOutputs () override
 This method is intentionally left blank. More...
 
virtual void AllocateOutputs ()
 The GenerateData method normally allocates the buffers for all of the outputs of a filter. More...
 
virtual void BeforeThreadedGenerateData ()
 If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). More...
 
virtual void AfterThreadedGenerateData ()
 If an imaging filter needs to perform processing after all processing threads have completed, the filter can can provide an implementation for AfterThreadedGenerateData(). More...
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int num, OutputImageRegionType &splitRegion)
 Split the output's RequestedRegion into "num" pieces, returning region "i" as "splitRegion". More...
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 
virtual ~BaseDataSource ()
 

Protected Attributes

USDevice::Pointer m_UltrasoundDevice
 
itk::SmartPointer< NavigationDataSourcem_TrackingDevice
 
std::map< std::string, AffineTransform3D::Pointer > m_Calibrations
 
itk::SmartPointer< mitk::NavigationDataSmoothingFilterm_SmoothingFilter
 
itk::SmartPointer< mitk::NavigationDataDelayFilterm_DelayFilter
 
itk::SmartPointer< mitk::NavigationDataSourcem_LastFilter
 
unsigned int m_NumberOfSmoothingValues
 
unsigned int m_DelayCount
 
- Protected Attributes inherited from mitk::USDevice
mitk::Image::Pointer m_Image
 
mitk::Image::Pointer m_OutputImage
 
mitk::IGTLServer::Pointer m_IGTLServer
 
mitk::IGTLMessageProvider::Pointer m_IGTLMessageProvider
 
mitk::ImageToIGTLMessageFilter::Pointer m_ImageToIGTLMsgFilter
 
bool m_IsFreezed
 
DeviceStates m_DeviceState
 
USImageCropArea m_CropArea
 

Additional Inherited Members

- Public Types inherited from mitk::USDevice
enum  DeviceStates { State_NoState, State_Initialized, State_Connected, State_Activated }
 
- Public Types inherited from mitk::ImageSource
typedef ImageSource Self
 
typedef BaseDataSource Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef mitk::Image OutputImageType
 Some convenient typedefs. More...
 
typedef OutputImageType OutputType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef SlicedData::RegionType OutputImageRegionType
 
- Public Types inherited from mitk::BaseDataSource
typedef BaseDataSource Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef BaseData OutputType
 
typedef itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
 
- Static Public Member Functions inherited from mitk::ImageSource
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 Method for creation through the object factory. More...
 
- Static Public Member Functions inherited from mitk::BaseDataSource
static const char * GetStaticNameOfClass ()
 
- Public Attributes inherited from mitk::USDevice
virtual mitkNewMessage2Macro(PropertyChanged, const std::string &, const std::string &) static mitk itk::SmartPointer< USAbstractControlInterfaceGetControlInterfaceCustom ()
 Event for being notified about changes of the micro service properties. This event can be used if no micro service context is available. More...
 
- Static Protected Member Functions inherited from mitk::USDevice
static ITK_THREAD_RETURN_TYPE Acquire (void *pInfoStruct)
 
static ITK_THREAD_RETURN_TYPE ConnectThread (void *pInfoStruct)
 
- Static Protected Member Functions inherited from mitk::ImageSource
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 Static function used as a "callback" by the MultiThreader. More...
 
- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 

Detailed Description

Combination of USDevice and NavigationDataSource. This class can be used as any USDevice subclass. Additionally tracking data be retrieved from the NavigationDataSource returned by GetTrackingDevice().

A calibration of the ultrasound image stream to the navigation datas can be set for the currently active zoom level (of the ultrasound device) by SetCalibration(). The ultrasound images are transformed according to this calibration in the GenerateData() method.

Definition at line 49 of file mitkUSCombinedModality.h.

Constructor & Destructor Documentation

mitk::USCombinedModality::USCombinedModality ( USDevice::Pointer  usDevice,
itk::SmartPointer< NavigationDataSource trackingDevice,
std::string  manufacturer = "",
std::string  model = "" 
)
protected
mitk::USCombinedModality::~USCombinedModality ( )
protectedvirtual

Definition at line 66 of file mitkUSCombinedModality.cpp.

Member Function Documentation

void mitk::USCombinedModality::DeserializeCalibration ( const std::string &  xmlString,
bool  clearPreviousCalibrations = true 
)

Deserializes a string provided by a prior call to Serialize(). If the bool flag is true, all prior calibrations will be deleted. If the flag is set to false, prior calibrations will be retained, but overwritten if one of equal name is present.

Exceptions
mitk::Exceptionif the given string could not be parsed correctly.

Definition at line 436 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, mitkThrow, and mitk::New().

void mitk::USCombinedModality::GenerateData ( )
overrideprotectedvirtual

Grabs the next frame from the input. This method is called internally, whenever Update() is invoked by an Output.

Reimplemented from mitk::USDevice.

Definition at line 367 of file mitkUSCombinedModality.cpp.

References MITK_WARN.

mitk::AffineTransform3D::Pointer mitk::USCombinedModality::GetCalibration ( )

Getter for calibration data of the currently active depth and probe.

Returns
Transformation for calibration or null if no calibration is available.

Definition at line 143 of file mitkUSCombinedModality.cpp.

mitk::AffineTransform3D::Pointer mitk::USCombinedModality::GetCalibration ( std::string  depth)

Getter for calibration data of the given depth and the currently active probe.

Parameters
depthdepth of the b mode ultrasound image for which the calibration should be returned
Returns
Transformation for calibration or null if no calibration is available.

Definition at line 148 of file mitkUSCombinedModality.cpp.

mitk::AffineTransform3D::Pointer mitk::USCombinedModality::GetCalibration ( std::string  depth,
std::string  probe 
)

Getter for calibration data of the given depth and probe.

Parameters
depthdepth of the b mode ultrasound image for which the calibration should be returned
probeprobe of the ultrasound device for which the calibration should be returned
Returns
Transformation for calibration or null if no calibration is available.

Definition at line 153 of file mitkUSCombinedModality.cpp.

References ProbeAndDepthSeperator, and mbilog::replace.

bool mitk::USCombinedModality::GetContainsAtLeastOneCalibration ( )
Returns
true if a calibration was loaded for at least one probe and depth

Definition at line 362 of file mitkUSCombinedModality.cpp.

mitk::USControlInterfaceBMode::Pointer mitk::USCombinedModality::GetControlInterfaceBMode ( )
overridevirtual

Wrapper for returning B mode control interface of the UltrasoundDevice.

Reimplemented from mitk::USDevice.

Definition at line 100 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, and mitkThrow.

mitk::USAbstractControlInterface::Pointer mitk::USCombinedModality::GetControlInterfaceCustom ( )
overridevirtual

Wrapper for returning custom control interface of the UltrasoundDevice.

Definition at line 89 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, and mitkThrow.

mitk::USControlInterfaceDoppler::Pointer mitk::USCombinedModality::GetControlInterfaceDoppler ( )
overridevirtual

Wrapper for returning doppler control interface of the UltrasoundDevice.

Reimplemented from mitk::USDevice.

Definition at line 122 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, and mitkThrow.

mitk::USControlInterfaceProbes::Pointer mitk::USCombinedModality::GetControlInterfaceProbes ( )
overridevirtual

Wrapper for returning probes control interface of the UltrasoundDevice.

Reimplemented from mitk::USDevice.

Definition at line 111 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, and mitkThrow.

std::string mitk::USCombinedModality::GetCurrentDepthValue ( )
protected

Definition at line 521 of file mitkUSCombinedModality.cpp.

std::string mitk::USCombinedModality::GetDeviceClass ( )
overridevirtual

Returns the Class of the Device.

Implements mitk::USDevice.

Definition at line 73 of file mitkUSCombinedModality.cpp.

std::string mitk::USCombinedModality::GetIdentifierForCurrentCalibration ( )
protected

Definition at line 494 of file mitkUSCombinedModality.cpp.

References ProbeAndDepthSeperator.

std::string mitk::USCombinedModality::GetIdentifierForCurrentProbe ( )
protected

Definition at line 501 of file mitkUSCombinedModality.cpp.

References DefaultProbeIdentifier, and mbilog::replace.

bool mitk::USCombinedModality::GetIsCalibratedForCurrentStatus ( )
Returns
true if the device is calibrated for the currently selected probe with the current zoom level

Definition at line 357 of file mitkUSCombinedModality.cpp.

mitk::NavigationDataSource::Pointer mitk::USCombinedModality::GetNavigationDataSource ( )
virtual

Definition at line 352 of file mitkUSCombinedModality.cpp.

virtual itk::SmartPointer<NavigationDataSource> mitk::USCombinedModality::GetTrackingDevice ( )
virtual
virtual itk::SmartPointer<USDevice> mitk::USCombinedModality::GetUltrasoundDevice ( )
virtual
mitk::USImageSource::Pointer mitk::USCombinedModality::GetUSImageSource ( )
overridevirtual

Wrapper for returning USImageSource of the UltrasoundDevice.

Implements mitk::USDevice.

Definition at line 78 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, and mitkThrow.

mitk::USCombinedModality::mitkClassMacro ( USCombinedModality  ,
USDevice   
)
mitk::USCombinedModality::mitkNewMacro4Param ( USCombinedModality  ,
USDevice::Pointer  ,
itk::SmartPointer< NavigationDataSource ,
std::string  ,
std::string   
)
bool mitk::USCombinedModality::OnActivation ( )
overrideprotectedvirtual

Activates UltrasoundDevice.

Implements mitk::USDevice.

Definition at line 285 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, MITK_WARN, mitkThrow, and mitk::USDevice::State_Activated.

bool mitk::USCombinedModality::OnConnection ( )
overrideprotectedvirtual

Connects UltrasoundDevice.

Implements mitk::USDevice.

Definition at line 255 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, mitkThrow, and mitk::USDevice::State_Connected.

bool mitk::USCombinedModality::OnDeactivation ( )
overrideprotectedvirtual

Deactivates UltrasoundDevice.

Implements mitk::USDevice.

Definition at line 311 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, MITK_WARN, and mitkThrow.

bool mitk::USCombinedModality::OnDisconnection ( )
overrideprotectedvirtual

Disconnects UltrasoundDevice.

Implements mitk::USDevice.

Definition at line 274 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, and mitkThrow.

void mitk::USCombinedModality::OnFreeze ( bool  freeze)
overrideprotectedvirtual

Freezes or unfreezes UltrasoundDevice.

Reimplemented from mitk::USDevice.

Definition at line 331 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, MITK_WARN, and mitkThrow.

bool mitk::USCombinedModality::OnInitialization ( )
overrideprotectedvirtual

Initializes UltrasoundDevice.

Implements mitk::USDevice.

Definition at line 237 of file mitkUSCombinedModality.cpp.

References MITK_ERROR, mitkThrow, and mitk::USDevice::State_Initialized.

void mitk::USCombinedModality::RebuildFilterPipeline ( )
protected

Definition at line 542 of file mitkUSCombinedModality.cpp.

Referenced by USCombinedModality().

void mitk::USCombinedModality::RegisterAsMicroservice ( )
bool mitk::USCombinedModality::RemoveCalibration ( )

Removes the calibration data of the currently active depth and probe.

Returns
true on success, false if there was no calibration

Definition at line 188 of file mitkUSCombinedModality.cpp.

bool mitk::USCombinedModality::RemoveCalibration ( std::string  depth)

Removes the calibration data of the given depth and the currently active probe.

Parameters
depthdepth of the b mode ultrasound image for which the calibration should be removed
Returns
true on success, false if there was no calibration

Definition at line 193 of file mitkUSCombinedModality.cpp.

bool mitk::USCombinedModality::RemoveCalibration ( std::string  depth,
std::string  probe 
)

Removes the calibration data of the given depth and probe.

Parameters
depthdepth of the b mode ultrasound image for which the calibration should be removed
probeprobe of the ultrasound device for which the calibration should be removed
Returns
true on success, false if there was no calibration

Definition at line 198 of file mitkUSCombinedModality.cpp.

References ProbeAndDepthSeperator, and mbilog::replace.

std::string mitk::USCombinedModality::SerializeCalibration ( )

Serializes all contained calibrations into an xml fragment.

The returned string contains one parent node named "calibrations" and several subnodes, one for each calibration that is present.

Definition at line 404 of file mitkUSCombinedModality.cpp.

void mitk::USCombinedModality::SetCalibration ( AffineTransform3D::Pointer  calibration)

Sets a transformation as calibration data. Calibration data is set for the currently activated probe and their current zoom factor. It also marks the device as calibrated.

Definition at line 170 of file mitkUSCombinedModality.cpp.

References MITK_WARN.

void mitk::USCombinedModality::SetDelayCount ( unsigned int  delayCount)

Definition at line 223 of file mitkUSCombinedModality.cpp.

void mitk::USCombinedModality::SetNumberOfSmoothingValues ( unsigned int  numberOfSmoothingValues)

Definition at line 209 of file mitkUSCombinedModality.cpp.

virtual void mitk::USCombinedModality::SetTrackingDevice ( itk::SmartPointer< NavigationDataSource _arg)
virtual
virtual void mitk::USCombinedModality::SetUltrasoundDevice ( itk::SmartPointer< USDevice _arg)
virtual
void mitk::USCombinedModality::UnregisterOnService ( )

Remove this device from the micro service. This method is public for mitk::USCombinedModality, because this devices can be completly removed. This is not possible for API devices, which should be available while their sub module is loaded.

Definition at line 133 of file mitkUSCombinedModality.cpp.

Member Data Documentation

const char * mitk::USCombinedModality::DefaultProbeIdentifier
static

Definition at line 53 of file mitkUSCombinedModality.h.

Referenced by GetIdentifierForCurrentProbe().

const std::string mitk::USCombinedModality::DeviceClassIdentifier
static

Definition at line 52 of file mitkUSCombinedModality.h.

std::map<std::string, AffineTransform3D::Pointer> mitk::USCombinedModality::m_Calibrations
protected

Definition at line 247 of file mitkUSCombinedModality.h.

unsigned int mitk::USCombinedModality::m_DelayCount
protected

Definition at line 254 of file mitkUSCombinedModality.h.

itk::SmartPointer<mitk::NavigationDataDelayFilter> mitk::USCombinedModality::m_DelayFilter
protected

Definition at line 250 of file mitkUSCombinedModality.h.

itk::SmartPointer<mitk::NavigationDataSource> mitk::USCombinedModality::m_LastFilter
protected

Definition at line 251 of file mitkUSCombinedModality.h.

unsigned int mitk::USCombinedModality::m_NumberOfSmoothingValues
protected

Definition at line 253 of file mitkUSCombinedModality.h.

itk::SmartPointer<mitk::NavigationDataSmoothingFilter> mitk::USCombinedModality::m_SmoothingFilter
protected

Definition at line 249 of file mitkUSCombinedModality.h.

itk::SmartPointer<NavigationDataSource> mitk::USCombinedModality::m_TrackingDevice
protected

Definition at line 246 of file mitkUSCombinedModality.h.

USDevice::Pointer mitk::USCombinedModality::m_UltrasoundDevice
protected

Definition at line 245 of file mitkUSCombinedModality.h.

const char * mitk::USCombinedModality::ProbeAndDepthSeperator
static
const std::string mitk::USCombinedModality::US_INTERFACE_NAME
static

These Constants are used in conjunction with Microservices.

Definition at line 195 of file mitkUSCombinedModality.h.

const std::string mitk::USCombinedModality::US_PROPKEY_CLASS
static

Definition at line 197 of file mitkUSCombinedModality.h.

const std::string mitk::USCombinedModality::US_PROPKEY_DEVICENAME
static

Definition at line 196 of file mitkUSCombinedModality.h.

const std::string mitk::USCombinedModality::US_PROPKEY_ID
static

Definition at line 198 of file mitkUSCombinedModality.h.


The documentation for this class was generated from the following files: