0022939: Make B-Spline internal cache thread-safe to be used in multy-threaded mode
[occt.git] / src / Geom / Geom_CartesianPoint.cdl
CommitLineData
b311480e 1-- Created on: 1993-03-10
2-- Created by: JCV
3-- Copyright (c) 1993-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
22
23class CartesianPoint from Geom inherits Point from Geom
24
25
26 ---Purpose : Describes a point in 3D space. A
27 -- Geom_CartesianPoint is defined by a gp_Pnt point,
28 -- with its three Cartesian coordinates X, Y and Z.
29
30uses Ax1 from gp,
31 Ax2 from gp,
32 Pnt from gp,
33 Trsf from gp,
34 Vec from gp,
35 Geometry from Geom
36
37is
38
39 Create (P : Pnt) returns mutable CartesianPoint;
40 ---Purpose : Returns a transient copy of P.
41
42
43 Create (X, Y, Z : Real) returns mutable CartesianPoint;
44
45 ---Purpose: Constructs a point defined by its three Cartesian coordinates X, Y and Z.
46
47 SetCoord (me : mutable; X, Y, Z : Real);
48 ---Purpose : Assigns the coordinates X, Y and Z to this point.
49
50
51 SetPnt (me : mutable; P : Pnt);
52 ---Purpose : Set <me> to P.X(), P.Y(), P.Z() coordinates.
53
54
55 SetX (me : mutable; X : Real);
56 ---Purpose : Changes the X coordinate of me.
57
58
59 SetY (me : mutable; Y : Real);
60 ---Purpose : Changes the Y coordinate of me.
61
62
63 SetZ (me : mutable; Z : Real);
64 ---Purpose : Changes the Z coordinate of me.
65
66
67 Coord (me; X, Y, Z : out Real);
68 ---Purpose : Returns the coordinates of <me>.
69
70
71 Pnt (me) returns Pnt;
72 ---Purpose :
73 -- Returns a non transient cartesian point with
74 -- the same coordinates as <me>.
75
76
77
78 X (me) returns Real;
79 ---Purpose : Returns the X coordinate of <me>.
80
81
82 Y (me) returns Real;
83 ---Purpose : Returns the Y coordinate of <me>.
84
85
86 Z (me) returns Real;
87 ---Purpose : Returns the Z coordinate of <me>.
88
89
90
91 Transform (me : mutable; T : Trsf);
92 ---Purpose: Applies the transformation T to this point.
93
94 Copy (me) returns mutable like me;
95 ---Purpose: Creates a new object which is a copy of this point.
96
97fields
98
99 gpPnt : Pnt;
100
101end;