QCAD
Open Source 2D CAD
RTextData.h
Go to the documentation of this file.
1 
20 #ifndef RTEXTDATA_H
21 #define RTEXTDATA_H
22 
23 #include "entity_global.h"
24 
25 #include "RDocument.h"
26 #include "RTextBasedData.h"
27 #include "RVector.h"
28 
38  friend class RTextEntity;
39 
40 protected:
42 
43 public:
44  RTextData();
46  RTextData(const RVector& position,
47  const RVector& alignmentPoint,
48  double textHeight,
49  double textWidth,
50  RS::VAlign verticalAlignment,
51  RS::HAlign horizontalAlignment,
52  RS::TextDrawingDirection drawingDirection,
53  RS::TextLineSpacingStyle lineSpacingStyle,
54  double lineSpacingFactor,
55  const QString& text,
56  const QString& fontName,
57  bool bold,
58  bool italic,
59  double angle,
60  bool simple);
61 
62  virtual RS::EntityType getType() const {
63  return RS::EntityText;
64  }
65 };
66 
70 Q_DECLARE_METATYPE(QSharedPointer<RTextData>)
71 Q_DECLARE_METATYPE(QSharedPointer<RTextData>*)
72 
73 #endif
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Text.
Definition: RS.h:105
TextLineSpacingStyle
Line spacing style for texts.
Definition: RS.h:192
Linear dimension entity class.
Definition: RTextEntity.h:38
EntityType
Entity types used for property handling / filtering.
Definition: RS.h:76
#define QCADENTITY_EXPORT
Definition: entity_global.h:10
VAlign
Vertical alignments.
Definition: RS.h:161
RTextData data
Definition: RTextEntity.h:102
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RTextData.h:37
Stores and manages all data that defines the geometry and appearance of a text based entity (text...
Definition: RTextBasedData.h:44
virtual RS::EntityType getType() const
Definition: RTextData.h:62
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67
Q_DECLARE_METATYPE(RMath *)
HAlign
Horizontal alignments.
Definition: RS.h:171
TextDrawingDirection
Text drawing direction.
Definition: RS.h:183
RDocument * document
Definition: RObject.h:271