};
enum ActionMode {
+ NoneMode,
AdditionMode,
ModificationMode,
- DetectionMode,
- NoneMode
+ DetectionMode
};
private:
void removeSection();
void removePoint();
- bool insertPointToSelectedSegment( const int theXPosition,
+ void insertPointToSelectedSegment( const int theXPosition,
const int theYPosition );
+ void moveSelectedPoints( const int theXPosition, const int theYPosition );
void updateLocalPointView();
- void setLocalPointContext( const bool theOpen );
+ void setLocalPointContext( const bool theOpen, const bool isUpdateTable = false );
void addLocalPointToTable( const double theX, const double theY );
void setDragStarted( const bool theState, const QPoint& thePoint = QPoint() );
void getSelectedPonts( const int theSectionId, QList<int>& thePoints );
void setSelectedPonts( const int theSectionId, const QList<int>& thePoints = QList<int>() );
+ void startCurveModification( QList<int>& thePoints, const bool theFillPoints = true );
+ void finishCurveModification( const QList<int>& thePoints );
// curve algorithm
int findLocalPointIndex( int theSectionId, float theX, float theY );
+ void findSections( int thePointId, QList<int>& theSections );
// OCC algorithm
bool pointOnObject( Handle(AIS_InteractiveObject) theObject,
gp_Pnt& thePoint, int& thePoint1, int& thePoint2 );
bool hasProjectPointOnCurve( const int theX, const int theY,
const Handle(Geom_Curve)& theCurve,
- gp_Pnt& theOutPoint );
+ Standard_Real& theParameter );
private:
QMap<ActionId, QAction*> myActionMap;
int mySection;
int myPointNum;
bool myDragStarted;
- QList<int> myDragPoints;
QPoint myDragStartPosition;
+ int myDragInteractionStyle;
+ QList<int> myDragPoints;
+ bool myDragged;
QByteArray myGuiState;
};