ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cvAnnotation Struct Reference

Annotation for a selection. More...

#include <cvSelectionAnnotation.h>

Public Member Functions

 cvAnnotation ()
 
 cvAnnotation (const QString &txt, const double pos[3], const QString &uid=QString())
 

Public Attributes

QString text
 Annotation text. More...
 
QString id
 Unique ID. More...
 
double position [3]
 3D position More...
 
QColor color
 Text color. More...
 
int fontSize
 Font size in points. More...
 
QString fontFamily
 Font family (e.g., "Arial") More...
 
bool bold
 Bold flag. More...
 
bool italic
 Italic flag. More...
 
bool shadow
 Shadow flag. More...
 
double opacity
 Text opacity (0.0 to 1.0) More...
 
QString horizontalJustification
 "Left", "Center", "Right" More...
 
QString verticalJustification
 "Top", "Center", "Bottom" More...
 
bool visible
 Visibility flag. More...
 
bool followSelection
 Auto-update position with selection. More...
 
qint64 timestamp
 Creation timestamp. More...
 

Detailed Description

Annotation for a selection.

Stores text annotation, position, style, and visibility.

Definition at line 42 of file cvSelectionAnnotation.h.

Constructor & Destructor Documentation

◆ cvAnnotation() [1/2]

cvAnnotation::cvAnnotation ( )
inline

Definition at line 59 of file cvSelectionAnnotation.h.

References color, position, and ecvColor::yellow().

◆ cvAnnotation() [2/2]

cvAnnotation::cvAnnotation ( const QString &  txt,
const double  pos[3],
const QString &  uid = QString() 
)
inline

Definition at line 75 of file cvSelectionAnnotation.h.

References color, position, and ecvColor::yellow().

Member Data Documentation

◆ bold

◆ color

◆ followSelection

bool cvAnnotation::followSelection

Auto-update position with selection.

Definition at line 56 of file cvSelectionAnnotation.h.

Referenced by cvSelectionAnnotationManager::addAnnotation(), and cvSelectionAnnotationManager::importFromFile().

◆ fontFamily

QString cvAnnotation::fontFamily

◆ fontSize

◆ horizontalJustification

QString cvAnnotation::horizontalJustification

◆ id

QString cvAnnotation::id

Unique ID.

Definition at line 44 of file cvSelectionAnnotation.h.

Referenced by cvSelectionAnnotationManager::addAnnotation().

◆ italic

◆ opacity

double cvAnnotation::opacity

◆ position

double cvAnnotation::position[3]

3D position

Definition at line 45 of file cvSelectionAnnotation.h.

Referenced by cvSelectionAnnotationManager::addAnnotation().

◆ shadow

◆ text

QString cvAnnotation::text

Annotation text.

Definition at line 43 of file cvSelectionAnnotation.h.

Referenced by cvSelectionAnnotationManager::addAnnotation().

◆ timestamp

qint64 cvAnnotation::timestamp

Creation timestamp.

Definition at line 57 of file cvSelectionAnnotation.h.

Referenced by cvSelectionAnnotationManager::importFromFile().

◆ verticalJustification

QString cvAnnotation::verticalJustification

◆ visible

bool cvAnnotation::visible

Visibility flag.

Definition at line 55 of file cvSelectionAnnotation.h.

Referenced by cvSelectionAnnotationManager::importFromFile().


The documentation for this struct was generated from the following file: