0022627: Change OCCT memory management defaults
[occt.git] / src / Graphic3d / Graphic3d_VertexNT.cdl
CommitLineData
7fd59977 1--
2-- File: Graphic3d_VertexNT.cdl
3-- Created: 27/09/97
4-- Author: PCT
5-- Modified: 03-02-98 : FMN ; Add Flag Normal
6--
7---Copyright: MatraDatavision 1997
8--
9
10class VertexNT from Graphic3d inherits VertexN from Graphic3d
11
12 ---Version:
13
14 ---Purpose: This class allows the creation and update of
15 -- a vertex with a 3D normal and texture coordinate.
16
17 ---Keywords: Vertex, Normal, Coordinate, Point, Texture
18
19 ---Warning:
20 ---References:
21
22uses
23
24 Vector from Graphic3d,
25 Vertex from Graphic3d
26
27is
28
29 Create
30 returns VertexNT from Graphic3d;
31 ---Level: Public
32 ---Purpose: Creates a point with 0.0, 0.0, 0.0 coordinates
33 -- for which the normal is 0.0, 0.0, 1.0.
34 -- texture coordinate is 0.0, 0.0.
35
36 Create ( AX, AY, AZ : Real from Standard;
37 ANX, ANY, ANZ : Real from Standard;
38 ATX : Real from Standard;
39 ATY : Real from Standard = 0.0;
40 FlagNormalise : Boolean from Standard = Standard_True )
41 returns VertexNT from Graphic3d;
42 ---Level: Public
43 ---Purpose: Creates a point with coordinates <AX>, <AY>, <AZ> and
44 -- for which the normal is <ANX>, <ANY>, <ANZ>,
45 -- texture coordinate is <ATX>, <ATY>.
46 -- If <FlagNormalise> is True the normal is already normalised
47 -- Else the normal is not normalised, the graphic do it.
48
49 Create ( APoint : Vertex from Graphic3d;
50 AVector : Vector from Graphic3d;
51 ATX : Real from Standard;
52 ATY : Real from Standard = 0.0;
53 FlagNormalise : Boolean from Standard = Standard_True )
54 returns VertexNT from Graphic3d;
55 ---Level: Public
56 ---Purpose: Creates a point in <APoint> for which the normal is <AVector>.
57 -- <ATX>, <ATY> are texture coordinate.
58 -- If <FlagNormalise> is True the normal is already normalised
59 -- Else the normal is not normalised, the graphic do it.
60
61 ---------------------------------------------------
62 -- Category: Methods to modify the class definition
63 ---------------------------------------------------
64
65 SetTextureCoordinate( me : in out;
66 ATX : Real from Standard;
67 ATY : Real from Standard = 0.0)
68 is static;
69 ---Level: Public
70 ---Purpose: Modifies the texture coordinate to the point <me>.
71 ---Category: Methods to modify the class definition
72
73
74 ----------------------------
75 -- Category: Inquire methods
76 ----------------------------
77
78 TextureCoordinate( me;
79 ATX, ATY : out Real from Standard)
80 is static;
81 ---Level: Public
82 ---Purpose: Returns the texture coordinate to the point <me>.
83 ---Category: Inquire methods
84
85--\f
86
87fields
88
89--
90-- Class : Graphic3d_VertexNT
91--
92-- Purpose : Declaration of variables specific to points.
93--
94-- Reminder : A point is defined by its coordinates and its normal.
95
96 -- the texel
97 MyTX, MyTY : Real from Standard;
98
99end VertexNT;