Workspace 6.21.5
Signals | Public Member Functions | Protected Member Functions | List of all members
ControlPoint Class Reference

#include <DataAnalysis/Widgets/transferfunction2drectclassificationview.h>

Inherits QObject, and QGraphicsEllipseItem.

Signals

void moveCompleted ()
 
void moved (int index, double xDiff, double yDiff)
 

Public Member Functions

 ControlPoint (TransferFunction2dRectClassificationView &parent, int index, double xVal, double yVal, QPen=QPen(Qt::NoPen), QBrush=QBrush(Qt::NoBrush))
 
 ~ControlPoint () override
 

Protected Member Functions

void mouseMoveEvent (QGraphicsSceneMouseEvent *event) override
 
void mousePressEvent (QGraphicsSceneMouseEvent *event) override
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override
 

Constructor & Destructor Documentation

◆ ControlPoint()

ControlPoint ( TransferFunction2dRectClassificationView parent,
int  index,
double  xVal,
double  yVal,
QPen  newPen = QPen(Qt::NoPen),
QBrush  newBrush = QBrush(Qt::NoBrush) 
)
Parameters
parentThe parent of the control point. All coordinates will be relative to this parent's coordinate system.
indexThe index of the control point
xValThe x coordinate (centroid) of the control point
yValThe y coordinate (centroid) of the control point
newPenThe pen to use when drawing the control point
newBrushThe brush to use when drawing the control point

◆ ~ControlPoint()

~ControlPoint ( )
overridedefault

Member Function Documentation

◆ mouseMoveEvent()

void mouseMoveEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

◆ mousePressEvent()

void mousePressEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void mouseReleaseEvent ( QGraphicsSceneMouseEvent *  event)
overrideprotected

◆ moveCompleted

void moveCompleted ( )
signal

◆ moved

void moved ( int  index,
double  xDiff,
double  yDiff 
)
signal