0025765: Coding rules - clean up code from obsolete macro checks
[occt.git] / src / Prs3d / Prs3d_PointAspect.cdl
CommitLineData
b311480e 1-- Created on: 1993-04-26
2-- Created by: Jean-Louis Frenkel
3-- Copyright (c) 1993-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 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
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
b311480e 16
7fd59977 17class PointAspect from Prs3d inherits BasicAspect from Prs3d
18
19 ---Purpose: This class defines attributes for the points
20 -- The points are drawn using markers, whose size does not depend on
21 -- the zoom value of the views.
22
23uses
24
25 AspectMarker3d from Graphic3d,
26 NameOfColor from Quantity,
27 Color from Quantity,
28 TypeOfMarker from Aspect,
a577aaab 29 HArray1OfByte from TColStd,
30 MarkerImage_Handle from Graphic3d
7fd59977 31
32
33is
34
35
36 Create ( aType: TypeOfMarker from Aspect;
37 aColor: Color from Quantity;
38 aScale: Real from Standard)
6e33d3ce 39 returns PointAspect from Prs3d;
7fd59977 40
41 Create ( aType: TypeOfMarker from Aspect;
42 aColor: NameOfColor from Quantity;
43 aScale: Real from Standard)
6e33d3ce 44 returns PointAspect from Prs3d;
7fd59977 45
46 Create ( AColor : Color from Quantity;
7fd59977 47 AWidth : Integer from Standard;
48 AHeight : Integer from Standard;
49 ATexture : HArray1OfByte from TColStd)
6e33d3ce 50 returns PointAspect from Prs3d;
7fd59977 51 ---Purpose: defines only the urer defined marker point.
52
53
54 SetColor (me: mutable; aColor: Color from Quantity) is static;
55
56 SetColor (me: mutable; aColor: NameOfColor from Quantity)
57 ---Purpose: defines the color to be used when drawing a point.
58 -- Default value: Quantity_NOC_YELLOW
59 is static;
60
61 SetTypeOfMarker (me: mutable; aType: TypeOfMarker from Aspect)
62 ---Purpose: defines the type of representation to be used when drawing a point.
63 -- Default value: Aspect_TOM_PLUS
64 is static;
65
66 SetScale (me: mutable; aScale: Real from Standard)
67 ---Purpose: defines the size of the marker used when drawing a point.
68 -- Default value: 1.
69 is static;
70
71 Aspect(me) returns AspectMarker3d from Graphic3d
72 is static;
73
7fd59977 74 GetTextureSize (me:mutable; AWidth : out Integer from Standard;
75 AHeight : out Integer from Standard);
76 ---Level: Public
77 ---Purpose: Returns marker's texture size.
78
79 GetTexture (me:mutable)
a577aaab 80 returns MarkerImage_Handle from Graphic3d;
7fd59977 81 ---Level: Public
82 ---Purpose: Returns marker's texture.
83 ---C++: return const &
84
85
86fields
87
88 myAspect: AspectMarker3d from Graphic3d;
89
90end PointAspect from Prs3d;