1 // Created on: 2002-12-10
2 // Created by: data exchange team
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _StepElement_ElementAspect_HeaderFile
17 #define _StepElement_ElementAspect_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <StepData_SelectType.hxx>
24 #include <Standard_Integer.hxx>
25 #include <StepElement_ElementVolume.hxx>
26 #include <StepElement_CurveEdge.hxx>
27 class Standard_Transient;
28 class StepData_SelectMember;
31 //! Representation of STEP SELECT type ElementAspect
32 class StepElement_ElementAspect : public StepData_SelectType
40 Standard_EXPORT StepElement_ElementAspect();
42 //! Recognizes a kind of ElementAspect select type
44 Standard_EXPORT Standard_Integer CaseNum (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
46 //! Recognizes a items of select member ElementAspectMember
47 //! 1 -> ElementVolume
52 //! 6 -> Surface3dFace
53 //! 7 -> Surface2dFace
54 //! 8 -> Surface3dEdge
55 //! 9 -> Surface2dEdge
58 Standard_EXPORT virtual Standard_Integer CaseMem (const Handle(StepData_SelectMember)& ent) const Standard_OVERRIDE;
60 //! Returns a new select member the type ElementAspectMember
61 Standard_EXPORT virtual Handle(StepData_SelectMember) NewMember() const Standard_OVERRIDE;
63 //! Set Value for ElementVolume
64 Standard_EXPORT void SetElementVolume (const StepElement_ElementVolume aVal);
66 //! Returns Value as ElementVolume (or Null if another type)
67 Standard_EXPORT StepElement_ElementVolume ElementVolume() const;
69 //! Set Value for Volume3dFace
70 Standard_EXPORT void SetVolume3dFace (const Standard_Integer aVal);
72 //! Returns Value as Volume3dFace (or Null if another type)
73 Standard_EXPORT Standard_Integer Volume3dFace() const;
75 //! Set Value for Volume2dFace
76 Standard_EXPORT void SetVolume2dFace (const Standard_Integer aVal);
78 //! Returns Value as Volume2dFace (or Null if another type)
79 Standard_EXPORT Standard_Integer Volume2dFace() const;
81 //! Set Value for Volume3dEdge
82 Standard_EXPORT void SetVolume3dEdge (const Standard_Integer aVal);
84 //! Returns Value as Volume3dEdge (or Null if another type)
85 Standard_EXPORT Standard_Integer Volume3dEdge() const;
87 //! Set Value for Volume2dEdge
88 Standard_EXPORT void SetVolume2dEdge (const Standard_Integer aVal);
90 //! Returns Value as Volume2dEdge (or Null if another type)
91 Standard_EXPORT Standard_Integer Volume2dEdge() const;
93 //! Set Value for Surface3dFace
94 Standard_EXPORT void SetSurface3dFace (const Standard_Integer aVal);
96 //! Returns Value as Surface3dFace (or Null if another type)
97 Standard_EXPORT Standard_Integer Surface3dFace() const;
99 //! Set Value for Surface2dFace
100 Standard_EXPORT void SetSurface2dFace (const Standard_Integer aVal);
102 //! Returns Value as Surface2dFace (or Null if another type)
103 Standard_EXPORT Standard_Integer Surface2dFace() const;
105 //! Set Value for Surface3dEdge
106 Standard_EXPORT void SetSurface3dEdge (const Standard_Integer aVal);
108 //! Returns Value as Surface3dEdge (or Null if another type)
109 Standard_EXPORT Standard_Integer Surface3dEdge() const;
111 //! Set Value for Surface2dEdge
112 Standard_EXPORT void SetSurface2dEdge (const Standard_Integer aVal);
114 //! Returns Value as Surface2dEdge (or Null if another type)
115 Standard_EXPORT Standard_Integer Surface2dEdge() const;
117 //! Set Value for CurveEdge
118 Standard_EXPORT void SetCurveEdge (const StepElement_CurveEdge aVal);
120 //! Returns Value as CurveEdge (or Null if another type)
121 Standard_EXPORT StepElement_CurveEdge CurveEdge() const;
146 #endif // _StepElement_ElementAspect_HeaderFile