Q3DObject Class

The Q3DObject class is a simple base class for all the objects in a 3D scene. More...

Header: #include <Q3DObject>
qmake: QT += datavisualization
Since: QtDataVisualization 1.0
Instantiated By: Object3D
Inherits: QObject
Inherited By:

Q3DCamera and Q3DLight

This class was introduced in QtDataVisualization 1.0.

Properties

Public Functions

Q3DScene *parentScene()
QVector3D position() const
void setPosition(const QVector3D &position)

Signals

void positionChanged(const QVector3D &position)

Detailed Description

Contains position information for an object in a 3D scene. The object is considered to be a single point in the coordinate space without dimensions.

Property Documentation

parentScene : Q3DScene* const

This property holds the parent scene as a read only value.

If the object has no parent scene, the value is 0.

Access functions:

Q3DScene *parentScene()

position : QVector3D

This property holds the 3D position of the object.

Note: Currently setting this property has no effect for Q3DCamera, as the position is handled internally.

Access functions:

QVector3D position() const
void setPosition(const QVector3D &position)

Notifier signal:

void positionChanged(const QVector3D &position)