Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ViewSegmentFilter Class Reference

Class that displays the current Segment Filter in a MainWindow toolbar. More...

#include <ViewSegmentFilter.h>

Inheritance diagram for ViewSegmentFilter:

Public Member Functions

 ViewSegmentFilter (QWidget *parent=0)
 Single constructor.
 
virtual void paintEvent (QPaintEvent *event)
 Paint with a horizontal linear gradient.
 
void setColorFilterSettings (const ColorFilterSettings &colorFilterSettings, const QPixmap &pixmap)
 Apply the color filter of the currently selected curve. The pixmap is included so the background color can be computed.
 
void setEnabled (bool enabled)
 Show the style with semi-transparency or full-transparency to indicate if associated Curve is active or not.
 
void unsetColorFilterSettings ()
 Apply no color filter.
 

Detailed Description

Class that displays the current Segment Filter in a MainWindow toolbar.

A gradient is displayed. No border is drawn so the appearance is consistent with ViewPointStyle which would not work with a border.

Definition at line 18 of file ViewSegmentFilter.h.

Constructor & Destructor Documentation

◆ ViewSegmentFilter()

ViewSegmentFilter::ViewSegmentFilter ( QWidget *  parent = 0)

Single constructor.

Definition at line 18 of file ViewSegmentFilter.cpp.

Member Function Documentation

◆ paintEvent()

void ViewSegmentFilter::paintEvent ( QPaintEvent *  event)
virtual

Paint with a horizontal linear gradient.

Definition at line 158 of file ViewSegmentFilter.cpp.

◆ setColorFilterSettings()

void ViewSegmentFilter::setColorFilterSettings ( const ColorFilterSettings colorFilterSettings,
const QPixmap &  pixmap 
)

Apply the color filter of the currently selected curve. The pixmap is included so the background color can be computed.

Definition at line 184 of file ViewSegmentFilter.cpp.

◆ setEnabled()

void ViewSegmentFilter::setEnabled ( bool  enabled)

Show the style with semi-transparency or full-transparency to indicate if associated Curve is active or not.

Definition at line 201 of file ViewSegmentFilter.cpp.

◆ unsetColorFilterSettings()

void ViewSegmentFilter::unsetColorFilterSettings ( )

Apply no color filter.

Definition at line 212 of file ViewSegmentFilter.cpp.


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