qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Signals | Public Member Functions | Protected Member Functions | List of all members
ColorBarWidget Class Reference

Color bar widget. More...

#include <ccColorScaleEditorWidget.h>

Inheritance diagram for ColorBarWidget:
Inheritance graph
[legend]
Collaboration diagram for ColorBarWidget:
Collaboration graph
[legend]

Signals

void pointClicked (double relativePos)
 Signal emitted when the mouse (left) button is clicked. More...
 

Public Member Functions

 ColorBarWidget (SharedColorScaleElementSliders sliders, QWidget *parent=0, Qt::Orientation orientation=Qt::Horizontal)
 Default constructor.
 
- Public Member Functions inherited from ColorScaleEditorBaseWidget
 ColorScaleEditorBaseWidget (SharedColorScaleElementSliders sliders, Qt::Orientation orientation, int margin, QWidget *parent=0)
 Defautl constructor.
 
int length () const
 Returns useful length.
 
virtual void setSliders (SharedColorScaleElementSliders sliders)
 Sets associated sliders set.
 
Qt::Orientation getOrientation () const
 Returns orientation.
 
int getMargin () const
 Returns margin.
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *e)
 
virtual void mousePressEvent (QMouseEvent *e)
 

Additional Inherited Members

- Protected Attributes inherited from ColorScaleEditorBaseWidget
SharedColorScaleElementSliders m_sliders
 Associated sliders.
 
Qt::Orientation m_orientation
 Orientation.
 
int m_margin
 Margin.
 

Detailed Description

Color bar widget.

Member Function Documentation

void ColorBarWidget::pointClicked ( double  relativePos)
signal

Signal emitted when the mouse (left) button is clicked.

Parameters
relativePosrelative click position (between 0 and 1)

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