Salome HOME
Migration to OCCT 7.0
[modules/geom.git] / src / OBJECT / GEOM_AISDimension.hxx
1 // Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 //  GEOM OBJECT : interactive object for Geometry entities visualization
24 //  File   : GEOM_AISDimension.hxx
25 //  Module : GEOM
26 //
27 #ifndef GEOM_AISDimension_HeaderFile
28 #define GEOM_AISDimension_HeaderFile
29
30 #include <AIS_LengthDimension.hxx>
31 #include <AIS_DiameterDimension.hxx>
32 #include <AIS_AngleDimension.hxx>
33
34 #include <Basics_OCCTVersion.hxx>
35
36 DEFINE_STANDARD_HANDLE(GEOM_AISLength,   AIS_LengthDimension)
37 DEFINE_STANDARD_HANDLE(GEOM_AISDiameter, AIS_DiameterDimension)
38 DEFINE_STANDARD_HANDLE(GEOM_AISAngle,    AIS_AngleDimension)
39
40 //=================================================================================
41 // class    : GEOM_AISLength
42 // purpose  : presentation of length dimension property
43 //=================================================================================
44 class GEOM_AISLength : public AIS_LengthDimension
45 {
46 public:
47
48   OCCT_DEFINE_STANDARD_RTTIEXT(GEOM_AISLength,AIS_LengthDimension)
49
50 public:
51   Standard_EXPORT                    GEOM_AISLength( const Standard_Integer theId );
52   Standard_EXPORT  Standard_Integer  GetId() const;
53   Standard_EXPORT  void              SetId( const Standard_Integer theId );
54
55 private:
56   Standard_Integer                   myId;
57 };
58
59 //=================================================================================
60 // class    : GEOM_AISDiameter
61 // purpose  : presentation of diameter dimension property
62 //=================================================================================
63 class GEOM_AISDiameter : public AIS_DiameterDimension
64 {
65 public:
66
67   OCCT_DEFINE_STANDARD_RTTIEXT(GEOM_AISDiameter,AIS_DiameterDimension)
68
69 public:
70   Standard_EXPORT                     GEOM_AISDiameter( const Standard_Integer theId );
71   Standard_EXPORT  Standard_Integer   GetId() const;
72   Standard_EXPORT  void               SetId( const Standard_Integer theId );
73
74 private:
75   Standard_Integer                    myId;
76 };
77
78 //=================================================================================
79 // class    : GEOM_AISAngle
80 // purpose  : presentation of angle dimension property
81 //=================================================================================
82 class GEOM_AISAngle : public AIS_AngleDimension
83 {
84 public:
85
86   OCCT_DEFINE_STANDARD_RTTIEXT(GEOM_AISAngle,AIS_AngleDimension)
87
88 public:
89   Standard_EXPORT                     GEOM_AISAngle( const Standard_Integer theId );
90   Standard_EXPORT  Standard_Integer   GetId() const;
91   Standard_EXPORT  void               SetId( const Standard_Integer theId );
92
93 private:
94   Standard_Integer                    myId;
95 };
96
97 #endif