| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   18 #ifndef QGSANNOTATIONPOINTTEXTITEM_H 
   19 #define QGSANNOTATIONPOINTTEXTITEM_H 
   21 #include "qgis_core.h" 
   43     Qgis::AnnotationItemFlags 
flags() 
const override;
 
   44     QString 
type() 
const override;
 
   57     QList< QgsAnnotationItemNode > 
nodes() 
const override;
 
   77     void setPoint( 
QgsPointXY point ) { mPoint = point; }
 
   84     QString text()
 const { 
return mText; }
 
   91     void setText( 
const QString &text ) { mText = text; }
 
  112     double angle()
 const { 
return mAngle; }
 
  119     void setAngle( 
double angle ) { mAngle = 
angle; }
 
  126     Qt::Alignment alignment() 
const;
 
  133     void setAlignment( Qt::Alignment alignment );
 
  141     Qt::Alignment mAlignment = Qt::AlignHCenter;
 
  149 #endif // QGSANNOTATIONPOINTTEXTITEM_H 
  
virtual QList< QgsAnnotationItemNode > nodes() const
Returns the nodes for the item, used for editing the item.
 
The class is used as a container of context for various read/write operations on other objects.
 
virtual bool readXml(const QDomElement &element, const QgsReadWriteContext &context)=0
Reads the item's state from the given DOM element.
 
Contains information about the context of a rendering operation.
 
virtual QgsAnnotationItem * clone()=0
Returns a clone of the item.
 
A rectangle specified with double values.
 
AnnotationItemEditOperationResult
Results from an edit operation on an annotation item.
 
Container for all settings relating to text rendering.
 
virtual bool writeXml(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const =0
Writes the item's state into an XML element.
 
Base class for feedback objects to be used for cancellation of something running in a worker thread.
 
Abstract base class for annotation item edit operations.
 
A class to represent a 2D point.
 
virtual void render(QgsRenderContext &context, QgsFeedback *feedback)=0
Renders the item to the specified render context.
 
virtual Qgis::AnnotationItemEditOperationResult applyEdit(QgsAbstractAnnotationItemEditOperation *operation)
Applies an edit operation to the item.
 
virtual QgsRectangle boundingBox() const =0
Returns the bounding box of the item's geographic location, in the parent layer's coordinate referenc...
 
virtual Qgis::AnnotationItemFlags flags() const
Returns item flags.
 
virtual QgsAnnotationItemEditOperationTransientResults * transientEditResults(QgsAbstractAnnotationItemEditOperation *operation)
Retrieves the results of a transient (in progress) edit operation on the item.
 
double ANALYSIS_EXPORT angle(QgsPoint *p1, QgsPoint *p2, QgsPoint *p3, QgsPoint *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
 
Abstract base class for annotation items which are drawn with QgsAnnotationLayers.
 
Encapsulates the transient results of an in-progress annotation edit operation.
 
An annotation item which renders a text string at a point location.
 
virtual QString type() const =0
Returns a unique (untranslated) string identifying the type of item.