UniPRT SDK  v1.0.0.0
PrintPlane Class Reference

A print plane is a 2-dimensional plane with a ruler for object placement and printer resolution needed to correlate ruler units to native printer dots. More...

Inheritance diagram for PrintPlane:
IPrintPlane

Public Member Functions

 PrintPlane (IRuler ruler)
 
 PrintPlane (IRuler ruler, IPrintResolution printResolution)
 
float DotsPerUnit (IRuler ruler)
 
float DotsPerUnit (IRuler ruler, IPrintResolution resolution)
 
float DotsToPoints (float dots)
 
float DotsToPoints (float dots, IPrintResolution resolution)
 
IPrintResolution GetPrinterResolution ()
 The printer resolution used for all objects on plane. More...
 
IRuler GetRuler ()
 The ruler used by all objects if a specific ruler is not changed or provided. More...
 
float InchToDots (float inchValue)
 
float InchToDots (float inchValue, IPrintResolution resolution)
 
float InchToPoints (float inchValue)
 
float InchToPoints (float inchValue, IPrintResolution resolution)
 
float MMToDots (float mmValue)
 
float MMToDots (float mmValue, IPrintResolution resolution)
 
float MMToPoints (float mmValue)
 
float MMToPoints (float mmValue, IPrintResolution resolution)
 
void SetPrinterResolution (IPrintResolution printerResolution)
 
void SetRuler (IRuler ruler)
 
float ToDots (float scaledNumber)
 
float ToDots (float scaledNumber, IRuler ruler)
 
float ToDots (float scaledNumber, IRuler ruler, IPrintResolution resolution)
 
IPoint ToDots (IPoint scaledPosition)
 
IPoint ToDots (IPoint scaledPosition, IRuler ruler)
 
IPoint ToDots (IPoint scaledPosition, IRuler ruler, IPrintResolution resolution)
 
float ToInch (float scaledNumber)
 
float ToInch (float scaledNumber, IRuler ruler)
 
float ToInch (float scaledNumber, IRuler ruler, IPrintResolution resolution)
 
float ToMM (float scaledNumber)
 
float ToMM (float scaledNumber, IRuler ruler)
 
float ToMM (float scaledNumber, IRuler ruler, IPrintResolution resolution)
 
float ToPoints (float scaledNumber)
 
float ToPoints (float scaledNumber, IRuler ruler)
 
float ToPoints (float scaledNumber, IRuler ruler, IPrintResolution resolution)
 

Static Public Member Functions

static int Round (float numToRound)
 Round a float to integer.
 

Detailed Description

A print plane is a 2-dimensional plane with a ruler for object placement and printer resolution needed to correlate ruler units to native printer dots.

Member Function Documentation

◆ GetPrinterResolution()

IPrintResolution GetPrinterResolution ( )

The printer resolution used for all objects on plane.

The placement of objects within a plane depends on the printer resolution when using units other than dots.

Implements IPrintPlane.

◆ GetRuler()

IRuler GetRuler ( )

The ruler used by all objects if a specific ruler is not changed or provided.

By changing the settings of this ruler, it allows all objects to use a common ruler scale/resolution.

Implements IPrintPlane.