Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuick3DAudioRoom Class Reference

#include <qquick3daudioroom_p.h>

+ Inheritance diagram for QQuick3DAudioRoom:
+ Collaboration diagram for QQuick3DAudioRoom:

Public Types

enum  Material {
  Transparent , AcousticCeilingTiles , BrickBare , BrickPainted ,
  ConcreteBlockCoarse , ConcreteBlockPainted , CurtainHeavy , FiberGlassInsulation ,
  GlassThin , GlassThick , Grass , LinoleumOnConcrete ,
  Marble , Metal , ParquetOnConcrete , PlasterRough ,
  PlasterSmooth , PlywoodPanel , PolishedConcreteOrTile , Sheetrock ,
  WaterOrIceSurface , WoodCeiling , WoodPanel , Uniform
}
 
- Public Types inherited from QQuick3DNode
enum  TransformSpace { LocalSpace , ParentSpace , SceneSpace }
 
enum  StaticFlags { None }
 

Signals

void positionChanged ()
 
void dimensionsChanged ()
 
void rotationChanged ()
 
void wallsChanged ()
 
void reflectionGainChanged ()
 
void reverbGainChanged ()
 
void reverbTimeChanged ()
 
void reverbBrightnessChanged ()
 
- Signals inherited from QQuick3DNode
void xChanged ()
 
void yChanged ()
 
void zChanged ()
 
void rotationChanged ()
 
void eulerRotationChanged ()
 
void positionChanged ()
 
void scaleChanged ()
 
void pivotChanged ()
 
void localOpacityChanged ()
 
void visibleChanged ()
 
void forwardChanged ()
 
void upChanged ()
 
void rightChanged ()
 
void sceneTransformChanged ()
 
void scenePositionChanged ()
 
void sceneRotationChanged ()
 
void sceneScaleChanged ()
 
void staticFlagsChanged ()
 
- Signals inherited from QQuick3DObject
void parentChanged ()
 
void childrenChanged ()
 
void stateChanged ()
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 

Public Member Functions

 QQuick3DAudioRoom ()
 \qmltype AudioRoom \inqmlmodule QtQuick3D.SpatialAudio
 
 ~QQuick3DAudioRoom ()
 
void setDimensions (QVector3D pos)
 \qmlproperty vector3D AudioRoom::dimensions
 
QVector3D dimensions () const
 
void setLeftMaterial (Material material)
 \qmlproperty AudioRoom::Material AudioRoom::leftMaterial \qmlproperty AudioRoom::Material AudioRoom::rightMaterial \qmlproperty AudioRoom::Material AudioRoom::frontMaterial \qmlproperty AudioRoom::Material AudioRoom::backMaterial \qmlproperty AudioRoom::Material AudioRoom::floorMaterial \qmlproperty AudioRoom::Material AudioRoom::ceilingMaterial
 
Material leftMaterial () const
 
void setRightMaterial (Material material)
 
Material rightMaterial () const
 
void setFrontMaterial (Material material)
 
Material frontMaterial () const
 
void setBackMaterial (Material material)
 
Material backMaterial () const
 
void setFloorMaterial (Material material)
 
Material floorMaterial () const
 
void setCeilingMaterial (Material material)
 
Material ceilingMaterial () const
 
void setReflectionGain (float factor)
 \qmlproperty float AudioRoom::reflectionGain
 
float reflectionGain () const
 
void setReverbGain (float factor)
 \qmlproperty float AudioRoom::reverbGain
 
float reverbGain () const
 
void setReverbTime (float factor)
 \qmlproperty float AudioRoom::reverbTime
 
float reverbTime () const
 
void setReverbBrightness (float factor)
 \qmlproperty float AudioRoom::reverbBrightness
 
float reverbBrightness () const
 
- Public Member Functions inherited from QQuick3DNode
 QQuick3DNode (QQuick3DNode *parent=nullptr)
 \qmltype Node \inherits Object3D \inqmlmodule QtQuick3D
 
 ~QQuick3DNode () override
 
float x () const
 \qmlproperty real QtQuick3D::Node::x
 
float y () const
 \qmlproperty real QtQuick3D::Node::y
 
float z () const
 \qmlproperty real QtQuick3D::Node::z
 
QQuaternion rotation () const
 \qmlproperty quaternion QtQuick3D::Node::rotation
 
QVector3D eulerRotation () const
 \qmlproperty vector3d QtQuick3D::Node::eulerRotation
 
