ImFusion SDK 4.3
Device Class Reference

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

Base class for Igtlink devices. More...

+ Inheritance diagram for Device:

Detailed Description

Base class for Igtlink devices.

Public Types

enum  IO { INPUT , OUTPUT , INPUT_OUTPUT , UNKNOWN }
 

Public Member Functions

 Device (Connection *connection, std::string name, Type igtlType, const std::vector< Type > &compatibleIgtlTypes={})
 
 Device (const Device &other)
 
Deviceoperator= (const Device &other)
 
 Device (Device &&other) noexcept
 
Deviceoperator= (Device &&other) noexcept
 
Type deviceIgtlType () const
 Gets the device type.
 
std::string deviceName () const
 Gets the device Name.
 
std::vector< TypecompatibleIgtlTypes () 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.
 

Static Public Member Functions

static IO ioConfiguration ()
 Returns the IO configuration of the device (whether the device can handle input, output or both input and output operations)
 

Protected Attributes

std::vector< Typem_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_iglConnection
 Device name assigned to this device.
 
std::unique_ptr< DeviceImplm_impl
 Igl Connection Object.
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close