Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'Dev_1.2.0' of newgeom:newgeom into Dev_1.2.0
[modules/shaper.git]
/
src
/
SketcherPrs
/
SketcherPrs_LengthDimension.h
diff --git
a/src/SketcherPrs/SketcherPrs_LengthDimension.h
b/src/SketcherPrs/SketcherPrs_LengthDimension.h
index 94bd89c467c05be720ab8ed4fe64acbae6140afd..5fde8d7aa0e094f1599a18f752c4d9c1b1138e81 100644
(file)
--- a/
src/SketcherPrs/SketcherPrs_LengthDimension.h
+++ b/
src/SketcherPrs/SketcherPrs_LengthDimension.h
@@
-9,12
+9,11
@@
#define SketcherPrs_LinearDimension_H
#include <GeomAPI_Ax3.h>
#define SketcherPrs_LinearDimension_H
#include <GeomAPI_Ax3.h>
+#include <ModelAPI_Feature.h>
#include <AIS_LengthDimension.hxx>
#include <Standard_DefineHandle.hxx>
#include <AIS_LengthDimension.hxx>
#include <Standard_DefineHandle.hxx>
-class SketchPlugin_Constraint;
-
DEFINE_STANDARD_HANDLE(SketcherPrs_LengthDimension, AIS_LengthDimension)
/**
DEFINE_STANDARD_HANDLE(SketcherPrs_LengthDimension, AIS_LengthDimension)
/**
@@
-28,7
+27,7
@@
public:
/// Constructor
/// \param theConstraint a constraint feature
/// \param thePlane a coordinate plane of current sketch
/// Constructor
/// \param theConstraint a constraint feature
/// \param thePlane a coordinate plane of current sketch
- Standard_EXPORT SketcherPrs_LengthDimension(
SketchPlugin_Constraint
* theConstraint,
+ Standard_EXPORT SketcherPrs_LengthDimension(
ModelAPI_Feature
* theConstraint,
const std::shared_ptr<GeomAPI_Ax3>& thePlane);
std::string constraintType() const;
const std::shared_ptr<GeomAPI_Ax3>& thePlane);
std::string constraintType() const;
@@
-39,11
+38,15
@@
protected:
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
+ /// Redefinition of virtual function
+ Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
+ const Standard_Integer aMode);
+
private:
bool getPoints(gp_Pnt& thePnt1, gp_Pnt& thePnt2) const;
/// Constraint feature
private:
bool getPoints(gp_Pnt& thePnt1, gp_Pnt& thePnt2) const;
/// Constraint feature
-
SketchPlugin_Constraint
* myConstraint;
+
ModelAPI_Feature
* myConstraint;
/// Plane of the current sketcher
std::shared_ptr<GeomAPI_Ax3> myPlane;
/// Plane of the current sketcher
std::shared_ptr<GeomAPI_Ax3> myPlane;