Workspace 6.21.5
Public Member Functions | List of all members
TextureCoordShader Class Reference

A basic lambertian shader which can be attached to meshmodels.

#include <Rendering/SceneComponents/Shaders/texturecoordshader.h>

Inheritance diagram for TextureCoordShader:
[legend]

Public Member Functions

 TextureCoordShader ()
 
 TextureCoordShader (const TextureCoordShader &shader)
 
 ~TextureCoordShader () override
 
bool appliesTransparency () const override
 
TextureCoordShaderclone () const override
 
const QColor & getRColor () const
 
const QColor & getSColor () const
 
SurfaceRepresentation getSurfaceRepresentation () const
 
const QColor & getTColor () const
 
const TexturizergetTexturizer () const override
 
TexturizergetTexturizer () override
 
TextureCoordShaderoperator= (const TextureCoordShader &shader)
 
void setRColor (const QColor &color)
 
void setSColor (const QColor &color)
 
void setSurfaceRepresentation (SurfaceRepresentation r)
 
void setTColor (const QColor &color)
 
void setTexturizer (Texturizer &texturizer)
 
- Public Member Functions inherited from TypedShader< TextureCoordShader >
 ~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
 
Shaderclone () 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 TexturizergetTexturizer ()
 
virtual const TexturizergetTexturizer () 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 Clonableclone () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from TypedShader< TextureCoordShader >
static void registerImplementation (const SceneRendererTypeId &rendererId, const ShaderImplementationFactory &factory)
 
- Protected Member Functions inherited from TypedShader< TextureCoordShader >
 TypedShader ()
 
 TypedShader (const TypedShader &shader)
 
TypedShaderclone () 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)
 

Constructor & Destructor Documentation

◆ TextureCoordShader() [1/2]

◆ TextureCoordShader() [2/2]

◆ ~TextureCoordShader()

~TextureCoordShader ( )
override

Member Function Documentation

◆ appliesTransparency()

bool appliesTransparency ( ) const
overridevirtual

Subclasses must override this to specify whether they apply transparency to objects or not when they are enabled.

Implements Shader.

◆ clone()

TextureCoordShader * clone ( ) const
overridevirtual
Returns
A clone of this object.
Note
Subclasses would normally return their own type rather than the Clonable type. The C++ language rules allow a more derived type to be returned from a virtual function and the compiler will still treat it as a valid override.

Implements TypedShader< TextureCoordShader >.

◆ getRColor()

const QColor & getRColor ( ) const

◆ getSColor()

const QColor & getSColor ( ) const

◆ getSurfaceRepresentation()

SurfaceRepresentation getSurfaceRepresentation ( ) const

◆ getTColor()

const QColor & getTColor ( ) const

◆ getTexturizer() [1/2]

const Texturizer & getTexturizer ( ) const
overridevirtual
Returns
Texturizer used by this shader. NoTexture Texturizer will be returned if shader doesn't use any.

Reimplemented from Shader.

◆ getTexturizer() [2/2]

Texturizer & getTexturizer ( )
overridevirtual
Returns
Texturizer used by this shader. NoTexture Texturizer will be returned if shader doesn't use any.

Reimplemented from Shader.

◆ operator=()

TextureCoordShader & operator= ( const TextureCoordShader shader)

◆ setRColor()

void setRColor ( const QColor &  color)

◆ setSColor()

void setSColor ( const QColor &  color)

◆ setSurfaceRepresentation()

void setSurfaceRepresentation ( SurfaceRepresentation  r)

◆ setTColor()

void setTColor ( const QColor &  color)

◆ setTexturizer()

void setTexturizer ( Texturizer texturizer)