Base class for renederable 3D QEntities.
More...
#include <renderable3Dentity.h>
|
float | scale |
|
float | rotX |
|
float | rotY |
|
float | rotZ |
|
QVector3D | position |
|
Base class for renederable 3D QEntities.
Base class for renederable 3D QEntities.
Definition at line 88 of file renderable3Dentity.h.
◆ ConstSPtr
◆ SPtr
◆ Renderable3DEntity()
Renderable3DEntity::Renderable3DEntity |
( |
Qt3DCore::QEntity * |
parent = 0 | ) |
|
|
explicit |
Default constructor.
- Parameters
-
[in] | parent | The parent of this entity. |
Definition at line 81 of file renderable3Dentity.cpp.
◆ ~Renderable3DEntity()
Renderable3DEntity::~Renderable3DEntity |
( |
| ) |
|
|
virtual |
◆ applyPosition()
void Renderable3DEntity::applyPosition |
( |
const QVector3D & |
position | ) |
|
|
virtual |
Applies the current position/translation.
- Parameters
-
[in] | position | The position/translation value. |
Definition at line 365 of file renderable3Dentity.cpp.
◆ applyRotX()
void Renderable3DEntity::applyRotX |
( |
float |
rotX | ) |
|
|
virtual |
Applies the current rotation around the x-axis.
- Parameters
-
[in] | rotX | The x-axis rotation value. |
Definition at line 266 of file renderable3Dentity.cpp.
◆ applyRotY()
void Renderable3DEntity::applyRotY |
( |
float |
rotY | ) |
|
|
virtual |
Applies the current rotation around the y-axis.
- Parameters
-
[in] | rotY | The y-axis rotation value. |
Definition at line 299 of file renderable3Dentity.cpp.
◆ applyRotZ()
void Renderable3DEntity::applyRotZ |
( |
float |
rotZ | ) |
|
|
virtual |
Applies the current rotation around the z-axis.
- Parameters
-
[in] | rotZ | The z-axis rotation value. |
Definition at line 332 of file renderable3Dentity.cpp.
◆ applyScale()
void Renderable3DEntity::applyScale |
( |
float |
scale | ) |
|
|
virtual |
◆ applyTransform() [1/2]
Applies a transformation o ntop of the present one.
- Parameters
-
[in] | transform | The new entity's transform. |
[in] | bApplyInverse | Whether to apply the inverse. False by default. |
Definition at line 184 of file renderable3Dentity.cpp.
◆ applyTransform() [2/2]
void Renderable3DEntity::applyTransform |
( |
const Qt3DCore::QTransform & |
transform | ) |
|
|
virtual |
Applies a transformation o ntop of the present one.
- Parameters
-
[in] | transform | The new entity's transform. |
Definition at line 177 of file renderable3Dentity.cpp.
◆ getMaterialParameter()
QVariant Renderable3DEntity::getMaterialParameter |
( |
const QString & |
sParameterName | ) |
|
|
virtual |
Gets the value of a specific parameter of the materials for this entity.
- Parameters
-
[in] | sParameterName | The parameters name. |
- Returns
- The data of the parameter.
Definition at line 449 of file renderable3Dentity.cpp.
◆ getMaterialParameterRecursive()
QPair< bool, QVariant > Renderable3DEntity::getMaterialParameterRecursive |
( |
QObject * |
pObject, |
|
|
const QString & |
sParameterName |
|
) |
| |
|
protectedvirtual |
Gets the value of a specific parameter of the materials for this entity.
- Parameters
-
[in] | pObject | The QObject to be scanned for parameters. |
[in] | sParameterName | The parameters name. |
- Returns
- The data of the parameter.
Definition at line 475 of file renderable3Dentity.cpp.
◆ position()
virtual QVector3D DISP3DLIB::Renderable3DEntity::position |
( |
| ) |
const |
|
virtual |
Returns the current position/translation.
- Returns
- The position/translation value.
◆ positionChanged
void DISP3DLIB::Renderable3DEntity::positionChanged |
( |
QVector3D |
position | ) |
|
|
signal |
Emit this signal whenever the position/translation changed.
- Parameters
-
[in] | position | The position/translation value. |
◆ rotX()
virtual float DISP3DLIB::Renderable3DEntity::rotX |
( |
| ) |
const |
|
virtual |
Returns the current rotation around the x-axis.
- Returns
- The x-axis rotation value.
◆ rotXChanged
void DISP3DLIB::Renderable3DEntity::rotXChanged |
( |
float |
rotX | ) |
|
|
signal |
Emit this signal whenever the x-axis rotation changed.
- Parameters
-
[in] | rotX | The x-axis rotation value. |
◆ rotY()
virtual float DISP3DLIB::Renderable3DEntity::rotY |
( |
| ) |
const |
|
virtual |
Returns the current rotation around the y-axis.
- Returns
- The y-axis rotation value.
◆ rotYChanged
void DISP3DLIB::Renderable3DEntity::rotYChanged |
( |
float |
rotY | ) |
|
|
signal |
Emit this signal whenever the y-axis rotation changed.
- Parameters
-
[in] | rotY | The y-axis rotation value. |
◆ rotZ()
virtual float DISP3DLIB::Renderable3DEntity::rotZ |
( |
| ) |
const |
|
virtual |
Returns the current rotation around the z-axis.
- Returns
- The z-axis rotation value.
◆ rotZChanged
void DISP3DLIB::Renderable3DEntity::rotZChanged |
( |
float |
rotZ | ) |
|
|
signal |
Emit this signal whenever the z-axis rotation changed.
- Parameters
-
[in] | rotZ | The z-axis rotation value. |
◆ scaleChanged
void DISP3DLIB::Renderable3DEntity::scaleChanged |
( |
float |
scale | ) |
|
|
signal |
Emit this signal whenever the scaling changed.
- Parameters
-
[in] | scale | The scaling value. |
◆ scaleValue()
float Renderable3DEntity::scaleValue |
( |
| ) |
const |
|
virtual |
◆ setMaterialParameter()
void Renderable3DEntity::setMaterialParameter |
( |
const QVariant & |
data, |
|
|
const QString & |
sParameterName |
|
) |
| |
|
virtual |
Sets the value of a specific parameter of the materials for this entity.
- Parameters
-
[in] | data | The value to be set. |
[in] | sParameterName | The parameters name. |
Definition at line 441 of file renderable3Dentity.cpp.
◆ setMaterialParameterRecursive()
void Renderable3DEntity::setMaterialParameterRecursive |
( |
QObject * |
pObject, |
|
|
const QVariant & |
data, |
|
|
const QString & |
sParameterName |
|
) |
| |
|
protectedvirtual |
Sets the value of a specific parameter of the materials for this entity.
- Parameters
-
[in] | pObject | The QObject to be scanned for parameters. |
[in] | data | The new data. |
[in] | sParameterName | The parameters name. |
Definition at line 458 of file renderable3Dentity.cpp.
◆ setPosition()
void Renderable3DEntity::setPosition |
( |
const QVector3D & |
position | ) |
|
|
virtual |
Sets the current position/translation.
- Parameters
-
[in] | position | The position/translation value. |
Definition at line 381 of file renderable3Dentity.cpp.
◆ setRotX()
void Renderable3DEntity::setRotX |
( |
float |
rotX | ) |
|
|
virtual |
Sets the current rotation around the x-axis.
- Parameters
-
[in] | rotX | The x-axis rotation value. |
Definition at line 282 of file renderable3Dentity.cpp.
◆ setRotY()
void Renderable3DEntity::setRotY |
( |
float |
rotY | ) |
|
|
virtual |
Sets the current rotation around the x-axis.
- Parameters
-
[in] | rotY | The y-axis rotation value. |
Definition at line 315 of file renderable3Dentity.cpp.
◆ setRotZ()
void Renderable3DEntity::setRotZ |
( |
float |
rotZ | ) |
|
|
virtual |
Sets the current rotation around the x-axis.
- Parameters
-
[in] | rotZ | The z-axis rotation value. |
Definition at line 348 of file renderable3Dentity.cpp.
◆ setScale()
void Renderable3DEntity::setScale |
( |
float |
scale | ) |
|
|
virtual |
◆ setTransform() [1/2]
Sets the entity's transformation. This will clear the old transformation.
- Parameters
-
[in] | transform | The new entity's transform. |
[in] | bApplyInverse | Whether to apply the inverse. False by default. |
Definition at line 130 of file renderable3Dentity.cpp.
◆ setTransform() [2/2]
void Renderable3DEntity::setTransform |
( |
const Qt3DCore::QTransform & |
transform | ) |
|
|
virtual |
Manual garbage collection, since Qt3D is still a bit buggy when it come to memory handling. Sets the entity's transformation. This will clear the old transformation.
- Parameters
-
[in] | transform | The new entity's transform. |
Definition at line 123 of file renderable3Dentity.cpp.
◆ setVisible()
void Renderable3DEntity::setVisible |
( |
bool |
state | ) |
|
|
virtual |
Call this function whenever you want to change the visibilty of the 3D rendered content.
- Parameters
-
[in] | state | The visiblity flag. |
Definition at line 431 of file renderable3Dentity.cpp.
◆ m_fRotX
float DISP3DLIB::Renderable3DEntity::m_fRotX |
|
protected |
◆ m_fRotY
float DISP3DLIB::Renderable3DEntity::m_fRotY |
|
protected |
◆ m_fRotZ
float DISP3DLIB::Renderable3DEntity::m_fRotZ |
|
protected |
◆ m_fScale
float DISP3DLIB::Renderable3DEntity::m_fScale |
|
protected |
◆ m_position
QVector3D DISP3DLIB::Renderable3DEntity::m_position |
|
protected |
◆ m_pTransform
QPointer<Qt3DCore::QTransform> DISP3DLIB::Renderable3DEntity::m_pTransform |
|
protected |
The documentation for this class was generated from the following files: