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

IViewport moves in world coordinate and projects models to device coordinate space More...

Inherited by Braincase.GanttChart.ControlViewport, Braincase.GanttChart.ImageViewport, and Braincase.GanttChart.PrintViewport.

Public Member Functions

void Resize ()
 Request viewport to recalculate its get properties. More...
 
PointF DeviceToWorldCoord (Point screencoord)
 Convert device coordinates to world coordinates More...
 
PointF DeviceToWorldCoord (PointF screencoord)
 Convert device coordinates to world coordinates More...
 
PointF WorldToDeviceCoord (PointF worldcoord)
 Convert world coordinates to device coordinates More...
 

Properties

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

IViewport moves in world coordinate and projects models to device coordinate space

Member Function Documentation

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

Convert device coordinates to world coordinates

Parameters
screencoord
Returns

Implemented in Braincase.GanttChart.ImageViewport, Braincase.GanttChart.ControlViewport, and Braincase.GanttChart.PrintViewport.

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

Convert device coordinates to world coordinates

Parameters
screencoord
Returns

Implemented in Braincase.GanttChart.ImageViewport, Braincase.GanttChart.ControlViewport, and Braincase.GanttChart.PrintViewport.

void Braincase.GanttChart.IViewport.Resize ( )

Request viewport to recalculate its get properties.

Implemented in Braincase.GanttChart.ImageViewport, Braincase.GanttChart.ControlViewport, and Braincase.GanttChart.PrintViewport.

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

Convert world coordinates to device coordinates

Parameters
worldcoord
Returns

Implemented in Braincase.GanttChart.ImageViewport, Braincase.GanttChart.ControlViewport, and Braincase.GanttChart.PrintViewport.

Property Documentation

Matrix Braincase.GanttChart.IViewport.Projection
get

Get the projection matrix to transform world coordinates to device coordinates

RectangleF Braincase.GanttChart.IViewport.Rectangle
get

Get the rectangle boundary in world coordinates to be captured and projected onto viewport

float Braincase.GanttChart.IViewport.WorldHeight
getset

Get or set the world height

float Braincase.GanttChart.IViewport.WorldWidth
getset

Get or set the world width

float Braincase.GanttChart.IViewport.X
getset

Get or set the X world-coordinate of the position of the viewport. This is also the same as the IViewport.Rectangle.Left.

float Braincase.GanttChart.IViewport.Y
getset

Get or set the Y world-coordinate of the position of the viewport. This is also the same as the IViewport.Rectangle.Top.


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