0033040: Coding - get rid of unused headers [Storage to TopOpeBRepTool]
[occt.git] / src / TopoDS / TopoDS.hxx
1 // Created on: 1990-12-11
2 // Created by: Remi Lequette
3 // Copyright (c) 1990-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 _TopoDS_HeaderFile
18 #define _TopoDS_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22
23 class TopoDS_Vertex;
24 class TopoDS_Shape;
25 class TopoDS_Edge;
26 class TopoDS_Wire;
27 class TopoDS_Face;
28 class TopoDS_Shell;
29 class TopoDS_Solid;
30 class TopoDS_CompSolid;
31 class TopoDS_Compound;
32 class TopoDS_Shape;
33 class TopoDS_HShape;
34 class TopoDS_TShape;
35 class TopoDS_TVertex;
36 class TopoDS_Vertex;
37 class TopoDS_TEdge;
38 class TopoDS_Edge;
39 class TopoDS_TWire;
40 class TopoDS_Wire;
41 class TopoDS_TFace;
42 class TopoDS_Face;
43 class TopoDS_TShell;
44 class TopoDS_Shell;
45 class TopoDS_TSolid;
46 class TopoDS_Solid;
47 class TopoDS_TCompSolid;
48 class TopoDS_CompSolid;
49 class TopoDS_TCompound;
50 class TopoDS_Compound;
51 class TopoDS_Builder;
52 class TopoDS_Iterator;
53
54
55 //! Provides methods to cast objects of class
56 //! TopoDS_Shape to be objects of more specialized
57 //! sub-classes. Types are verified, thus in the example
58 //! below, the first two blocks are correct but the third is
59 //! rejected by the compiler.
60 class TopoDS 
61 {
62 public:
63
64   DEFINE_STANDARD_ALLOC
65
66   
67   //! Basic tool to access the data structure.
68   //! Casts shape S to the more specialized return type, Vertex.
69   //! Exceptions
70   //! Standard_TypeMismatch if S cannot be cast to this return type.
71     static const TopoDS_Vertex& Vertex (const TopoDS_Shape& S);
72 inline static TopoDS_Vertex& Vertex(TopoDS_Shape&);
73   
74   //! Casts shape S to the more specialized return type, Edge
75   //! Exceptions
76   //! Standard_TypeMismatch if S cannot be cast to this return type.
77     static const TopoDS_Edge& Edge (const TopoDS_Shape& S);
78 inline static TopoDS_Edge& Edge(TopoDS_Shape&);
79   
80   //! Casts shape S to the more specialized return type, Wire.
81   //! Exceptions
82   //! Standard_TypeMismatch if S cannot be cast to this return type.
83     static const TopoDS_Wire& Wire (const TopoDS_Shape& S);
84 inline static TopoDS_Wire& Wire(TopoDS_Shape&);
85   
86   //! Casts shape S to the more specialized return type, Face.
87   //! Exceptions
88   //! Standard_TypeMismatch if S cannot be cast to this return type.
89     static const TopoDS_Face& Face (const TopoDS_Shape& S);
90 inline static TopoDS_Face& Face(TopoDS_Shape&);
91   
92   //! Casts shape S to the more specialized return type, Shell.
93   //! Exceptions
94   //! Standard_TypeMismatch if S cannot be cast to this return type.
95     static const TopoDS_Shell& Shell (const TopoDS_Shape& S);
96 inline static TopoDS_Shell& Shell(TopoDS_Shape&);
97   
98   //! Casts shape S to the more specialized return type, Solid.
99   //! Exceptions
100   //! Standard_TypeMismatch if S cannot be cast to this return type.
101     static const TopoDS_Solid& Solid (const TopoDS_Shape& S);
102 inline static TopoDS_Solid& Solid(TopoDS_Shape&);
103   
104   //! Casts shape S to the more specialized return type, CompSolid.
105   //! Exceptions
106   //! Standard_TypeMismatch if S cannot be cast to this return type.
107     static const TopoDS_CompSolid& CompSolid (const TopoDS_Shape& S);
108 inline static TopoDS_CompSolid& CompSolid(TopoDS_Shape&);
109   
110   //! Casts shape S to the more specialized return type, Compound.
111   //! Exceptions
112   //! Standard_TypeMismatch if S cannot be cast to this return type.
113     static const TopoDS_Compound& Compound (const TopoDS_Shape& S);
114 inline static TopoDS_Compound& Compound(TopoDS_Shape&);
115
116 };
117
118 #include <TopoDS.lxx>
119
120 #endif // _TopoDS_HeaderFile