vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_Android_Server Class Reference

#include <vrpn_Android.h>

Public Member Functions

 vrpn_Android_Server (vrpn_int32 num_analogs, vrpn_int32 *analog_sizes, vrpn_int32 num_buttons, vrpn_int32 port)
 Constructor. Takes an array of integers representing the number of channels for each analog server, the number of buttons, and the port number.
 
 ~vrpn_Android_Server ()
 Destructor.
 
void mainloop ()
 Main loop to be called at every time step. Calls the mainloop() functions of the member servers.
 
void set_analog (vrpn_int32 analog_id, vrpn_int32 channel, vrpn_float64 val)
 Set the value for the given channel of the given vrpn_Analog_Server.
 
void set_button (vrpn_int32 button_id, vrpn_int32 state)
 Set the value for the given button.
 
void report_analog_chg (vrpn_int32 analog_id)
 Called when changes are made to any of the analog values.
 

Detailed Description

Definition at line 39 of file vrpn_Android.h.

Constructor & Destructor Documentation

◆ vrpn_Android_Server()

vrpn_Android_Server::vrpn_Android_Server ( vrpn_int32  num_analogs,
vrpn_int32 *  analog_sizes,
vrpn_int32  num_buttons,
vrpn_int32  port 
)

Constructor. Takes an array of integers representing the number of channels for each analog server, the number of buttons, and the port number.

Definition at line 26 of file vrpn_Android.C.

◆ ~vrpn_Android_Server()

vrpn_Android_Server::~vrpn_Android_Server ( )

Destructor.

Definition at line 110 of file vrpn_Android.C.

Member Function Documentation

◆ mainloop()

void vrpn_Android_Server::mainloop ( )

Main loop to be called at every time step. Calls the mainloop() functions of the member servers.

Definition at line 82 of file vrpn_Android.C.

References vrpn_Analog_Server::mainloop(), vrpn_Analog_Remote::mainloop(), vrpn_Button_Server::mainloop(), vrpn_Button_Remote::mainloop(), and vrpn_Connection::mainloop().

Here is the call graph for this function:

◆ report_analog_chg()

void vrpn_Android_Server::report_analog_chg ( vrpn_int32  analog_id)

Called when changes are made to any of the analog values.

Definition at line 105 of file vrpn_Android.C.

References vrpn_Analog_Server::report().

Here is the call graph for this function:

◆ set_analog()

void vrpn_Android_Server::set_analog ( vrpn_int32  analog_id,
vrpn_int32  channel,
vrpn_float64  val 
)

Set the value for the given channel of the given vrpn_Analog_Server.

Definition at line 99 of file vrpn_Android.C.

References vrpn_Analog_Server::channels().

Here is the call graph for this function:

◆ set_button()

void vrpn_Android_Server::set_button ( vrpn_int32  button_id,
vrpn_int32  state 
)

Set the value for the given button.

Definition at line 94 of file vrpn_Android.C.

References vrpn_Button_Server::set_button().

Here is the call graph for this function:

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