/src/contrib/geom-5.1.2.7/src/GEOMAlgo/GEOMAlgo_ShapeInfo.cdl

http://pythonocc.googlecode.com/ · Unknown · 209 lines · 160 code · 49 blank · 0 comment · 0 complexity · 3a0a005c2ef5c938b1518aea1220bcce MD5 · raw file

  1. -- Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
  2. --
  3. -- Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
  4. -- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
  5. --
  6. -- This library is free software; you can redistribute it and/or
  7. -- modify it under the terms of the GNU Lesser General Public
  8. -- License as published by the Free Software Foundation; either
  9. -- version 2.1 of the License.
  10. --
  11. -- This library is distributed in the hope that it will be useful,
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. -- Lesser General Public License for more details.
  15. --
  16. -- You should have received a copy of the GNU Lesser General Public
  17. -- License along with this library; if not, write to the Free Software
  18. -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. --
  20. -- See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
  21. --
  22. -- File: GEOMAlgo_ShapeInfo.cdl
  23. -- Created: Mon Apr 2 14:04:24 2007
  24. -- Author: Peter KURNEV
  25. -- <pkv@irinox>
  26. class ShapeInfo from GEOMAlgo
  27. ---Purpose:
  28. uses
  29. Pnt from gp,
  30. Dir from gp,
  31. Ax2 from gp,
  32. Ax3 from gp,
  33. ShapeEnum from TopAbs,
  34. Shape from TopoDS,
  35. KindOfShape from GEOMAlgo,
  36. KindOfBounds from GEOMAlgo,
  37. KindOfClosed from GEOMAlgo,
  38. KindOfName from GEOMAlgo
  39. --raises
  40. is
  41. Create
  42. returns ShapeInfo from GEOMAlgo;
  43. ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_ShapeInfo();"
  44. Reset(me:out);
  45. SetType(me:out;
  46. aType:ShapeEnum from TopAbs);
  47. Type(me)
  48. returns ShapeEnum from TopAbs;
  49. SetNbSubShapes(me:out;
  50. aType:ShapeEnum from TopAbs;
  51. aNb :Integer from Standard);
  52. NbSubShapes(me;
  53. aType:ShapeEnum from TopAbs)
  54. returns Integer from Standard;
  55. SetKindOfShape (me:out;
  56. aT:KindOfShape from GEOMAlgo);
  57. KindOfShape (me)
  58. returns KindOfShape from GEOMAlgo;
  59. SetKindOfName (me:out;
  60. aT: KindOfName from GEOMAlgo);
  61. KindOfName(me)
  62. returns KindOfName from GEOMAlgo;
  63. SetKindOfBounds (me:out;
  64. aT:KindOfBounds from GEOMAlgo);
  65. KindOfBounds (me)
  66. returns KindOfBounds from GEOMAlgo;
  67. SetKindOfClosed (me:out;
  68. aT:KindOfClosed from GEOMAlgo);
  69. KindOfClosed(me)
  70. returns KindOfClosed from GEOMAlgo;
  71. SetLocation (me:out;
  72. aP: Pnt from gp);
  73. Location (me)
  74. returns Pnt from gp;
  75. ---C++: return const&
  76. SetDirection (me:out;
  77. aD:Dir from gp);
  78. Direction (me)
  79. returns Dir from gp;
  80. ---C++: return const&
  81. SetPosition (me:out;
  82. aAx2 : Ax2 from gp);
  83. SetPosition (me:out;
  84. aAx3 : Ax3 from gp);
  85. Position (me)
  86. returns Ax3 from gp;
  87. ---C++: return const&
  88. SetPnt1 (me:out;
  89. aP: Pnt from gp);
  90. Pnt1 (me)
  91. returns Pnt from gp;
  92. ---C++: return const&
  93. SetPnt2 (me:out;
  94. aP: Pnt from gp);
  95. Pnt2 (me)
  96. returns Pnt from gp;
  97. ---C++: return const&
  98. SetRadius1 (me:out;
  99. aR: Real from Standard);
  100. Radius1(me)
  101. returns Real from Standard;
  102. SetRadius2 (me:out;
  103. aR: Real from Standard);
  104. Radius2(me)
  105. returns Real from Standard;
  106. SetLength(me:out;
  107. aL: Real from Standard);
  108. Length(me)
  109. returns Real from Standard;
  110. SetWidth(me:out;
  111. aW: Real from Standard);
  112. Width(me)
  113. returns Real from Standard;
  114. SetHeight(me:out;
  115. aH: Real from Standard);
  116. Height(me)
  117. returns Real from Standard;
  118. --
  119. -- Dump
  120. --
  121. Dump(me);
  122. DumpVertex(me)
  123. is protected;
  124. DumpEdge(me)
  125. is protected;
  126. DumpWire(me)
  127. is protected;
  128. DumpFace(me)
  129. is protected;
  130. DumpShell(me)
  131. is protected;
  132. DumpSolid(me)
  133. is protected;
  134. DumpCompSolid(me)
  135. is protected;
  136. DumpCompound(me)
  137. is protected;
  138. fields
  139. myType : ShapeEnum from TopAbs is protected;
  140. myNbSubShapes : Integer from Standard[9] is protected;
  141. myKindOfShape : KindOfShape from GEOMAlgo is protected;
  142. myKindOfName : KindOfName from GEOMAlgo is protected;
  143. myKindOfBounds : KindOfBounds from GEOMAlgo is protected;
  144. myKindOfClosed : KindOfClosed from GEOMAlgo is protected;
  145. --
  146. myLocation : Pnt from gp is protected;
  147. myDirection : Dir from gp is protected;
  148. myPosition : Ax3 from gp is protected;
  149. --
  150. myRadius1 : Real from Standard is protected;
  151. myRadius2 : Real from Standard is protected;
  152. myLength : Real from Standard is protected;
  153. myWidth : Real from Standard is protected;
  154. myHeight : Real from Standard is protected;
  155. --
  156. myPnt1 : Pnt from gp is protected;
  157. myPnt2 : Pnt from gp is protected;
  158. --
  159. myNbTypes : Integer from Standard is protected;
  160. end ShapeInfo;