1 -- Created on: 1991-04-24
2 -- Created by: Arnaud BOUZY
3 -- Copyright (c) 1991-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
19 ---Purpose: MAQUETTE DESSIN MODELISATION
21 uses OSD, MMgt, TCollection, TColStd, gp, Message
24 exception Failure inherits Failure from Standard;
26 enumeration ColorKind is blanc,
53 --DarkOliveGreen in english
57 enumeration MarkerShape is
58 Square, Losange, X, Plus, Circle, CircleZoom;
60 ---Purpose: Circle is not sensible to zoom, like
61 -- other MarkerShape, contrarily to CircleZoom
65 deferred class Drawable3D;
67 deferred class Drawable2D;
101 class SequenceOfDrawable3D instantiates
102 Sequence from TCollection (Drawable3D);
104 class ProgressIndicator;
108 primitive CommandFunction;
110 imported Interpretor;
114 class VMap instantiates
115 DataMap from TCollection(Integer,
116 Drawable3D from Draw,
117 MapIntegerHasher from TColStd);
119 class MapOfAsciiString instantiates IndexedMap from TCollection(AsciiString from TCollection,AsciiString from TCollection);
121 Load(theDI: out Interpretor from Draw;
122 theKey, theResourceFileName: AsciiString from TCollection;
123 theDefaultsDirectory, theUserDefaultsDirectory: in out AsciiString from TCollection;
124 Verbose : Boolean from Standard = Standard_False)
125 raises Failure from Draw;
128 -- methods to handle variables
132 D : Drawable3D from Draw;
133 Disp : Boolean from Standard);
134 ---Purpose: Sets a variable. Display it if <Disp> is true.
137 D : Drawable3D from Draw);
138 ---Purpose: Sets a variable, a null handle clear the
139 -- vartiable. Automatic display is context driven.
143 ---Purpose: Sets a numeric variable.
145 Get(Name : in out CString;
146 Complain : Boolean = Standard_True)
147 returns Drawable3D from Draw;
148 ---Purpose: Returns a variable value. Null if the variable
149 -- does not exist, a warning is printed if Complain
152 -- The name "." does a graphic selection. If the
153 -- selection is a variable <Name> is overwritten with
154 -- the name of the variable.
159 ---Purpose: Gets a numeric variable. Returns True if the
162 Set(Name : CString; val : CString);
163 ---Purpose: Sets a TCL sting variable
165 Atof(Name : CString) returns Real;
166 ---Purpose: Converts numeric expression, that can involve DRAW
167 -- variables, to real value.
169 Atoi(Name : CString) returns Integer;
170 ---Purpose: Converts numeric expression, that can involve DRAW
171 -- variables, to integer value.
172 -- Implemented as cast of Atof() to integer.
174 LastPick(view,X,Y,button : out Integer);
175 ---Purpose: Returns last graphic selection description.
178 ---Purpose: Asks to repaint the screen after the current command.
180 SetProgressBar(thePI: ProgressIndicator from Draw);
181 ---Purpose: sets progress indicator
183 GetProgressBar returns ProgressIndicator from Draw;
184 ---Purpose: gets progress indicator
191 Commands(I : in out Interpretor from Draw);
192 ---Purpose: Defines all Draw commands
194 BasicCommands(I : in out Interpretor from Draw);
195 ---Purpose: Defines Draw basic commands
197 VariableCommands(I : in out Interpretor from Draw);
198 ---Purpose: Defines Draw variables handling commands.
200 GraphicCommands(I : in out Interpretor from Draw);
201 ---Purpose: Defines Draw variables handling commands.
203 PloadCommands(I : in out Interpretor from Draw);
204 ---Purpose: Defines Loads Draw plugins commands.
206 UnitCommands(I : in out Interpretor from Draw);
207 ---Purpose: Defines Draw unit commands