1 -- Created by: NW,JPB,CAL
2 -- Copyright (c) 1991-1999 Matra Datavision
3 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
21 class AspectMarker3d from Graphic3d inherits AspectMarker from Aspect
25 ---Purpose: Creates and updates an attribute group for
26 -- marker type primitives. This group contains the type
27 -- of marker, its colour, and its scale factor.
28 ---Keywords: Marker, Color, Scale, Type
37 TypeOfMarker from Aspect,
39 HArray1OfByte from TColStd
44 returns mutable AspectMarker3d from Graphic3d;
46 ---Purpose: Creates a context table for marker primitives
47 -- defined with the following default values:
49 -- Marker type : TOM_X
53 Create ( AType : TypeOfMarker from Aspect;
54 AColor : Color from Quantity;
55 AScaleOrId : Real from Standard
57 returns mutable AspectMarker3d from Graphic3d;
59 Create ( AType : TypeOfMarker from Aspect;
60 AColor : Color from Quantity;
61 AScaleOrId : Real from Standard;
62 AWidth : Integer from Standard;
63 AHeight : Integer from Standard;
64 ATexture : HArray1OfByte from TColStd
66 returns mutable AspectMarker3d from Graphic3d;
68 ---Purpose: Creates a context table for marker primitives
69 -- defined with the specified values.
71 GetTextureSize (me:mutable; AWidth : out Integer from Standard;
72 AHeight : out Integer from Standard);
74 ---Purpose: Returns marker's texture size.
76 GetTexture (me:mutable)
77 returns HArray1OfByte from TColStd;
79 ---Purpose: Returns marker's texture.
80 ---C++: return const &
82 SetTexture ( me: mutable;
83 AWidth : Integer from Standard;
84 AHeight : Integer from Standard;
85 ATexture : HArray1OfByte from TColStd ) is static;
92 -- Class : Graphic3d_AspectMarker3d
94 -- Purpose : Declaration of context-specific variables
95 -- for drawing 3d markers.
97 -- Reminder : A context for drawing 3d markers inherits:
99 -- - the type of marker
100 -- - the scale factor
101 -- defined by AspectMarker.
103 MyTexture : HArray1OfByte from TColStd is protected;
104 MyTextureWidth : Integer from Standard is protected;
105 MyTextureHeight : Integer from Standard is protected;