#include <ModuleBase_ModelWidget.h>
#include <GeomAPI_Pln.h>
+#include <GeomAPI_AISObject.h>
#ifdef HAVE_SALOME
#include <OCCViewer_ViewModel.h>
/// Create specific for the module presentation
/// \param theResult an object for presentation
/// \return created presentation or NULL(default value)
- virtual Handle(AIS_InteractiveObject) createPresentation(const ResultPtr& theResult);
+ Handle(AIS_InteractiveObject) createPresentation(const ObjectPtr& theResult);
/// Connects or disconnects to the value changed signal of the property panel widgets
/// \param theWidget a property contol widget
/// If the current operation is a dimention one, the style of dimension visualization is send for
/// the current object
/// \param theObject an object to be customized
- void customizePresentation(const ObjectPtr& theObject);
+ //void customisePresentation(const ObjectPtr& theObject);
+
+ void customizeSketchPresentation(const ObjectPtr& theObject, const AISObjectPtr& thePrs) const;
/// Update sketch presentations according to the the state
/// \param theType a type of sketch visualization style
*/
virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
+ bool isSketchStarted() const { return myIsSketchStarted; }
+
+
public slots:
/// Process sketch plane selected event
void onPlaneSelected(const std::shared_ptr<GeomAPI_Pln>& thePln);
QMap<ResultPtr, Handle(AIS_Shape)> myPointsHighlight;
bool myNoDragMoving;
+
+ bool myIsSketchStarted;
};