0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / DBRep / DBRep_Edge.hxx
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_Edge_HeaderFile
18 #define _DBRep_Edge_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <TopoDS_Edge.hxx>
24 #include <Draw_Color.hxx>
25 #include <Standard_Transient.hxx>
26 class TopoDS_Edge;
27 class Draw_Color;
28
29
30 class DBRep_Edge;
31 DEFINE_STANDARD_HANDLE(DBRep_Edge, Standard_Transient)
32
33 //! Display of an edge. Edge + color.
34 class DBRep_Edge : public Standard_Transient
35 {
36
37 public:
38
39   
40   Standard_EXPORT DBRep_Edge(const TopoDS_Edge& E, const Draw_Color& C);
41   
42     const TopoDS_Edge& Edge() const;
43   
44     void Edge (const TopoDS_Edge& E);
45   
46     const Draw_Color& Color() const;
47   
48     void Color (const Draw_Color& C);
49
50
51
52
53   DEFINE_STANDARD_RTTIEXT(DBRep_Edge,Standard_Transient)
54
55 protected:
56
57
58
59
60 private:
61
62
63   TopoDS_Edge myEdge;
64   Draw_Color myColor;
65
66
67 };
68
69
70 #include <DBRep_Edge.lxx>
71
72
73
74
75
76 #endif // _DBRep_Edge_HeaderFile