Qt Virtual Chart Table (QVCT)
CChartControl Class Reference

[UI] Chart control user-interface More...

#include <charts/CChartControl.hpp>

Inheritance diagram for CChartControl:

Public Member Functions

 CChartControl (QWidget *_pqParent=0)
 
virtual ~CChartControl ()
 
void enableControls (bool _bEnable)
 Enables/disables all chart controls. More...
 
void enablePointer (bool _bEnable)
 Enables/disables pointer actions. More...
 

Private Slots

void slotPositionLock (bool _bLock)
 [UI:Slot] Slot to modify the position lock/unlock status More...
 
void slotScaleLock (bool _bLock)
 [UI:Slot] Slot to modify the scale lock/unlock status More...
 
void slotScaleTo (int _iValue)
 [UI:Slot] Slot to trigger scaling to the given value More...
 
void slotScaleIn ()
 [UI:Slot] Slot to trigger scale in (zoom out) More...
 
void slotScaleOut ()
 [UI:Slot] Slot to trigger scale out (zoom in) More...
 
void slotElevation (bool _bAddOrShow)
 [UI:Slot] Slot to manage elevation model (add, view, hide) More...
 
void slotElevationAdd ()
 [UI:Slot] Slot to add elevation model More...
 

Private Member Functions

void constructLayout ()
 Constructs the layout of the user-interface. More...
 
void lockPosition (bool _bLock)
 Sets the position lock/unlock status. More...
 
void lockScale (bool _bLock)
 Sets the scale lock/unlock status. More...
 
void setScale (double _fdScale)
 Sets the scale at the given value. More...
 
void stepScale (bool _bIncrease, bool _bBigStep=true)
 Increases/decreases the scale by discrete steps. More...
 
void enableTarget (bool _bEnable)
 Enables/disables target. More...
 
void enableMeasureSingle (bool _bEnable)
 Enables/disables single measurement. More...
 
void enableMeasure (bool _bEnable)
 Enables/disables ongoing measurements. More...
 
void setElevation (bool _bHasElevation, bool _bShowElevation)
 Sets elevation status. More...
 

Private Attributes

QPushButton * pqPushButtonPositionLock
 [UI:Button] Lock/unlock position More...
 
QPushButton * pqPushButtonScaleLock
 [UI:Button] Lock/unlock scale More...
 
QPushButton * pqPushButtonScaleActual
 [UI:Button] Scale actual More...
 
QPushButton * pqPushButtonScaleIn
 [UI:Button] Scale in (zoom out) More...
 
QPushButton * pqPushButtonScaleOut
 [UI:Button] Scale out (zoom in) More...
 
QPushButton * pqPushButtonScaleFit
 [UI:Button] Scale fit More...
 
QPushButton * pqPushButtonTarget
 [UI:Button] Target More...
 
QPushButton * pqPushButtonMeasureSingle
 [UI:Button] Single measurement More...
 
QPushButton * pqPushButtonMeasure
 [UI:Button] Ongoing measurements More...
 
QPushButton * pqPushButtonElevation
 [UI:Button] Elevation model More...
 
QSlider * pqSliderScale
 [UI:Button] Scale slider More...
 
bool bPointerEnable
 Pointer actions activation status. More...
 

Friends

class CChartTable
 

Detailed Description

[UI] Chart control user-interface

This class implements the user-interface that allows to interact with the charts displayed in the chart table and change parameters such as scale, position options, measurement status, etc.

Author
Cedric Dufour http://cedric.dufour.name

Definition at line 38 of file CChartControl.hpp.

Constructor & Destructor Documentation

◆ CChartControl()

CChartControl::CChartControl ( QWidget *  _pqParent = 0)

Definition at line 35 of file CChartControl.cpp.

◆ ~CChartControl()

virtual CChartControl::~CChartControl ( )
inlinevirtual

Definition at line 83 of file CChartControl.hpp.

Member Function Documentation

◆ constructLayout()

void CChartControl::constructLayout ( )
private

Constructs the layout of the user-interface.

Definition at line 42 of file CChartControl.cpp.

◆ slotPositionLock

void CChartControl::slotPositionLock ( bool  _bLock)
privateslot

[UI:Slot] Slot to modify the position lock/unlock status

Definition at line 171 of file CChartControl.cpp.

◆ slotScaleLock

void CChartControl::slotScaleLock ( bool  _bLock)
privateslot

[UI:Slot] Slot to modify the scale lock/unlock status

Definition at line 177 of file CChartControl.cpp.

◆ slotScaleTo

void CChartControl::slotScaleTo ( int  _iValue)
privateslot

[UI:Slot] Slot to trigger scaling to the given value

Definition at line 183 of file CChartControl.cpp.

◆ slotScaleIn

void CChartControl::slotScaleIn ( )
privateslot

[UI:Slot] Slot to trigger scale in (zoom out)

Definition at line 189 of file CChartControl.cpp.

◆ slotScaleOut

