fawkes::DrawingManipulator Class Reference
Allows to control some aspects of the rendering of objects. More...
#include <geometry/gtk/drawing_manipulator.h>

Public Types | |
| enum | Color { BLACK, WHITE, RED, GREEN, BLUE } |
| Some pre-defined colors. More... | |
Public Member Functions | |
| DrawingManipulator () | |
| Constructor. | |
| virtual | ~DrawingManipulator () |
| Desctructor. | |
| void | integrate (const DrawingManipulator *m) |
| Integrates the parameters of another manipulator. | |
| void | set_line_width (float w) |
| Set the line width. | |
| float | get_line_width () const |
| Get the line width. | |
| void | set_point_size (float s) |
| Set the point size. | |
| float | get_point_size () const |
| Get the point size. | |
| void | set_color (Color c) |
| Set the color. | |
| void | set_color (float r, float g, float b) |
| Set the color specified in RGB. | |
| void | get_color (float &r, float &g, float &b) const |
| Get the color. | |
| virtual void | draw (Cairo::RefPtr< Cairo::Context > &context) |
| This method is called by the GeomDrawingArea. | |
Detailed Description
Allows to control some aspects of the rendering of objects.
Definition at line 32 of file drawing_manipulator.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
| fawkes::DrawingManipulator::DrawingManipulator | ( | ) |
| fawkes::DrawingManipulator::~DrawingManipulator | ( | ) | [virtual] |
Member Function Documentation
| void fawkes::DrawingManipulator::draw | ( | Cairo::RefPtr< Cairo::Context > & | context | ) | [virtual] |
This method is called by the GeomDrawingArea.
Here, derived classes should implement the drawing code.
- Parameters:
-
context the drawing context
Implements fawkes::GeomDrawer.
Definition at line 202 of file drawing_manipulator.cpp.
| void fawkes::DrawingManipulator::get_color | ( | float & | r, | |
| float & | g, | |||
| float & | b | |||
| ) | const |
Get the color.
- Parameters:
-
r reference to a variable where the R value of the current color is written to g reference to a variable where the G value of the current color is written to b reference to a variable where the B value of the current color is written to
Definition at line 194 of file drawing_manipulator.cpp.
| float fawkes::DrawingManipulator::get_line_width | ( | ) | const |
| float fawkes::DrawingManipulator::get_point_size | ( | ) | const |
Get the point size.
- Returns:
- the point size
Definition at line 117 of file drawing_manipulator.cpp.
Referenced by fawkes::GeomDrawingArea::operator<<().
| void fawkes::DrawingManipulator::integrate | ( | const DrawingManipulator * | m | ) |
Integrates the parameters of another manipulator.
If a certain field in this manipulator is not set it is assigned the respective value from the specified manipualator.
- Parameters:
-
m the manipulator to integrate
Definition at line 62 of file drawing_manipulator.cpp.
Referenced by fawkes::GeomDrawingArea::operator<<().
| void fawkes::DrawingManipulator::set_color | ( | float | r, | |
| float | g, | |||
| float | b | |||
| ) |
Set the color specified in RGB.
- Parameters:
-
r the R value of the color g the G value of the color b the B value of the color
Definition at line 176 of file drawing_manipulator.cpp.
| void fawkes::DrawingManipulator::set_color | ( | Color | c | ) |
Set the color.
- Parameters:
-
c the color
Definition at line 126 of file drawing_manipulator.cpp.
References BLACK, BLUE, GREEN, RED, and WHITE.
Referenced by fawkes::set_color().
| void fawkes::DrawingManipulator::set_line_width | ( | float | w | ) |
Set the line width.
- Parameters:
-
w the line width
Definition at line 82 of file drawing_manipulator.cpp.
Referenced by fawkes::set_line_width().
| void fawkes::DrawingManipulator::set_point_size | ( | float | s | ) |
Set the point size.
- Parameters:
-
s the point size
Definition at line 104 of file drawing_manipulator.cpp.
Referenced by fawkes::set_point_size().
The documentation for this class was generated from the following files:
- src/libs/geometry/gtk/drawing_manipulator.h
- src/libs/geometry/gtk/drawing_manipulator.cpp

