// 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 _gce_MakeCylinder_HeaderFile #define _gce_MakeCylinder_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _gp_Cylinder_HeaderFile #include #endif #ifndef _gce_Root_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class StdFail_NotDone; class gp_Ax2; class gp_Cylinder; class gp_Pnt; class gp_Ax1; class gp_Circ; //! This class implements the following algorithms used
//! to create a Cylinder from gp.
//! * Create a Cylinder coaxial to another and passing
//! through a point.
//! * Create a Cylinder coaxial to another at a distance
//! .
//! * Create a Cylinder with 3 points.
//! * Create a Cylinder by its axis and radius.
//! * Create a cylinder by its circular base.
class gce_MakeCylinder : public gce_Root { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! is the local cartesian coordinate system of .
//! The status is "NegativeRadius" if R < 0.0
Standard_EXPORT gce_MakeCylinder(const gp_Ax2& A2,const Standard_Real Radius); //! Makes a Cylinder from gp coaxial to another
//! Cylinder and passing through a Pnt .
Standard_EXPORT gce_MakeCylinder(const gp_Cylinder& Cyl,const gp_Pnt& Point); //! Makes a Cylinder from gp coaxial to another
//! Cylinder at the distance which can
//! be greater or lower than zero.
//! The radius of the result is the absolute value of the
//! radius of plus
Standard_EXPORT gce_MakeCylinder(const gp_Cylinder& Cyl,const Standard_Real Dist); //! Makes a Cylinder from gp with 3 points
//! ,,.
//! Its axis is and its radius is the distance
//! between and
Standard_EXPORT gce_MakeCylinder(const gp_Pnt& P1,const gp_Pnt& P2,const gp_Pnt& P3); //! Makes a Cylinder by its axis and radius .
Standard_EXPORT gce_MakeCylinder(const gp_Ax1& Axis,const Standard_Real Radius); //! Makes a Cylinder by its circular base.
//! Warning
//! If an error occurs (that is, when IsDone returns
//! false), the Status function returns:
//! - gce_NegativeRadius if:
//! - Radius is less than 0.0, or
//! - Dist is negative and has an absolute value
//! which is greater than the radius of Cyl; or
//! - gce_ConfusedPoints if points P1 and P2 are coincident.
Standard_EXPORT gce_MakeCylinder(const gp_Circ& Circ); //! Returns the constructed cylinder.
//! Exceptions StdFail_NotDone if no cylinder is constructed.
Standard_EXPORT const gp_Cylinder& Value() const; Standard_EXPORT const gp_Cylinder& Operator() const; Standard_EXPORT operator gp_Cylinder() const; protected: private: gp_Cylinder TheCylinder; }; // other Inline functions and methods (like "C++: function call" methods) #endif