Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:58

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_AngularDimension_HeaderFile
0018 #define _IGESDimen_AngularDimension_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_WitnessLine;
0027 class IGESDimen_LeaderArrow;
0028 class gp_Pnt2d;
0029 
0030 
0031 class IGESDimen_AngularDimension;
0032 DEFINE_STANDARD_HANDLE(IGESDimen_AngularDimension, IGESData_IGESEntity)
0033 
0034 //! defines AngularDimension, Type <202> Form <0>
0035 //! in package IGESDimen
0036 //! Used to dimension angles
0037 class IGESDimen_AngularDimension : public IGESData_IGESEntity
0038 {
0039 
0040 public:
0041 
0042   
0043   Standard_EXPORT IGESDimen_AngularDimension();
0044   
0045   //! This method is used to set the fields of the class
0046   //! AngularDimension
0047   //! - aNote         : General Note Entity
0048   //! - aLine         : First Witness Line Entity or Null
0049   //! Handle
0050   //! - anotherLine   : Second Witness Line Entity or Null
0051   //! Handle
0052   //! - aVertex       : Coordinates of vertex point
0053   //! - aRadius       : Radius of leader arcs
0054   //! - aLeader       : First Leader Entity
0055   //! - anotherLeader : Second Leader Entity
0056   Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESDimen_WitnessLine)& aLine, const Handle(IGESDimen_WitnessLine)& anotherLine, const gp_XY& aVertex, const Standard_Real aRadius, const Handle(IGESDimen_LeaderArrow)& aLeader, const Handle(IGESDimen_LeaderArrow)& anotherLeader);
0057   
0058   //! returns the General Note Entity of the Dimension.
0059   Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
0060   
0061   //! returns False if theFirstWitnessLine is Null Handle.
0062   Standard_EXPORT Standard_Boolean HasFirstWitnessLine() const;
0063   
0064   //! returns the First Witness Line Entity or Null Handle.
0065   Standard_EXPORT Handle(IGESDimen_WitnessLine) FirstWitnessLine() const;
0066   
0067   //! returns False if theSecondWitnessLine is Null Handle.
0068   Standard_EXPORT Standard_Boolean HasSecondWitnessLine() const;
0069   
0070   //! returns the Second Witness Line Entity or Null Handle.
0071   Standard_EXPORT Handle(IGESDimen_WitnessLine) SecondWitnessLine() const;
0072   
0073   //! returns the coordinates of the Vertex point as Pnt2d from gp.
0074   Standard_EXPORT gp_Pnt2d Vertex() const;
0075   
0076   //! returns the coordinates of the Vertex point as Pnt2d from gp
0077   //! after Transformation. (Z = 0.0 for Transformation)
0078   Standard_EXPORT gp_Pnt2d TransformedVertex() const;
0079   
0080   //! returns the Radius of the Leader arcs.
0081   Standard_EXPORT Standard_Real Radius() const;
0082   
0083   //! returns the First Leader Entity.
0084   Standard_EXPORT Handle(IGESDimen_LeaderArrow) FirstLeader() const;
0085   
0086   //! returns the Second Leader Entity.
0087   Standard_EXPORT Handle(IGESDimen_LeaderArrow) SecondLeader() const;
0088 
0089 
0090 
0091 
0092   DEFINE_STANDARD_RTTIEXT(IGESDimen_AngularDimension,IGESData_IGESEntity)
0093 
0094 protected:
0095 
0096 
0097 
0098 
0099 private:
0100 
0101 
0102   Handle(IGESDimen_GeneralNote) theNote;
0103   Handle(IGESDimen_WitnessLine) theFirstWitnessLine;
0104   Handle(IGESDimen_WitnessLine) theSecondWitnessLine;
0105   gp_XY theVertex;
0106   Standard_Real theRadius;
0107   Handle(IGESDimen_LeaderArrow) theFirstLeader;
0108   Handle(IGESDimen_LeaderArrow) theSecondLeader;
0109 
0110 
0111 };
0112 
0113 
0114 
0115 
0116 
0117 
0118 
0119 #endif // _IGESDimen_AngularDimension_HeaderFile