Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:23

0001 // Created on: 1990-12-11
0002 // Created by: Remi Lequette
0003 // Copyright (c) 1990-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _TopoDS_HeaderFile
0018 #define _TopoDS_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 class TopoDS_Vertex;
0024 class TopoDS_Shape;
0025 class TopoDS_Edge;
0026 class TopoDS_Wire;
0027 class TopoDS_Face;
0028 class TopoDS_Shell;
0029 class TopoDS_Solid;
0030 class TopoDS_CompSolid;
0031 class TopoDS_Compound;
0032 class TopoDS_Shape;
0033 class TopoDS_HShape;
0034 class TopoDS_TShape;
0035 class TopoDS_TVertex;
0036 class TopoDS_Vertex;
0037 class TopoDS_TEdge;
0038 class TopoDS_Edge;
0039 class TopoDS_TWire;
0040 class TopoDS_Wire;
0041 class TopoDS_TFace;
0042 class TopoDS_Face;
0043 class TopoDS_TShell;
0044 class TopoDS_Shell;
0045 class TopoDS_TSolid;
0046 class TopoDS_Solid;
0047 class TopoDS_TCompSolid;
0048 class TopoDS_CompSolid;
0049 class TopoDS_TCompound;
0050 class TopoDS_Compound;
0051 class TopoDS_Builder;
0052 class TopoDS_Iterator;
0053 
0054 
0055 //! Provides methods to cast objects of class
0056 //! TopoDS_Shape to be objects of more specialized
0057 //! sub-classes. Types are verified, thus in the example
0058 //! below, the first two blocks are correct but the third is
0059 //! rejected by the compiler.
0060 class TopoDS 
0061 {
0062 public:
0063 
0064   DEFINE_STANDARD_ALLOC
0065 
0066   
0067   //! Basic tool to access the data structure.
0068   //! Casts shape S to the more specialized return type, Vertex.
0069   //! Exceptions
0070   //! Standard_TypeMismatch if S cannot be cast to this return type.
0071     static const TopoDS_Vertex& Vertex (const TopoDS_Shape& S);
0072 inline static TopoDS_Vertex& Vertex(TopoDS_Shape&);
0073   
0074   //! Casts shape S to the more specialized return type, Edge
0075   //! Exceptions
0076   //! Standard_TypeMismatch if S cannot be cast to this return type.
0077     static const TopoDS_Edge& Edge (const TopoDS_Shape& S);
0078 inline static TopoDS_Edge& Edge(TopoDS_Shape&);
0079   
0080   //! Casts shape S to the more specialized return type, Wire.
0081   //! Exceptions
0082   //! Standard_TypeMismatch if S cannot be cast to this return type.
0083     static const TopoDS_Wire& Wire (const TopoDS_Shape& S);
0084 inline static TopoDS_Wire& Wire(TopoDS_Shape&);
0085   
0086   //! Casts shape S to the more specialized return type, Face.
0087   //! Exceptions
0088   //! Standard_TypeMismatch if S cannot be cast to this return type.
0089     static const TopoDS_Face& Face (const TopoDS_Shape& S);
0090 inline static TopoDS_Face& Face(TopoDS_Shape&);
0091   
0092   //! Casts shape S to the more specialized return type, Shell.
0093   //! Exceptions
0094   //! Standard_TypeMismatch if S cannot be cast to this return type.
0095     static const TopoDS_Shell& Shell (const TopoDS_Shape& S);
0096 inline static TopoDS_Shell& Shell(TopoDS_Shape&);
0097   
0098   //! Casts shape S to the more specialized return type, Solid.
0099   //! Exceptions
0100   //! Standard_TypeMismatch if S cannot be cast to this return type.
0101     static const TopoDS_Solid& Solid (const TopoDS_Shape& S);
0102 inline static TopoDS_Solid& Solid(TopoDS_Shape&);
0103   
0104   //! Casts shape S to the more specialized return type, CompSolid.
0105   //! Exceptions
0106   //! Standard_TypeMismatch if S cannot be cast to this return type.
0107     static const TopoDS_CompSolid& CompSolid (const TopoDS_Shape& S);
0108 inline static TopoDS_CompSolid& CompSolid(TopoDS_Shape&);
0109   
0110   //! Casts shape S to the more specialized return type, Compound.
0111   //! Exceptions
0112   //! Standard_TypeMismatch if S cannot be cast to this return type.
0113     static const TopoDS_Compound& Compound (const TopoDS_Shape& S);
0114 inline static TopoDS_Compound& Compound(TopoDS_Shape&);
0115 
0116 };
0117 
0118 #include <TopoDS.lxx>
0119 
0120 #endif // _TopoDS_HeaderFile