Advanced Software Engineering
Advanced_Software_Engineering.Verbs.DrawingVerbs.Triangle Class Reference

The Triangle IVerb class More...

Inheritance diagram for Advanced_Software_Engineering.Verbs.DrawingVerbs.Triangle:
Advanced_Software_Engineering.IVerb

Public Member Functions

 Triangle (Drawer drawer, IValue scale)
 Creates a new Triangle instance using RegularPolygon. More...
 
 Triangle (Drawer drawer, IValue scale, IValue offset)
 Creates a new Triangle instance using RegularPolygon. More...
 
 Triangle (Drawer drawer, PointValue point1, PointValue point2, PointValue point3)
 Creates a new Triangle instance using DrawLines. It draws lines to the points provided More...
 
void ExecuteVerb ()
 Executes the created IVerb, either RegularPolygon or DrawLines. More...
 
string GetDescription ()
 Describes how the triangle will be drawn More...
 

Detailed Description

The Triangle IVerb class

Constructor & Destructor Documentation

◆ Triangle() [1/3]

Advanced_Software_Engineering.Verbs.DrawingVerbs.Triangle.Triangle ( Drawer  drawer,
IValue  scale 
)

Creates a new Triangle instance using RegularPolygon.

Parameters
drawerdrawer
scalethe scale of the triangle

◆ Triangle() [2/3]

Advanced_Software_Engineering.Verbs.DrawingVerbs.Triangle.Triangle ( Drawer  drawer,
IValue  scale,
IValue  offset 
)

Creates a new Triangle instance using RegularPolygon.

Parameters
drawerdrawer
scalethe scale of the triangle
offsetthe offset of the triangle in degrees

◆ Triangle() [3/3]

Advanced_Software_Engineering.Verbs.DrawingVerbs.Triangle.Triangle ( Drawer  drawer,
PointValue  point1,
PointValue  point2,
PointValue  point3 
)

Creates a new Triangle instance using DrawLines. It draws lines to the points provided

Parameters
drawerdrawer
point1first point
point2second point
point3third point

Member Function Documentation

◆ ExecuteVerb()

void Advanced_Software_Engineering.Verbs.DrawingVerbs.Triangle.ExecuteVerb ( )

Executes the created IVerb, either RegularPolygon or DrawLines.

Implements Advanced_Software_Engineering.IVerb.

◆ GetDescription()

string Advanced_Software_Engineering.Verbs.DrawingVerbs.Triangle.GetDescription ( )

Describes how the triangle will be drawn

Returns
Description of how the triangle will be drawn

Implements Advanced_Software_Engineering.IVerb.


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