#include <ToolFltkMenu.h>
Inheritance diagram for ToolFltkMenu:

Public Methods | |
| ToolFltkMenu (VMDApp *) | |
| void | reset_device_menus () |
| Put tracker, force, and button device names into choosers. More... | |
| void | reset_tool_list () |
| Re-create list of of active tools. More... | |
| void | create_tool () |
| Create a new tool, using the current tool type from the tooltypechooser. More... | |
| void | delete_tool () |
| Delete the currently selected tool. More... | |
| void | select_tool_type () |
| Change the currently selected tool to the currently selected type. Does nothing if no tool is selected. More... | |
| void | select_tool () |
| A tool has been selected in the toolchooser; update the values for the devices, offset, force, etc. More... | |
| void | choose_tracker (const char *) |
| A device of the given type has been chosen in the GUI. More... | |
| void | choose_feedback (const char *) |
| void | choose_buttons (const char *) |
| void | set_offset () |
| set the tool offset based on current values. More... | |
| void | set_springscale () |
| set the spring constant for the tool based on the current value. More... | |
| void | set_forcescale () |
| set the force scale for the tool based on current values. More... | |
| void | set_positionscale () |
| set the position scaling for the tool based on the current value. More... | |
| void | set_toolrep () |
| Set the rep, if any, assigned to the current tool. More... | |
| void | update_toolrep_choosers () |
| Make the tool rep reflect reality, based on currently existing molecules and reps and the currently selected tool, if any. More... | |
| void | update_replist () |
| Update the rep list to reflect the currently selected molecule. More... | |
Protected Methods | |
| 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... | |
Definition at line 37 of file ToolFltkMenu.h.
|
|
Definition at line 473 of file ToolFltkMenu.C. References UIObject::app, cmdList, UIObject::command_wanted, UIVR::num_tool_types, reset_device_menus, UIVR::tool_name, Command::TOOL_SCALE, Command::TOOL_SCALE_FORCE, Command::TOOL_SCALE_SPRING, toolrepCmdList, and VMDApp::uivr. |
|
||||||||||||
|
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 495 of file ToolFltkMenu.C. References cmdList, reset_tool_list, select_tool, Command::TOOL_SCALE, Command::TOOL_SCALE_FORCE, Command::TOOL_SCALE_SPRING, toolrepCmdList, and update_toolrep_choosers. |
|
|
Definition at line 346 of file ToolFltkMenu.C. References UIObject::app, select_tool, UIVR::set_buttons, and VMDApp::uivr. Referenced by button_cb. |
|
|
Definition at line 342 of file ToolFltkMenu.C. References UIObject::app, select_tool, UIVR::set_feedback, and VMDApp::uivr. Referenced by force_cb. |
|
|
A device of the given type has been chosen in the GUI.
Definition at line 338 of file ToolFltkMenu.C. References UIObject::app, select_tool, UIVR::set_tracker, and VMDApp::uivr. Referenced by position_cb. |
|
|
Create a new tool, using the current tool type from the tooltypechooser.
Definition at line 256 of file ToolFltkMenu.C. References UIObject::app, NULL, and VMDApp::tool_create. Referenced by createtool_cb. |
|
|
Delete the currently selected tool.
Definition at line 261 of file ToolFltkMenu.C. References UIObject::app, and VMDApp::tool_delete. Referenced by deletetool_cb. |
|
|
Put tracker, force, and button device names into choosers.
Definition at line 214 of file ToolFltkMenu.C. References UIObject::app, UIVR::get_button_names, UIVR::get_feedback_names, UIVR::get_tracker_names, ResizeArray::num, and VMDApp::uivr. Referenced by ToolFltkMenu. |
|
|
Re-create list of of active tools.
Definition at line 246 of file ToolFltkMenu.C. References Tool::alive, UIObject::app, UIVR::gettool, UIVR::num_tools, Tool::type_name, and VMDApp::uivr. Referenced by act_on_command. |
|
|
A tool has been selected in the toolchooser; update the values for the devices, offset, force, etc.
Definition at line 271 of file ToolFltkMenu.C. References Tool::alive, UIObject::app, Tool::get_buttons, Tool::get_feedback, Tool::get_tracker, Tool::getforcescale, Tool::getoffset, Tool::getscale, Tool::getspringscale, UIVR::gettool, Tool::type_name, VMDApp::uivr, and update_toolrep_choosers. Referenced by act_on_command, choose_buttons, choose_feedback, choose_tracker, and select_tool_cb. |
|
|
Change the currently selected tool to the currently selected type. Does nothing if no tool is selected.
Definition at line 265 of file ToolFltkMenu.C. References UIObject::app, and VMDApp::tool_change_type. Referenced by select_tool_type_cb. |
|
|
set the force scale for the tool based on current values.
Definition at line 361 of file ToolFltkMenu.C. References UIObject::app, and VMDApp::tool_set_force_scale. Referenced by forcescale_cb. |
|
|
set the tool offset based on current values.
Definition at line 351 of file ToolFltkMenu.C. References UIObject::runcommand. Referenced by offset_cb. |
|
|
set the position scaling for the tool based on the current value.
Definition at line 377 of file ToolFltkMenu.C. References UIObject::app, and VMDApp::tool_set_position_scale. Referenced by positionscale_cb. |
|
|
set the spring constant for the tool based on the current value.
Definition at line 369 of file ToolFltkMenu.C. References UIObject::app, and VMDApp::tool_set_spring_scale. Referenced by forceconstant_cb. |
|
|
Set the rep, if any, assigned to the current tool.
Definition at line 386 of file ToolFltkMenu.C. References UIObject::app, VMDApp::molecule_id, and UIObject::runcommand. Referenced by moleculerep_cb, and toolrep_cb. |
|
|
Update the rep list to reflect the currently selected molecule.
Definition at line 446 of file ToolFltkMenu.C. References UIObject::app, VMDApp::molecule_id, VMDApp::molrep_get_selection, and VMDApp::num_molreps. Referenced by moleculerep_cb, and update_toolrep_choosers. |
|
|
Make the tool rep reflect reality, based on currently existing molecules and reps and the currently selected tool, if any.
Definition at line 399 of file ToolFltkMenu.C. References UIObject::app, fill_fltk_molchooser, Tool::get_rep_molid, Tool::get_rep_name, UIVR::gettool, VMDApp::molecule_id, VMDApp::molrep_get_by_name, VMDApp::num_molecules, VMDApp::uivr, and update_replist. Referenced by act_on_command, and select_tool. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002