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 <Standard_Transient.hxx> 28 #include <Standard_Integer.hxx> 29 #include <GeomAbs_IsoType.hxx> 30 #include <Standard_Real.hxx> 31 32 33 class DBRep_Face; 34 DEFINE_STANDARD_HANDLE(DBRep_Face, Standard_Transient) 35 36 //! Display of a face. Face + Array of iso + color. 37 class DBRep_Face : public Standard_Transient 38 { 39 40 public: 41 42 43 //! N is the number of iso intervals. 44 Standard_EXPORT DBRep_Face(const TopoDS_Face& F, const Standard_Integer N, const Draw_Color& C); 45 46 const TopoDS_Face& Face() const; 47 48 void Face (const TopoDS_Face& F); 49 50 Standard_Integer NbIsos() const; 51 52 void Iso (const Standard_Integer I, const GeomAbs_IsoType T, const Standard_Real Par, const Standard_Real T1, const Standard_Real T2); 53 54 void GetIso (const Standard_Integer I, GeomAbs_IsoType& T, Standard_Real& Par, Standard_Real& T1, Standard_Real& T2) const; 55 56 const Draw_Color& Color() const; 57 58 void Color (const Draw_Color& C); 59 60 61 62 63 DEFINE_STANDARD_RTTIEXT(DBRep_Face,Standard_Transient) 64 65 protected: 66 67 68 69 70 private: 71 72 73 TopoDS_Face myFace; 74 Draw_Color myColor; 75 TColStd_Array1OfInteger myTypes; 76 TColStd_Array1OfReal myParams; 77 78 79 }; 80 81 82 #include <DBRep_Face.lxx> 83 84 85 86 87 88 #endif // _DBRep_Face_HeaderFile 89