MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The GeomEllipse object is used to render an rectangle. More...
Public Member Functions | |
GeomRectangle (float fL, float fR, float fT, float fB, Color clrFill, Color clrBorder, ColorMapper clrMap=null) | |
The constructor. More... | |
override void | Render (Graphics g) |
Renders the rectangle 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... | |
The GeomEllipse object is used to render an rectangle.
Definition at line 318 of file Geometry.cs.
MyCaffe.gym.GeomRectangle.GeomRectangle | ( | float | fL, |
float | fR, | ||
float | fT, | ||
float | fB, | ||
Color | clrFill, | ||
Color | clrBorder, | ||
ColorMapper | clrMap = null |
||
) |
The constructor.
fL | Specifies the left position. |
fR | Specifies the right position. |
fT | Specifies the top position. |
fB | Specifies the bottom position. |
clrFill | Specifies the fill color. |
clrBorder | Specifies the border color. |
clrMap | Optionally, specifies a color-map used to color the rectangle based on the x position of the object. |
Definition at line 332 of file Geometry.cs.
|
virtual |
Renders the rectangle on the Graphics specified.
g | Specifies the Graphics used to draw. |
Implements MyCaffe.gym.GeomObj.
Definition at line 342 of file Geometry.cs.