![]() |
PeriDyno 1.0.0
|
#include <QRampWidget.h>
Public Slots | |
void | changeValue (int s) |
void | changeInterpValue (int s) |
![]() | |
void | setCurveClose () |
void | changeLabelSize () |
void | setLinearResample (int s) |
void | SetValueToDrawLabel (double value, int id) |
void | setSpacingToDrawLabel (double value, int id) |
Public Member Functions | |
QDrawLabel (QWidget *parent=nullptr) | |
~QDrawLabel () | |
void | updateDataToField () override |
void | setField (FVar< Ramp > *f) |
void | copySettingFromField () |
![]() | |
mDrawLabel () | |
~mDrawLabel () | |
Dir | setMode (int s) |
void | updateLabelShape () |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) override |
void | mousePressEvent (QMouseEvent *event) override |
int | addPointtoEnd () override |
void | CoordtoField (Ramp &s) |
![]() | |
void | copyFromField (std::vector< Canvas::Coord2D > coord01, std::vector< MyCoord > &thisArray) |
void | copyFromField (std::vector< Canvas::OriginalCoord > coord01, std::vector< MyCoord > &thisArray) |
void | initializeLine (Dir mode) |
void | setLabelSize (int minX, int minY, int maxX, int maxY) |
void | reSort (std::vector< MyCoord > &vector1) |
MyCoord | ZeroOneToCoord (Coord0_1 &value, int x0, int x1, int y0, int y1) |
void | deletePoint () |
void | insertHandlePoint (int fp, MyCoord pCoord) |
void | buildBezierPoint () |
int | insertCurvePoint (MyCoord pCoord) |
void | buildCoordToResortMap () |
void | keyReleaseEvent (QKeyEvent *event) |
void | insertElementToHandlePointSet (int i) |
void | buildHandlePointSet () |
Coord0_1 | CoordTo0_1Value (MyCoord &coord) |
void | leaveEvent (QEvent *event) |
void | remapArrayToHeight (std::vector< MyCoord > &Array, int h) |
void | updateFloatCoordArray (std::vector< MyCoord > CoordArray, std::vector< Coord0_1 > &myfloatCoord) |
void | keyPressEvent (QKeyEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
Private Attributes | |
FVar< Ramp > * | mField |
Additional Inherited Members | |
![]() | |
enum | Dir { x = 0 , y = 1 } |
enum | Interpolation { Linear = 0 , Bezier = 1 } |
enum | BorderMode { Open = 0 , Close = 1 } |
![]() | |
bool | useBezier = false |
bool | isSquard = false |
bool | useSort = true |
bool | lockSize = false |
bool | curveClose = false |
bool | LineResample = false |
double | spacing = 10 |
![]() | |
static bool | sortx (MyCoord a, MyCoord b) |
static bool | sorty (MyCoord a, MyCoord b) |
![]() | |
int | w = 380 |
int | h = 100 |
int | selectDistance = 10 |
int | HandleAngleThreshold = 20 |
int | radius = 4 |
float | mIniHandleLength = 15 |
Dir | mMode = x |
Interpolation | InterpMode = Linear |
int | maxX = 0 |
int | maxY = 0 |
int | minX = 0 |
int | minY = 0 |
double | NmaxX = 0 |
double | NmaxY = 0 |
double | NminX = 0 |
double | mNewMinY = 0 |
bool | mGeneratorXmin = 1 |
bool | mGeneratorXmax = 1 |
bool | mGeneratorYmin = 1 |
bool | mGeneratorYmax = 1 |
int | mMinIndex = 0 |
int | mMaxIndex = 0 |
bool | mAltKey = false |
bool | mCtrlKey = false |
bool | mShiftKey = false |
int | mHoverPoint = -1 |
int | mSelectHandlePoint = -1 |
int | mSelectPointID = -1 |
bool | mIsSelect = false |
bool | mIsHandleSelect = false |
int | mHandleParent = -1 |
int | mSelectPointInResort = -1 |
bool | mIsHover = false |
int | mConnectHandlePoint = -1 |
float | mConnectLength |
bool | mForceUpdate = false |
bool | mInsertBezierOpenPoint = false |
bool | mHandleConnection = true |
bool | mInsertAtBegin = false |
MyCoord | mInitPosition |
MyCoord | mDtPosition |
MyCoord | mInitHandlePos |
MyCoord | mPressCoord |
std::vector< MyCoord > | mCoordArray |
std::vector< MyCoord > | mReSortCoordArray |
std::vector< MyCoord > | mHandlePoints |
std::vector< Coord0_1 > | mFloatCoord |
std::vector< Coord0_1 > | mHandleFloatCoord |
std::vector< MyCoord > | mCurvePoint |
std::vector< int > | mMultiSelectID |
std::map< int, float > | mCurvePointMapLength |
std::map< float, EndPoint > | mLengthMapEndPoint |
std::map< int, int > | mMapOriginalIDtoResortID |
std::map< int, int > | mMapResortIDtoOriginalID |
QPainterPath | mPath |
Definition at line 54 of file QRampWidget.h.
dyno::QDrawLabel::QDrawLabel | ( | QWidget * | parent = nullptr | ) |
dyno::QDrawLabel::~QDrawLabel | ( | ) |
Definition at line 516 of file QRampWidget.cpp.
|
overrideprotectedvirtual |
Reimplemented from dyno::mDrawLabel.
Definition at line 733 of file QRampWidget.cpp.
|
slot |
Definition at line 949 of file QRampWidget.cpp.
|
slot |
|
protected |
Definition at line 962 of file QRampWidget.cpp.
void dyno::QDrawLabel::copySettingFromField | ( | ) |
|
overrideprotected |
|
overrideprotected |
|
protected |
Definition at line 66 of file QRampWidget.h.
|
overridevirtual |
Reimplemented from dyno::mDrawLabel.
Definition at line 910 of file QRampWidget.cpp.
Definition at line 77 of file QRampWidget.h.