QVector3D position () const
 \qmlproperty vector3d QtQuick3D::Node::position
 
QVector3D scale () const
 \qmlproperty vector3d QtQuick3D::Node::scale
 
QVector3D pivot () const
 \qmlproperty vector3d QtQuick3D::Node::pivot
 
float localOpacity () const
 \qmlproperty real QtQuick3D::Node::opacity
 
bool visible () const
 \qmlproperty bool QtQuick3D::Node::visible
 
int staticFlags () const
 \qmlproperty int QtQuick3D::Node::staticFlags
 
QQuick3DNodeparentNode () const
 
QVector3D forward () const
 \qmlproperty vector3d QtQuick3D::Node::forward \readonly
 
QVector3D up () const
 \qmlproperty vector3d QtQuick3D::Node::up \readonly
 
QVector3D right () const
 \qmlproperty vector3d QtQuick3D::Node::right \readonly
 
QVector3D scenePosition () const
 \qmlproperty vector3d QtQuick3D::Node::scenePosition \readonly
 
QQuaternion sceneRotation () const
 \qmlproperty quaternion QtQuick3D::Node::sceneRotation \readonly
 
QVector3D sceneScale () const
 \qmlproperty vector3d QtQuick3D::Node::sceneScale \readonly
 
QMatrix4x4 sceneTransform () const
 \qmlproperty matrix4x4 QtQuick3D::Node::sceneTransform \readonly
 
Q_INVOKABLE void rotate (qreal degrees, const QVector3D &axis, QQuick3DNode::TransformSpace space)
 \qmlmethod QtQuick3D::Node::rotate(real degrees, vector3d axis, enumeration space)
 
Q_INVOKABLE QVector3D mapPositionToScene (const QVector3D &localPosition) const
 \qmlmethod vector3d QtQuick3D::Node::mapPositionToScene(vector3d localPosition)
 
Q_INVOKABLE QVector3D mapPositionFromScene (const QVector3D &scenePosition) const
 \qmlmethod vector3d QtQuick3D::Node::mapPositionFromScene(vector3d scenePosition)
 
Q_INVOKABLE QVector3D mapPositionToNode (const QQuick3DNode *node, const QVector3D &localPosition) const
 \qmlmethod vector3d QtQuick3D::Node::mapPositionToNode(QtQuick3D::Node node, vector3d localPosition)
 
Q_INVOKABLE QVector3D mapPositionFromNode (const QQuick3DNode *node, const QVector3D &localPosition) const
 \qmlmethod vector3d QtQuick3D::Node::mapPositionFromNode(QtQuick3D::Node node, vector3d localPosition)
 
Q_INVOKABLE QVector3D mapDirectionToScene (const QVector3D &localDirection) const
 \qmlmethod vector3d QtQuick3D::Node::mapDirectionToScene(vector3d localDirection)
 
Q_INVOKABLE QVector3D mapDirectionFromScene (const QVector3D &sceneDirection) const
 \qmlmethod vector3d QtQuick3D::Node::mapDirectionFromScene(vector3d sceneDirection)
 
Q_INVOKABLE QVector3D mapDirectionToNode (const QQuick3DNode *node, const QVector3D &localDirection) const
 \qmlmethod vector3d QtQuick3D::Node::mapDirectionToNode(QtQuick3D::Node node, vector3d localDirection)
 
Q_INVOKABLE QVector3D mapDirectionFromNode (const QQuick3DNode *node, const QVector3D &localDirection) const
 \qmlmethod vector3d QtQuick3D::Node::mapDirectionFromNode(QtQuick3D::Node node, vector3d localDirection)
 
void markAllDirty () override
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 
- Public Member Functions inherited from QQmlParserStatus
 QQmlParserStatus ()
 
virtual ~QQmlParserStatus ()
 

Protected Slots

void updatePosition ()
 
void updateRotation ()
 

Properties

QVector3D position
 
QVector3D dimensions
 
QQuaternion rotation
 
Material leftMaterial
 
Material rightMaterial
 
Material frontMaterial
 
Material backMaterial
 
Material floorMaterial
 
Material ceilingMaterial
 
float reflectionGain
 
float reverbGain
 
float reverbTime
 
float reverbBrightness
 
- Properties inherited from QQuick3DNode
float x
 
float y
 
float z
 
QQuaternion rotation
 
QVector3D eulerRotation
 
QVector3D position
 
QVector3D scale
 
QVector3D pivot
 
float opacity
 
bool visible
 
