File indexing completed on 2026-09-23 09:19:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _StepGeom_CartesianPoint_HeaderFile
0018 #define _StepGeom_CartesianPoint_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <StepGeom_Point.hxx>
0025 #include <NCollection_Array1.hxx>
0026 #include <NCollection_HArray1.hxx>
0027
0028 #include <array>
0029
0030 class TCollection_HAsciiString;
0031
0032 class StepGeom_CartesianPoint : public StepGeom_Point
0033 {
0034
0035 public:
0036
0037 Standard_EXPORT StepGeom_CartesianPoint();
0038
0039 Standard_EXPORT void Init(const occ::handle<TCollection_HAsciiString>& theName,
0040 const occ::handle<NCollection_HArray1<double>>& theCoordinates);
0041
0042 Standard_EXPORT void Init2D(const occ::handle<TCollection_HAsciiString>& theName,
0043 const double theX,
0044 const double theY);
0045
0046 Standard_EXPORT void Init3D(const occ::handle<TCollection_HAsciiString>& theName,
0047 const double theX,
0048 const double theY,
0049 const double theZ);
0050
0051 Standard_EXPORT void SetCoordinates(
0052 const occ::handle<NCollection_HArray1<double>>& theCoordinates);
0053
0054 Standard_EXPORT void SetCoordinates(const std::array<double, 3>& theCoordinates);
0055
0056 Standard_EXPORT const std::array<double, 3>& Coordinates() const;
0057
0058 Standard_EXPORT double CoordinatesValue(const int theInd) const;
0059
0060 Standard_EXPORT void SetNbCoordinates(const int theSize);
0061
0062 Standard_EXPORT int NbCoordinates() const;
0063
0064 DEFINE_STANDARD_RTTIEXT(StepGeom_CartesianPoint, StepGeom_Point)
0065
0066 private:
0067 int myNbCoord;
0068 std::array<double, 3> myCoords;
0069 };
0070
0071 #endif