PedalDrawingArea Class Reference

Generic pedal drawing area. More...

#include <manager_gui.h>

Inheritance diagram for PedalDrawingArea:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PedalDrawingArea (std::string title=std::string("NOT_SET"), double min_value=0, double max_value=100)
 Class constructor.
void setValue (double value)
 Set the current pedal value.
virtual ~PedalDrawingArea ()
 Class destructor.

Protected Member Functions

virtual bool on_draw (const Cairo::RefPtr< Cairo::Context > &cr)

Protected Attributes

double max_value_
double min_value_
std::string title_
double value_
double zoom_

Detailed Description

Generic pedal drawing area.

This class represent the position of a generic pedal using a fill bar. This class inherits the ExtendedDrawingArea class.

Definition at line 996 of file manager_gui.h.


Constructor & Destructor Documentation

PedalDrawingArea::PedalDrawingArea ( std::string  title = std::string("NOT_SET"),
double  min_value = 0,
double  max_value = 100 
) [inline]

Class constructor.

Parameters:
title title of the pedal
min_value minimum value of the pedal
max_value maximum value of the pedal

Initializes variables, widget size and background color.

Definition at line 1008 of file manager_gui.h.

virtual PedalDrawingArea::~PedalDrawingArea (  )  [inline, virtual]

Class destructor.

Does nothing.

Definition at line 1024 of file manager_gui.h.


Member Function Documentation

virtual bool PedalDrawingArea::on_draw ( const Cairo::RefPtr< Cairo::Context > &  cr  )  [inline, protected, virtual]

Definition at line 1049 of file manager_gui.h.

void PedalDrawingArea::setValue ( double  value  )  [inline]

Set the current pedal value.

Parameters:
value the new pedal value

Definition at line 1032 of file manager_gui.h.


Member Data Documentation

double PedalDrawingArea::max_value_ [protected]

Definition at line 1120 of file manager_gui.h.

double PedalDrawingArea::min_value_ [protected]

Definition at line 1119 of file manager_gui.h.

std::string PedalDrawingArea::title_ [protected]

Definition at line 1116 of file manager_gui.h.

double PedalDrawingArea::value_ [protected]

Definition at line 1118 of file manager_gui.h.

double PedalDrawingArea::zoom_ [protected]

Definition at line 1117 of file manager_gui.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


atlascar_base
Author(s): Jorge Almeida, Miguel Oliveira, Pedro Salvado, Andre Oliveira and Pedro Pinheiro
autogenerated on Wed Jul 23 04:34:34 2014