VR-Forces 4.1.1 Class Documentation
unicodeTTFSymbolDesc.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2000 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: unicodeTTFSymbolDesc.h,v $ $Revision: 1.10 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef UNITTFSYMBOLDESC_H
13 #define UNITTFSYMBOLDESC_H
14 
16 
21 
26 {
27 public:
28  DtUTTFDecoder();
29  virtual ~DtUTTFDecoder();
30 
31  static DtUTTFDecoder* create();
32 
33  virtual bool getUnitSymbolFont(const DtEntityMapperKey& entType,
34  unsigned short& outlineCharacter, unsigned short& echelonCharacter,
35  unsigned short& fillCharacter, bool useForceAsFill = false) const;
36 
37  virtual unsigned short fillCharacterForUnitSymbolFont( const unsigned short outline, const DtEntityMapperKey& entType,
38  const int forceType ) const;
39  virtual unsigned short outlineCharacterForUnitSymbolFont( const unsigned short character,
40  const int forceType ) const;
41  virtual unsigned short echelonCharacterForUnitSymbolFont(
42  const DtEntityMapperKey& entType ) const;
43 
44  virtual bool fillCharacterByOutline(unsigned short outline,
45  const QString& lowerB, const QString& upperB, const QString& fillStart,
46  unsigned short& fill, bool equipment = false) const;
47 };
48 
49 typedef DtUTTFDecoder* (*DtUTTFDecoderCreatorFcn)();
50 
52 {
53 public:
54 
57 
60 
63 
65  virtual DtSymbolDescriptor& operator=(const DtSymbolDescriptor& rhs);
66  virtual bool operator==(const DtSymbolDescriptor&) const;
67 
68  virtual QString type() const;
69 
70  virtual QString info() const;
71 
72  virtual unsigned short echelonUnicodeChar() const;
73  virtual void setEchelonUnicodeChar(const unsigned short echelon);
74  virtual void setEchelonUnicodeChar(const QString& hexString);
75 
77  virtual unsigned short outlineUnicodeChar(int force = -1) const;
78  unsigned short outlineUnicodeCharRawValue() const
79  {
80  return myOutlineUnicodeChar;
81  }
82 
83  virtual void setOutlineUnicodeChar(const unsigned short outline);
84  virtual void setOutlineUnicodeChar(const QString& hexString);
85 
86  virtual unsigned short fillUnicodeChar() const;
87 
89  virtual unsigned short fillUnicodeChar( const DtEntityMapperKey& entType,
90  const int forceType ) const;
91 
92  virtual void setFillUnicodeChar(const unsigned short fill);
93  virtual void setFillUnicodeChar(const QString& hexString);
94 
95  static unsigned short convertHexStringToMultibyteCharacter( const QString& hexChar );
96 
97  virtual DtSymbol* createSymbol(DtSymbolDrawer& drawer, const DtEntityMapperKey& key) const;
98 
99  void setOptional(const QString& optional);
100  const QString& optional() const;
101 
102  virtual DtSymbolDescriptor* clone();
103 
104  virtual QString descriptorInformation() const;
105 
106  void setModifyFillByForce(bool);
107  bool modifyFillByForce() const;
108 
109  void setComment(const QString&);
110  const QString& comment() const;
111 
112  void setIsExtendedFormat(bool);
113  bool isExtendedFormat() const;
114 
115  static void setDecoderCreator(DtUTTFDecoderCreatorFcn);
116  static DtUTTFDecoderCreatorFcn decoderCreator();
117 
118 protected:
119  unsigned short myEchelonUnicodeChar;
120  unsigned short myOutlineUnicodeChar;
121  unsigned short myFillUnicodeChar;
122 
123  QString myOptional;
124  QString myComment;
125 
129 };
130 
132 {
134 }
135 
137 {
138  return myModifyFillByForce;
139 }
140 
142 {
143  myIsExtendedFormat = b;
144 }
145 
147 {
148  return myIsExtendedFormat;
149 }
150 
151 inline void DtUnicodeTTFSymbolDescriptor::setOptional(const QString& opt)
152 {
153  myOptional = opt;
154 }
155 
156 inline const QString& DtUnicodeTTFSymbolDescriptor::optional() const
157 {
158  return myOptional;
159 }
160 
161 inline void DtUnicodeTTFSymbolDescriptor::setComment(const QString& s)
162 {
163  myComment = s;
164 }
165 
166 inline const QString& DtUnicodeTTFSymbolDescriptor::comment() const
167 {
168  return myComment;
169 }
170 
171 #endif

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)