User Controls Common to All Examples
A popup menu appears with a right click in the graphics window. The menu choices for all examples are "Show Source Code", "Close Source Code" and "Close Example". Note that Internet Explorer opens automatically with each example and displays a discussion and/or code listing. Thus, the first two menu items are provided for closing and re-opening these documents. The third menu item closes both the example and IE.
Since this user control is ancillary to the example, the cpp code used to carry out this function is not shown here in the code listing. The interested reader may view the pertinent code in ExampleWithControl.cpp, which resides in ComputerGraphicsTutorials/Examples/ControlSourceCode.
User Controls Particular to This Example
Common Popup Menu
with the following additional choices
- - change the color of selected object (submenu)
- - reset the display
Mouse
- Left-Click - select an object
- Left Drag - move the selected object
- Right-Click - trigger popup menu
Keyboard
- r, R - change color of selected object to Red
- g, G - change color of selected object to Green
- b, B - change color of selected object to Blue
- c, C - change color of selected object to Cyan
- m, M - change color of selected object to Magenta
- y, Y - change color of selected object to Yellow
- Up Arrow - scale up selected object
- Down Arrow - scale down selected object