MNE-CPP
0.1.9
A Framework for Electrophysiology
|
This abstract class is used as a base class for all materials that are using the phong alpha lightining model in their shaders. More...
#include <abstractphongalphamaterial.h>
Public Types | |
typedef QSharedPointer< AbstractPhongAlphaMaterial > | SPtr |
typedef QSharedPointer< const AbstractPhongAlphaMaterial > | ConstSPtr |
Public Member Functions | |
AbstractPhongAlphaMaterial (bool bUseSortPolicy, QNode *parent) | |
virtual | ~AbstractPhongAlphaMaterial ()=default |
virtual float | alpha () const |
virtual void | setAlpha (float fAlpha) |
Protected Member Functions | |
virtual void | init () |
virtual void | setShaderCode ()=0 |
virtual void | addShaderToRenderPass (const QString &sObjectName, Qt3DRender::QShaderProgram *pShaderProgramm) |
virtual void | onAlphaChanged (const QVariant &fAlpha) |
Protected Attributes | |
QPointer< Qt3DRender::QEffect > | m_pEffect |
QPointer< Qt3DRender::QParameter > | m_pDiffuseParameter |
QPointer< Qt3DRender::QParameter > | m_pSpecularParameter |
QPointer< Qt3DRender::QParameter > | m_pShininessParameter |
QPointer< Qt3DRender::QParameter > | m_pAlphaParameter |
QPointer< Qt3DRender::QFilterKey > | m_pDrawFilterKey |
bool | m_bUseSortPolicy |
This abstract class is used as a base class for all materials that are using the phong alpha lightining model in their shaders.
This abstract class is used as a base class for all materials that are using the phong alpha lightining model in their shaders.
Definition at line 84 of file abstractphongalphamaterial.h.
typedef QSharedPointer<const AbstractPhongAlphaMaterial> DISP3DLIB::AbstractPhongAlphaMaterial::ConstSPtr |
Const shared pointer type for AbstractPhongAlphaMaterial.
Definition at line 90 of file abstractphongalphamaterial.h.
typedef QSharedPointer<AbstractPhongAlphaMaterial> DISP3DLIB::AbstractPhongAlphaMaterial::SPtr |
Shared pointer type for AbstractPhongAlphaMaterial.
Definition at line 89 of file abstractphongalphamaterial.h.
|
explicit |
Default constructs a AbstractPhongAlphaMaterial object.
[in] | bUseSortPolicy | Whether to use the sort policy in the framegraph. |
[in] | parent | The parent of this object. |
Definition at line 74 of file abstractphongalphamaterial.cpp.
|
virtualdefault |
The virtual default destructor.
|
protectedvirtual |
This function searches the children of this item for a QRenderPass with matching name and sets the given shader program.
[in] | sObjectName | The object name of the render pass. |
[in] | pShaderProgramm | The shader programm. Passing a nullptr is not allowed. |
Definition at line 161 of file abstractphongalphamaterial.cpp.
|
virtual |
Get the current alpha value.
Definition at line 94 of file abstractphongalphamaterial.cpp.
|
protectedvirtual |
Inits the OpenGL 3.3, 2.0, ES2.0 techniques and add phong alpha parameters. This functions needs to be overridden for other techniques.
Reimplemented in DISP3DLIB::GpuInterpolationMaterial.
Definition at line 108 of file abstractphongalphamaterial.cpp.
|
protectedvirtual |
This function gets called whenever the alpha value is changed. It handles the change between opaque and transparent depending on the new alpha.
[in] | fAlpha | The new alpha value. |
Definition at line 173 of file abstractphongalphamaterial.cpp.
|
virtual |
Set the current alpha value.
[in] | fAlpha | The new alpha value. |
Definition at line 101 of file abstractphongalphamaterial.cpp.
|
protectedpure virtual |
This abstract function should be used by the derived class to set the appropriate shader code. The implemented function has to be called by the derived class.
Implemented in DISP3DLIB::GpuInterpolationMaterial.
|
protected |
Flag that indicated hether to use the sort policy in the frame graph.
Definition at line 167 of file abstractphongalphamaterial.h.
|
protected |
Parameter that determines the alpha value.
Definition at line 163 of file abstractphongalphamaterial.h.
|
protected |
Parameter that determines the diffuse value.
Definition at line 160 of file abstractphongalphamaterial.h.
|
protected |
Filter key for navigating in the frame graph.
Definition at line 165 of file abstractphongalphamaterial.h.
|
protected |
Material Effect.
Definition at line 158 of file abstractphongalphamaterial.h.
|
protected |
Parameter that determines the shininess value.
Definition at line 162 of file abstractphongalphamaterial.h.
|
protected |
Parameter that determines the specular value.
Definition at line 161 of file abstractphongalphamaterial.h.