42cf5bc1 |
1 | // Created on: 1992-05-27 |
2 | // Created by: Remi LEQUETTE |
3 | // Copyright (c) 1992-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 _BRep_TVertex_HeaderFile |
18 | #define _BRep_TVertex_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <gp_Pnt.hxx> |
24 | #include <Standard_Real.hxx> |
25 | #include <BRep_ListOfPointRepresentation.hxx> |
26 | #include <TopoDS_TVertex.hxx> |
27 | class gp_Pnt; |
28 | class TopoDS_TShape; |
29 | |
30 | |
31 | class BRep_TVertex; |
32 | DEFINE_STANDARD_HANDLE(BRep_TVertex, TopoDS_TVertex) |
33 | |
34 | //! The TVertex from BRep inherits from the TVertex |
35 | //! from TopoDS. It contains the geometric data. |
36 | //! |
37 | //! The TVertex contains a 3d point, location and a tolerance. |
38 | class BRep_TVertex : public TopoDS_TVertex |
39 | { |
40 | |
41 | public: |
42 | |
43 | |
44 | Standard_EXPORT BRep_TVertex(); |
45 | |
46 | Standard_Real Tolerance() const; |
47 | |
48 | void Tolerance (const Standard_Real T); |
49 | |
50 | //! Sets the tolerance to the max of <T> and the |
51 | //! current tolerance. |
52 | void UpdateTolerance (const Standard_Real T); |
53 | |
54 | const gp_Pnt& Pnt() const; |
55 | |
56 | void Pnt (const gp_Pnt& P); |
57 | |
58 | const BRep_ListOfPointRepresentation& Points() const; |
59 | |
60 | BRep_ListOfPointRepresentation& ChangePoints(); |
61 | |
62 | //! Returns a copy of the TShape with no sub-shapes. |
79104795 |
63 | Standard_EXPORT Handle(TopoDS_TShape) EmptyCopy() const Standard_OVERRIDE; |
42cf5bc1 |
64 | |
65 | |
66 | |
67 | |
68 | DEFINE_STANDARD_RTTI(BRep_TVertex,TopoDS_TVertex) |
69 | |
70 | protected: |
71 | |
72 | |
73 | |
74 | |
75 | private: |
76 | |
77 | |
78 | gp_Pnt myPnt; |
79 | Standard_Real myTolerance; |
80 | BRep_ListOfPointRepresentation myPoints; |
81 | |
82 | |
83 | }; |
84 | |
85 | |
86 | #include <BRep_TVertex.lxx> |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | #endif // _BRep_TVertex_HeaderFile |