|
|
|||
File indexing completed on 2026-12-02 10:10:55
0001 // Created on: 1993-03-10 0002 // Created by: JCV 0003 // Copyright (c) 1993-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _Geom_CartesianPoint_HeaderFile 0018 #define _Geom_CartesianPoint_HeaderFile 0019 0020 #include <Standard.hxx> 0021 0022 #include <gp_Pnt.hxx> 0023 #include <Geom_Point.hxx> 0024 #include <Standard_Real.hxx> 0025 class gp_Trsf; 0026 class Geom_Geometry; 0027 0028 //! Describes a point in 3D space. A 0029 //! Geom_CartesianPoint is defined by a gp_Pnt point, 0030 //! with its three Cartesian coordinates X, Y and Z. 0031 class Geom_CartesianPoint : public Geom_Point 0032 { 0033 0034 public: 0035 //! Returns a transient copy of P. 0036 Standard_EXPORT Geom_CartesianPoint(const gp_Pnt& P); 0037 0038 //! Constructs a point defined by its three Cartesian coordinates X, Y and Z. 0039 Standard_EXPORT Geom_CartesianPoint(const double X, const double Y, const double Z); 0040 0041 //! Assigns the coordinates X, Y and Z to this point. 0042 Standard_EXPORT void SetCoord(const double X, const double Y, const double Z); 0043 0044 //! Set <me> to P.X(), P.Y(), P.Z() coordinates. 0045 Standard_EXPORT void SetPnt(const gp_Pnt& P); 0046 0047 //! Changes the X coordinate of <me>. 0048 Standard_EXPORT void SetX(const double X); 0049 0050 //! Changes the Y coordinate of <me>. 0051 Standard_EXPORT void SetY(const double Y); 0052 0053 //! Changes the Z coordinate of <me>. 0054 Standard_EXPORT void SetZ(const double Z); 0055 0056 //! Returns the coordinates of <me>. 0057 Standard_EXPORT void Coord(double& X, double& Y, double& Z) const override; 0058 0059 //! Returns a non transient cartesian point with 0060 //! the same coordinates as <me>. 0061 Standard_EXPORT gp_Pnt Pnt() const override; 0062 0063 //! Returns the X coordinate of <me>. 0064 Standard_EXPORT double X() const override; 0065 0066 //! Returns the Y coordinate of <me>. 0067 Standard_EXPORT double Y() const override; 0068 0069 //! Returns the Z coordinate of <me>. 0070 Standard_EXPORT double Z() const override; 0071 0072 //! Applies the transformation T to this point. 0073 Standard_EXPORT void Transform(const gp_Trsf& T) override; 0074 0075 //! Creates a new object which is a copy of this point. 0076 Standard_EXPORT occ::handle<Geom_Geometry> Copy() const override; 0077 0078 DEFINE_STANDARD_RTTIEXT(Geom_CartesianPoint, Geom_Point) 0079 0080 private: 0081 gp_Pnt gpPnt; 0082 }; 0083 0084 #endif // _Geom_CartesianPoint_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|