QList<int> getSelectedSections();
QList< QPair< int, int > > getSelectedPoints();
+ void removeSelected();
+ bool removeEnabled();
+
signals:
void selectionChanged();
void subOperationStarted( QWidget* );
DetectionMode
};
- typedef QPair< int, int > SectionToPoint;
- typedef QList< SectionToPoint > SectionToPointList;
+ typedef std::pair< int, int > SectionToPoint;
+ typedef std::deque< SectionToPoint > SectionToPointList;
private:
QAction* createAction( ActionId theId, const QString& theName, const QPixmap& theImage,
void startCurveModification( SectionToPointList& thePoints,
const bool theFillPoints = true );
- void finishCurveModification( const SectionToPointList& thePoints );
+ void finishCurveModification( const SectionToPointList& thePoints = SectionToPointList() );
// curve algorithm
int findLocalPointIndex( int theSectionId, float theX, float theY );
void findSectionsToPoints( const double theX, const double theY,
SectionToPointList& thePoints );
+ void convert( const SectionToPointList& thePoints,
+ QMap<int, QList<int> >& theConvPoints );
// OCC algorithm
bool pointOnObject( Handle(AIS_InteractiveObject) theObject,
int getSectionId( const int theRowId ) const;
int getPointId( const int theRowId ) const;
+ bool contains( const SectionToPointList& theList, const SectionToPoint& theValue ) const;
+
private:
QMap<ActionId, QAction*> myActionMap;
CurveCreator_ICurve* myCurve;