Encapsulates geometry details. 更多...
头: | #include <QGeometryView> |
CMake: |
find_package(Qt6 COMPONENTS 3dcore REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::3dcore) |
qmake: | QT += 3dcore |
Since: | Qt 6.0 |
实例化: | GeometryView |
继承: | Qt3DCore::QNode |
继承者: | Qt3DExtras::QConeGeometryView , Qt3DExtras::QCuboidGeometryView , Qt3DExtras::QCylinderGeometryView , Qt3DExtras::QPlaneGeometryView , Qt3DExtras::QSphereGeometryView ,和 Qt3DExtras::QTorusGeometryView |
enum | PrimitiveType { Points, Lines, LineLoop, LineStrip, Triangles, …, Patches } |
|
|
QGeometryView (Qt3DCore::QNode * parent = nullptr) | |
int | firstInstance () const |
int | firstVertex () const |
Qt3DCore::QGeometry * | geometry () const |
int | indexBufferByteOffset () const |
int | indexOffset () const |
int | instanceCount () const |
bool | primitiveRestartEnabled () const |
Qt3DCore::QGeometryView::PrimitiveType | primitiveType () const |
int | restartIndexValue () const |
int | vertexCount () const |
int | verticesPerPatch () const |
void | setFirstInstance (int firstInstance ) |
void | setFirstVertex (int firstVertex ) |
void | setGeometry (Qt3DCore::QGeometry * geometry ) |
void | setIndexBufferByteOffset (int offset ) |
void | setIndexOffset (int indexOffset ) |
void | setInstanceCount (int instanceCount ) |
void | setPrimitiveRestartEnabled (bool enabled ) |
void | setPrimitiveType (Qt3DCore::QGeometryView::PrimitiveType primitiveType ) |
void | setRestartIndexValue (int index ) |
void | setVertexCount (int vertexCount ) |
void | setVerticesPerPatch (int verticesPerPatch ) |
void | firstInstanceChanged (int firstInstance ) |
void | firstVertexChanged (int firstVertex ) |
void | geometryChanged (Qt3DCore::QGeometry * geometry ) |
void | indexBufferByteOffsetChanged (int offset ) |
void | indexOffsetChanged (int indexOffset ) |
void | instanceCountChanged (int instanceCount ) |
void | primitiveRestartEnabledChanged (bool primitiveRestartEnabled ) |
void | primitiveTypeChanged (Qt3DCore::QGeometryView::PrimitiveType primitiveType ) |
void | restartIndexValueChanged (int restartIndexValue ) |
void | vertexCountChanged (int vertexCount ) |
void | verticesPerPatchChanged (int verticesPerPatch ) |
A GeometryView holds all the information necessary to handle a Geometry. A Geometry holds the coordinates of the geometry data - GeometryView specifies how to interpret that data.
The type of the primitive.
常量 | 值 | 描述 |
---|---|---|
Qt3DCore::QGeometryView::Points
|
0x0000
|
List of points |
Qt3DCore::QGeometryView::Lines
|
0x0001
|
List of lines |
Qt3DCore::QGeometryView::LineLoop
|
0x0002
|
Connected group of lines connected at ends forming a loop |
Qt3DCore::QGeometryView::LineStrip
|
0x0003
|
Connected group of lines |
Qt3DCore::QGeometryView::Triangles
|
0x0004
|
List of triangles |
Qt3DCore::QGeometryView::TriangleStrip
|
0x0005
|
List of connected triangles |
Qt3DCore::QGeometryView::TriangleFan
|
0x0006
|
List of connected triagles where all triangles share the first vertex |
Qt3DCore::QGeometryView::LinesAdjacency
|
0x000A
|
Allows geometry shader to access adjacent lines in a line list |
Qt3DCore::QGeometryView::TrianglesAdjacency
|
0x000C
|
Allows geometry shader to access adjacent triangles in a triangle list |
Qt3DCore::QGeometryView::LineStripAdjacency
|
0x000B
|
Allows geometry shader to access adjacent lines in a line strip |
Qt3DCore::QGeometryView::TriangleStripAdjacency
|
0x000D
|
Allows geometry shader to access adjacent triangles in a triangle strip |
Qt3DCore::QGeometryView::Patches
|
0x000E
|
Only primitive type accepted by tesselation shader where a patch consists of arbitrary number of vertices |
Holds the base instance.
访问函数:
int | firstInstance () const |
void | setFirstInstance (int firstInstance ) |
通知程序信号:
void | firstInstanceChanged (int firstInstance ) |
Holds the base vertex.
访问函数:
int | firstVertex () const |
void | setFirstVertex (int firstVertex ) |
通知程序信号:
void | firstVertexChanged (int firstVertex ) |
Holds the geometry.
访问函数:
Qt3DCore::QGeometry * | geometry () const |
void | setGeometry (Qt3DCore::QGeometry * geometry ) |
通知程序信号:
void | geometryChanged (Qt3DCore::QGeometry * geometry ) |
Holds the byte offset into the index buffer.
访问函数:
int | indexBufferByteOffset () const |
void | setIndexBufferByteOffset (int offset ) |
通知程序信号:
void | indexBufferByteOffsetChanged (int offset ) |
Holds the base vertex.
访问函数:
int | indexOffset () const |
void | setIndexOffset (int indexOffset ) |
通知程序信号:
void | indexOffsetChanged (int indexOffset ) |
Holds the instance count.
访问函数:
int | instanceCount () const |
void | setInstanceCount (int instanceCount ) |
通知程序信号:
void | instanceCountChanged (int instanceCount ) |
Holds the primitive restart flag.
访问函数:
bool | primitiveRestartEnabled () const |
void | setPrimitiveRestartEnabled (bool enabled ) |
通知程序信号:
void | primitiveRestartEnabledChanged (bool primitiveRestartEnabled ) |
Holds the primitive type.
访问函数:
Qt3DCore::QGeometryView::PrimitiveType | primitiveType () const |
void | setPrimitiveType (Qt3DCore::QGeometryView::PrimitiveType primitiveType ) |
通知程序信号:
void | primitiveTypeChanged (Qt3DCore::QGeometryView::PrimitiveType primitiveType ) |
Holds the restart index.
访问函数:
int | restartIndexValue () const |
void | setRestartIndexValue (int index ) |
通知程序信号:
void | restartIndexValueChanged (int restartIndexValue ) |
Holds the primitive count.
访问函数:
int | vertexCount () const |
void | setVertexCount (int vertexCount ) |
通知程序信号:
void | vertexCountChanged (int vertexCount ) |
Holds vertices per patch.
访问函数:
int | verticesPerPatch () const |
void | setVerticesPerPatch (int verticesPerPatch ) |
通知程序信号:
void | verticesPerPatchChanged (int verticesPerPatch ) |
Constructs a new QGeometryView with parent .