Draws a filled ellipse. More...

#include <Renderer.h>

Inheritance diagram for Graphics::FilledEllipseRenderer:
Collaboration diagram for Graphics::FilledEllipseRenderer:

Public Member Functions

 FilledEllipseRenderer (const Location &location, const Brush &brush, const Rect &rect)
 
 FilledEllipseRenderer (const Location &location, const FilledEllipseObject &object)
 
 FilledEllipseRenderer (const Location &location, const FilledCircleObject &object)
 
bool execute (Surface &surface) override
 Called to do some writing to the surface. More...
 
- Public Member Functions inherited from Graphics::Renderer
 Renderer (const Location &location)
 Constructor. More...
 
virtual ~Renderer ()
 
- Public Member Functions inherited from LinkedObjectTemplate< Renderer >
Renderer * getNext () const
 
bool insertAfter (Renderer *object)
 
Iterator begin () const
 
Iterator end () const
 
Iterator cbegin () const
 
Iterator cend () const
 
- Public Member Functions inherited from LinkedObject
virtual ~LinkedObject ()
 
virtual LinkedObjectnext () const
 
bool insertAfter (LinkedObject *object)
 
bool operator== (const LinkedObject &other) const
 
bool operator!= (const LinkedObject &other) const
 

Protected Types

enum class  State { init , running , final , done }
 

Protected Member Functions

virtual void doStep (Ellipse::Step step)
 
virtual void final ()
 

Protected Attributes

const Rect r
 
ArcRectList rectangles
 
Ellipse e
 
Rect r1
 
Rect r2
 
State state {}
 
- Protected Attributes inherited from Graphics::Renderer
Location location
 

Additional Inherited Members

- Public Types inherited from Graphics::Renderer
using List = LinkedObjectListTemplate< Renderer >
 
using OwnedList = OwnedLinkedObjectListTemplate< Renderer >
 
- Public Types inherited from LinkedObjectTemplate< Renderer >
using Iterator = IteratorTemplate< Renderer, Renderer *, Renderer & >
 
using ConstIterator = IteratorTemplate< const Renderer, const Renderer *, const Renderer & >
 

Detailed Description

Member Enumeration Documentation

◆ State

Enumerator
init 
running 
final 
done 

Constructor & Destructor Documentation

◆ FilledEllipseRenderer() [1/3]

Graphics::FilledEllipseRenderer::FilledEllipseRenderer ( const Location location,
const Brush brush,
const Rect rect 
)
inline

◆ FilledEllipseRenderer() [2/3]

Graphics::FilledEllipseRenderer::FilledEllipseRenderer ( const Location location,
const FilledEllipseObject object 
)
inline

◆ FilledEllipseRenderer() [3/3]

Graphics::FilledEllipseRenderer::FilledEllipseRenderer ( const Location location,
const FilledCircleObject object 
)
inline

Member Function Documentation

◆ doStep()

virtual void Graphics::FilledEllipseRenderer::doStep ( Ellipse::Step  step)
protectedvirtual

Reimplemented in Graphics::FilledArcRenderer.

◆ execute()

bool Graphics::FilledEllipseRenderer::execute ( Surface surface)
overridevirtual

Called to do some writing to the surface.

Return values
booltrue when rendering is complete, false if more work to be done

Implements Graphics::Renderer.

Reimplemented in Graphics::FilledArcRenderer.

◆ final()

virtual void Graphics::FilledEllipseRenderer::final ( )
protectedvirtual

Reimplemented in Graphics::FilledArcRenderer.

Member Data Documentation

◆ e

Ellipse Graphics::FilledEllipseRenderer::e
protected

◆ r

const Rect Graphics::FilledEllipseRenderer::r
protected

◆ r1

Rect Graphics::FilledEllipseRenderer::r1
protected

◆ r2

Rect Graphics::FilledEllipseRenderer::r2
protected

◆ rectangles

ArcRectList Graphics::FilledEllipseRenderer::rectangles
protected

◆ state

State Graphics::FilledEllipseRenderer::state {}
protected

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