A TweakBarHandler providing graph edition tools. More...
#include <TweakGraphLayer.h>
Static Public Attributes | |
static TwBar * | contextBar |
Context Menu. | |
Protected Member Functions | |
virtual void | createTweakBar () |
Creates a new Edition Tweakbar. | |
virtual void | displayCurveInfo (TwBar *b, EditGraphOrthoLayer::SelectionData *curveData) |
Displays currently selected Curve Info in TwBar b (including width, type. | |
void | closeMenu () |
Hides the context menu. | |
void | displayMenu (int mousePosX, int mousePosY) |
Opens a context menu, whose content will depend of the current selection. | |
Protected Attributes | |
EditGraphOrthoLayer::SelectionData | selectedCurveData |
Contains data on the current selection. | |
int | displayContext |
True if the context menu is opened. |
A TweakBarHandler providing graph edition tools.
void proland::TweakGraphLayer::closeMenu | ( | ) | [protected] |
Hides the context menu.
virtual void proland::TweakGraphLayer::createTweakBar | ( | ) | [protected, virtual] |
Creates a new Edition Tweakbar.
virtual void proland::TweakGraphLayer::displayCurveInfo | ( | TwBar * | b, | |
EditGraphOrthoLayer::SelectionData * | curveData | |||
) | [protected, virtual] |
Displays currently selected Curve Info in TwBar b (including width, type.
.. and points info).
b | the TwBar in which to display the Curve Infos. | |
curveData | the TwEditBarData containing informations about the current selection. |
Reimplemented in proland::TweakHydroGraphLayer.
void proland::TweakGraphLayer::displayMenu | ( | int | mousePosX, | |
int | mousePosY | |||
) | [protected] |
Opens a context menu, whose content will depend of the current selection.
TwBar* proland::TweakGraphLayer::contextBar [static] |
Context Menu.
Appears when right clicking on a curve. CTRL + right click will open the menu without changing the current selection. Useful when you don't see the curve you are editing or when there are lots of nearly curves.
int proland::TweakGraphLayer::displayContext [protected] |
True if the context menu is opened.
Contains data on the current selection.
see TWEditBarData class.