KSeExpr  4.0.4.0
Public Member Functions | Public Attributes | List of all members
ExprGraphPreview Class Reference
Inheritance diagram for ExprGraphPreview:

Public Member Functions

 ExprGraphPreview (QWidget *parent=nullptr)
 
QPointF toScreen (qreal x, qreal y)
 
void paintEvent (QPaintEvent *event) override
 

Public Attributes

std::vector< float > x
 
std::vector< float > y
 
std::vector< float > cpx
 
std::vector< float > cpy
 
qreal xmin {}
 
qreal xmax {}
 
qreal ymin {}
 
qreal ymax {}
 
qreal dx {}
 
qreal dy {}
 
qreal win_xmin {}
 
qreal win_xmax {}
 
qreal win_ymin {}
 
qreal win_ymax {}
 
qreal win_dx {}
 
qreal win_dy {}
 

Detailed Description

Definition at line 542 of file ExprControl.cpp.

Constructor & Destructor Documentation

◆ ExprGraphPreview()

ExprGraphPreview::ExprGraphPreview ( QWidget *  parent = nullptr)
inline

Definition at line 552 of file ExprControl.cpp.

References win_xmax, win_xmin, win_ymax, and win_ymin.

Member Function Documentation

◆ paintEvent()

void ExprGraphPreview::paintEvent ( QPaintEvent *  event)
inlineoverride

Definition at line 566 of file ExprControl.cpp.

References cpx, cpy, toScreen(), win_dx, win_dy, win_xmax, win_xmin, win_ymax, win_ymin, x, xmax, xmin, y, ymax, and ymin.

◆ toScreen()

QPointF ExprGraphPreview::toScreen ( qreal  x,
qreal  y 
)
inline

Definition at line 561 of file ExprControl.cpp.

References win_dx, win_dy, win_xmin, win_ymin, x, and y.

Referenced by paintEvent().

Member Data Documentation

◆ cpx

std::vector<float> ExprGraphPreview::cpx

Definition at line 547 of file ExprControl.cpp.

Referenced by paintEvent().

◆ cpy

std::vector<float> ExprGraphPreview::cpy

Definition at line 547 of file ExprControl.cpp.

Referenced by paintEvent().

◆ dx

qreal ExprGraphPreview::dx {}

Definition at line 548 of file ExprControl.cpp.

◆ dy

qreal ExprGraphPreview::dy {}

Definition at line 548 of file ExprControl.cpp.

◆ win_dx

qreal ExprGraphPreview::win_dx {}

Definition at line 550 of file ExprControl.cpp.

Referenced by paintEvent(), and toScreen().

◆ win_dy

qreal ExprGraphPreview::win_dy {}

Definition at line 550 of file ExprControl.cpp.

Referenced by paintEvent(), and toScreen().

◆ win_xmax

qreal ExprGraphPreview::win_xmax {}

Definition at line 550 of file ExprControl.cpp.

Referenced by ExprGraphPreview(), and paintEvent().

◆ win_xmin

qreal ExprGraphPreview::win_xmin {}

Definition at line 550 of file ExprControl.cpp.

Referenced by ExprGraphPreview(), paintEvent(), and toScreen().

◆ win_ymax

qreal ExprGraphPreview::win_ymax {}

Definition at line 550 of file ExprControl.cpp.

Referenced by ExprGraphPreview(), and paintEvent().

◆ win_ymin

qreal ExprGraphPreview::win_ymin {}

Definition at line 550 of file ExprControl.cpp.

Referenced by ExprGraphPreview(), paintEvent(), and toScreen().

◆ x

std::vector<float> ExprGraphPreview::x

Definition at line 546 of file ExprControl.cpp.

Referenced by paintEvent(), and toScreen().

◆ xmax

qreal ExprGraphPreview::xmax {}

Definition at line 548 of file ExprControl.cpp.

Referenced by paintEvent().

◆ xmin

qreal ExprGraphPreview::xmin {}

Definition at line 548 of file ExprControl.cpp.

Referenced by paintEvent().

◆ y

std::vector<float> ExprGraphPreview::y

Definition at line 546 of file ExprControl.cpp.

Referenced by paintEvent(), and toScreen().

◆ ymax

qreal ExprGraphPreview::ymax {}

Definition at line 548 of file ExprControl.cpp.

Referenced by paintEvent().

◆ ymin

qreal ExprGraphPreview::ymin {}

Definition at line 548 of file ExprControl.cpp.

Referenced by paintEvent().


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