0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / Prs3d / Prs3d_ShapeTool.cdl
CommitLineData
b311480e 1-- Created on: 1993-01-27
2-- Created by: Jean-Louis Frenkel
3-- Copyright (c) 1993-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23
24
25class ShapeTool from Prs3d
26
27
28uses
29 Shape from TopoDS,
30 Face from TopoDS,
31 Edge from TopoDS,
32 Vertex from TopoDS,
33 HSequenceOfShape from TopTools,
34 Box from Bnd,
35 Location from TopLoc,
36 Triangulation from Poly,
37 PolygonOnTriangulation from Poly,
38 Polygon3D from Poly,
39 HArray1OfInteger from TColStd,
40 Explorer from TopExp,
41 IndexedDataMapOfShapeListOfShape from TopTools,
42 IndexedMapOfShape from TopTools
43
44 ---Purpose:
45is
46
47 Create ( TheShape: Shape from TopoDS) returns ShapeTool from Prs3d;
48 InitFace (me: in out);
49 MoreFace (me) returns Boolean from Standard;
50 NextFace (me: in out);
51 GetFace(me) returns Face from TopoDS;
52 ---C++: return const&
53 FaceBound(me) returns Box from Bnd;
54 IsPlanarFace(me) returns Boolean from Standard;
55
56 InitCurve (me: in out);
57 MoreCurve (me) returns Boolean from Standard;
58 NextCurve (me: in out);
59 GetCurve(me) returns Edge from TopoDS;
60 ---C++: return const&
61 CurveBound(me) returns Box from Bnd;
62 Neighbours(me) returns Integer from Standard;
63 FacesOfEdge(me) returns HSequenceOfShape from TopTools;
64
65 InitVertex(me: in out);
66 MoreVertex(me) returns Boolean from Standard;
67 NextVertex(me: in out);
68 GetVertex(me) returns Vertex from TopoDS;
69 ---C++: return const&
70
71 HasSurface(me) returns Boolean;
72
73 CurrentTriangulation(me; l: out Location from TopLoc)
74 returns Triangulation from Poly;
75
76 HasCurve(me) returns Boolean;
77
78 PolygonOnTriangulation(me; Indices: out PolygonOnTriangulation from Poly;
79 T: out Triangulation from Poly;
80 l: out Location from TopLoc);
81
82 Polygon3D(me; l: out Location from TopLoc)
83 returns Polygon3D from Poly;
84
85fields
86 myShape: Shape from TopoDS;
87 myFaceExplorer: Explorer from TopExp;
88 myEdgeMap: IndexedDataMapOfShapeListOfShape from TopTools;
89 myVertexMap: IndexedMapOfShape from TopTools;
90 myEdge : Integer from Standard;
91 myVertex : Integer from Standard;
92
93end ShapeTool from Prs3d;