#ifndef SketcherPrs_SymbolPrs_H
#define SketcherPrs_SymbolPrs_H
+#include "SketcherPrs_SensitivePoint.h"
+#include <ModelAPI_Feature.h>
+
#include <AIS_InteractiveObject.hxx>
#include <GeomAPI_Ax3.h>
#include <Graphic3d_ArrayOfPoints.hxx>
#include <Graphic3d_AspectMarker3d.hxx>
#include <Image_AlienPixMap.hxx>
+#include <SelectMgr_EntityOwner.hxx>
+#include <Select3D_SensitiveEntitySequence.hxx>
#include <Standard_DefineHandle.hxx>
#include <map>
#include <OpenGl_Workspace.hxx>
-class SketchPlugin_Constraint;
class OpenGl_Context;
/// Constructor
/// \param theConstraint a constraint feature
/// \param thePlane a coordinate plane of current sketch
- Standard_EXPORT SketcherPrs_SymbolPrs(SketchPlugin_Constraint* theConstraint,
+ Standard_EXPORT SketcherPrs_SymbolPrs(ModelAPI_Feature* theConstraint,
const std::shared_ptr<GeomAPI_Ax3>& thePlane);
+ virtual ~SketcherPrs_SymbolPrs();
+
//! Method which clear all selected owners belonging
//! to this selectable object ( for fast presentation draw )
Standard_EXPORT virtual void ClearSelected();
Standard_EXPORT std::shared_ptr<GeomAPI_Ax3> plane() const { return myPlane; }
- Standard_EXPORT SketchPlugin_Constraint* feature() const { return myConstraint; }
+ Standard_EXPORT ModelAPI_Feature* feature() const { return myConstraint; }
Handle(Graphic3d_ArrayOfPoints) pointsArray() const { return myPntArray; }
protected:
/// Constraint feature
- SketchPlugin_Constraint* myConstraint;
+ ModelAPI_Feature* myConstraint;
/// Plane of the current sketcher
std::shared_ptr<GeomAPI_Ax3> myPlane;
/// Array of symbols positions
mutable Handle(Graphic3d_ArrayOfPoints) myPntArray;
+ Handle(SelectMgr_EntityOwner) myOwner;
+
private:
/// Static map to collect constraints icons {IconName : IconPixMap}
static std::map<const char*, Handle(Image_AlienPixMap)> myIconsMap;
mutable Handle(OpenGl_VertexBuffer) myVboAttribs;
+
+ Select3D_SensitiveEntitySequence mySPoints;
};
#endif
\ No newline at end of file