X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Angle.h;h=d540dbbf5f012a15beb908057395691b309d31ab;hb=a5746a7f8fd8bcd555fb16f98e312c86ca1210da;hp=365e82bc2645b40f61e8e8bafa4915ce9ef3605e;hpb=9129370ff85bfb4c0c37d9f32f9d107041ec2fe8;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Angle.h b/src/SketcherPrs/SketcherPrs_Angle.h index 365e82bc2..d540dbbf5 100644 --- a/src/SketcherPrs/SketcherPrs_Angle.h +++ b/src/SketcherPrs/SketcherPrs_Angle.h @@ -1,13 +1,53 @@ // Copyright (C) 2014-20xx CEA/DEN, EDF R&D // File: SketcherPrs_Angle.h -// Created: 26 March 2015 +// Created: 20 August 2015 // Author: Vitaly SMETANNIKOV #ifndef SketcherPrs_Angle_H #define SketcherPrs_Angle_H +#include +#include +#include +#include -#endif \ No newline at end of file +DEFINE_STANDARD_HANDLE(SketcherPrs_Angle, AIS_AngleDimension) + +/** +* \ingroup GUI +* A class for representation of angle constraint +*/ +class SketcherPrs_Angle : public AIS_AngleDimension +{ +public: + /// Constructor + /// \param theConstraint a constraint feature + /// \param thePlane a coordinate plane of current sketch + Standard_EXPORT SketcherPrs_Angle(ModelAPI_Feature* theConstraint, + const std::shared_ptr& thePlane); + + DEFINE_STANDARD_RTTI(SketcherPrs_Angle) +protected: + /// Redefinition of virtual function + 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: + /// Constraint feature + ModelAPI_Feature* myConstraint; + + /// Plane of the current sketcher + std::shared_ptr myPlane; + + Handle(Prs3d_DimensionAspect) myAspect; +}; + + +#endif