Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1993-01-11
0002 // Created by: CKY / Contract Toubro-Larsen ( SIVA )
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_PointDimension_HeaderFile
0018 #define _IGESDimen_PointDimension_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <IGESData_IGESEntity.hxx>
0024 #include <Standard_Integer.hxx>
0025 class IGESDimen_GeneralNote;
0026 class IGESDimen_LeaderArrow;
0027 class IGESGeom_CircularArc;
0028 class IGESGeom_CompositeCurve;
0029 
0030 
0031 class IGESDimen_PointDimension;
0032 DEFINE_STANDARD_HANDLE(IGESDimen_PointDimension, IGESData_IGESEntity)
0033 
0034 //! defines IGES Point Dimension, Type <220> Form <0>,
0035 //! in package IGESDimen
0036 //! A Point Dimension Entity consists of a leader, text, and
0037 //! an optional circle or hexagon enclosing the text
0038 //! IGES specs for this entity mention SimpleClosedPlanarCurve
0039 //! Entity(106/63)which is not listed in LIST.Text In the sequel
0040 //! we have ignored this & considered only the other two entity
0041 //! for representing the hexagon or circle enclosing the text.
0042 class IGESDimen_PointDimension : public IGESData_IGESEntity
0043 {
0044 
0045 public:
0046 
0047   
0048   Standard_EXPORT IGESDimen_PointDimension();
0049   
0050   Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESDimen_LeaderArrow)& anArrow, const Handle(IGESData_IGESEntity)& aGeom);
0051   
0052   Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
0053   
0054   Standard_EXPORT Handle(IGESDimen_LeaderArrow) LeaderArrow() const;
0055   
0056   //! returns the type of geometric entity.
0057   //! 0 if no hexagon or circle encloses the text
0058   //! 1 if CircularArc
0059   //! 2 if CompositeCurve
0060   //! 3 otherwise
0061   Standard_EXPORT Standard_Integer GeomCase() const;
0062   
0063   //! returns the Geometry Entity, Null handle if GeomCase(me) .eq. 0
0064   Standard_EXPORT Handle(IGESData_IGESEntity) Geom() const;
0065   
0066   //! returns Null handle if GeomCase(me) .ne. 1
0067   Standard_EXPORT Handle(IGESGeom_CircularArc) CircularArc() const;
0068   
0069   //! returns Null handle if GeomCase(me) .ne. 2
0070   Standard_EXPORT Handle(IGESGeom_CompositeCurve) CompositeCurve() const;
0071 
0072 
0073 
0074 
0075   DEFINE_STANDARD_RTTIEXT(IGESDimen_PointDimension,IGESData_IGESEntity)
0076 
0077 protected:
0078 
0079 
0080 
0081 
0082 private:
0083 
0084 
0085   Handle(IGESDimen_GeneralNote) theNote;
0086   Handle(IGESDimen_LeaderArrow) theLeader;
0087   Handle(IGESData_IGESEntity) theGeom;
0088 
0089 
0090 };
0091 
0092 
0093 
0094 
0095 
0096 
0097 
0098 #endif // _IGESDimen_PointDimension_HeaderFile