RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Button_Filter类 参考

#include <vrpn_Button.h>

继承自 vrpn_Button .

vrpn_3DConnexion, vrpn_3DMicroscribe, vrpn_ADBox, vrpn_BiosciencesTools, vrpn_Button_5DT_Server, vrpn_Button_Example_Server, vrpn_Button_NI_DIO24, vrpn_Button_Parallel, vrpn_Button_Serial, vrpn_Button_SerialMouse, vrpn_Button_Server, vrpn_CHProducts_Fighterstick_USB, vrpn_CerealBox, vrpn_Contour_ShuttlePROv2, vrpn_Contour_ShuttleXpress, vrpn_DreamCheeky_Drum_Kit, vrpn_Futaba_InterLink_Elite, vrpn_GlobalHapticsOrb, vrpn_Griffin_PowerMate, vrpn_IDEA, vrpn_ImmersionBox, vrpn_Joylin, vrpn_Joystick, vrpn_Keyboard, vrpn_Logitech_Extreme_3D_Pro, vrpn_Magellan, vrpn_Microsoft_Controller_Raw_Xbox_360_base, vrpn_Microsoft_Controller_Raw_Xbox_S, vrpn_Microsoft_SideWinder, vrpn_Microsoft_SideWinder_Precision_2, vrpn_Mouse, vrpn_Retrolink_GameCube, vrpn_Retrolink_Genesis, vrpn_Saitek_ST290_Pro, vrpn_Spaceball, vrpn_Streaming_Arduino, vrpn_Tng3, vrpn_Tracker_3DMouse, vrpn_Tracker_DTrack, vrpn_Tracker_RazerHydra, vrpn_VPJoystick, vrpn_Wanda, vrpn_Xkeys_Desktop, vrpn_Xkeys_Jog_And_Shuttle, vrpn_Xkeys_Jog_And_Shuttle12, vrpn_Xkeys_Jog_And_Shuttle68, vrpn_Xkeys_Joystick, vrpn_Xkeys_Joystick12, vrpn_Xkeys_Pro, vrpn_Xkeys_XK3, vrpn_YEI_3Space, vrpn_inertiamouse, vrpn_nVidia_shield_USB, vrpn_nVidia_shield_stealth_USB , 以及 vrpn_raw_SGIBox 继承.

+ vrpn_Button_Filter 的协作图:

Public 成员函数

virtual void set_momentary (vrpn_int32 which_button)
 
virtual void set_toggle (vrpn_int32 which_button, vrpn_int32 current_state)
 
virtual void set_all_momentary (void)
 
virtual void set_all_toggle (vrpn_int32 default_state)
 
void set_alerts (vrpn_int32)
 
- Public 成员函数 继承自 vrpn_Button
 vrpn_Button (const char *name, vrpn_Connection *c=NULL)
 
void print (void)
 
- Public 成员函数 继承自 vrpn_BaseClass
 vrpn_BaseClass (const char *name, vrpn_Connection *c=NULL)
 
virtual void mainloop ()=0
 
- Public 成员函数 继承自 vrpn_BaseClassUnique
vrpn_ConnectionconnectionPtr ()
 Returns a pointer to the connection this object is using
 

Public 属性

vrpn_int32 buttonstate [vrpn_BUTTON_MAX_BUTTONS]
 
- Public 属性 继承自 vrpn_BaseClassUnique
bool shutup
 

Protected 成员函数

 vrpn_Button_Filter (const char *, vrpn_Connection *c=NULL)
 
virtual vrpn_int32 encode_states_to (char *buf)
 
virtual void report_changes (void)
 
- Protected 成员函数 继承自 vrpn_Button
virtual int register_types (void)
 
virtual void report_states (void)
 
virtual vrpn_int32 encode_to (char *buf, vrpn_int32 button, vrpn_int32 state)
 
- Protected 成员函数 继承自 vrpn_BaseClass
virtual int init (void)
 
virtual int register_senders (void)
 
- Protected 成员函数 继承自 vrpn_BaseClassUnique
int register_autodeleted_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER)
 
int send_text_message (const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0)
 Sends a NULL-terminated text message from the device d_sender_id
 
SendTextMessageBoundCall send_text_message (vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL)
 
void server_mainloop (void)
 
void client_mainloop (void)
 

静态 Protected 成员函数

static int VRPN_CALLBACK handle_ping_message (void *userdata, vrpn_HANDLERPARAM p)
 
- 静态 Protected 成员函数 继承自 vrpn_BaseClassUnique
static int encode_text_message_to_buffer (char *buf, vrpn_TEXT_SEVERITY severity, vrpn_uint32 level, const char *msg)
 
static int decode_text_message_from_buffer (char *msg, vrpn_TEXT_SEVERITY *severity, vrpn_uint32 *level, const char *buf)
 Decodes the body of the text message from a buffer from the connection
 

Protected 属性

int send_alerts
 
vrpn_int32 alert_message_id
 
- Protected 属性 继承自 vrpn_Button
unsigned char buttons [vrpn_BUTTON_MAX_BUTTONS]
 
unsigned char lastbuttons [vrpn_BUTTON_MAX_BUTTONS]
 
vrpn_int32 minrate [vrpn_BUTTON_MAX_BUTTONS]
 
vrpn_int32 num_buttons
 
struct timeval timestamp
 
vrpn_int32 change_message_id
 
vrpn_int32 states_message_id
 
vrpn_int32 admin_message_id
 
- Protected 属性 继承自 vrpn_BaseClassUnique
vrpn_Connectiond_connection
 Connection that this object talks to
 
char * d_servicename
 
vrpn_int32 d_sender_id
 part
 
vrpn_int32 d_text_message_id
 ID for text messages
 
vrpn_int32 d_ping_message_id
 Ask the server if they are there
 
vrpn_int32 d_pong_message_id
 Server telling that it is there
 

详细描述

All button servers should derive from this class, which provides the ability to turn any of the buttons into toggles (using messages from the remote button object).

成员函数说明

◆ encode_states_to()

virtual vrpn_int32 encode_states_to ( char * buf)
protectedvirtual

重载 vrpn_Button .

◆ report_changes()

virtual void report_changes ( void )
protectedvirtual

重载 vrpn_Button .

◆ set_all_momentary()

virtual void set_all_momentary ( void )
virtual

重载 vrpn_Button .

◆ set_all_toggle()

virtual void set_all_toggle ( vrpn_int32 default_state)
virtual

重载 vrpn_Button .

◆ set_momentary()

virtual void set_momentary ( vrpn_int32 which_button)
virtual

重载 vrpn_Button .

◆ set_toggle()

virtual void set_toggle ( vrpn_int32 which_button,
vrpn_int32 current_state )
virtual

重载 vrpn_Button .


该类的文档由以下文件生成: