0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / IGESSolid / IGESSolid_ManifoldSolid.hxx
1 // Created on: 1993-01-09
2 // Created by: CKY / Contract Toubro-Larsen ( SIVA )
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 _IGESSolid_ManifoldSolid_HeaderFile
18 #define _IGESSolid_ManifoldSolid_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Boolean.hxx>
24 #include <IGESSolid_HArray1OfShell.hxx>
25 #include <TColStd_HArray1OfInteger.hxx>
26 #include <IGESData_IGESEntity.hxx>
27 #include <Standard_Integer.hxx>
28 class IGESSolid_Shell;
29 class Standard_DimensionMismatch;
30 class Standard_OutOfRange;
31
32
33 class IGESSolid_ManifoldSolid;
34 DEFINE_STANDARD_HANDLE(IGESSolid_ManifoldSolid, IGESData_IGESEntity)
35
36 //! defines ManifoldSolid, Type <186> Form Number <0>
37 //! in package IGESSolid
38 //! A manifold solid is a bounded, closed, and finite volume
39 //! in three dimensional Euclidean space
40 class IGESSolid_ManifoldSolid : public IGESData_IGESEntity
41 {
42
43 public:
44
45   
46   Standard_EXPORT IGESSolid_ManifoldSolid();
47   
48   //! This method is used to set the fields of the class
49   //! ManifoldSolid
50   //! - aShell         : pointer to the shell
51   //! - shellflag      : orientation flag of shell
52   //! - voidShells     : the void shells
53   //! - voidShellFlags : orientation of the void shells
54   //! raises exception if length of voidShells and voidShellFlags
55   //! do not match
56   Standard_EXPORT void Init (const Handle(IGESSolid_Shell)& aShell, const Standard_Boolean shellflag, const Handle(IGESSolid_HArray1OfShell)& voidShells, const Handle(TColStd_HArray1OfInteger)& voidShellFlags);
57   
58   //! returns the Shell entity which is being referred
59   Standard_EXPORT Handle(IGESSolid_Shell) Shell() const;
60   
61   //! returns the orientation flag of the shell
62   Standard_EXPORT Standard_Boolean OrientationFlag() const;
63   
64   //! returns the number of void shells
65   Standard_EXPORT Standard_Integer NbVoidShells() const;
66   
67   //! returns Index'th void shell.
68   //! raises exception if Index  <= 0 or Index > NbVoidShells()
69   Standard_EXPORT Handle(IGESSolid_Shell) VoidShell (const Standard_Integer Index) const;
70   
71   //! returns Index'th orientation flag.
72   //! raises exception if Index  <= 0 or Index > NbVoidShells()
73   Standard_EXPORT Standard_Boolean VoidOrientationFlag (const Standard_Integer Index) const;
74
75
76
77
78   DEFINE_STANDARD_RTTIEXT(IGESSolid_ManifoldSolid,IGESData_IGESEntity)
79
80 protected:
81
82
83
84
85 private:
86
87
88   Handle(IGESSolid_Shell) theShell;
89   Standard_Boolean theOrientationFlag;
90   Handle(IGESSolid_HArray1OfShell) theVoidShells;
91   Handle(TColStd_HArray1OfInteger) theOrientFlags;
92
93
94 };
95
96
97
98
99
100
101
102 #endif // _IGESSolid_ManifoldSolid_HeaderFile