1 // Created on: 1993-01-11
2 // Created by: CKY / Contract Toubro-Larsen ( Niraj RANGWALA )
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESGraph_LineFontDefTemplate_HeaderFile
18 #define _IGESGraph_LineFontDefTemplate_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Integer.hxx>
24 #include <Standard_Real.hxx>
25 #include <IGESData_LineFontEntity.hxx>
26 class IGESBasic_SubfigureDef;
29 class IGESGraph_LineFontDefTemplate;
30 DEFINE_STANDARD_HANDLE(IGESGraph_LineFontDefTemplate, IGESData_LineFontEntity)
32 //! defines IGESLineFontDefTemplate, Type <304> Form <1>
33 //! in package IGESGraph
35 //! Line Font can be defined as a repetition od Template figure
36 //! that is displayed at regularly spaced locations along a
37 //! planer anchoring curve. The anchoring curve itself has
38 //! no visual purpose.
39 class IGESGraph_LineFontDefTemplate : public IGESData_LineFontEntity
45 Standard_EXPORT IGESGraph_LineFontDefTemplate();
47 //! This method is used to set the fields of the class
48 //! LineFontDefTemplate
49 //! - anOrientation : Orientation of Template figure on
51 //! - aTemplate : SubfigureDef entity used as Template figure
52 //! - aDistance : Distance between the neighbouring Template
54 //! - aScale : Scale factor applied to the Template figure
55 Standard_EXPORT void Init (const Standard_Integer anOrientation, const Handle(IGESBasic_SubfigureDef)& aTemplate, const Standard_Real aDistance, const Standard_Real aScale);
57 //! if return value = 0, Each Template display is oriented by aligning
58 //! the axis of the SubfigureDef with the axis of
59 //! the definition space of the anchoring curve.
60 //! = 1, Each Template display is oriented by aligning
61 //! X-axis of the SubfigureDef with the tangent
62 //! vector of the anchoring curve at the point of
63 //! incidence of the curve and the origin of
65 //! Similarly Z-axis is aligned.
66 Standard_EXPORT Standard_Integer Orientation() const;
68 //! returns SubfigureDef as the Entity used as Template figure.
69 Standard_EXPORT Handle(IGESBasic_SubfigureDef) TemplateEntity() const;
71 //! returns the Distance between any two Template figures on the
73 Standard_EXPORT Standard_Real Distance() const;
75 //! returns the Scaling factor applied to SubfigureDef to form
77 Standard_EXPORT Standard_Real Scale() const;
82 DEFINE_STANDARD_RTTIEXT(IGESGraph_LineFontDefTemplate,IGESData_LineFontEntity)
92 Standard_Integer theOrientation;
93 Handle(IGESBasic_SubfigureDef) theTemplateEntity;
94 Standard_Real theDistance;
95 Standard_Real theScale;
106 #endif // _IGESGraph_LineFontDefTemplate_HeaderFile