gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
CairoCircle Class Reference

#include <CairoCircle.H>

Inheritance diagram for CairoCircle:
[legend]
Collaboration diagram for CairoCircle:
[legend]

Public Member Functions

 CairoCircle ()
 empty constructor More...
 
 CairoCircle (cairo_t *cr, double x, double y, double radiusIn, bool fillIn)
 
virtual ~CairoCircle ()
 
void settings (double radiusIn, bool fillIn)
 
void draw (cairo_t *cr, double x, double y, bool fillIn)
 
void draw (cairo_t *cr, double x, double y, double radiusIn)
 
void draw (cairo_t *cr, double x, double y, double radiusIn, bool fillIn)
 
void draw (cairo_t *cr, double x, double y)
 
- Public Member Functions inherited from CairoArc
 CairoArc ()
 Empty constructor. More...
 
 CairoArc (cairo_t *cr, double x, double y, double radiusIn, double angleStart, double angleEnd, bool fillIn)
 
virtual ~CairoArc ()
 
void settings (double radiusIn, double angleStart, double angleEnd, bool fillIn)
 
void draw (cairo_t *cr, double x, double y, bool fillIn)
 
void draw (cairo_t *cr, double x, double y, double radiusIn)
 
void draw (cairo_t *cr, double x, double y, double radiusIn, bool fillIn)
 
void draw (cairo_t *cr, double x, double y, double angleStart, double angleEnd, bool fillIn)
 
void draw (cairo_t *cr, double x, double y, double radiusIn, double angleStart, double angleEnd)
 
void draw (cairo_t *cr, double x, double y, double radiusIn, double angleStart, double angleEnd, bool fillIn)
 
void draw (cairo_t *cr, double x, double y)
 
double getRadius ()
 
double getAngleStart ()
 
double getAngleEnd ()
 

Private Member Functions

void init ()
 Initialiser for the constructors which sets the default constant angles for an arc which forms a circle. More...
 

Additional Inherited Members

- Protected Attributes inherited from CairoArc
double radius
 The radius of the circle. More...
 
double thetaStart
 
double thetaEnd
 The angles from start to end. More...
 
bool filled
 Whether to fill the box. More...
 

Detailed Description

Given a Cairo context, draw a circle. The circle is specified by a central point (x, y) the radius and whether it is filled or not. Assumes that the Cairo context is already configured for line width and colour.

CairoCircle.test.png
Examples:
CairoCircleTest.C.

Definition at line 30 of file CairoCircle.H.

Constructor & Destructor Documentation

◆ CairoCircle() [1/2]

CairoCircle::CairoCircle ( )
inline

empty constructor

Definition at line 38 of file CairoCircle.H.

Here is the call graph for this function:

◆ CairoCircle() [2/2]

CairoCircle::CairoCircle ( cairo_t *  cr,
double  x,
double  y,
double  radiusIn,
bool  fillIn 
)
inline

Constructor which draws an arc at a particular location. This constructor also stores the various member variables for radius, angle and fill state.

Parameters
xThe x location to draw use as the center.
yThe y location to draw use as the center.
radiusInThe radius to draw the arc to.
boolfillIn Whether the fill or not.

Definition at line 49 of file CairoCircle.H.

Here is the call graph for this function:

◆ ~CairoCircle()

virtual CairoCircle::~CairoCircle ( )
inlinevirtual

Definition at line 53 of file CairoCircle.H.

Member Function Documentation

◆ draw() [1/4]

void CairoCircle::draw ( cairo_t *  cr,
double  x,
double  y,
bool  fillIn 
)
inline

Draw the arc at a particular location.

Parameters
xThe x location to draw use as the center.
yThe y location to draw use as the center.
boolfillIn Whether the fill or not.
Examples:
CairoCircleTest.C.

Definition at line 69 of file CairoCircle.H.

Here is the call graph for this function:

◆ draw() [2/4]

void CairoCircle::draw ( cairo_t *  cr,
double  x,
double  y,
double  radiusIn 
)
inline

Draw the arc at a particular location.

Parameters
xThe x location to draw use as the center.
yThe y location to draw use as the center.
radiusInThe radius to draw the arc to.

Definition at line 78 of file CairoCircle.H.

Here is the call graph for this function:

◆ draw() [3/4]

void CairoCircle::draw ( cairo_t *  cr,
double  x,
double  y,
double  radiusIn,
bool  fillIn 
)
inline

Draw the arc at a particular location.

Parameters
xThe x location to draw use as the center.
yThe y location to draw use as the center.
radiusInThe radius to draw the arc to.
boolfillIn Whether the fill or not.

Definition at line 88 of file CairoCircle.H.

Here is the call graph for this function:

◆ draw() [4/4]

void CairoCircle::draw ( cairo_t *  cr,
double  x,
double  y 
)
inline

Draw the arc at a particular location.

Parameters
xThe x location to draw use as the center.
yThe y location to draw use as the center.

Definition at line 96 of file CairoCircle.H.

Here is the call graph for this function:

◆ init()

void CairoCircle::init ( )
inlineprivate

Initialiser for the constructors which sets the default constant angles for an arc which forms a circle.

Definition at line 32 of file CairoCircle.H.

Here is the caller graph for this function:

◆ settings()

void CairoCircle::settings ( double  radiusIn,
bool  fillIn 
)
inline

Change the drawing settings.

Parameters
radiusInThe radius to draw the arc to.
boolfillIn Whether the fill or not.

Definition at line 59 of file CairoCircle.H.


The documentation for this class was generated from the following file:
gtkIOStream: CairoCircle Class Reference
GTK+ IOStream  Beta