0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / src / DBRep / DBRep_Face.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-07-15
2// Created by: Remi LEQUETTE
3// Copyright (c) 1993-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _DBRep_Face_HeaderFile
18#define _DBRep_Face_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <TopoDS_Face.hxx>
24#include <Draw_Color.hxx>
25#include <TColStd_Array1OfInteger.hxx>
26#include <TColStd_Array1OfReal.hxx>
27#include <MMgt_TShared.hxx>
28#include <Standard_Integer.hxx>
29#include <GeomAbs_IsoType.hxx>
30#include <Standard_Real.hxx>
31class TopoDS_Face;
32class Draw_Color;
33
34
35class DBRep_Face;
36DEFINE_STANDARD_HANDLE(DBRep_Face, MMgt_TShared)
37
38//! Display of a face. Face + Array of iso + color.
39class DBRep_Face : public MMgt_TShared
40{
41
42public:
43
44
45 //! N is the number of iso intervals.
46 Standard_EXPORT DBRep_Face(const TopoDS_Face& F, const Standard_Integer N, const Draw_Color& C);
47
48 const TopoDS_Face& Face() const;
49
50 void Face (const TopoDS_Face& F);
51
52 Standard_Integer NbIsos() const;
53
54 void Iso (const Standard_Integer I, const GeomAbs_IsoType T, const Standard_Real Par, const Standard_Real T1, const Standard_Real T2);
55
56 void GetIso (const Standard_Integer I, GeomAbs_IsoType& T, Standard_Real& Par, Standard_Real& T1, Standard_Real& T2) const;
57
58 const Draw_Color& Color() const;
59
60 void Color (const Draw_Color& C);
61
62
63
64
92efcf78 65 DEFINE_STANDARD_RTTIEXT(DBRep_Face,MMgt_TShared)
42cf5bc1 66
67protected:
68
69
70
71
72private:
73
74
75 TopoDS_Face myFace;
76 Draw_Color myColor;
77 TColStd_Array1OfInteger myTypes;
78 TColStd_Array1OfReal myParams;
79
80
81};
82
83
84#include <DBRep_Face.lxx>
85
86
87
88
89
90#endif // _DBRep_Face_HeaderFile