Salome HOME
Ceration of objects from popup menu of main partitions.
[modules/hydro.git] / src / HYDROCurveCreator / CurveCreator_AISCurve.hxx
1 // Copyright (C) 2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef CURVECREATOR_AIS_CURVE_H
21 #define CURVECREATOR_AIS_CURVE_H
22
23 #include "CurveCreator.hxx"
24 #include "CurveCreator_Macro.hxx"
25
26 #include <Standard_DefineHandle.hxx>   
27
28 #include <AIS_Shape.hxx>
29
30 class CurveCreator_ICurve;
31
32 DEFINE_STANDARD_HANDLE(CurveCreator_AISCurve, AIS_Shape)
33
34 /**
35  * \class CurveCreator_AISCurve
36  * \brief This class builds an AIS presentation for a curve creator interface
37  */
38 class CurveCreator_AISCurve : public AIS_Shape
39 {
40 public:
41   Standard_EXPORT CurveCreator_AISCurve( CurveCreator_ICurve* theCurve );
42
43 protected:
44   /**
45    * Computes the 3D presentation
46    * \param thePM a presentation Manager
47    * \param thePrs a presentation
48    * \theMode a compute mode
49    */
50   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePM,
51                                        const Handle(Prs3d_Presentation)& thePrs,
52                                        const Standard_Integer theMode);
53   
54   /**
55    * Computes the 3D selection
56    * \param theSelection a selection manager
57    * \theMode a selection mode
58    */
59   Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& theSelection,
60                                                 const Standard_Integer theMode);
61
62 public:
63   DEFINE_STANDARD_RTTI(CurveCreator_AISCurve)
64
65 protected:
66   CurveCreator_ICurve* myCurve;
67 };
68
69 #endif // CURVECREATOR_AIS_CURVE_H