Summary
| Members | Descriptions |
|---|---|
class APIWebsockets |
Manages websocket connections with Potree mdInfinity API. |
class MainWidget |
Implements the graphical interface of the demonstrator. |
class APIWebsockets
: public QObject
Manages websocket connections with Potree mdInfinity API.
| Members | Descriptions |
|---|---|
public explicit APIWebsockets(quint16 port,MainWidget * container,QObject * parent) |
Construct a new APIWebsockets object. |
public virtual ~APIWebsockets() |
Destroy the APIWebsockets object. |
public explicit APIWebsockets(quint16 port,MainWidget * container,QObject * parent)
Construct a new APIWebsockets object.
Runs a websocket server to listen for Potree mdInfinityAPI
-
portport on which websocket server will run -
containerMainWidget instance containing this websocket server -
parentthe parent widget
public virtual ~APIWebsockets()
Destroy the APIWebsockets object.
class MainWidget
: public QWidget
Implements the graphical interface of the demonstrator.
The main components of the graphical interface are described in this class. It inherits from QWidget and contains a button, a plain text field, and a web view.
| Members | Descriptions |
|---|---|
public explicit MainWidget(QWidget * parent) |
Construct a new Main Widget object. |
public ~MainWidget() |
Destroy the Main Widget object. |
public void log(QString text) |
Appends log to demonstrator text field. |
public explicit MainWidget(QWidget * parent)
Construct a new Main Widget object.
Initiates all the GUI elements (button, web view and text field). Defines a layout to arrange these elements. Initiate the Websocket server to listen for Potree. Connects the proper signal and slots.
parentparent Widget, optional
public ~MainWidget()
Destroy the Main Widget object.
public void log(QString text)
Appends log to demonstrator text field.
Provided string is appended to demonstrator text field.
texttext data to log
Generated by Moxygen