Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-25 09:23:25

0001 // Created on: 1993-01-13
0002 // Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IGESDimen_DiameterDimension_HeaderFile
0018 #define _IGESDimen_DiameterDimension_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <gp_XY.hxx>
0024 #include <IGESData_IGESEntity.hxx>
0025 class IGESDimen_GeneralNote;
0026 class IGESDimen_LeaderArrow;
0027 class gp_Pnt2d;
0028 
0029 class IGESDimen_DiameterDimension;
0030 DEFINE_STANDARD_HANDLE(IGESDimen_DiameterDimension, IGESData_IGESEntity)
0031 
0032 //! defines DiameterDimension, Type <206> Form <0>
0033 //! in package IGESDimen
0034 //! Used for dimensioning diameters
0035 class IGESDimen_DiameterDimension : public IGESData_IGESEntity
0036 {
0037 
0038 public:
0039   Standard_EXPORT IGESDimen_DiameterDimension();
0040 
0041   //! This method is used to set the fields of the class
0042   //! DiameterDimension
0043   //! - aNote         : General Note Entity
0044   //! - aLeader       : First Leader Entity
0045   //! - anotherLeader : Second Leader Entity or a Null Handle.
0046   //! - aCenter       : Arc center coordinates
0047   Standard_EXPORT void Init(const Handle(IGESDimen_GeneralNote)& aNote,
0048                             const Handle(IGESDimen_LeaderArrow)& aLeader,
0049                             const Handle(IGESDimen_LeaderArrow)& anotherLeader,
0050                             const gp_XY&                         aCenter);
0051 
0052   //! returns the General Note Entity
0053   Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
0054 
0055   //! returns the First Leader Entity
0056   Standard_EXPORT Handle(IGESDimen_LeaderArrow) FirstLeader() const;
0057 
0058   //! returns False if theSecondleader is a Null Handle.
0059   Standard_EXPORT Standard_Boolean HasSecondLeader() const;
0060 
0061   //! returns the Second Leader Entity
0062   Standard_EXPORT Handle(IGESDimen_LeaderArrow) SecondLeader() const;
0063 
0064   //! returns the Arc Center coordinates as Pnt2d from package gp
0065   Standard_EXPORT gp_Pnt2d Center() const;
0066 
0067   //! returns the Arc Center coordinates as Pnt2d from package gp
0068   //! after Transformation. (Z = 0.0 for Transformation)
0069   Standard_EXPORT gp_Pnt2d TransformedCenter() const;
0070 
0071   DEFINE_STANDARD_RTTIEXT(IGESDimen_DiameterDimension, IGESData_IGESEntity)
0072 
0073 protected:
0074 private:
0075   Handle(IGESDimen_GeneralNote) theNote;
0076   Handle(IGESDimen_LeaderArrow) theFirstLeader;
0077   Handle(IGESDimen_LeaderArrow) theSecondLeader;
0078   gp_XY                         theCenter;
0079 };
0080 
0081 #endif // _IGESDimen_DiameterDimension_HeaderFile