C# Class XLibrary.GLRenderer

Inheritance: OpenTK.GLControl, IRenderer
Exibir arquivo Open project: swax/CodePerspective Class Usage Examples

Public Methods

Method Description
DrawCallLine ( Color color, int lineWidth, PointF start, PointF end, bool dashed, NodeModel source, NodeModel destination ) : void
DrawNode ( Color color, RectangleF area, bool outside, NodeModel node, int depth ) : void
DrawNodeLabel ( string text, Font font, Color color, RectangleF rect, NodeModel node, int depth ) : void
DrawNodeOutline ( Color color, int lineWidth, RectangleF area, bool outside, NodeModel node, int depth ) : void
DrawString ( string text, Font font, Color color, float x, float y, float width, float height ) : void
DrawTextBackground ( Color color, float x, float y, float width, float height ) : void
GLRenderer ( ViewModel model ) : System
GetCursorPosition ( ) : Point
GetQFont ( Font font ) : QFont
GetTriangleVerticies ( RectangleF area ) : Vector3[]
MeasureString ( string text, Font font ) : SizeF
Start ( ) : void
Stop ( ) : void
ViewInvalidate ( ) : void

Private Methods

Method Description
DrawLineVbo ( VertexBuffer>.Dictionary widthMap ) : void
GLRenderer_KeyDown ( object sender, KeyEventArgs e ) : void
GLRenderer_KeyUp ( object sender, KeyEventArgs e ) : void
GLRenderer_Load ( object sender, EventArgs e ) : void
GLRenderer_MouseDoubleClick ( object sender, MouseEventArgs e ) : void
GLRenderer_MouseDown ( object sender, MouseEventArgs e ) : void
GLRenderer_MouseLeave ( object sender, EventArgs e ) : void
GLRenderer_MouseMove ( object sender, MouseEventArgs e ) : void
GLRenderer_MouseUp ( object sender, MouseEventArgs e ) : void
GLRenderer_MouseWheel ( object sender, MouseEventArgs e ) : void
GLRenderer_Paint ( object sender, PaintEventArgs e ) : void
GLRenderer_Resize ( object sender, EventArgs e ) : void
GetLineVbo ( VertexBuffer>.Dictionary widthMap, int width ) : VertexBuffer
GetRectVerticies ( RectangleF rect ) : Vector3[]
GetRectVerticies ( float x, float y, float width, float height ) : Vector3[]
SetupViewport ( ) : void

Method Details

DrawCallLine() public method

public DrawCallLine ( Color color, int lineWidth, PointF start, PointF end, bool dashed, NodeModel source, NodeModel destination ) : void
color Color
lineWidth int
start System.Drawing.PointF
end System.Drawing.PointF
dashed bool
source NodeModel
destination NodeModel
return void

DrawNode() public method

public DrawNode ( Color color, RectangleF area, bool outside, NodeModel node, int depth ) : void
color Color
area System.Drawing.RectangleF
outside bool
node NodeModel
depth int
return void

DrawNodeLabel() public method

public DrawNodeLabel ( string text, Font font, Color color, RectangleF rect, NodeModel node, int depth ) : void
text string
font System.Drawing.Font
color Color
rect System.Drawing.RectangleF
node NodeModel
depth int
return void

DrawNodeOutline() public method

public DrawNodeOutline ( Color color, int lineWidth, RectangleF area, bool outside, NodeModel node, int depth ) : void
color Color
lineWidth int
area System.Drawing.RectangleF
outside bool
node NodeModel
depth int
return void

DrawString() public method

public DrawString ( string text, Font font, Color color, float x, float y, float width, float height ) : void
text string
font System.Drawing.Font
color Color
x float
y float
width float
height float
return void

DrawTextBackground() public method

public DrawTextBackground ( Color color, float x, float y, float width, float height ) : void
color Color
x float
y float
width float
height float
return void

GLRenderer() public method

public GLRenderer ( ViewModel model ) : System
model ViewModel
return System

GetCursorPosition() public method

public GetCursorPosition ( ) : Point
return Point

GetQFont() public method

public GetQFont ( Font font ) : QFont
font System.Drawing.Font
return QuickFont.QFont

GetTriangleVerticies() public method

public GetTriangleVerticies ( RectangleF area ) : Vector3[]
area System.Drawing.RectangleF
return Vector3[]

MeasureString() public method

public MeasureString ( string text, Font font ) : SizeF
text string
font System.Drawing.Font
return System.Drawing.SizeF

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

ViewInvalidate() public method

public ViewInvalidate ( ) : void
return void