Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/3dview/gridmesh.cpp
Show All 30 Lines | |||||
31 | { | 31 | { | ||
32 | setInstanceCount(1); | 32 | setInstanceCount(1); | ||
33 | setIndexOffset(0); | 33 | setIndexOffset(0); | ||
34 | setFirstInstance(0); | 34 | setFirstInstance(0); | ||
35 | setPrimitiveType(Qt3DRender::QGeometryRenderer::Lines); | 35 | setPrimitiveType(Qt3DRender::QGeometryRenderer::Lines); | ||
36 | setMeshResolution(QSize(20, 20)); | 36 | setMeshResolution(QSize(20, 20)); | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | GridMesh::~GridMesh() | | |||
40 | { | | |||
41 | } | | |||
42 | | ||||
43 | QSize GridMesh::meshResolution() const | 39 | QSize GridMesh::meshResolution() const | ||
44 | { | 40 | { | ||
45 | return m_meshResolution; | 41 | return m_meshResolution; | ||
46 | } | 42 | } | ||
47 | 43 | | |||
48 | void GridMesh::setMeshResolution(const QSize &meshResolution) | 44 | void GridMesh::setMeshResolution(const QSize &meshResolution) | ||
49 | { | 45 | { | ||
50 | if (meshResolution == m_meshResolution) { | 46 | if (meshResolution == m_meshResolution) { | ||
Show All 32 Lines |