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
infinitegrid_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DINFINITEGRID_H
5#define QQUICK3DINFINITEGRID_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QQuick3DObject>
19
21
23
25{
28
29 QML_NAMED_ELEMENT(InfiniteGrid)
33
34public:
36 ~QQuick3DInfiniteGrid() override;
37 bool visible() const;
38 void setVisible(bool newVisible);
39 float gridInterval() const;
40 void setGridInterval(float newGridInterval);
41 void componentComplete() override;
42 void classBegin() override;
43
44 bool gridAxes() const;
45 void setGridAxes(bool newGridAxes);
46
50
52
54 void updateGridFlags();
55 bool m_visible = true;
56 float m_gridInterval = 1.0f;
57 QQuick3DSceneEnvironment *m_sceneEnv = nullptr;
58 bool m_componentComplete = false;
59 bool m_gridAxes = true;
60};
61
63
64#endif // QQUICK3DINFINITEGRID_H
\inmodule QtCore
Definition qobject.h:103
The QQmlParserStatus class provides updates on the QML parser state.
void setVisible(bool newVisible)
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.
void setGridInterval(float newGridInterval)
void setGridAxes(bool newGridAxes)
Combined button and popup list for selecting options.
GLfloat GLfloat f
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_INTERFACES(x)
#define signals