// Created on: 1993-01-09 // Created by: CKY / Contract Toubro-Larsen ( SIVA ) // Copyright (c) 1993-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #ifndef _IGESSolid_ConicalSurface_HeaderFile #define _IGESSolid_ConicalSurface_HeaderFile #include "Standard.hxx" #include "Standard_Type.hxx" #include "IGESData_IGESEntity.hxx" class IGESGeom_Point; class IGESGeom_Direction; //! defines ConicalSurface, Type <194> Form Number <0,1> //! in package IGESSolid //! The right circular conical surface is defined by a //! point on the axis on the cone, the direction of the axis //! of the cone, the radius of the cone at the axis point and //! the cone semi-angle. class IGESSolid_ConicalSurface : public IGESData_IGESEntity { public: Standard_EXPORT IGESSolid_ConicalSurface(); //! This method is used to set the fields of the class //! ConicalSurface //! - aLocation : Location of the point on axis //! - anAxis : Direction of the axis //! - aRadius : Radius at axis point //! - anAngle : Value of semi-angle in degrees (0& aLocation, const occ::handle& anAxis, const double aRadius, const double anAngle, const occ::handle& aRefdir); //! returns the location of the point on the axis Standard_EXPORT occ::handle LocationPoint() const; //! returns the direction of the axis Standard_EXPORT occ::handle Axis() const; //! returns the radius at the axis point Standard_EXPORT double Radius() const; //! returns the semi-angle value Standard_EXPORT double SemiAngle() const; //! returns the reference direction of the conical surface in case //! of parametrised surface. For unparametrised surface it returns //! NULL. Standard_EXPORT occ::handle ReferenceDir() const; //! returns True if Form no is 1 else false Standard_EXPORT bool IsParametrised() const; DEFINE_STANDARD_RTTIEXT(IGESSolid_ConicalSurface, IGESData_IGESEntity) private: occ::handle theLocationPoint; occ::handle theAxis; double theRadius; double theAngle; occ::handle theRefDir; }; #endif // _IGESSolid_ConicalSurface_HeaderFile