/usr/include/oce/Bnd_Sphere.hxx is in liboce-foundation-dev 0.15-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Bnd_Sphere_HeaderFile
#define _Bnd_Sphere_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineAlloc_HeaderFile
#include <Standard_DefineAlloc.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#ifndef _gp_XYZ_HeaderFile
#include <gp_XYZ.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class gp_XYZ;
//! This class represents a bounding sphere of a geometric entity <br>
//! (triangle, segment of line or whatever else). <br>
class Bnd_Sphere {
public:
DEFINE_STANDARD_ALLOC
//! Empty constructor <br>
Standard_EXPORT Bnd_Sphere();
//! Constructor of a definite sphere <br>
Standard_EXPORT Bnd_Sphere(const gp_XYZ& theCntr,const Standard_Real theRad,const Standard_Integer theU,const Standard_Integer theV);
//! Returns the U parameter on shape <br>
Standard_Integer U() const;
//! Returns the V parameter on shape <br>
Standard_Integer V() const;
//! Returns validity status, indicating that this <br>
//! sphere corresponds to a real entity <br>
Standard_Boolean IsValid() const;
void SetValid(const Standard_Boolean isValid) ;
//! Returns center of sphere object <br>
const gp_XYZ& Center() const;
//! Returns the radius value <br>
Standard_Real Radius() const;
//! Calculate and return minimal and maximal distance to sphere. <br>
//! NOTE: This function is tightly optimized; any modifications <br>
//! may affect performance! <br>
Standard_EXPORT void Distances(const gp_XYZ& theXYZ,Standard_Real& theMin,Standard_Real& theMax) const;
//! Calculate and return minimal and maximal distance to sphere. <br>
//! NOTE: This function is tightly optimized; any modifications <br>
//! may affect performance! <br>
Standard_EXPORT void SquareDistances(const gp_XYZ& theXYZ,Standard_Real& theMin,Standard_Real& theMax) const;
//! Projects a point on entity. <br>
//! Returns true if success <br>
Standard_EXPORT Standard_Boolean Project(const gp_XYZ& theNode,gp_XYZ& theProjNode,Standard_Real& theDist,Standard_Boolean& theInside) const;
Standard_EXPORT Standard_Real Distance(const gp_XYZ& theNode) const;
Standard_EXPORT Standard_Real SquareDistance(const gp_XYZ& theNode) const;
Standard_EXPORT void Add(const Bnd_Sphere& theOther) ;
Standard_EXPORT Standard_Boolean IsOut(const Bnd_Sphere& theOther) const;
Standard_EXPORT Standard_Boolean IsOut(const gp_XYZ& thePnt,Standard_Real& theMaxDist) const;
Standard_EXPORT Standard_Real SquareExtent() const;
protected:
private:
gp_XYZ myCenter;
Standard_Real myRadius;
Standard_Boolean myIsValid;
Standard_Integer myU;
Standard_Integer myV;
};
#include <Bnd_Sphere.lxx>
// other Inline functions and methods (like "C++: function call" methods)
#endif
|