Version: 9.12.0
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

◆ YAxisIdentifierMode

Enumerator
IM_None 
IM_Left 
IM_Right 

Constructor & Destructor Documentation

◆ Plot2d_QwtLegendLabel()

Plot2d_QwtLegendLabel::Plot2d_QwtLegendLabel ( QWidget parent = 0)

◆ ~Plot2d_QwtLegendLabel()

Plot2d_QwtLegendLabel::~Plot2d_QwtLegendLabel ( )
virtual

Destructor of Plot2d_QwtLegendLabel

References mySymbol.

Member Function Documentation

◆ drawIdentifier()

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.

◆ drawText()

void Plot2d_QwtLegendLabel::drawText ( QPainter *  painter,
const QRectF &  rect 
)
protectedvirtual

◆ getColorFromPalette()

QColor Plot2d_QwtLegendLabel::getColorFromPalette ( QPalette::ColorRole  role)

◆ isSelected()

bool Plot2d_QwtLegendLabel::isSelected ( ) const

Gets selected property.

References myIsSelected.

◆ paintEvent()

void Plot2d_QwtLegendLabel::paintEvent ( QPaintEvent *  e)
protectedvirtual

Redefined method paintEvent of QwtLegendLabel

References drawIdentifier().

◆ setPen()

void Plot2d_QwtLegendLabel::setPen ( const QPen &  thePen)

Sets pen.

References myPen.

◆ setSelected()

void Plot2d_QwtLegendLabel::setSelected ( const bool  on)

Sets selected property.

References myIsSelected.

◆ setSymbol()

void Plot2d_QwtLegendLabel::setSymbol ( const QwtSymbol *  theSymbol)

Sets symbol.

References mySymbol.

◆ setSymbolType()

void Plot2d_QwtLegendLabel::setSymbolType ( const int  theType)

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

References mySymbolType.

◆ setYAxisIdentifierMode()

void Plot2d_QwtLegendLabel::setYAxisIdentifierMode ( const int  theMode)

Set Y axis identifier displaying mode

References IM_None, mySpacingCollapsed, mySpacingExpanded, and myYAxisIdentifierMode.

◆ updateHighlit()

void Plot2d_QwtLegendLabel::updateHighlit ( )

Update highliting on the item.

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

Member Data Documentation

◆ myIsSelected

bool Plot2d_QwtLegendLabel::myIsSelected
private

◆ myPen

QPen Plot2d_QwtLegendLabel::myPen
private

◆ mySpacingCollapsed

int Plot2d_QwtLegendLabel::mySpacingCollapsed
private

◆ mySpacingExpanded

int Plot2d_QwtLegendLabel::mySpacingExpanded
private

◆ mySymbol

QwtSymbol* Plot2d_QwtLegendLabel::mySymbol
private

◆ mySymbolType

int Plot2d_QwtLegendLabel::mySymbolType
private

◆ myYAxisIdentifierMode

int Plot2d_QwtLegendLabel::myYAxisIdentifierMode
private

◆ myYAxisLeftIcon

QPixmap Plot2d_QwtLegendLabel::myYAxisLeftIcon
private

◆ myYAxisRightIcon

QPixmap Plot2d_QwtLegendLabel::myYAxisRightIcon
private

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