QVector3D forward
 
QVector3D up
 
QVector3D right
 
QVector3D scenePosition
 
QQuaternion sceneRotation
 
QVector3D sceneScale
 
QMatrix4x4 sceneTransform
 
int staticFlags
 
- Properties inherited from QQuick3DObject
QQuick3DObjectparent
 \qmlproperty Object3D QtQuick3D::Object3D::parent This property holds the parent of the Object3D in a 3D scene.
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Additional Inherited Members

- Public Slots inherited from QQuick3DNode
void setX (float x)
 
void setY (float y)
 
void setZ (float z)
 
void setRotation (const QQuaternion &rotation)
 
void setEulerRotation (const QVector3D &eulerRotation)
 
void setPosition (const QVector3D &position)
 
void setScale (const QVector3D &scale)
 
void setPivot (const QVector3D &pivot)
 
void setLocalOpacity (float opacity)
 
void setVisible (bool visible)
 
void setStaticFlags (int staticFlags)
 
- Public Slots inherited from QQuick3DObject
void update ()
 
void setParentItem (QQuick3DObject *parentItem)
 
- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Protected Member Functions inherited from QQuick3DNode
void connectNotify (const QMetaMethod &signal) override
 
void disconnectNotify (const QMetaMethod &signal) override
 
void componentComplete () override
 Invoked after the root component that caused this instantiation has completed construction.
 
 QQuick3DNode (QQuick3DNodePrivate &dd, QQuick3DNode *parent=nullptr)
 
QSSGRenderGraphObjectupdateSpatialNode (QSSGRenderGraphObject *node) override
 
virtual void itemChange (ItemChange, const ItemChangeData &) override
 
- Protected Member Functions inherited from QQuick3DObject
 QQuick3DObject (QQuick3DObjectPrivate &dd, QQuick3DObject *parent=nullptr)
 
void classBegin () override
 Invoked after class creation, but before any properties have been set.
 
void componentComplete () override
 Invoked after the root component that caused this instantiation has completed construction.
 
bool isComponentComplete () const
 
virtual void preSync ()
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Detailed Description

Definition at line 27 of file qquick3daudioroom_p.h.

Member Enumeration Documentation

◆ Material

Enumerator
Transparent 
AcousticCeilingTiles 
BrickBare 
BrickPainted 
ConcreteBlockCoarse 
ConcreteBlockPainted 
CurtainHeavy 
FiberGlassInsulation 
GlassThin 
GlassThick 
Grass 
LinoleumOnConcrete 
Marble 
Metal 
ParquetOnConcrete 
PlasterRough 
PlasterSmooth 
PlywoodPanel 
PolishedConcreteOrTile 
Sheetrock 
WaterOrIceSurface 
WoodCeiling 
WoodPanel 
Uniform 

Definition at line 48 of file qquick3daudioroom_p.h.

Constructor & Destructor Documentation

◆ QQuick3DAudioRoom()

QT_BEGIN_NAMESPACE QQuick3DAudioRoom::QQuick3DAudioRoom ( )

\qmltype AudioRoom \inqmlmodule QtQuick3D.SpatialAudio

Defines a room for the spatial audio engine.

If the listener is inside a room, first order sound reflections and reverb matching the rooms properties will get applied to the sound field.

A room is always square and defined by its center position, its orientation and dimensions. Each of the 6 walls of the room can be made of different materials that will contribute to the computed reflections and reverb that the listener will experience while being inside the room.

If multiple rooms cover the same position, the engine will use the room with the smallest volume.

Definition at line 29 of file qquick3daudioroom.cpp.

References QObject::connect(), QAudioRoom::dimensionsChanged(), dimensionsChanged(), QQuick3DAudioEngine::getEngine(), QAudioRoom::reflectionGainChanged(), reflectionGainChanged(), QAudioRoom::reverbBrightnessChanged(), reverbBrightnessChanged(), QAudioRoom::reverbGainChanged(), reverbGainChanged(), QAudioRoom::reverbTimeChanged(), reverbTimeChanged(), QAudioRoom::rotationChanged(), rotationChanged(), QQuick3DNode::scenePositionChanged(), QQuick3DNode::sceneRotationChanged(), updatePosition(), updateRotation(), QAudioRoom::wallsChanged(), and wallsChanged().

+ Here is the call graph for this function:

◆ ~QQuick3DAudioRoom()

QQuick3DAudioRoom::~QQuick3DAudioRoom ( )

