Salome HOME
AIS presentation for a curve creator
[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 DEFINE_STANDARD_HANDLE(CurveCreator_AISCurve, AIS_Shape)
31
32 /**
33  * \class CurveCreator_AISCurve
34  * \brief This class builds an AIS presentation for a curve creator interface
35  */
36 class CurveCreator_AISCurve : public AIS_Shape
37 {
38 public:
39   Standard_EXPORT CurveCreator_AISCurve();
40
41 protected:
42   /**
43    * Computes the 3D presentation
44    * \param thePM a presentation Manager
45    * \param thePrs a presentation
46    * \theMode a compute mode
47    */
48   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& thePM,
49                                        const Handle(Prs3d_Presentation)& thePrs,
50                                        const Standard_Integer theMode);
51   
52   /**
53    * Computes the 3D selection
54    * \param theSelection a selection manager
55    * \theMode a selection mode
56    */
57   Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& theSelection,
58                                                 const Standard_Integer theMode);
59
60 public:
61   DEFINE_STANDARD_RTTI(CurveCreator_AISCurve)
62 };
63
64 #endif // CURVECREATOR_AIS_CURVE_H