// Created on: 1993-01-11 // Created by: CKY / Contract Toubro-Larsen ( Niraj RANGWALA ) // 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 _IGESGraph_LineFontDefTemplate_HeaderFile #define _IGESGraph_LineFontDefTemplate_HeaderFile #include #include #include #include #include class IGESBasic_SubfigureDef; class IGESGraph_LineFontDefTemplate; DEFINE_STANDARD_HANDLE(IGESGraph_LineFontDefTemplate, IGESData_LineFontEntity) //! defines IGESLineFontDefTemplate, Type <304> Form <1> //! in package IGESGraph //! //! Line Font can be defined as a repetition od Template figure //! that is displayed at regularly spaced locations along a //! planer anchoring curve. The anchoring curve itself has //! no visual purpose. class IGESGraph_LineFontDefTemplate : public IGESData_LineFontEntity { public: Standard_EXPORT IGESGraph_LineFontDefTemplate(); //! This method is used to set the fields of the class //! LineFontDefTemplate //! - anOrientation : Orientation of Template figure on //! anchoring curve //! - aTemplate : SubfigureDef entity used as Template figure //! - aDistance : Distance between the neighbouring Template //! figures //! - aScale : Scale factor applied to the Template figure Standard_EXPORT void Init (const Standard_Integer anOrientation, const Handle(IGESBasic_SubfigureDef)& aTemplate, const Standard_Real aDistance, const Standard_Real aScale); //! if return value = 0, Each Template display is oriented by aligning //! the axis of the SubfigureDef with the axis of //! the definition space of the anchoring curve. //! = 1, Each Template display is oriented by aligning //! X-axis of the SubfigureDef with the tangent //! vector of the anchoring curve at the point of //! incidence of the curve and the origin of //! subfigure. //! Similarly Z-axis is aligned. Standard_EXPORT Standard_Integer Orientation() const; //! returns SubfigureDef as the Entity used as Template figure. Standard_EXPORT Handle(IGESBasic_SubfigureDef) TemplateEntity() const; //! returns the Distance between any two Template figures on the //! anchoring curve. Standard_EXPORT Standard_Real Distance() const; //! returns the Scaling factor applied to SubfigureDef to form //! Template figure. Standard_EXPORT Standard_Real Scale() const; DEFINE_STANDARD_RTTIEXT(IGESGraph_LineFontDefTemplate,IGESData_LineFontEntity) protected: private: Standard_Integer theOrientation; Handle(IGESBasic_SubfigureDef) theTemplateEntity; Standard_Real theDistance; Standard_Real theScale; }; #endif // _IGESGraph_LineFontDefTemplate_HeaderFile