void CChartControl::slotScaleOut ( )
privateslot

[UI:Slot] Slot to trigger scale out (zoom in)

Definition at line 194 of file CChartControl.cpp.

◆ slotElevation

void CChartControl::slotElevation ( bool  _bAddOrShow)
privateslot

[UI:Slot] Slot to manage elevation model (add, view, hide)

Definition at line 199 of file CChartControl.cpp.

◆ slotElevationAdd

void CChartControl::slotElevationAdd ( )
privateslot

[UI:Slot] Slot to add elevation model

Definition at line 228 of file CChartControl.cpp.

◆ lockPosition()

void CChartControl::lockPosition ( bool  _bLock)
private

Sets the position lock/unlock status.

Definition at line 238 of file CChartControl.cpp.

◆ lockScale()

void CChartControl::lockScale ( bool  _bLock)
private

Sets the scale lock/unlock status.

Definition at line 243 of file CChartControl.cpp.

◆ setScale()

void CChartControl::setScale ( double  _fdScale)
private

Sets the scale at the given value.

Definition at line 248 of file CChartControl.cpp.

◆ stepScale()

void CChartControl::stepScale ( bool  _bIncrease,
bool  _bBigStep = true 
)
private

Increases/decreases the scale by discrete steps.

Definition at line 254 of file CChartControl.cpp.

◆ enableTarget()

void CChartControl::enableTarget ( bool  _bEnable)
private

Enables/disables target.

Definition at line 259 of file CChartControl.cpp.

◆ enableMeasureSingle()

void CChartControl::enableMeasureSingle ( bool  _bEnable)
private

Enables/disables single measurement.

Definition at line 265 of file CChartControl.cpp.

◆ enableMeasure()

void CChartControl::enableMeasure ( bool  _bEnable)
private

Enables/disables ongoing measurements.

Definition at line 271 of file CChartControl.cpp.

◆ setElevation()

void CChartControl::setElevation ( bool  _bHasElevation,
bool  _bShowElevation 
)
private

Sets elevation status.

Definition at line 277 of file CChartControl.cpp.

◆ enableControls()

void CChartControl::enableControls ( bool  _bEnable)

Enables/disables all chart controls.

Definition at line 296 of file CChartControl.cpp.

◆ enablePointer()

void CChartControl::enablePointer ( bool  _bEnable)

Enables/disables pointer actions.

Definition at line 323 of file CChartControl.cpp.

Friends And Related Function Documentation

◆ CChartTable

friend class CChartTable
friend

Definition at line 41 of file CChartControl.hpp.

Member Data Documentation

◆ pqPushButtonPositionLock

QPushButton* CChartControl::pqPushButtonPositionLock
private

[UI:Button] Lock/unlock position

Definition at line 50 of file CChartControl.hpp.

◆ pqPushButtonScaleLock

QPushButton* CChartControl::pqPushButtonScaleLock
private

[UI:Button] Lock/unlock scale

Definition at line 52 of file CChartControl.hpp.

◆ pqPushButtonScaleActual

QPushButton* CChartControl::pqPushButtonScaleActual
private

[UI:Button] Scale actual

Definition at line 54 of file CChartControl.hpp.

◆ pqPushButtonScaleIn

QPushButton* CChartControl::pqPushButtonScaleIn
private

[UI:Button] Scale in (zoom out)

Definition at line 56 of file CChartControl.hpp.

◆ pqPushButtonScaleOut

QPushButton* CChartControl::pqPushButtonScaleOut
private

[UI:Button] Scale out (zoom in)

Definition at line 58 of file CChartControl.hpp.

◆ pqPushButtonScaleFit

QPushButton* CChartControl::pqPushButtonScaleFit
private

[UI:Button] Scale fit

Definition at line 60 of file CChartControl.hpp.

◆ pqPushButtonTarget

QPushButton* CChartControl::pqPushButtonTarget
private

[UI:Button] Target

Definition at line 62 of file CChartControl.hpp.

◆ pqPushButtonMeasureSingle

QPushButton* CChartControl::pqPushButtonMeasureSingle
private

[UI:Button] Single measurement

Definition at line 64 of file CChartControl.hpp.

◆ pqPushButtonMeasure

QPushButton* CChartControl::pqPushButtonMeasure
private

[UI:Button] Ongoing measurements

Definition at line 66 of file CChartControl.hpp.

◆ pqPushButtonElevation

QPushButton* CChartControl::pqPushButtonElevation
private

[UI:Button] Elevation model

Definition at line 68 of file CChartControl.hpp.

◆ pqSliderScale

QSlider* CChartControl::pqSliderScale
private

[UI:Button] Scale slider

Definition at line 70 of file CChartControl.hpp.

◆ bPointerEnable

bool CChartControl::bPointerEnable
private

Pointer actions activation status.

See also
enablePointer()

Definition at line 74 of file CChartControl.hpp.


The documentation for this class was generated from the following files: