ImFusion C++ SDK 4.4.0
ImFusion::IGTL::DataDevice Class Referenceabstract

#include <ImFusion/Stream/IGTL/DataDevice.h>

Base class for Igtlink devices that receive/send single data (and not data streams). More...

Inheritance diagram for ImFusion::IGTL::DataDevice:

Detailed Description

Base class for Igtlink devices that receive/send single data (and not data streams).

Public Member Functions

 DataDevice (IGTL::Connection &con, const std::string &deviceName, const Type &iglType, const std::vector< Type > &compatibleIgtlTypes, bool cloneData=false)
 Constructor.
virtual bool sendData (Data *inputData) const =0
Public Member Functions inherited from ImFusion::IGTL::Device
 Device (Connection *connection, std::string name, Type igtlType, const std::vector< Type > &compatibleIgtlTypes={})
 Device (const Device &other)
Device & operator= (const Device &other)
 Device (Device &&other) noexcept
Device & operator= (Device &&other) noexcept
Type deviceIgtlType () const
 Gets the device type.
std::string deviceName () const
 Gets the device Name.
std::vector< Type > compatibleIgtlTypes () const
 Returns the IgtlTypes compatible with the device.
bool isCompatible (const Type &type) const
 returns true if the device is compatible (i.e. can parse/process) the passed Type
bool isConnected () const
 returns true if the connection associated to the device is valid.
void resetConnection ()
 Reset the connection to nullptr. The method can be called e.g. before the connection data is deleted.

Public Attributes

Signal< bool > signalDataReceived

Protected Attributes

bool m_cloneData
Protected Attributes inherited from ImFusion::IGTL::Device
std::vector< Type > m_compatibleIgtlTypes
Type m_iglType
 The igl types that are supported by this device for conversion from/to ImFusion data.
std::string m_deviceName
 Data type of the device.
Connectionm_igtlConnection
 Device name assigned to this device.
std::unique_ptr< DeviceImplm_impl
 Igtl Connection Object.

Additional Inherited Members

Public Types inherited from ImFusion::IGTL::Device
enum  IO { INPUT , OUTPUT , INPUT_OUTPUT , UNKNOWN }
Static Public Member Functions inherited from ImFusion::IGTL::Device
static IO ioConfiguration ()
 Returns the IO configuration of the device (whether the device can handle input, output or both input and output operations).

The documentation for this class was generated from the following file:
  • ImFusion/Stream/IGTL/DataDevice.h
Search Tab / S to search, Esc to close