QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
Qwt3DLabel类 参考

A Qt string or an output device dependent string 更多...

#include <qwt3d_label.h>

类 Qwt3DLabel 继承关系图:
Qwt3DDrawable

class  PrivateData
 

Public 成员函数

 Qwt3DLabel (const Qwt3DLabel &other)
 
 Qwt3DLabel (Qwt3DLabel &&other) noexcept
 
Qwt3DLabeloperator= (const Qwt3DLabel &other)
 
Qwt3DLabeloperator= (Qwt3DLabel &&other) noexcept
 
 Qwt3DLabel (const QString &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 
void setFont (QString const &family, int pointSize, int weight=QFont::Normal, bool italic=false)
 
void adjust (int gap)
 
double gap () const
 
void setPosition (Triple pos, ANCHOR a=BottomLeft)
 
void setRelPosition (Tuple rpos, ANCHOR a, const Qwt3DRenderContext &ctx)
 
Triple first () const
 
Triple second () const
 
ANCHOR anchor () const
 
virtual void setColor (double r, double g, double b, double a=1) override
 
virtual void setColor (RGBA rgba) override
 
void setString (QString const &s)
 
QString string () const
 返回标签文本
 
void draw (const Qwt3DRenderContext &ctx) override
 Draws the label using a texture quad with GLSL text shader
 
- Public 成员函数 继承自 Qwt3DDrawable
void attach (Qwt3DDrawable *)
 
void detach (Qwt3DDrawable *)
 
void detachAll ()
 
RGBA color () const
 Returns the drawable's color
 

静态 Public 成员函数

static void useDeviceFonts (bool val)
 

额外继承的成员函数

- Protected 成员函数 继承自 Qwt3DDrawable
 Qwt3DDrawable (Qwt3DDrawable &&other) noexcept
 
Qwt3DDrawableoperator= (Qwt3DDrawable &&other) noexcept
 
- Protected 属性 继承自 Qwt3DDrawable
RGBA m_color
 

详细描述

A Qt string or an output device dependent string

Qwt3DLabel provides text rendering on 3D plots, supporting both Qt string representation and device-dependent string output.

成员函数说明

◆ draw()

void Qwt3DLabel::draw ( const Qwt3DRenderContext ctx)
overridevirtual

Draws the label using a texture quad with GLSL text shader

参数
ctxRender context providing shaders, matrices, and coordinate conversion

Renders the text to a QImage, creates an OpenGL texture, and draws a textured quad using VBO + text.vert/text.frag shaders. For gl2ps vector export (deviceFonts mode), falls back to drawDeviceText.

重载 Qwt3DDrawable .

◆ setColor() [1/2]

void Qwt3DLabel::setColor ( double  r,
double  g,
double  b,
double  a = 1 
)
overridevirtual

重载 Qwt3DDrawable .

◆ setColor() [2/2]

void Qwt3DLabel::setColor ( RGBA  rgba)
overridevirtual

重载 Qwt3DDrawable .

◆ string()

QString Qwt3DLabel::string ( ) const

返回标签文本

返回
当前标签文本字符串

该类的文档由以下文件生成: