Back to home page

EIC code displayed by LXR

 
 

    


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

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_CurveDimension_HeaderFile
0018 #define _IGESDimen_CurveDimension_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <IGESData_IGESEntity.hxx>
0023 class IGESDimen_GeneralNote;
0024 class IGESDimen_LeaderArrow;
0025 class IGESDimen_WitnessLine;
0026 
0027 
0028 class IGESDimen_CurveDimension;
0029 DEFINE_STANDARD_HANDLE(IGESDimen_CurveDimension, IGESData_IGESEntity)
0030 
0031 //! defines CurveDimension, Type <204> Form <0>
0032 //! in package IGESDimen
0033 //! Used to dimension curves
0034 //! Consists of one tail segment of nonzero length
0035 //! beginning with an arrowhead and which serves to define
0036 //! the orientation
0037 class IGESDimen_CurveDimension : public IGESData_IGESEntity
0038 {
0039 
0040 public:
0041 
0042   
0043   Standard_EXPORT IGESDimen_CurveDimension();
0044   
0045   //! This method is used to set the fields of the class
0046   //! CurveDimension
0047   //! - aNote         : General Note Entity
0048   //! - aCurve        : First Curve Entity
0049   //! - anotherCurve  : Second Curve Entity or a Null Handle
0050   //! - aLeader       : First Leader Entity
0051   //! - anotherLeader : Second Leader Entity
0052   //! - aLine         : First Witness Line Entity or a Null
0053   //! Handle
0054   //! - anotherLine   : Second Witness Line Entity or a Null
0055   //! Handle
0056   Standard_EXPORT void Init (const Handle(IGESDimen_GeneralNote)& aNote, const Handle(IGESData_IGESEntity)& aCurve, const Handle(IGESData_IGESEntity)& anotherCurve, const Handle(IGESDimen_LeaderArrow)& aLeader, const Handle(IGESDimen_LeaderArrow)& anotherLeader, const Handle(IGESDimen_WitnessLine)& aLine, const Handle(IGESDimen_WitnessLine)& anotherLine);
0057   
0058   //! returns the General Note Entity
0059   Standard_EXPORT Handle(IGESDimen_GeneralNote) Note() const;
0060   
0061   //! returns the First curve Entity
0062   Standard_EXPORT Handle(IGESData_IGESEntity) FirstCurve() const;
0063   
0064   //! returns False if theSecondCurve is a Null Handle.
0065   Standard_EXPORT Standard_Boolean HasSecondCurve() const;
0066   
0067   //! returns the Second curve Entity or a Null Handle.
0068   Standard_EXPORT Handle(IGESData_IGESEntity) SecondCurve() const;
0069   
0070   //! returns the First Leader Entity
0071   Standard_EXPORT Handle(IGESDimen_LeaderArrow) FirstLeader() const;
0072   
0073   //! returns the Second Leader Entity
0074   Standard_EXPORT Handle(IGESDimen_LeaderArrow) SecondLeader() const;
0075   
0076   //! returns False if theFirstWitnessLine is a Null Handle.
0077   Standard_EXPORT Standard_Boolean HasFirstWitnessLine() const;
0078   
0079   //! returns the First Witness Line Entity or a Null Handle.
0080   Standard_EXPORT Handle(IGESDimen_WitnessLine) FirstWitnessLine() const;
0081   
0082   //! returns False if theSecondWitnessLine is a Null Handle.
0083   Standard_EXPORT Standard_Boolean HasSecondWitnessLine() const;
0084   
0085   //! returns the Second Witness Line Entity or a Null Handle.
0086   Standard_EXPORT Handle(IGESDimen_WitnessLine) SecondWitnessLine() const;
0087 
0088 
0089 
0090 
0091   DEFINE_STANDARD_RTTIEXT(IGESDimen_CurveDimension,IGESData_IGESEntity)
0092 
0093 protected:
0094 
0095 
0096 
0097 
0098 private:
0099 
0100 
0101   Handle(IGESDimen_GeneralNote) theNote;
0102   Handle(IGESData_IGESEntity) theFirstCurve;
0103   Handle(IGESData_IGESEntity) theSecondCurve;
0104   Handle(IGESDimen_LeaderArrow) theFirstLeader;
0105   Handle(IGESDimen_LeaderArrow) theSecondLeader;
0106   Handle(IGESDimen_WitnessLine) theFirstWitnessLine;
0107   Handle(IGESDimen_WitnessLine) theSecondWitnessLine;
0108 
0109 
0110 };
0111 
0112 
0113 
0114 
0115 
0116 
0117 
0118 #endif // _IGESDimen_CurveDimension_HeaderFile