Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Plot2d_QwtLegendLabel Class Reference

#include <Plot2d_PlotItems.h>

Inheritance diagram for Plot2d_QwtLegendLabel:
Inheritance graph

Public Types

enum  YAxisIdentifierMode { IM_None = 0, IM_Left, IM_Right }
 

Public Member Functions

 Plot2d_QwtLegendLabel (QWidget *=0)
 
virtual ~Plot2d_QwtLegendLabel ()
 
void setYAxisIdentifierMode (const int)
 
void updateHighlit ()
 
void setSelected (const bool on)
 
bool isSelected () const
 
QColor getColorFromPalette (QPalette::ColorRole role)
 
void drawIdentifier (QPainter *, const QRect &)
 
void setSymbol (const QwtSymbol *)
 
void setSymbolType (const int)
 
void setPen (const QPen &)
 

Protected Member Functions

virtual void drawText (QPainter *, const QRectF &)
 
virtual void paintEvent (QPaintEvent *)
 

Private Attributes

int myYAxisIdentifierMode
 
QPixmap myYAxisLeftIcon
 
QPixmap myYAxisRightIcon
 
int mySpacingCollapsed
 
int mySpacingExpanded
 
bool myIsSelected
 
QwtSymbol * mySymbol
 
int mySymbolType
 
QPen myPen
 

Member Enumeration Documentation

Enumerator
IM_None 
IM_Left 
IM_Right 

Constructor & Destructor Documentation

Plot2d_QwtLegendLabel::Plot2d_QwtLegendLabel ( QWidget parent = 0)
Plot2d_QwtLegendLabel::~Plot2d_QwtLegendLabel ( )
virtual

Destructor of Plot2d_QwtLegendLabel

References mySymbol.

Member Function Documentation

void Plot2d_QwtLegendLabel::drawIdentifier ( QPainter *  painter,
const QRect &  rect 
)

Paint the identifier to a given rect.

Parameters
painterPainter
rectRect where to paint

References Plot2d::drawLine(), IM_Left, IM_None, myPen, mySpacingExpanded, mySymbol, mySymbolType, myYAxisIdentifierMode, Plot2d::NoPen, SYMBOL_SIZE, yAxisLeft, and yAxisRight.

void Plot2d_QwtLegendLabel::drawText ( QPainter *  painter,
const QRectF &  rect 
)
protectedvirtual
QColor Plot2d_QwtLegendLabel::getColorFromPalette ( QPalette::ColorRole  role)
bool Plot2d_QwtLegendLabel::isSelected ( ) const

Gets selected property.

References myIsSelected.

void Plot2d_QwtLegendLabel::paintEvent ( QPaintEvent *  e)
protectedvirtual

Redefined method paintEvent of QwtLegendLabel

References drawIdentifier().

void Plot2d_QwtLegendLabel::setPen ( const QPen &  thePen)

Sets pen.

References myPen.

void Plot2d_QwtLegendLabel::setSelected ( const bool  on)

Sets selected property.

References myIsSelected.

void Plot2d_QwtLegendLabel::setSymbol ( const QwtSymbol *  theSymbol)

Sets symbol.

References mySymbol.

void Plot2d_QwtLegendLabel::setSymbolType ( const int  theType)

Sets symbol type 0(marker on line) or 1(marker above line).

References mySymbolType.

void Plot2d_QwtLegendLabel::setYAxisIdentifierMode ( const int  theMode)

Set Y axis identifier displaying mode

References IM_None, mySpacingCollapsed, mySpacingExpanded, and myYAxisIdentifierMode.

void Plot2d_QwtLegendLabel::updateHighlit ( )

Update highliting on the item.

References highlightColor, isSelected(), and Plot2d_Object::selectionColor().

Member Data Documentation

bool Plot2d_QwtLegendLabel::myIsSelected
private
QPen Plot2d_QwtLegendLabel::myPen
private
int Plot2d_QwtLegendLabel::mySpacingCollapsed
private
int Plot2d_QwtLegendLabel::mySpacingExpanded
private
QwtSymbol* Plot2d_QwtLegendLabel::mySymbol
private
int Plot2d_QwtLegendLabel::mySymbolType
private
int Plot2d_QwtLegendLabel::myYAxisIdentifierMode
private
QPixmap Plot2d_QwtLegendLabel::myYAxisLeftIcon
private
QPixmap Plot2d_QwtLegendLabel::myYAxisRightIcon
private

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