Gantt Chart Control  1.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Braincase.GanttChart.ControlViewport Class Reference

An IViewport that is placed over a world coordinate system and provides methods to transform between world and view coordinates More...

Inherits Braincase.GanttChart.IViewport.

Public Member Functions

 ControlViewport (Control view)
 Construct a Viewport More...
 
void Resize ()
 Resize the Viewport according to the view control and world dimensions, which ever larger and add scrollbars where approperiate More...
 
PointF DeviceToWorldCoord (Point screencoord)
 Convert view coordinates to world coordinates More...
 
PointF DeviceToWorldCoord (PointF screencoord)
 Convert view coordinates to world coordinates More...
 
PointF WorldToDeviceCoord (PointF worldcoord)
 Convert world coordinates to view coordinates More...
 

Static Public Attributes

static readonly Matrix Identity = new Matrix(1, 0, 0, 1, 0, 0)
 Identity Matrix More...
 

Properties

int WheelDelta [get, set]
 Get or set the number of pixels to scroll on each click of the mouse More...
 
RectangleF Rectangle [get]
 Get the Rectangle area in world coordinates where the Viewport is currently viewing over More...
 
Matrix Projection [get]
 Get the projection transformation matrix required for drawing models in the world projected into view More...
 
float WorldWidth [get, set]
 Get or set the world width More...
 
float WorldHeight [get, set]
 Get or set the world height More...
 
float X [get, set]
 Get or set the world X coordinate of the Viewport location, represented by the top left corner of the Viewport Rectangle More...
 
float Y [get, set]
 Get or set the wordl Y coordinate of the Viewport location, represented by the top left corner of the Viewport Rectangle More...
 
- Properties inherited from Braincase.GanttChart.IViewport
Matrix Projection [get]
 Get the projection matrix to transform world coordinates to device coordinates More...
 
RectangleF Rectangle [get]
 Get the rectangle boundary in world coordinates to be captured and projected onto viewport More...
 
float WorldHeight [get, set]
 Get or set the world height More...
 
float WorldWidth [get, set]
 Get or set the world width More...
 
float X [get, set]
 Get or set the X world-coordinate of the position of the viewport. This is also the same as the IViewport.Rectangle.Left. More...
 
float Y [get, set]
 Get or set the Y world-coordinate of the position of the viewport. This is also the same as the IViewport.Rectangle.Top. More...
 

Detailed Description

An IViewport that is placed over a world coordinate system and provides methods to transform between world and view coordinates

Constructor & Destructor Documentation

Braincase.GanttChart.ControlViewport.ControlViewport ( Control  view)

Construct a Viewport

Parameters
view

Member Function Documentation

PointF Braincase.GanttChart.ControlViewport.DeviceToWorldCoord ( Point  screencoord)

Convert view coordinates to world coordinates

Parameters
screencoord
Returns

Implements Braincase.GanttChart.IViewport.

PointF Braincase.GanttChart.ControlViewport.DeviceToWorldCoord ( PointF  screencoord)

Convert view coordinates to world coordinates

Parameters
screencoord
Returns

Implements Braincase.GanttChart.IViewport.

void Braincase.GanttChart.ControlViewport.Resize ( )

Resize the Viewport according to the view control and world dimensions, which ever larger and add scrollbars where approperiate

Implements Braincase.GanttChart.IViewport.

PointF Braincase.GanttChart.ControlViewport.WorldToDeviceCoord ( PointF  worldcoord)

Convert world coordinates to view coordinates

Parameters
worldcoord
Returns

Implements Braincase.GanttChart.IViewport.

Member Data Documentation

readonly Matrix Braincase.GanttChart.ControlViewport.Identity = new Matrix(1, 0, 0, 1, 0, 0)
static

Identity Matrix

Property Documentation

Matrix Braincase.GanttChart.ControlViewport.Projection
get

Get the projection transformation matrix required for drawing models in the world projected into view

RectangleF Braincase.GanttChart.ControlViewport.Rectangle
get

Get the Rectangle area in world coordinates where the Viewport is currently viewing over

int Braincase.GanttChart.ControlViewport.WheelDelta
getset

Get or set the number of pixels to scroll on each click of the mouse

float Braincase.GanttChart.ControlViewport.WorldHeight
getset

Get or set the world height

float Braincase.GanttChart.ControlViewport.WorldWidth
getset

Get or set the world width

float Braincase.GanttChart.ControlViewport.X
getset

Get or set the world X coordinate of the Viewport location, represented by the top left corner of the Viewport Rectangle

float Braincase.GanttChart.ControlViewport.Y
getset

Get or set the wordl Y coordinate of the Viewport location, represented by the top left corner of the Viewport Rectangle


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