QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsMaterial Class Reference

3 More...

#include <qgsmaterial.h>

Inheritance diagram for QgsMaterial:
Inheritance graph
[legend]

Public Member Functions

 QgsMaterial (Qt3DCore::QNode *parent=nullptr)
 Constructor for QgsMaterial, with the specified parent node.
 
 ~QgsMaterial () override
 
void disableClipping ()
 Removes the uniform parameters used to define OpenGL clipping.
 
void enableClipping (const QList< QVector4D > &clipPlanesEquations)
 Adds two uniform parameters to define OpenGL clipping from clipPlanesEquations.
 

Detailed Description

3

Base class for all materials used within QGIS 3D views. It provides common functionality (such as clipping) that all materials should support (where applicable).

Since
QGIS 3.40

Definition at line 38 of file qgsmaterial.h.

Constructor & Destructor Documentation

◆ QgsMaterial()

QgsMaterial::QgsMaterial ( Qt3DCore::QNode *  parent = nullptr)
explicit

Constructor for QgsMaterial, with the specified parent node.

Definition at line 30 of file qgsmaterial.cpp.

◆ ~QgsMaterial()

QgsMaterial::~QgsMaterial ( )
overridedefault

Member Function Documentation

◆ disableClipping()

void QgsMaterial::disableClipping ( )

Removes the uniform parameters used to define OpenGL clipping.

It also removes the define macro used for clipping from vertex/geometry shaders. If clipping was not enabled, nothing happens.

Since
QGIS 3.40

Definition at line 88 of file qgsmaterial.cpp.

◆ enableClipping()

void QgsMaterial::enableClipping ( const QList< QVector4D > &  clipPlanesEquations)

Adds two uniform parameters to define OpenGL clipping from clipPlanesEquations.

It also adds a define macro appropriate to vertex/geometry shaders.

Since
QGIS 3.40

Definition at line 37 of file qgsmaterial.cpp.


The documentation for this class was generated from the following files: