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

The GeomEllipse object is used to render an rectangle. More...

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

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...
 

Detailed Description

The GeomEllipse object is used to render an rectangle.

Definition at line 318 of file Geometry.cs.

Constructor & Destructor Documentation

◆ GeomRectangle()

MyCaffe.gym.GeomRectangle.GeomRectangle ( float  fL,
float  fR,
float  fT,
float  fB,
Color  clrFill,
Color  clrBorder,
ColorMapper  clrMap = null 
)

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.
clrMapOptionally, 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.

Member Function Documentation

◆ Render()

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

Renders the rectangle on the Graphics specified.

Parameters
gSpecifies the Graphics used to draw.

Implements MyCaffe.gym.GeomObj.

Definition at line 342 of file Geometry.cs.


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