Definition at line 44 of file qquick3daudioroom.cpp.

Member Function Documentation

◆ backMaterial()

QQuick3DAudioRoom::Material QQuick3DAudioRoom::backMaterial ( ) const

Definition at line 157 of file qquick3daudioroom.cpp.

References QAudioRoom::BackWall, and QAudioRoom::wallMaterial().

+ Here is the call graph for this function:

◆ ceilingMaterial()

QQuick3DAudioRoom::Material QQuick3DAudioRoom::ceilingMaterial ( ) const

Definition at line 177 of file qquick3daudioroom.cpp.

References QAudioRoom::Ceiling, and QAudioRoom::wallMaterial().

+ Here is the call graph for this function:

◆ dimensions()

QVector3D QQuick3DAudioRoom::dimensions ( ) const

Definition at line 62 of file qquick3daudioroom.cpp.

References QAudioRoom::dimensions.

◆ dimensionsChanged

void QQuick3DAudioRoom::dimensionsChanged ( )
signal

Referenced by QQuick3DAudioRoom().

+ Here is the caller graph for this function:

◆ floorMaterial()

QQuick3DAudioRoom::Material QQuick3DAudioRoom::floorMaterial ( ) const

Definition at line 167 of file qquick3daudioroom.cpp.

References QAudioRoom::Floor, and QAudioRoom::wallMaterial().

+ Here is the call graph for this function:

◆ frontMaterial()

QQuick3DAudioRoom::Material QQuick3DAudioRoom::frontMaterial ( ) const

Definition at line 147 of file qquick3daudioroom.cpp.

References QAudioRoom::FrontWall, and QAudioRoom::wallMaterial().

+ Here is the call graph for this function:

◆ leftMaterial()

QQuick3DAudioRoom::Material QQuick3DAudioRoom::leftMaterial ( ) const

Definition at line 127 of file qquick3daudioroom.cpp.

References QAudioRoom::LeftWall, and QAudioRoom::wallMaterial().

+ Here is the call graph for this function:

◆ positionChanged

void QQuick3DAudioRoom::positionChanged ( )
signal

◆ reflectionGain()

float QQuick3DAudioRoom::reflectionGain ( ) const

Definition at line 197 of file qquick3daudioroom.cpp.

References QAudioRoom::reflectionGain.

◆ reflectionGainChanged

void QQuick3DAudioRoom::reflectionGainChanged ( )
signal

Referenced by QQuick3DAudioRoom().

+ Here is the caller graph for this function:

◆ reverbBrightness()

float QQuick3DAudioRoom::reverbBrightness ( ) const

Definition at line 255 of file qquick3daudioroom.cpp.

References QAudioRoom::reverbBrightness.

◆ reverbBrightnessChanged

void QQuick3DAudioRoom::reverbBrightnessChanged ( )
signal

Referenced by QQuick3DAudioRoom().

+ Here is the caller graph for this function:

◆ reverbGain()

float QQuick3DAudioRoom::reverbGain ( ) const

Definition at line 217 of file qquick3daudioroom.cpp.

References QAudioRoom::reverbGain.

◆ reverbGainChanged

void QQuick3DAudioRoom::reverbGainChanged ( )
signal

Referenced by QQuick3DAudioRoom().

+ Here is the caller graph for this function:

◆ reverbTime()

float QQuick3DAudioRoom::reverbTime ( ) const

Definition at line 236 of file qquick3daudioroom.cpp.

References QAudioRoom::reverbTime.

◆ reverbTimeChanged

void QQuick3DAudioRoom::reverbTimeChanged ( )
signal

Referenced by QQuick3DAudioRoom().

+ Here is the caller graph for this function:

◆ rightMaterial()

QQuick3DAudioRoom::Material QQuick3DAudioRoom::rightMaterial ( ) const

Definition at line 137 of file qquick3daudioroom.cpp.

References QAudioRoom::RightWall, and QAudioRoom::wallMaterial().

+ Here is the call graph for this function:

◆ rotationChanged

void QQuick3DAudioRoom::rotationChanged ( )
signal

Referenced by QQuick3DAudioRoom().

+ Here is the caller graph for this function:

◆ setBackMaterial()

void QQuick3DAudioRoom::setBackMaterial ( Material material)

Definition at line 152 of file qquick3daudioroom.cpp.

References QAudioRoom::BackWall, and QAudioRoom::setWallMaterial().

+ Here is the call graph for this function:

◆ setCeilingMaterial()

