-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <QObject>
#include <QList>
#include <QMap>
+#include <QPoint>
#include <set>
PartSet_Fitter(PartSet_SketcherMgr* theSketchMgr):
mySketchMgr(theSketchMgr) {}
+ virtual ~PartSet_Fitter() {}
+
/// A method which has top be reimplemented to provide alterantive implementation FitAll command
/// \param theView - a view which has to be fit
virtual void fitAll(Handle(V3d_View) theView);
/// Struct to define selection model information to store/restore selection
struct SelectionInfo
{
- std::set<AttributePtr> myAttributes; /// the selected attributes
+ /// the selected attributes and indices of points if array
+ std::map<AttributePtr, int> myAttributes;
std::set<ResultPtr> myResults; /// the selected results
TopoDS_Shape myFirstResultShape; /// the first shape of feature result
TopTools_MapOfShape myLocalSelectedShapes; /// shapes of local selection
/// Starts sketch operation, connects to the opeation property panel
/// \param theOperation a committed operation
- //void startNestedSketch(ModuleBase_Operation* theOperation);
+ void startNestedSketch(ModuleBase_Operation* theOperation);
/// Stop sketch operation, disconnects from the opeation property panel
/// \param theOperation a stopped operation
*/
virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
+ /// Returns true if current mode of objects creation is by drag mouse
+ bool isDragModeCreation() const;
+
public slots:
/// Process sketch plane selected event
QMap<ResultPtr, Handle(AIS_Shape)> myPointsHighlight;
bool myNoDragMoving;
+
+ QPoint myMousePoint;
};