QPointSize Class

(Qt3DRender::QPointSize)

Specifies the size of rasterized points. May either be set statically or by shader programs. More...

Header: #include <QPointSize>
qmake: QT += 3drender
Inherits: Qt3DRender::QRenderState

Public Types

enum Specification { StaticValue, Programmable }

Properties

Public Functions

QPointSize(Qt3DCore::QNode *parent = Q_NULLPTR)
~QPointSize()
bool isProgrammable() const
Specification specification() const
float value() const

Public Slots

void setSpecification(Specification spec)
void setValue(float value)

Signals

void specificationChanged(Specification spec)
void valueChanged(float value)

Protected Functions

void copy(const Qt3DCore::QNode *ref)

Additional Inherited Members

Detailed Description

Specifies the size of rasterized points. May either be set statically or by shader programs.

When using StaticValue, the value is set using glPointSize(), if available. When using Programmable, gl_PointSize must be set within shader programs, the value provided to this RenderState is ignored in that case.

Member Type Documentation

enum QPointSize::Specification

Property Documentation

specification : Specification

Access functions:

Specification specification() const
void setSpecification(Specification spec)

Notifier signal:

void specificationChanged(Specification spec)

value : float

Access functions:

float value() const
void setValue(float value)

Notifier signal:

void valueChanged(float value)

Member Function Documentation

QPointSize::QPointSize(Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QPointSize.

QPointSize::~QPointSize()

Destroys the instance of QPointSize.

[protected] void QPointSize::copy(const Qt3DCore::QNode *ref)

bool QPointSize::isProgrammable() const

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.