Configuring ILPanel
Interaction with ILPanel
ILPanel controls support mouse interaction out of the box. The type
of interaction includes
- Zoom in/out by single clicking on any
ILPanelgraph with left/right mouse button - Zoom in by region. The rectangular region gets defined by dragging a zoom rectangle with the mouse.
- Rotating the whole
ILPanel's scene. This is mostly usefull for 3D plots.
The type of interaction depends on the type of graps showing. If only 2D plots are
shown, Rectangular zooming is used per default. For 3D plots clicking and dragging
with the mouse will rotate the figure. However, the type of mouse interaction can
also programmatically configured by the property ILPanel.InteractiveMode.
This property is set every time a new graph is added to the panel.
All possible values of the InteractiveMode property:
ZoomRectangleRotatingSelecting
Resetting the view
Double clicking with the mouse into the panel, the camera will be reset to rotation=0°, pitch=0°, distance=10. This view corresponds to the default view for 2D plots.
Magnetic rotation
In order to find 'even' rotation angles while rotating with the mouse, hold down the 'Alt' key. The angles of camera rotation will snap on multiple of Pi/4 for both, rotation and pitch.
Configuring visual styles
Colors for ILPanel background area is configured via the BackColor
(derived from Control) and BackColorCube properties. In this image
BackColor was set to Yellow and BackColorCube
was set to SkyBlue.
The visibility of the cube's background area is controlled by the boolean
BackgroundFilled property.