Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
gridgeometry_p.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef GRID_GEOMETRY_H
16#define GRID_GEOMETRY_H
17
18#include <QtQuick3D/private/qquick3dgeometry_p.h>
19
20// Workaround for QTBUG-94099, ensures qml_register_types...() is exported
22
24
26{
33
34public:
36 ~GridGeometry() override;
37
38 int horizontalLines() const;
39 int verticalLines() const;
40 float horizontalStep() const;
41 float verticalStep() const;
42
43public Q_SLOTS:
44 void setHorizontalLines(int count);
45 void setVerticalLines(int count);
46 void setHorizontalStep(float step);
47 void setVerticalStep(float step);
48
54
55private:
56 void updateData();
57
58 int m_horLines = 1000;
59 int m_vertLines = 1000;
60 float m_horStep = .1f;
61 float m_vertStep = .1f;
62};
63
65
66#endif
GridGeometry()
\qmltype GridGeometry \inqmlmodule QtQuick3D.Helpers \inherits Geometry
void setVerticalStep(float step)
void setVerticalLines(int count)
void verticalLinesChanged()
void horizontalLinesChanged()
void horizontalStepChanged()
void verticalStepChanged()
void setHorizontalLines(int count)
~GridGeometry() override
void setHorizontalStep(float step)
\qmltype Geometry \inherits Object3D \inqmlmodule QtQuick3D \instantiates QQuick3DGeometry
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS