// 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_AngularDimension_HeaderFile #define _IGESDimen_AngularDimension_HeaderFile #include "Standard.hxx" #include "Standard_Type.hxx" #include "gp_XY.hxx" #include "IGESData_IGESEntity.hxx" class IGESDimen_GeneralNote; class IGESDimen_WitnessLine; class IGESDimen_LeaderArrow; class gp_Pnt2d; //! defines AngularDimension, Type <202> Form <0> //! in package IGESDimen //! Used to dimension angles class IGESDimen_AngularDimension : public IGESData_IGESEntity { public: Standard_EXPORT IGESDimen_AngularDimension(); //! This method is used to set the fields of the class //! AngularDimension //! - aNote : General Note Entity //! - aLine : First Witness Line Entity or Null //! Handle //! - anotherLine : Second Witness Line Entity or Null //! Handle //! - aVertex : Coordinates of vertex point //! - aRadius : Radius of leader arcs //! - aLeader : First Leader Entity //! - anotherLeader : Second Leader Entity Standard_EXPORT void Init(const occ::handle& aNote, const occ::handle& aLine, const occ::handle& anotherLine, const gp_XY& aVertex, const double aRadius, const occ::handle& aLeader, const occ::handle& anotherLeader); //! returns the General Note Entity of the Dimension. Standard_EXPORT occ::handle Note() const; //! returns False if theFirstWitnessLine is Null Handle. Standard_EXPORT bool HasFirstWitnessLine() const; //! returns the First Witness Line Entity or Null Handle. Standard_EXPORT occ::handle FirstWitnessLine() const; //! returns False if theSecondWitnessLine is Null Handle. Standard_EXPORT bool HasSecondWitnessLine() const; //! returns the Second Witness Line Entity or Null Handle. Standard_EXPORT occ::handle SecondWitnessLine() const; //! returns the coordinates of the Vertex point as Pnt2d from gp. Standard_EXPORT gp_Pnt2d Vertex() const; //! returns the coordinates of the Vertex point as Pnt2d from gp //! after Transformation. (Z = 0.0 for Transformation) Standard_EXPORT gp_Pnt2d TransformedVertex() const; //! returns the Radius of the Leader arcs. Standard_EXPORT double Radius() const; //! returns the First Leader Entity. Standard_EXPORT occ::handle FirstLeader() const; //! returns the Second Leader Entity. Standard_EXPORT occ::handle SecondLeader() const; DEFINE_STANDARD_RTTIEXT(IGESDimen_AngularDimension, IGESData_IGESEntity) private: occ::handle theNote; occ::handle theFirstWitnessLine; occ::handle theSecondWitnessLine; gp_XY theVertex; double theRadius; occ::handle theFirstLeader; occ::handle theSecondLeader; }; #endif // _IGESDimen_AngularDimension_HeaderFile