File indexing completed on 2026-09-27 09:18:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IGESGraph_TextFontDef_HeaderFile
0018 #define _IGESGraph_TextFontDef_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <NCollection_Array1.hxx>
0025 #include <NCollection_HArray1.hxx>
0026 #include <IGESData_IGESEntity.hxx>
0027 class TCollection_HAsciiString;
0028 class IGESBasic_HArray1OfHArray1OfInteger;
0029
0030
0031
0032
0033
0034
0035
0036 class IGESGraph_TextFontDef : public IGESData_IGESEntity
0037 {
0038
0039 public:
0040 Standard_EXPORT IGESGraph_TextFontDef();
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060 Standard_EXPORT void Init(const int aFontCode,
0061 const occ::handle<TCollection_HAsciiString>& aFontName,
0062 const int aSupersededFont,
0063 const occ::handle<IGESGraph_TextFontDef>& aSupersededEntity,
0064 const int aScale,
0065 const occ::handle<NCollection_HArray1<int>>& allASCIICodes,
0066 const occ::handle<NCollection_HArray1<int>>& allNextCharX,
0067 const occ::handle<NCollection_HArray1<int>>& allNextCharY,
0068 const occ::handle<NCollection_HArray1<int>>& allPenMotions,
0069 const occ::handle<IGESBasic_HArray1OfHArray1OfInteger>& allPenFlags,
0070 const occ::handle<IGESBasic_HArray1OfHArray1OfInteger>& allMovePenToX,
0071 const occ::handle<IGESBasic_HArray1OfHArray1OfInteger>& allMovePenToY);
0072
0073
0074 Standard_EXPORT int FontCode() const;
0075
0076
0077 Standard_EXPORT occ::handle<TCollection_HAsciiString> FontName() const;
0078
0079
0080
0081
0082 Standard_EXPORT bool IsSupersededFontEntity() const;
0083
0084
0085 Standard_EXPORT int SupersededFontCode() const;
0086
0087
0088 Standard_EXPORT occ::handle<IGESGraph_TextFontDef> SupersededFontEntity() const;
0089
0090
0091 Standard_EXPORT int Scale() const;
0092
0093
0094 Standard_EXPORT int NbCharacters() const;
0095
0096
0097
0098 Standard_EXPORT int ASCIICode(const int Chnum) const;
0099
0100
0101
0102 Standard_EXPORT void NextCharOrigin(const int Chnum, int& NX, int& NY) const;
0103
0104
0105
0106 Standard_EXPORT int NbPenMotions(const int Chnum) const;
0107
0108
0109
0110
0111
0112 Standard_EXPORT bool IsPenUp(const int Chnum, const int Motionnum) const;
0113
0114 Standard_EXPORT void NextPenPosition(const int Chnum,
0115 const int Motionnum,
0116 int& IX,
0117 int& IY) const;
0118
0119 DEFINE_STANDARD_RTTIEXT(IGESGraph_TextFontDef, IGESData_IGESEntity)
0120
0121 private:
0122 int theFontCode;
0123 occ::handle<TCollection_HAsciiString> theFontName;
0124 int theSupersededFontCode;
0125 occ::handle<IGESGraph_TextFontDef> theSupersededFontEntity;
0126 int theScale;
0127 occ::handle<NCollection_HArray1<int>> theASCIICodes;
0128 occ::handle<NCollection_HArray1<int>> theNextCharOriginX;
0129 occ::handle<NCollection_HArray1<int>> theNextCharOriginY;
0130 occ::handle<NCollection_HArray1<int>> theNbPenMotions;
0131 occ::handle<IGESBasic_HArray1OfHArray1OfInteger> thePenMotions;
0132 occ::handle<IGESBasic_HArray1OfHArray1OfInteger> thePenMovesToX;
0133 occ::handle<IGESBasic_HArray1OfHArray1OfInteger> thePenMovesToY;
0134 };
0135
0136 #endif