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

IViewport for printing to file More...

Inherits Braincase.GanttChart.IViewport.

Public Member Functions

 PrintViewport (Graphics graphics, float worldWidth, float worldHeight, int deviceWidth, int deviceHeight, int marginLeft, int marginTop)
 
void Resize ()
 Resize the viewport, recalculating and correcting dimensions More...
 
PointF DeviceToWorldCoord (Point screencoord)
 Convert view coordinates to world coordinate More...
 
PointF DeviceToWorldCoord (PointF screencoord)
 Convert view coordinates to world coordinate More...
 
PointF WorldToDeviceCoord (PointF worldcoord)
 Convert world coordinates to view coordinate More...
 

Properties

float X [get, set]
 Get or set viewport X world coordinate More...
 
float Y [get, set]
 Get or set viewport Y world coordinate More...
 
float Scale [get, set]
 Get or set scaling factor between 0.0f and 1.0f (obviously, scale of zero would mean you can't see anything) More...
 
float WorldWidth [get, set]
 Get or set width of the world More...
 
float WorldHeight [get, set]
 Get or set height of the world More...
 
Matrix Projection [get]
 Get the projection matrix for transforming models into viewport More...
 
RectangleF Rectangle [get]
 Get the rectangle bounds of the viewport in world coordinate 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

IViewport for printing to file

Member Function Documentation

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

Convert view coordinates to world coordinate

Parameters
screencoord
Returns

Implements Braincase.GanttChart.IViewport.

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

Convert view coordinates to world coordinate

Parameters
screencoord
Returns

Implements Braincase.GanttChart.IViewport.

void Braincase.GanttChart.PrintViewport.Resize ( )

Resize the viewport, recalculating and correcting dimensions

Implements Braincase.GanttChart.IViewport.

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

Convert world coordinates to view coordinate

Parameters
worldcoord
Returns

Implements Braincase.GanttChart.IViewport.

Property Documentation

Matrix Braincase.GanttChart.PrintViewport.Projection
get

Get the projection matrix for transforming models into viewport

RectangleF Braincase.GanttChart.PrintViewport.Rectangle
get

Get the rectangle bounds of the viewport in world coordinate

float Braincase.GanttChart.PrintViewport.Scale
getset

Get or set scaling factor between 0.0f and 1.0f (obviously, scale of zero would mean you can't see anything)

float Braincase.GanttChart.PrintViewport.WorldHeight
getset

Get or set height of the world

float Braincase.GanttChart.PrintViewport.WorldWidth
getset

Get or set width of the world

float Braincase.GanttChart.PrintViewport.X
getset

Get or set viewport X world coordinate

float Braincase.GanttChart.PrintViewport.Y
getset

Get or set viewport Y world coordinate


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