5#include <QtQuick3D/private/qquick3dviewport_p.h>
71 if (m_visible == newVisible)
73 m_visible = newVisible;
81 return m_gridInterval;
88 m_gridInterval = newGridInterval;
96 m_componentComplete =
true;
99 while (
p && !sceneEnv) {
100 sceneEnv = qobject_cast<QQuick3DSceneEnvironment *>(
p);
104 m_sceneEnv = sceneEnv;
111 qWarning(
"InfiniteGrid needs to be a child of SceneEnvironment.");
126 if (m_gridAxes == newGridAxes)
128 m_gridAxes = newGridAxes;
134void QQuick3DInfiniteGrid::updateGridFlags()
136 enum GridFlags { NoFlag = 0, DrawAxis = 1 };
137 uint newFlags = m_gridAxes ? DrawAxis : NoFlag;
QObject * parent() const
Returns a pointer to the parent object.
void setVisible(bool newVisible)
void classBegin() override
Invoked after class creation, but before any properties have been set.
~QQuick3DInfiniteGrid() override
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void setGridInterval(float newGridInterval)
void gridIntervalChanged()
void setGridAxes(bool newGridAxes)
QQuick3DInfiniteGrid()
\qmlproperty float InfiniteGrid::gridInterval
void setGridScale(float newGridScale)
void setGridEnabled(bool newGridEnabled)
void setGridFlags(uint newGridFlags)
Combined button and popup list for selecting options.
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
bool qFuzzyIsNull(qfloat16 f) noexcept