Qt 5.6 | Qt 3D | C++ Classes | QGeometryRenderer

Qt 5.6.3 Reference Documentation

# QGeometryRenderer Class

(Qt3DRender::QGeometryRenderer)

Header: | #include <QGeometryRenderer>
qmake: | QT += 3drender
Instantiated By: | GeometryRenderer
Inherits: | Qt3DCore::QComponent
Inherited By: | Qt3DRender::QCuboidMesh, Qt3DRender::QCylinderMesh, Qt3DRender::QMesh, Qt3DRender::QPlaneMesh, Qt3DRender::QSphereMesh, and Qt3DRender::QTorusMesh

- List of all members, including inherited members

## Public Types

enum | PrimitiveType { Points, Lines, LineLoop, LineStrip, ..., Patches }

## Properties

- baseInstance : int
- baseVertex : int
- geometry : Qt3DRender::QGeometry *
- instanceCount : int

- primitiveCount : int
- primitiveRestart : bool
- primitiveType : PrimitiveType
- restartIndex : int

- 1 property inherited from Qt3DCore::QComponent
- 2 properties inherited from Qt3DCore::QNode

## Public Functions

| QGeometryRenderer(Qt3DCore::QNode *parent = Q_NULLPTR)
| ~QGeometryRenderer()
int | baseInstance() const
int | baseVertex() const
QGeometry * | geometry() const
QGeometryFunctorPtr | geometryFunctor() const
int | instanceCount() const
int | primitiveCount() const
bool | primitiveRestart() const
PrimitiveType | primitiveType() const
int | restartIndex() const
void | setGeometryFunctor(const QGeometryFunctorPtr &functor)

- 2 public functions inherited from Qt3DCore::QComponent
- 6 public functions inherited from Qt3DCore::QNode

## Public Slots

void | setBaseInstance(int baseInstance)
void | setBaseVertex(int baseVertex)
void | setGeometry(QGeometry *geometry)
void | setInstanceCount(int instanceCount)
void | setPrimitiveCount(int primitiveCount)
void | setPrimitiveRestart(bool enabled)
void | setPrimitiveType(PrimitiveType primitiveType)
void | setRestartIndex(int index)

- 1 public slot inherited from Qt3DCore::QComponent
- 2 public slots inherited from Qt3DCore::QNode

## Signals

void | baseInstanceChanged(int baseInstance)
void | baseVertexChanged(int baseVertex)
void | geometryChanged(QGeometry *geometry)
void | instanceCountChanged(int instanceCount)
void | primitiveCountChanged(int primitiveCount)
void | primitiveRestartChanged(bool primitiveRestart)
void | primitiveTypeChanged(PrimitiveType primitiveType)
void | restartIndexChanged(int restartIndex)

- 2 signals inherited from Qt3DCore::QComponent
- 2 signals inherited from Qt3DCore::QNode

## Protected Functions

| QGeometryRenderer(QGeometryRendererPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)
void | copy(const Qt3DCore::QNode *ref)

- 1 protected function inherited from Qt3DCore::QComponent
- 3 protected functions inherited from Qt3DCore::QNode

### Additional Inherited Members

- 1 static protected member inherited from Qt3DCore::QNode

## Detailed Description

## Member Type Documentation

### enum QGeometryRenderer::PrimitiveType

The type of the primitive.

Constant | Value
--- | ---
`Qt3DRender::QGeometryRenderer::Points` | `0x0000`
`Qt3DRender::QGeometryRenderer::Lines` | `0x0001`
`Qt3DRender::QGeometryRenderer::LineLoop` | `0x0002`
`Qt3DRender::QGeometryRenderer::LineStrip` | `0x0003`
`Qt3DRender::QGeometryRenderer::Triangles` | `0x0004`
`Qt3DRender::QGeometryRenderer::TriangleStrip` | `0x0005`
`Qt3DRender::QGeometryRenderer::TriangleFan` | `0x0006`
`Qt3DRender::QGeometryRenderer::LinesAdjacency` | `0x000A`
`Qt3DRender::QGeometryRenderer::TrianglesAdjacency` | `0x000C`
`Qt3DRender::QGeometryRenderer::LineStripAdjacency` | `0x000B`
`Qt3DRender::QGeometryRenderer::TriangleStripAdjacency` | `0x000D`
`Qt3DRender::QGeometryRenderer::Patches` | `0x000E`

## Property Documentation

### baseInstance : int

Holds the base instance.

Access functions:

int | baseInstance() const
void | setBaseInstance(int baseInstance)

Notifier signal:

void | baseInstanceChanged(int baseInstance)

### baseVertex : int

Holds the base vertex.

Access functions:

int | baseVertex() const
void | setBaseVertex(int baseVertex)

Notifier signal:

void | baseVertexChanged(int baseVertex)

### geometry : Qt3DRender::QGeometry *

Holds the geometry.

Access functions:

QGeometry * | geometry() const
void | setGeometry(QGeometry *geometry)

Notifier signal:

void | geometryChanged(QGeometry *geometry)

### instanceCount : int

Holds the instance count.

Access functions:

int | instanceCount() const
void | setInstanceCount(int instanceCount)

Notifier signal:

void | instanceCountChanged(int instanceCount)

### primitiveCount : int

Holds the primitive count.

Access functions:

int | primitiveCount() const
void | setPrimitiveCount(int primitiveCount)

Notifier signal:

void | primitiveCountChanged(int primitiveCount)

### primitiveRestart : bool

Holds the primitive restart flag.

Access functions:

bool | primitiveRestart() const
void | setPrimitiveRestart(bool enabled)

Notifier signal:

void | primitiveRestartChanged(bool primitiveRestart)

### primitiveType : PrimitiveType

Holds the primitive type.

Access functions:

PrimitiveType | primitiveType() const
void | setPrimitiveType(PrimitiveType primitiveType)

Notifier signal:

void | primitiveTypeChanged(PrimitiveType primitiveType)

### restartIndex : int

Holds the restart index.

Access functions:

int | restartIndex() const
void | setRestartIndex(int index)

Notifier signal:

void | restartIndexChanged(int restartIndex)

## Member Function Documentation

### QGeometryRenderer::QGeometryRenderer(Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QGeometryRenderer.

### `[protected]` QGeometryRenderer::QGeometryRenderer(QGeometryRendererPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)

Copy constructor.

### QGeometryRenderer::~QGeometryRenderer()

Destroys this geometry renderer.

### `[protected]` void QGeometryRenderer::copy(const Qt3DCore::QNode *ref)

### QGeometryFunctorPtr QGeometryRenderer::geometryFunctor() const

Returns the geometry functor.

See also setGeometryFunctor().

### void QGeometryRenderer::setGeometryFunctor(const QGeometryFunctorPtr &functor)

Sets the geometry functor.

See also geometryFunctor().