QScissorTest Class

(Qt3DRender::QScissorTest)

The QScissorTest class discards fragments that fall outside of a certain rectangular portion of the screen. 更多...

头文件: #include <QScissorTest>
qmake: QT += 3drender
开始支持版本: Qt 5.7
Instantiated By: ScissorTest
基类: Qt3DRender::QRenderState

属性

公有函数

QScissorTest(Qt3DCore::QNode *parent = nullptr)
int bottom() const
int height() const
int left() const
int width() const

公有槽函数

void setBottom(int bottom)
void setHeight(int height)
void setLeft(int left)
void setWidth(int width)

信号

void bottomChanged(int bottom)
void heightChanged(int height)
void leftChanged(int left)
void widthChanged(int width)

其他继承的成员

详细描述

The QScissorTest class discards fragments that fall outside of a certain rectangular portion of the screen.

A QScissorTest class enables scissor test, which discards fragments outside the rectangular area of the screen specified by the left, bottom, width and height properties.

属性

bottom : int

Holds the bottom coordinate of the scissor box.

访问函数:

int bottom() const
void setBottom(int bottom)

Notifier signal:

void bottomChanged(int bottom)

height : int

Holds the height of the scissor box.

访问函数:

int height() const
void setHeight(int height)

Notifier signal:

void heightChanged(int height)

left : int

Holds the left coordinate of the scissor box.

访问函数:

int left() const
void setLeft(int left)

Notifier signal:

void leftChanged(int left)

width : int

Holds the width of the scissor box.

访问函数:

int width() const
void setWidth(int width)

Notifier signal:

void widthChanged(int width)

成员函数

QScissorTest::QScissorTest(Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QScissorTest.