#include <papyrus/arc.h>
Inheritance diagram for Papyrus::Arc:

Arc
Public Types | |
|
typedef PapyrusSmartPointer< Arc > | pointer |
Public Member Functions | |
| ~Arc () | |
| Destructor. | |
| double | radius () |
| Returns the radius of this arc. | |
| void | set_radius (double r) |
| Sets the radius to r. | |
| double | start_angle () |
| Sets the start angle of the arc. | |
| double | end_angle () |
| Sets the end angle of the arc. | |
| void | set_angles (double start, double end) |
| Set both start and stop angles in a single method. | |
| virtual void | draw_shape (Cairo::RefPtr< Cairo::Context > cairo) |
| Draws on the provided context. | |
| virtual void | draw_outline (Cairo::RefPtr< Cairo::Context > cairo) |
| Reimplements the draw_outline() method since the draw_shape() method is not sufficient to complete the outline path for arcs less than full circles. | |
| sigc::signal< void > | signal_radius () |
| Signal emitted when the radius is changed. | |
| sigc::signal< void > | signal_angle () |
| Signal emitted when the start or end angle is changed. | |
| PAPYRUS_CLASS_NAME ("Arc") | |
| PAPYRUS_CLONE_METHOD (Arc) | |
Static Public Member Functions | |
| static Arc::pointer | create (double radius=1.0, double angle_start=0.0, double angle_end=M_PI/2.0, Cairo::RefPtr< Cairo::Pattern > fill=Cairo::RefPtr< Cairo::Pattern >()) |
| Creates an arc with the specified start angle, stop angle and radius. | |
| static Arc::pointer | create (double radius, double angle_start, double angle_end, Cairo::RefPtr< Cairo::Pattern > fill, const LineStyle &outline) |
| Creates an arc with the specified start angle, stop angle and radius. | |
Protected Member Functions | |
| Arc (double radius, double angle_start, double angle_end, Cairo::RefPtr< Cairo::Pattern > fill) | |
| Arc (double radius, double angle_start, double angle_end, Cairo::RefPtr< Cairo::Pattern > fill, const LineStyle &outline) | |
| virtual void | need_redraw () |
| Reimplements the need_redraw() method to calculate the extents. | |
| void | calculate_extents () |
Protected Attributes | |
| double | m_radius |
| The radius of the arc. | |
| double | m_angle_start |
| double | m_angle_end |
| sigc::signal< void > | m_signal_radius |
| Signal emitted when the radius is changed. | |
| sigc::signal< void > | m_signal_angle |
| Signal emitted when the start or end angle is changed. | |
| void Papyrus::Arc::need_redraw | ( | ) | [protected, virtual] |
Reimplements the need_redraw() method to calculate the extents.
Then calls Drawable::need_redraw().
Reimplemented from Papyrus::Drawable.
1.5.1