MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.gym.GeomLine Class Reference

The GeomLine object is used to render a line. More...

Inheritance diagram for MyCaffe.gym.GeomLine:
MyCaffe.gym.GeomObj

Public Member Functions

 GeomLine (float fL, float fR, float fT, float fB, Color clrFill, Color clrBorder)
 The constructor. More...
 
override void Render (Graphics g)
 Renders the line on the Graphics specified. More...
 
- Public Member Functions inherited from MyCaffe.gym.GeomObj
 GeomObj (float fL, float fR, float fT, float fB, Color clrFill, Color clrBorder)
 The constructor. More...
 
void SetColors (Color clrFill, Color clrBorder)
 Set the colors of the object. More...
 
float Width (PointF[] rg)
 Returns the width of the points. More...
 
float Height (PointF[] rg)
 Returns the height of the points. More...
 
PointF LeftBottom (PointF[] rg=null)
 Returns the left bottom. More...
 
PointF LeftTop (PointF[] rg=null)
 Returns the left top. More...
 
PointF RightTop (PointF[] rg=null)
 Returns the right top. More...
 
PointF RightBottom (PointF[] rg=null)
 Returns the right bottom. More...
 
virtual void SetLocation (float fX, float fY)
 Sets the object location. More...
 
virtual void SetRotation (float fR)
 Sets the rotation of the object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MyCaffe.gym.GeomObj
void prerender (Graphics g)
 Called just before rendering the object. More...
 
void postrender (Graphics g)
 Called just after rendering the object. More...
 
- Protected Attributes inherited from MyCaffe.gym.GeomObj
PointF m_location = new PointF(0, 0)
 Specifies the location of the object. More...
 
List< PointF > m_rgPoints = new List<PointF>()
 Specifies the points of the object. More...
 
Color m_clrFill = Color.LightGray
 Specifies the fill color of the object. More...
 
Color m_clrBorder = Color.Black
 Specifies the border color of the object. More...
 
float m_fRotation = 0
 Specifies the rotation of the object. More...
 
bool m_bClrDirty = false
 Specifies that the colors have changed. More...
 
- Properties inherited from MyCaffe.gym.GeomObj
PointF Location [get]
 Returns the location of the object. More...
 
float Rotation [get]
 Returns the rotation of the object. More...
 
List< PointF > Polygon [get]
 Returns the bounds as a Polygon. More...
 
Color FillColor [get]
 Returns the fill color. More...
 
Color BorderColor [get]
 Returns the border color. More...
 

Detailed Description

The GeomLine object is used to render a line.

Definition at line 246 of file Geometry.cs.

Constructor & Destructor Documentation

◆ GeomLine()

MyCaffe.gym.GeomLine.GeomLine ( float  fL,
float  fR,
float  fT,
float  fB,
Color  clrFill,
Color  clrBorder 
)

The constructor.

Parameters
fLSpecifies the left position.
fRSpecifies the right position.
fTSpecifies the top position.
fBSpecifies the bottom position.
clrFillSpecifies the fill color.
clrBorderSpecifies the border color.

Definition at line 257 of file Geometry.cs.

Member Function Documentation

◆ Render()

override void MyCaffe.gym.GeomLine.Render ( Graphics  g)
virtual

Renders the line on the Graphics specified.

Parameters
gSpecifies the Graphics used to draw.

Implements MyCaffe.gym.GeomObj.

Definition at line 266 of file Geometry.cs.


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