0023510: Integration of test grid "vis" into the new testing system
[occt.git] / src / V2d / V2d_CircularGrid.cdl
CommitLineData
b311480e 1-- Created on: 1995-03-17
2-- Created by: Mister rmi
3-- Copyright (c) 1995-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-- Modification: DCB 14-07-98
22-- SetColorIndices() method has been added to avoid exception
23-- after V2d_Viewer::SetColorMap() call.
7fd59977 24
25private class CircularGrid from V2d inherits CircularGrid from Aspect
26
27uses
28 ViewerPointer from V2d,
29 View from V2d,
30 GraphicObject from Graphic2d,
31 CircularGraphicGrid from V2d,
32 NameOfColor from Quantity
33is
34 Create(aViewer: ViewerPointer from V2d;
35 aColorIndex1: Integer from Standard;
36 aColorIndex2: Integer from Standard)
37 returns mutable CircularGrid from V2d;
38
39 SetColorIndices (me: mutable;
40 aColorIndex1: Integer from Standard;
41 aColorIndex2: Integer from Standard);
42
43 Display(me: mutable)
44 is redefined static;
45
46 Erase(me)
47 is redefined static;
48
49 IsDisplayed(me)
50 returns Boolean from Standard
51 is redefined static;
52
53 UpdateDisplay(me:mutable)
54 is redefined static protected;
55
56fields
57 myViewer: ViewerPointer from V2d;
58 myGraphicObject: GraphicObject from Graphic2d;
59 myColorIndex1: Integer from Standard;
60 myColorIndex2: Integer from Standard;
61 myGrid: CircularGraphicGrid from V2d;
62
63end CircularGrid from V2d;