 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
21 #ifndef __ctkVTKTextPropertyWidget_h
22 #define __ctkVTKTextPropertyWidget_h
30 #include "ctkVisualizationVTKWidgetsExport.h"
32 class ctkVTKTextPropertyWidgetPrivate;
33 class vtkTextProperty;
40 Q_PROPERTY(
bool showText READ isTextVisible WRITE setTextVisible);
41 Q_PROPERTY(QString text READ text WRITE setText);
42 Q_PROPERTY(QString textLabel READ textLabel WRITE setTextLabel);
43 Q_PROPERTY(
bool showSize READ isSizeVisible WRITE setSizeVisible);
104 QScopedPointer<ctkVTKTextPropertyWidgetPrivate>
d_ptr;
void setTextLabel(const QString &label)
void colorChanged(const QColor &color)
double opacity() const
Opacity of vtkTextProperty.
void italicChanged(bool enable)
void setFont(const QString &font)
void setSize(double size)
void fontFamilyChanged(const QString &font)
void opacityChanged(double opacity)
bool hasShadow() const
Has the text shadows.
bool isTextVisible() const
void setTextProperty(vtkTextProperty *textProperty)
void boldChanged(bool enable)
#define QVTK_OBJECT
Define VTK/Qt event/slot connection utility methods. It is a convenient macro that declares and defin...
void setItalic(bool enable)
QColor color() const
Color of vtkTextProperty.
void setColor(const QColor &color)
QString font() const
Font of vtkTextProperty.
QScopedPointer< ctkVTKTextPropertyWidgetPrivate > d_ptr
bool isSizeVisible() const
ctkVTKTextPropertyWidget(QWidget *parentWidget)
Constructors.
bool isItalic() const
Is the text italic.
void textChanged(const QString &text)
vtkTextProperty * textProperty() const
ctkVTKTextPropertyWidget(vtkTextProperty *textProperty, QWidget *parentWidget)
bool isBold() const
Is the text bold.
void shadowChanged(bool enable)
void setTextVisible(bool visible)
void updateFromTextProperty()
void setText(const QString &text)
void setSizeVisible(bool visible)
void setShadow(bool enable)
void setBold(bool enable)
void sizeChanged(double size)
void setOpacity(double opacity)
double size() const
Size of vtkTextProperty.
QString textLabel() const
virtual ~ctkVTKTextPropertyWidget()