File indexing completed on 2025-01-18 10:04:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntAna_Quadric_HeaderFile
0018 #define _IntAna_Quadric_HeaderFile
0019
0020 #include <NCollection_List.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 class gp_Cone;
0024 class gp_Cylinder;
0025 class gp_Pln;
0026 class gp_Sphere;
0027
0028
0029
0030 class IntAna_Quadric
0031 {
0032 public:
0033
0034 DEFINE_STANDARD_ALLOC
0035
0036
0037
0038 Standard_EXPORT IntAna_Quadric();
0039
0040
0041 Standard_EXPORT IntAna_Quadric(const gp_Pln& P);
0042
0043
0044 Standard_EXPORT IntAna_Quadric(const gp_Sphere& Sph);
0045
0046
0047 Standard_EXPORT IntAna_Quadric(const gp_Cylinder& Cyl);
0048
0049
0050 Standard_EXPORT IntAna_Quadric(const gp_Cone& Cone);
0051
0052
0053 Standard_EXPORT void SetQuadric (const gp_Pln& P);
0054
0055
0056 Standard_EXPORT void SetQuadric (const gp_Sphere& Sph);
0057
0058
0059 Standard_EXPORT void SetQuadric (const gp_Cone& Con);
0060
0061
0062 Standard_EXPORT void SetQuadric (const gp_Cylinder& Cyl);
0063
0064
0065
0066
0067
0068
0069
0070 Standard_EXPORT void Coefficients (Standard_Real& xCXX, Standard_Real& xCYY, Standard_Real& xCZZ, Standard_Real& xCXY, Standard_Real& xCXZ, Standard_Real& xCYZ, Standard_Real& xCX, Standard_Real& xCY, Standard_Real& xCZ, Standard_Real& xCCte) const;
0071
0072
0073
0074
0075 Standard_EXPORT void NewCoefficients (Standard_Real& xCXX, Standard_Real& xCYY, Standard_Real& xCZZ, Standard_Real& xCXY, Standard_Real& xCXZ, Standard_Real& xCYZ, Standard_Real& xCX, Standard_Real& xCY, Standard_Real& xCZ, Standard_Real& xCCte, const gp_Ax3& Axis) const;
0076
0077
0078 const NCollection_List<gp_Pnt>& SpecialPoints() const
0079 {
0080 return mySpecialPoints;
0081 }
0082
0083
0084 protected:
0085
0086
0087
0088
0089
0090 private:
0091
0092
0093
0094 Standard_Real CXX;
0095 Standard_Real CYY;
0096 Standard_Real CZZ;
0097 Standard_Real CXY;
0098 Standard_Real CXZ;
0099 Standard_Real CYZ;
0100 Standard_Real CX;
0101 Standard_Real CY;
0102 Standard_Real CZ;
0103 Standard_Real CCte;
0104 NCollection_List<gp_Pnt> mySpecialPoints;
0105
0106 };
0107
0108
0109
0110
0111
0112
0113
0114 #endif