// Created on: 1993-01-13 // Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU ) // 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 _IGESDimen_CurveDimension_HeaderFile #define _IGESDimen_CurveDimension_HeaderFile #include "Standard.hxx" #include "IGESData_IGESEntity.hxx" class IGESDimen_GeneralNote; class IGESDimen_LeaderArrow; class IGESDimen_WitnessLine; //! defines CurveDimension, Type <204> Form <0> //! in package IGESDimen //! Used to dimension curves //! Consists of one tail segment of nonzero length //! beginning with an arrowhead and which serves to define //! the orientation class IGESDimen_CurveDimension : public IGESData_IGESEntity { public: Standard_EXPORT IGESDimen_CurveDimension(); //! This method is used to set the fields of the class //! CurveDimension //! - aNote : General Note Entity //! - aCurve : First Curve Entity //! - anotherCurve : Second Curve Entity or a Null Handle //! - aLeader : First Leader Entity //! - anotherLeader : Second Leader Entity //! - aLine : First Witness Line Entity or a Null //! Handle //! - anotherLine : Second Witness Line Entity or a Null //! Handle Standard_EXPORT void Init(const occ::handle& aNote, const occ::handle& aCurve, const occ::handle& anotherCurve, const occ::handle& aLeader, const occ::handle& anotherLeader, const occ::handle& aLine, const occ::handle& anotherLine); //! returns the General Note Entity Standard_EXPORT occ::handle Note() const; //! returns the First curve Entity Standard_EXPORT occ::handle FirstCurve() const; //! returns False if theSecondCurve is a Null Handle. Standard_EXPORT bool HasSecondCurve() const; //! returns the Second curve Entity or a Null Handle. Standard_EXPORT occ::handle SecondCurve() const; //! returns the First Leader Entity Standard_EXPORT occ::handle FirstLeader() const; //! returns the Second Leader Entity Standard_EXPORT occ::handle SecondLeader() const; //! returns False if theFirstWitnessLine is a Null Handle. Standard_EXPORT bool HasFirstWitnessLine() const; //! returns the First Witness Line Entity or a Null Handle. Standard_EXPORT occ::handle FirstWitnessLine() const; //! returns False if theSecondWitnessLine is a Null Handle. Standard_EXPORT bool HasSecondWitnessLine() const; //! returns the Second Witness Line Entity or a Null Handle. Standard_EXPORT occ::handle SecondWitnessLine() const; DEFINE_STANDARD_RTTIEXT(IGESDimen_CurveDimension, IGESData_IGESEntity) private: occ::handle theNote; occ::handle theFirstCurve; occ::handle theSecondCurve; occ::handle theFirstLeader; occ::handle theSecondLeader; occ::handle theFirstWitnessLine; occ::handle theSecondWitnessLine; }; #endif // _IGESDimen_CurveDimension_HeaderFile