void QQuick3DAudioRoom::setCeilingMaterial ( Material material)

Definition at line 172 of file qquick3daudioroom.cpp.

References QAudioRoom::Ceiling, and QAudioRoom::setWallMaterial().

+ Here is the call graph for this function:

◆ setDimensions()

void QQuick3DAudioRoom::setDimensions ( QVector3D dim)

\qmlproperty vector3D AudioRoom::dimensions

Defines the dimensions of the room in 3D space. Units are in centimeters by default.

See also
QtQuick3D::Node::position

Definition at line 57 of file qquick3daudioroom.cpp.

References QAudioRoom::setDimensions().

+ Here is the call graph for this function:

◆ setFloorMaterial()

void QQuick3DAudioRoom::setFloorMaterial ( Material material)

Definition at line 162 of file qquick3daudioroom.cpp.

References QAudioRoom::Floor, and QAudioRoom::setWallMaterial().

+ Here is the call graph for this function:

◆ setFrontMaterial()

void QQuick3DAudioRoom::setFrontMaterial ( Material material)

Definition at line 142 of file qquick3daudioroom.cpp.

References QAudioRoom::FrontWall, and QAudioRoom::setWallMaterial().

+ Here is the call graph for this function:

◆ setLeftMaterial()

void QQuick3DAudioRoom::setLeftMaterial ( Material material)

\qmlproperty AudioRoom::Material AudioRoom::leftMaterial \qmlproperty AudioRoom::Material AudioRoom::rightMaterial \qmlproperty AudioRoom::Material AudioRoom::frontMaterial \qmlproperty AudioRoom::Material AudioRoom::backMaterial \qmlproperty AudioRoom::Material AudioRoom::floorMaterial \qmlproperty AudioRoom::Material AudioRoom::ceilingMaterial

Sets the material to use for the different sides of the room. Properties correlate to coordinates as follows:

\table \header

  • Property
  • Coordinate \row
  • left
  • Negative x \row
  • right
  • Positive x \row
  • back
  • Negative z \row
  • front
  • Positive z \row
  • floor
  • Negative y \row
  • ceiling
  • Positive y \endtable

Valid values for the material are:

\table \header

  • Property value
  • Description \row
  • Transparent
  • The side of the room is open and won't contribute to reflections or reverb. \row
  • AcousticCeilingTiles
  • Acoustic tiles that suppress most reflections and reverb. \row
  • BrickBare
  • A bare brick wall. \row
  • BrickPainted
  • A painted brick wall. \row
  • ConcreteBlockCoarse
  • A raw concrete wall \row
  • ConcreteBlockPainted
  • A painted concrete wall \row
  • CurtainHeavy
  • A heavy curtain. Will mostly reflect low frequencies \row
  • FiberGlassInsulation
  • Fiber glass insulation. Only reflects very low frequencies \row
  • GlassThin
  • A thin glass wall \row
  • GlassThick
  • A thick glass wall \row
  • Grass
  • Grass \row
  • LinoleumOnConcrete
  • A Linoleum floor \row
  • Marble
  • A marble floor \row
  • Metal
  • Metal \row
  • ParquetOnConcrete
  • Parquet wooden floor on concrete \row
  • PlasterRough
  • Rough plaster \row
  • PlasterSmooth
  • Smooth plaster \row
  • PlywoodPanel
  • Plywodden panel \row
  • PolishedConcreteOrTile
  • Polished concrete or tiles \row
  • Sheetrock
  • Rock \row
  • WaterOrIceSurface
  • Water or ice \row
  • WoodCeiling
  • A wooden ceiling \row
  • WoodPanel
  • Wooden panel \row
  • Uniform
  • Artificial material giving uniform reflections on all frequencies \endtable

Definition at line 122 of file qquick3daudioroom.cpp.

References QAudioRoom::LeftWall, and QAudioRoom::setWallMaterial().

+ Here is the call graph for this function:

◆ setReflectionGain()

void QQuick3DAudioRoom::setReflectionGain ( float factor)

\qmlproperty float AudioRoom::reflectionGain

A gain factor for reflections generated in this room. A value from 0 to 1 will dampen reflections, while a value larger than 1 will apply a gain to reflections, making them louder.

The default is 1, a factor of 0 disables reflections. Negative values are mapped to 0.

Definition at line 192 of file qquick3daudioroom.cpp.

References QAudioRoom::setReflectionGain().

+ Here is the call graph for this function:

◆ setReverbBrightness()

