#include <P_UIVR.h>
Inheritance diagram for UIVR:
Public Methods | |
UIVR (VMDApp *) | |
~UIVR () | |
int | add_tool_with_USL (const char *type, int argc, const char **USL) |
Add a tool that finds it sensor from a USL. More... | |
int | change_type (int toolnum, const char *type) |
Change the type of an existing tool. More... | |
int | remove_tool (int i) |
remove the given tool; return success. More... | |
int | check_event () |
check for an event, and queue it if found. Return TRUE if an event was generated. More... | |
Tool * | gettool (int i) |
int | num_tools () |
const char * | tool_name (int i) |
int | tool_type (const char *nm) |
int | num_tool_types () |
virtual int | act_on_command (int, Command *) |
update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F). More... | |
ResizeArray< JString * > * | get_tracker_names () |
Return list of device names for each class of device, as obtained from the .vmdsensors file. Only devices for which a corresponding device class exists will be returned in the list. Delete the list and its elements when finished. More... | |
ResizeArray< JString * > * | get_feedback_names () |
ResizeArray< JString * > * | get_button_names () |
int | set_tracker (int toolnum, const char *device) |
Set the tracker, feedback, or buttons of the given tool. Pass NULL as the device to simply remove the device without replacing it. Return success. More... | |
int | set_feedback (int toolnum, const char *device) |
int | set_buttons (int toolnum, const char *device) |
int | set_position_scale (int toolnum, float newval) |
int | set_force_scale (int toolnum, float newval) |
int | set_spring_scale (int toolnum, float newval) |
Static Public Methods | |
ResizeArray< JString * > * | get_device_names () |
Return list of device names that have been read from the .vmdsensors file. More... |
Definition at line 44 of file P_UIVR.h.
|
Definition at line 104 of file P_UIVR.C. References NameList< int >::add_name, UIObject::command_wanted, UIObject::reset, Command::TOOL_ADD_DEVICE, Command::TOOL_CALLBACK, Command::TOOL_DELETE_DEVICE, Command::TOOL_OFFSET, and Command::TOOL_REP. |
|
Definition at line 91 of file P_UIVR.C. References NameList< Buttons * >::data, NameList< Feedback * >::data, NameList< VMDTracker * >::data, NameList< Buttons * >::num, NameList< Feedback * >::num, NameList< VMDTracker * >::num, and ResizeArray< Tool * >::num. |
|
update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F).
Reimplemented from UIObject. Definition at line 262 of file P_UIVR.C. References Tool::assign_rep, Tool::clear_rep, gettool, CmdToolRep::molid, CmdToolAddDevice::name, CmdToolAddDevice::num, num, CmdToolCallback::on, Tool::remove_device, CmdToolRep::repnum, UIObject::set_callbacks, Tool::setoffset, Command::TOOL_ADD_DEVICE, Command::TOOL_CALLBACK, Command::TOOL_DELETE_DEVICE, Command::TOOL_OFFSET, Command::TOOL_REP, and CmdToolRep::toolnum. |
|
Add a tool that finds it sensor from a USL.
Definition at line 165 of file P_UIVR.C. References num. Referenced by VMDApp::tool_create. |
|
Change the type of an existing tool.
Definition at line 174 of file P_UIVR.C. References ResizeArray< Tool * >::num, and Tool::steal_sensor. Referenced by VMDApp::tool_change_type. |
|
check for an event, and queue it if found. Return TRUE if an event was generated.
Reimplemented from UIObject. Definition at line 193 of file P_UIVR.C. References NULL, ResizeArray< Tool * >::num, and remove_tool. |
|
Definition at line 395 of file P_UIVR.C. References generic_get_names. Referenced by ToolFltkMenu::reset_device_menus. |
|
Return list of device names that have been read from the .vmdsensors file.
Definition at line 367 of file P_UIVR.C. References SensorConfig::getnames. |
|
Definition at line 392 of file P_UIVR.C. References generic_get_names. Referenced by ToolFltkMenu::reset_device_menus. |
|
Return list of device names for each class of device, as obtained from the .vmdsensors file. Only devices for which a corresponding device class exists will be returned in the list. Delete the list and its elements when finished.
Definition at line 389 of file P_UIVR.C. References generic_get_names. Referenced by ToolFltkMenu::reset_device_menus. |
|
Definition at line 225 of file P_UIVR.C. References NULL, and ResizeArray< Tool * >::num. Referenced by act_on_command, ToolFltkMenu::reset_tool_list, ToolFltkMenu::select_tool, set_buttons, set_feedback, set_force_scale, set_position_scale, set_spring_scale, set_tracker, and ToolFltkMenu::update_toolrep_choosers. |
|
Definition at line 71 of file P_UIVR.h. References NameList< int >::num. Referenced by ToolFltkMenu::ToolFltkMenu. |
|
Definition at line 60 of file P_UIVR.h. References ResizeArray< Tool * >::num. Referenced by ToolFltkMenu::reset_tool_list. |
|
remove the given tool; return success.
Definition at line 185 of file P_UIVR.C. References ResizeArray< Tool * >::num. Referenced by check_event, and VMDApp::tool_delete. |
|
Definition at line 357 of file P_UIVR.C. References Tool::add_buttons, gettool, and NULL. Referenced by ToolFltkMenu::choose_buttons. |
|
Definition at line 348 of file P_UIVR.C. References Tool::add_feedback, gettool, and NULL. Referenced by ToolFltkMenu::choose_feedback. |
|
Definition at line 241 of file P_UIVR.C. References gettool, and Tool::setforcescale. Referenced by VMDApp::tool_set_force_scale. |
|
Definition at line 231 of file P_UIVR.C. References gettool, and Tool::setscale. Referenced by VMDApp::tool_set_position_scale. |
|
Definition at line 251 of file P_UIVR.C. References gettool, and Tool::setspringscale. Referenced by VMDApp::tool_set_spring_scale. |
|
Set the tracker, feedback, or buttons of the given tool. Pass NULL as the device to simply remove the device without replacing it. Return success.
Definition at line 339 of file P_UIVR.C. References Tool::add_tracker, gettool, and NULL. Referenced by ToolFltkMenu::choose_tracker. |
|
Definition at line 62 of file P_UIVR.h. References NameList< int >::name, and NameList< int >::num. Referenced by ToolFltkMenu::ToolFltkMenu. |
|
Definition at line 67 of file P_UIVR.h. References NameList< int >::typecode. |