QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
3d
materials
qgsnullmaterialsettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsnullmaterialsettings.h
3
--------------------------------------
4
Date : November 2020
5
Copyright : (C) 2020 by Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
17
#ifndef QGSNULLMATERIALSETTINGS_H
18
#define QGSNULLMATERIALSETTINGS_H
19
20
#include "qgis_core.h"
21
#include "
qgsabstractmaterialsettings.h
"
22
23
#include <QColor>
24
25
class
QDomElement;
26
36
class
CORE_EXPORT
QgsNullMaterialSettings
:
public
QgsAbstractMaterialSettings
37
{
38
public
:
39
QgsNullMaterialSettings
() =
default
;
40
41
QString
type
()
const override
;
42
46
static
bool
supportsTechnique
(
Qgis::MaterialRenderingTechnique
technique );
47
51
static
std::unique_ptr<QgsAbstractMaterialSettings>
create
();
52
53
QgsNullMaterialSettings
*
clone
() const override
SIP_FACTORY
;
54
bool
equals
( const
QgsAbstractMaterialSettings
*other ) const override;
55
56
QColor
averageColor
() const override;
57
58
void
setColorsFromBase
( const QColor &baseColor ) override;
59
};
60
61
62
#endif
// QGSNULLMATERIALSETTINGS_H
Qgis::MaterialRenderingTechnique
MaterialRenderingTechnique
Material rendering techniques.
Definition
qgis.h:4453
QgsAbstractMaterialSettings
Abstract base class for material settings.
Definition
qgsabstractmaterialsettings.h:42
QgsAbstractMaterialSettings::clone
virtual QgsAbstractMaterialSettings * clone() const =0
Clones the material settings.
QgsAbstractMaterialSettings::type
virtual QString type() const =0
Returns the unique type name for the material.
QgsNullMaterialSettings::averageColor
QColor averageColor() const override
Returns an approximate color representing the blended material color.
Definition
qgsnullmaterialsettings.cpp:66
QgsNullMaterialSettings::setColorsFromBase
void setColorsFromBase(const QColor &baseColor) override
Decomposes a base color into the material's color components, and sets the material's colors accordin...
Definition
qgsnullmaterialsettings.cpp:71
QgsNullMaterialSettings::QgsNullMaterialSettings
QgsNullMaterialSettings()=default
QgsNullMaterialSettings::equals
bool equals(const QgsAbstractMaterialSettings *other) const override
Returns true if this settings exactly matches an other settings.
Definition
qgsnullmaterialsettings.cpp:57
QgsNullMaterialSettings::supportsTechnique
static bool supportsTechnique(Qgis::MaterialRenderingTechnique technique)
Returns true if the specified technique is supported by the material.
Definition
qgsnullmaterialsettings.cpp:28
QgsNullMaterialSettings::create
static std::unique_ptr< QgsAbstractMaterialSettings > create()
Returns a new instance of QgsNullMaterialSettings.
Definition
qgsnullmaterialsettings.cpp:47
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgsabstractmaterialsettings.h
Generated on
for QGIS API Documentation by
1.17.0