1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: SketcherPrs_Parallel.h
4 // Created: 16 February 2015
5 // Author: Vitaly SMETANNIKOV
7 #ifndef SketcherPrs_Parallel_H
8 #define SketcherPrs_Parallel_H
10 #include <GeomAPI_Ax3.h>
11 #include <GeomAPI_Edge.h>
13 #include <AIS_InteractiveObject.hxx>
14 #include <Graphic3d_ArrayOfPoints.hxx>
15 #include <Graphic3d_AspectMarker3d.hxx>
16 #include <Standard_DefineHandle.hxx>
18 class SketchPlugin_Constraint;
19 class SketchPlugin_Sketch;
22 DEFINE_STANDARD_HANDLE(SketcherPrs_Parallel, AIS_InteractiveObject)
26 * A redefinition of standard AIS Interactive Object in order to provide
27 * presentation of coincident constraint
29 class SketcherPrs_Parallel: public AIS_InteractiveObject
33 /// \param theResult a result object
34 Standard_EXPORT SketcherPrs_Parallel(SketchPlugin_Constraint* theConstraint,
35 const std::shared_ptr<GeomAPI_Ax3>& thePlane);
38 DEFINE_STANDARD_RTTI(SketcherPrs_Parallel)
40 /// Redefinition of virtual function
41 Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
42 const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0);
44 /// Redefinition of virtual function
45 Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
46 const Standard_Integer aMode) ;
50 SketchPlugin_Constraint* myConstraint;
51 std::shared_ptr<GeomAPI_Ax3> myPlane;
52 Handle(Graphic3d_AspectMarker3d) myAspect;
53 Handle(Graphic3d_ArrayOfPoints) myPntArray;