QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
Qwt3D::Drawable类 参考abstract

Abstract base class for Drawables 更多...

#include <qwt3d_drawable.h>

类 Qwt3D::Drawable 继承关系图:
Qwt3D::Axis Qwt3D::ColorLegend Qwt3D::CoordinateSystem Qwt3D::Label

class  PrivateData
 

Public 成员函数

virtual void draw ()
 
virtual void saveGLState ()
 
virtual void restoreGLState ()
 
void attach (Drawable *)
 
void detach (Drawable *)
 
void detachAll ()
 
virtual void setColor (double r, double g, double b, double a=1)
 
virtual void setColor (Qwt3D::RGBA rgba)
 
Qwt3D::Triple relativePosition (Qwt3D::Triple rel)
 Calculates world coordinates from relative viewport position
 

Protected 成员函数

void Enable (GLenum what, GLboolean val)
 
Qwt3D::Triple ViewPort2World (Qwt3D::Triple win, bool *err=nullptr)
 Converts viewport coordinates to world coordinates (glUnProject)
 
Qwt3D::Triple World2ViewPort (Qwt3D::Triple obj, bool *err=nullptr)
 Converts world coordinates to viewport coordinates (glProject)
 
 Drawable (Drawable &&other) noexcept
 
Drawableoperator= (Drawable &&other) noexcept
 

Protected 属性

Qwt3D::RGBA color
 
GLdouble modelMatrix [16]
 
GLdouble projMatrix [16]
 
GLint viewport [4]
 

详细描述

Abstract base class for Drawables

成员函数说明

◆ draw()

void Drawable::draw ( )
virtual

◆ relativePosition()

Triple Drawable::relativePosition ( Qwt3D::Triple  rel)

Calculates world coordinates from relative viewport position

参数
relRelative position in viewport coordinates
返回
Corresponding world coordinates
警告
Don't rely on (use) this in display lists!

◆ setColor() [1/2]

void Drawable::setColor ( double  r,
double  g,
double  b,
double  a = 1 
)
virtual

Qwt3D::Label 重载.

◆ setColor() [2/2]

void Drawable::setColor ( Qwt3D::RGBA  rgba)
virtual

Qwt3D::Label 重载.

◆ ViewPort2World()

Triple Drawable::ViewPort2World ( Qwt3D::Triple  win,
bool *  err = nullptr 
)
protected

Converts viewport coordinates to world coordinates (glUnProject)

参数
winViewport (window) coordinates
[out]errOptional error flag (true on failure)
返回
World (object) coordinates
警告
Don't rely on (use) this in display lists!

◆ World2ViewPort()

Triple Drawable::World2ViewPort ( Qwt3D::Triple  obj,
bool *  err = nullptr 
)
protected

Converts world coordinates to viewport coordinates (glProject)

参数
objWorld (object) coordinates
[out]errOptional error flag (true on failure)
返回
Viewport (window) coordinates
警告
Don't rely on (use) this in display lists!

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