1 -- Created on: 1993-04-26
2 -- Created by: Jean-Louis Frenkel
3 -- Copyright (c) 1993-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.
17 class PointAspect from Prs3d inherits BasicAspect from Prs3d
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.
25 AspectMarker3d from Graphic3d,
26 NameOfColor from Quantity,
28 TypeOfMarker from Aspect,
29 HArray1OfByte from TColStd,
30 MarkerImage_Handle from Graphic3d
36 Create ( aType: TypeOfMarker from Aspect;
37 aColor: Color from Quantity;
38 aScale: Real from Standard)
39 returns PointAspect from Prs3d;
41 Create ( aType: TypeOfMarker from Aspect;
42 aColor: NameOfColor from Quantity;
43 aScale: Real from Standard)
44 returns PointAspect from Prs3d;
46 Create ( AColor : Color from Quantity;
47 AWidth : Integer from Standard;
48 AHeight : Integer from Standard;
49 ATexture : HArray1OfByte from TColStd)
50 returns PointAspect from Prs3d;
51 ---Purpose: defines only the urer defined marker point.
54 SetColor (me: mutable; aColor: Color from Quantity) is static;
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
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
66 SetScale (me: mutable; aScale: Real from Standard)
67 ---Purpose: defines the size of the marker used when drawing a point.
71 Aspect(me) returns AspectMarker3d from Graphic3d
74 GetTextureSize (me:mutable; AWidth : out Integer from Standard;
75 AHeight : out Integer from Standard);
77 ---Purpose: Returns marker's texture size.
79 GetTexture (me:mutable)
80 returns MarkerImage_Handle from Graphic3d;
82 ---Purpose: Returns marker's texture.
83 ---C++: return const &
88 myAspect: AspectMarker3d from Graphic3d;
90 end PointAspect from Prs3d;