Workspace 6.21.5
|
A shader which colors a model based using a node mapper and a color scale.
#include <Rendering/SceneComponents/Shaders/nodecoloringshader.h>
Public Member Functions | |
NodeColoringShader () | |
NodeColoringShader (const NodeColoringShader &shader) | |
~NodeColoringShader () override | |
bool | appliesScreenSpaceAmbientOcclusion () override |
bool | appliesTransparency () const override |
NodeColoringShader * | clone () const override |
const DataAnalysis::ColorScale & | getColorScale () const |
bool | getLightingEnabled () const |
const Mesh::NodeMapper & | getNodeMapper () const |
SurfaceRepresentation | getSurfaceRepresentation () const |
NodeColoringShader & | operator= (const NodeColoringShader &shader) |
void | setColorScale (const DataAnalysis::ColorScale &colorScale) |
void | setLightingEnabled (bool b) |
void | setNodeMapper (const Mesh::NodeMapper &mapper) |
void | setSurfaceRepresentation (SurfaceRepresentation r) |
Public Member Functions inherited from TypedShader< NodeColoringShader > | |
~TypedShader () override=default | |
Public Member Functions inherited from Shader | |
~Shader () override | |
bool | activate (SceneRenderer &renderer) |
Activates the shader on the target WSGLRenderer in preparation for drawing an object. | |
virtual bool | appliesScreenSpaceAmbientOcclusion () |
virtual bool | appliesSpecular () |
virtual bool | appliesTransparency () const =0 |
Shader * | clone () const override=0 |
bool | deactivate (SceneRenderer &renderer) |
Deactivates the shader on the target WSGLRenderer, setting it back to the state it was in before the shader was bound. | |
int | getId () const |
Mesh::MeshModelSource::MeshModelInterfaceLockedPtr | getMeshModelInterface (const QString &modelId, Mesh::MeshModelLibrary &modelLib) |
bool | getModelSourceUpdateRequested () const |
bool | getOptimizeOutInternalVolumeElements () const |
double | getSegmentLineWidth () const |
virtual Texturizer & | getTexturizer () |
virtual const Texturizer & | getTexturizer () const |
bool | renderCurrentModel (SceneRenderer &renderer) |
Renders the model currently being processed by the specified renderer.s. | |
bool | renderCurrentModelGlyphs (SceneRenderer &renderer) |
void | setOptimizeOutInternalVolumeElements (bool val) |
void | setSegmentLineWidth (double width) |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from TypedShader< NodeColoringShader > | |
static void | registerImplementation (const SceneRendererTypeId &rendererId, const ShaderImplementationFactory &factory) |
Protected Member Functions inherited from TypedShader< NodeColoringShader > | |
TypedShader () | |
TypedShader (const TypedShader &shader) | |
TypedShader * | clone () const override=0 |
Protected Member Functions inherited from Shader | |
Shader () | |
Shader (const Shader &shader) | |
void | addImplementation (const SceneRendererContext &context, ShaderImplementation &impl) |
void | setId (int id) |
NodeColoringShader | ( | const NodeColoringShader & | shader | ) |
|
override |
|
inlineoverridevirtual |
Sub-classes only need to overide this if they can apply Screen Space Ambient Occlusion
Reimplemented from Shader.
|
overridevirtual |
Subclasses must override this to specify whether they apply transparency to objects or not when they are enabled.
Implements Shader.
|
overridevirtual |
Implements TypedShader< NodeColoringShader >.
const ColorScale & getColorScale | ( | ) | const |
bool getLightingEnabled | ( | ) | const |
const Mesh::NodeMapper & getNodeMapper | ( | ) | const |
SurfaceRepresentation getSurfaceRepresentation | ( | ) | const |
NodeColoringShader & operator= | ( | const NodeColoringShader & | shader | ) |
void setColorScale | ( | const DataAnalysis::ColorScale & | colorScale | ) |
void setLightingEnabled | ( | bool | b | ) |
void setNodeMapper | ( | const Mesh::NodeMapper & | mapper | ) |
void setSurfaceRepresentation | ( | SurfaceRepresentation | r | ) |