Skip to content

RoadMesh

#include <roadmesh.h>

Inherits from Qt3DRender::QGeometryRenderer, Serenity::Mesh

Public Signals

Name
void meshResolutionChanged(int resolution)
void widthChanged(float width)
void upVectorChanged(const QVector3D & upVector)
void textureOffsetChanged(const QVector2D & textureOffset)
void textureScaleChanged(const QVector2D & textureScale)
void pathChanged(const RoadPath & curve)

Public Functions

Name
RoadMesh(Qt3DCore::QNode * parent =nullptr)
~RoadMesh() override
int meshResolution() const
void setMeshResolution(int resolution)
float width() const
void setWidth(float width)
QVector3D upVector() const
void setUpVector(const QVector3D & upVector)
QVector2D textureOffset() const
void setTextureOffset(const QVector2D & textureOffset)
QVector2D textureScale() const
void setTextureScale(const QVector2D & textureScale)
RoadPath path() const
void setPath(const RoadPath & path)
RoadMesh()
~RoadMesh()

Public Properties

Name
int meshResolution
float width
QVector3D upVector
QVector2D textureOffset
QVector2D textureScale
RoadPath path

Public Attributes

Name
RoadPath path
int meshResolution
float width
QVector3D upVector
QVector2D textureOffset
QVector2D textureScale

Public Signals Documentation

signal meshResolutionChanged

1
2
3
void meshResolutionChanged(
    int resolution
)

signal widthChanged

1
2
3
void widthChanged(
    float width
)

signal upVectorChanged

1
2
3
void upVectorChanged(
    const QVector3D & upVector
)

signal textureOffsetChanged

1
2
3
void textureOffsetChanged(
    const QVector2D & textureOffset
)

signal textureScaleChanged

1
2
3
void textureScaleChanged(
    const QVector2D & textureScale
)

signal pathChanged

1
2
3
void pathChanged(
    const RoadPath & curve
)

Public Functions Documentation

function RoadMesh

1
2
3
explicit RoadMesh(
    Qt3DCore::QNode * parent =nullptr
)

function ~RoadMesh

1
~RoadMesh() override

function meshResolution

1
int meshResolution() const

function setMeshResolution

1
2
3
void setMeshResolution(
    int resolution
)

function width

1
float width() const

function setWidth

1
2
3
void setWidth(
    float width
)

function upVector

1
QVector3D upVector() const

function setUpVector

1
2
3
void setUpVector(
    const QVector3D & upVector
)

function textureOffset

1
QVector2D textureOffset() const

function setTextureOffset

1
2
3
void setTextureOffset(
    const QVector2D & textureOffset
)

function textureScale

1
QVector2D textureScale() const

function setTextureScale

1
2
3
void setTextureScale(
    const QVector2D & textureScale
)

function path

1
RoadPath path() const

function setPath

1
2
3
void setPath(
    const RoadPath & path
)

function RoadMesh

1
RoadMesh()

function ~RoadMesh

1
~RoadMesh()

Public Property Documentation

property meshResolution

1
int meshResolution;

property width

1
float width;

property upVector

1
QVector3D upVector;

property textureOffset

1
QVector2D textureOffset;

property textureScale

1
QVector2D textureScale;

property path

1
RoadPath path;

Public Attributes Documentation

variable path

1
RoadPath path;

variable meshResolution

1
int meshResolution;

variable width

1
float width;

variable upVector

1
QVector3D upVector;

variable textureOffset

1
QVector2D textureOffset;

variable textureScale

1
QVector2D textureScale;

Updated on 2023-07-03 at 11:02:07 +0000