Morpholo project
Public Member Functions | List of all members
Hid4Holo Class Reference

The Hid4Holo class. More...

#include <hid4holo.h>

Inheritance diagram for Hid4Holo:
Inheritance graph
[legend]
Collaboration diagram for Hid4Holo:
Collaboration graph
[legend]

Public Member Functions

 Hid4Holo (QObject *parent=NULL)
 
bool connectHolo ()
 connectHolo This method starts the connection to the holoplay device. Root priviles are required. More...
 
void disconnectHolo ()
 disconnectHolo This method stops connection to holoplay.
 
void showGenericInfo ()
 showGenericInfo It shows generic infos about the connected holoplay.
 
bool readCalibrationData ()
 readCalibrationData This method reads the calibration data via HID interface and saves the data in calibrationFilename, if that variable has been set. This method calls at the end setCalibrationData function. More...
 
bool readCalibrationDataFromFile (QString filename)
 readCalibrationDataFromFile This method reads the calibration data from a file and sets up the internal structures. More...
 
void showCalibrationData ()
 showCalibrationData This method shows calibration data while parsing the JSON structure.
 
void setCalibrationFilename (QString s)
 setCalibrationFilename More...
 
QString getCalibrationFilename ()
 
int getScreenW ()
 
int getScreenH ()
 
double getTilt ()
 
double getPitch ()
 
double getCenter ()
 
double getSubp ()
 
bool isConnected ()
 

Detailed Description

The Hid4Holo class.

This class provides methods to access holoplay data from usb HID protocol. This class provides methods to read, save and show calibration data.

Member Function Documentation

◆ connectHolo()

bool Hid4Holo::connectHolo ( )

connectHolo This method starts the connection to the holoplay device. Root priviles are required.

Returns
status

◆ readCalibrationData()

bool Hid4Holo::readCalibrationData ( )

readCalibrationData This method reads the calibration data via HID interface and saves the data in calibrationFilename, if that variable has been set. This method calls at the end setCalibrationData function.

Returns
status

◆ readCalibrationDataFromFile()

bool Hid4Holo::readCalibrationDataFromFile ( QString  filename)

readCalibrationDataFromFile This method reads the calibration data from a file and sets up the internal structures.

Parameters
filenameThe file where calibration is stored
Returns
status

◆ setCalibrationFilename()

void Hid4Holo::setCalibrationFilename ( QString  s)
inline

setCalibrationFilename

Parameters
sThe filename where to store the calibration data

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