void QQuick3DAudioRoom::setReverbBrightness ( float factor)

\qmlproperty float AudioRoom::reverbBrightness

A brightness factor to be applied to the generated reverb. A positive value will increase reverb for higher frequencies and dampen lower frequencies, a negative value does the reverse.

The default is 0.

Definition at line 250 of file qquick3daudioroom.cpp.

References QAudioRoom::setReverbBrightness().

+ Here is the call graph for this function:

◆ setReverbGain()

void QQuick3DAudioRoom::setReverbGain ( float factor)

\qmlproperty float AudioRoom::reverbGain

A gain factor for reverb generated in this room. A value from 0 to 1 will dampen reverb, while a value larger than 1 will apply a gain to the reverb, making it louder.

The default is 1, a factor of 0 disables reverb. Negative values are mapped to 0.

Definition at line 212 of file qquick3daudioroom.cpp.

References QAudioRoom::setReverbGain().

+ Here is the call graph for this function:

◆ setReverbTime()

void QQuick3DAudioRoom::setReverbTime ( float factor)

\qmlproperty float AudioRoom::reverbTime

A factor to be applies to all reverb timings generated for this room. Larger values will lead to longer reverb timings, making the room sound larger.

The default is 1. Negative values are mapped to 0.

Definition at line 231 of file qquick3daudioroom.cpp.

References QAudioRoom::setReverbTime().

+ Here is the call graph for this function:

◆ setRightMaterial()

void QQuick3DAudioRoom::setRightMaterial ( Material material)

Definition at line 132 of file qquick3daudioroom.cpp.

References QAudioRoom::RightWall, and QAudioRoom::setWallMaterial().

+ Here is the call graph for this function:

◆ updatePosition

void QQuick3DAudioRoom::updatePosition ( )
protectedslot

Definition at line 260 of file qquick3daudioroom.cpp.

References QQuick3DNode::scenePosition, and QAudioRoom::setPosition().

Referenced by QQuick3DAudioRoom().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateRotation

void QQuick3DAudioRoom::updateRotation ( )
protectedslot

Definition at line 265 of file qquick3daudioroom.cpp.

References QQuick3DNode::sceneRotation, and QAudioRoom::setRotation().

Referenced by QQuick3DAudioRoom().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ wallsChanged

void QQuick3DAudioRoom::wallsChanged ( )
signal

Referenced by QQuick3DAudioRoom().

+ Here is the caller graph for this function:

Property Documentation

◆ backMaterial

Material QQuick3DAudioRoom::backMaterial
readwrite

Definition at line 36 of file qquick3daudioroom_p.h.

◆ ceilingMaterial

Material QQuick3DAudioRoom::ceilingMaterial
readwrite

Definition at line 38 of file qquick3daudioroom_p.h.

◆ dimensions

QVector3D QQuick3DAudioRoom::dimensions
readwrite

Definition at line 31 of file qquick3daudioroom_p.h.

◆ floorMaterial

Material QQuick3DAudioRoom::floorMaterial
readwrite

Definition at line 37 of file qquick3daudioroom_p.h.

◆ frontMaterial

Material QQuick3DAudioRoom::frontMaterial
readwrite

Definition at line 35 of file qquick3daudioroom_p.h.

◆ leftMaterial

Material QQuick3DAudioRoom::leftMaterial
readwrite

Definition at line 33 of file qquick3daudioroom_p.h.

◆ position

QVector3D QQuick3DAudioRoom::position
readwrite

Definition at line 30 of file qquick3daudioroom_p.h.

◆ reflectionGain

float QQuick3DAudioRoom::reflectionGain
readwrite

Definition at line 39 of file qquick3daudioroom_p.h.

◆ reverbBrightness

float QQuick3DAudioRoom::reverbBrightness
readwrite

Definition at line 42 of file qquick3daudioroom_p.h.

◆ reverbGain

float QQuick3DAudioRoom::reverbGain
readwrite

Definition at line 40 of file qquick3daudioroom_p.h.

◆ reverbTime

float QQuick3DAudioRoom::reverbTime
readwrite

Definition at line 41 of file qquick3daudioroom_p.h.

◆ rightMaterial

Material QQuick3DAudioRoom::rightMaterial
readwrite

Definition at line 34 of file qquick3daudioroom_p.h.

◆ rotation

QQuaternion QQuick3DAudioRoom::rotation
readwrite

Definition at line 32 of file qquick3daudioroom_p.h.


The documentation for this class was generated from the following files: