proland::TweakGraphLayer Class Reference

A TweakBarHandler providing graph edition tools. More...

#include <TweakGraphLayer.h>

Inheritance diagram for proland::TweakGraphLayer:
proland::TweakHydroGraphLayer

List of all members.

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.

Detailed Description

A TweakBarHandler providing graph edition tools.

Author:
Antoine Begault, Guillaume Piolat

Member Function Documentation

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).

Parameters:
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.


Member Data Documentation

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.

True if the context menu is opened.

Contains data on the current selection.

see TWEditBarData class.


Generated on Sat May 12 09:43:15 2012 for proland by  doxygen 1.6.1