MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.gym.GeomObj Class Referenceabstract

The GoomObj is the base class for all other gometric objects used to draw Gym objects. More...

Inheritance diagram for MyCaffe.gym.GeomObj:
MyCaffe.gym.GeomEllipse MyCaffe.gym.GeomLine MyCaffe.gym.GeomPolyLine MyCaffe.gym.GeomPolygon MyCaffe.gym.GeomRectangle

Public Member Functions

 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...
 
abstract void Render (Graphics g)
 Override used to render the object. More...
 

Protected Member Functions

void prerender (Graphics g)
 Called just before rendering the object. More...
 
void postrender (Graphics g)
 Called just after rendering the object. More...
 

Protected Attributes

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

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 GoomObj is the base class for all other gometric objects used to draw Gym objects.

Definition at line 15 of file Geometry.cs.

Constructor & Destructor Documentation

◆ GeomObj()

MyCaffe.gym.GeomObj.GeomObj ( 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 52 of file Geometry.cs.

Member Function Documentation

◆ Height()

float MyCaffe.gym.GeomObj.Height ( PointF[]  rg)

Returns the height of the points.

Parameters
rgOptionally, specifies the override points.
Returns
The height is returned.

Definition at line 117 of file Geometry.cs.

◆ LeftBottom()

PointF MyCaffe.gym.GeomObj.LeftBottom ( PointF[]  rg = null)

Returns the left bottom.

Parameters
rgOptionally, specifies the override points.
Returns
The left-bottom is returned.

Definition at line 130 of file Geometry.cs.

◆ LeftTop()

PointF MyCaffe.gym.GeomObj.LeftTop ( PointF[]  rg = null)

Returns the left top.

Parameters
rgOptionally, specifies the override points.
Returns
The left-top is returned.

Definition at line 143 of file Geometry.cs.

◆ postrender()

void MyCaffe.gym.GeomObj.postrender ( Graphics  g)
protected

Called just after rendering the object.

Parameters
gSpecifies the Graphics used to render.

Definition at line 78 of file Geometry.cs.

◆ prerender()

void MyCaffe.gym.GeomObj.prerender ( Graphics  g)
protected

Called just before rendering the object.

Parameters
gSpecifies the Graphics used to render.

Definition at line 67 of file Geometry.cs.

◆ Render()

abstract void MyCaffe.gym.GeomObj.Render ( Graphics  g)
pure virtual

Override used to render the object.

Parameters
g

Implemented in MyCaffe.gym.GeomLine, MyCaffe.gym.GeomEllipse, MyCaffe.gym.GeomRectangle, MyCaffe.gym.GeomPolygon, and MyCaffe.gym.GeomPolyLine.

◆ RightBottom()

PointF MyCaffe.gym.GeomObj.RightBottom ( PointF[]  rg = null)

Returns the right bottom.

Parameters
rgOptionally, specifies the override points.
Returns
The right-bottom is returned.

Definition at line 169 of file Geometry.cs.

◆ RightTop()

PointF MyCaffe.gym.GeomObj.RightTop ( PointF[]  rg = null)

Returns the right top.

Parameters
rgOptionally, specifies the override points.
Returns
The right-top is returned.

Definition at line 156 of file Geometry.cs.

◆ SetColors()

void MyCaffe.gym.GeomObj.SetColors ( Color  clrFill,
Color  clrBorder 
)

Set the colors of the object.

Parameters
clrFillSpecifies the fill color.
clrBorderSpecifies the border color.

Definition at line 92 of file Geometry.cs.

◆ SetLocation()

virtual void MyCaffe.gym.GeomObj.SetLocation ( float  fX,
float  fY 
)
virtual

Sets the object location.

Parameters
fXSpecifies the location x coordinate.
fYSpecifies the location y coordinate.

Definition at line 198 of file Geometry.cs.

◆ SetRotation()

virtual void MyCaffe.gym.GeomObj.SetRotation ( float  fR)
virtual

Sets the rotation of the object.

Parameters
fRSpecifies the rotation.

Definition at line 207 of file Geometry.cs.

◆ Width()

float MyCaffe.gym.GeomObj.Width ( PointF[]  rg)

Returns the width of the points.

Parameters
rgOptionally, specifies the override points.
Returns
The width is returned.

Definition at line 104 of file Geometry.cs.

Member Data Documentation

◆ m_bClrDirty

bool MyCaffe.gym.GeomObj.m_bClrDirty = false
protected

Specifies that the colors have changed.

Definition at line 40 of file Geometry.cs.

◆ m_clrBorder

Color MyCaffe.gym.GeomObj.m_clrBorder = Color.Black
protected

Specifies the border color of the object.

Definition at line 32 of file Geometry.cs.

◆ m_clrFill

Color MyCaffe.gym.GeomObj.m_clrFill = Color.LightGray
protected

Specifies the fill color of the object.

Definition at line 28 of file Geometry.cs.

◆ m_fRotation

float MyCaffe.gym.GeomObj.m_fRotation = 0
protected

Specifies the rotation of the object.

Definition at line 36 of file Geometry.cs.

◆ m_location

PointF MyCaffe.gym.GeomObj.m_location = new PointF(0, 0)
protected

Specifies the location of the object.

Definition at line 20 of file Geometry.cs.

◆ m_rgPoints

List<PointF> MyCaffe.gym.GeomObj.m_rgPoints = new List<PointF>()
protected

Specifies the points of the object.

Definition at line 24 of file Geometry.cs.

Property Documentation

◆ BorderColor

Color MyCaffe.gym.GeomObj.BorderColor
get

Returns the border color.

Definition at line 231 of file Geometry.cs.

◆ FillColor

Color MyCaffe.gym.GeomObj.FillColor
get

Returns the fill color.

Definition at line 223 of file Geometry.cs.

◆ Location

PointF MyCaffe.gym.GeomObj.Location
get

Returns the location of the object.

Definition at line 180 of file Geometry.cs.

◆ Polygon

List<PointF> MyCaffe.gym.GeomObj.Polygon
get

Returns the bounds as a Polygon.

Definition at line 215 of file Geometry.cs.

◆ Rotation

float MyCaffe.gym.GeomObj.Rotation
get

Returns the rotation of the object.

Definition at line 188 of file Geometry.cs.


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