20 std::string host,
int port,
bool server)
21 :
mitk::
USDevice(manufacturer, model), m_Host(host), m_Port(port)
31 m_Device->SetPortNumber(m_Port);
32 m_Device->SetHostname(m_Host);
33 m_Device->SetName(manufacturer +
" - " + model);
36 m_TransformDeviceSource->SetIGTLDevice(m_Device);
37 m_TransformDeviceSource->RegisterAsMicroservice();
40 m_DeviceSource->SetIGTLDevice(m_Device);
41 m_DeviceSource->RegisterAsMicroservice();
44 m_Filter->SetNumberOfExpectedOutputs(1);
45 m_Filter->ConnectTo(m_DeviceSource);
52 return m_Filter.GetPointer();
61 return m_Device->CloseConnection();
66 return m_Device->StartCommunication();
71 return m_Device->StopCommunication();
A device holds information about it's model, make and the connected probes. It is the common super cl...
itk::SmartPointer< Self > Pointer
virtual bool OnActivation()
Is called during the activation process. After this method is finished, the device should be generati...
virtual bool OnInitialization()
Is called during the initialization process. Override this method in a subclass to handle the actual ...
DataCollection - Class to facilitate loading/accessing structured data.
virtual bool OnDisconnection()
Is called during the disconnection process. Override this method in a subclass to handle the actual d...
USIGTLDevice(std::string manufacturer, std::string model, std::string host, int port, bool server)
virtual std::string GetDeviceClass()
Returns the Class of the Device. This Method must be reimplemented by every Inheriting Class...
virtual bool OnConnection()
Is called during the connection process. Override this method in a subclass to handle the actual conn...
virtual bool OnDeactivation()
Is called during the deactivation process. After a call to this method the device should still be con...
virtual USImageSource::Pointer GetUSImageSource()
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.