Complex Logarithmic View
 All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions
Clv.Viewer.Controls Class Reference

Includes user interaction with mouse and keyboard Mousecontrols handle the selection of a new focuspoint on click keyboard controls handle changes in function root, culling mode, wireframe to solid mode and vice versa depth and texture changes and goes to fullscreen mode More...

List of all members.

Public Member Functions

 Controls (GraphicsDeviceManager graphics, double depth)
void UpdateMouseControls (ComplexLogView effect, App game)
 On Click a new focus point is selected, the calculation is based on a ray shot to the main plane this point is used to calculate the undistorted point on the plane therefore an inverse shader calculation is used to calculate the distance r from old focus point and y coordinate of the new focus point x is calculated simply with r and y
void UpdateKeyBoardControls (App game)
 Keyboard controls in Detail: [Escape]: exit program [F11]: toggle Fullscreen [+]: increase nth root up to a maximum of 8 [-]: decrease nth root down to a minimum of 1 [f]: toggle fill mode between wireframe and solid [c]: toggle cullmode (counterclockwise and clockwise) [PageUp]: decrease depth value (zoom out of view) [PageDown]: increase depth value (zoom into view) [l]: load new texture out of file (gif, png or jpg) [LeftArrow]: use previous loaded texture [RightArrow]: use next loaded texture

Detailed Description

Includes user interaction with mouse and keyboard Mousecontrols handle the selection of a new focuspoint on click keyboard controls handle changes in function root, culling mode, wireframe to solid mode and vice versa depth and texture changes and goes to fullscreen mode


Member Function Documentation

void Clv.Viewer.Controls.UpdateKeyBoardControls ( App  game)

Keyboard controls in Detail: [Escape]: exit program [F11]: toggle Fullscreen [+]: increase nth root up to a maximum of 8 [-]: decrease nth root down to a minimum of 1 [f]: toggle fill mode between wireframe and solid [c]: toggle cullmode (counterclockwise and clockwise) [PageUp]: decrease depth value (zoom out of view) [PageDown]: increase depth value (zoom into view) [l]: load new texture out of file (gif, png or jpg) [LeftArrow]: use previous loaded texture [RightArrow]: use next loaded texture

Parameters:
gamegame gives values for several control options and functions to change them
void Clv.Viewer.Controls.UpdateMouseControls ( ComplexLogView  effect,
App  game 
)

On Click a new focus point is selected, the calculation is based on a ray shot to the main plane this point is used to calculate the undistorted point on the plane therefore an inverse shader calculation is used to calculate the distance r from old focus point and y coordinate of the new focus point x is calculated simply with r and y

Parameters:
effecteffect gives paramaeters for unmapping
gamegame gives needed information for back calculation of distortion and the new focus point is set there

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