mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-04 11:36:52 +08:00
Redundant keyword 'mutable' removed in CDL files. In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed. Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
96 lines
2.5 KiB
Plaintext
96 lines
2.5 KiB
Plaintext
-- Created on: 1993-03-10
|
|
-- Created by: JCV
|
|
-- Copyright (c) 1993-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class CartesianPoint from Geom inherits Point from Geom
|
|
|
|
|
|
---Purpose : Describes a point in 3D space. A
|
|
-- Geom_CartesianPoint is defined by a gp_Pnt point,
|
|
-- with its three Cartesian coordinates X, Y and Z.
|
|
|
|
uses Ax1 from gp,
|
|
Ax2 from gp,
|
|
Pnt from gp,
|
|
Trsf from gp,
|
|
Vec from gp,
|
|
Geometry from Geom
|
|
|
|
is
|
|
|
|
Create (P : Pnt) returns CartesianPoint;
|
|
---Purpose : Returns a transient copy of P.
|
|
|
|
|
|
Create (X, Y, Z : Real) returns CartesianPoint;
|
|
|
|
---Purpose: Constructs a point defined by its three Cartesian coordinates X, Y and Z.
|
|
|
|
SetCoord (me : mutable; X, Y, Z : Real);
|
|
---Purpose : Assigns the coordinates X, Y and Z to this point.
|
|
|
|
|
|
SetPnt (me : mutable; P : Pnt);
|
|
---Purpose : Set <me> to P.X(), P.Y(), P.Z() coordinates.
|
|
|
|
|
|
SetX (me : mutable; X : Real);
|
|
---Purpose : Changes the X coordinate of me.
|
|
|
|
|
|
SetY (me : mutable; Y : Real);
|
|
---Purpose : Changes the Y coordinate of me.
|
|
|
|
|
|
SetZ (me : mutable; Z : Real);
|
|
---Purpose : Changes the Z coordinate of me.
|
|
|
|
|
|
Coord (me; X, Y, Z : out Real);
|
|
---Purpose : Returns the coordinates of <me>.
|
|
|
|
|
|
Pnt (me) returns Pnt;
|
|
---Purpose :
|
|
-- Returns a non transient cartesian point with
|
|
-- the same coordinates as <me>.
|
|
|
|
|
|
|
|
X (me) returns Real;
|
|
---Purpose : Returns the X coordinate of <me>.
|
|
|
|
|
|
Y (me) returns Real;
|
|
---Purpose : Returns the Y coordinate of <me>.
|
|
|
|
|
|
Z (me) returns Real;
|
|
---Purpose : Returns the Z coordinate of <me>.
|
|
|
|
|
|
|
|
Transform (me : mutable; T : Trsf);
|
|
---Purpose: Applies the transformation T to this point.
|
|
|
|
Copy (me) returns like me;
|
|
---Purpose: Creates a new object which is a copy of this point.
|
|
|
|
fields
|
|
|
|
gpPnt : Pnt;
|
|
|
|
end;
|