![]() |
Scanframe Modular Application 0.1.0
|
#include <NipscanRenderer.h>
Public Types | |
enum | FragmentProgram : int { fpPassthrough = 0 , fpSpotlight = 1 } |
Enumeration of available shader inner programs passed to ShaderProgram::Uniform::uProgram uniform. More... | |
Public Member Functions | |
NipscanRenderer (OpenGLWidget *widget, xgl::ShaderProgram *sp) | |
~NipscanRenderer () override | |
![]() | |
OpenGLRenderer (OpenGLWidget *widget, QOpenGLShaderProgram *sp) | |
Constructor passing the widget which has the OpenGL context. The owner is the shader program object. | |
~OpenGLRenderer () override=default | |
Virtual destructor. | |
bool | setup () |
Call overridden method generate() after teh shader program has been linked. | |
void | render () |
Call overridden method render() after teh shader program has been linked. | |
OpenGLWidget * | getWidget () const |
Gets the owning widget which is calling the shots. | |
Protected Member Functions | |
void | generate () override |
Called by setup() and (re-)generates the vertices for the drawn 3D-objects. | |
void | paint () override |
Called by from the render() method. | |
void | renderObjects () |
void | draw () override |
Called by from the render() method. | |
void | timerEvent (QTimerEvent *event) override |
void | changedProperty () override |
Called by sf::OpenGLWidget when a property has changed. | |
void | start (int msecs) |
void | setIndexValue (int index, QVariant value) override |
Sets an arbitrary value on the derived- or subclass. | |
void | renderNipscan (bool solid, double x_axis, double y_axis, double z_axis, double a_axis, double b_axis, double c_axis, const ToolInformation &tool, const ElementInformation &elem) |
void | generateNipscan (VertexArrayBase *) |
Properties | |
QColor | lightColor |
float | cutoffAngle |
float | ambientStrength |
float | diffuseStrength |
float | specularStrength |
float | shininess |
FragmentProgram | fragmentProgram |
Additional Inherited Members | |
![]() | |
static void | initialize (OpenGLWidget *widget) |
Called by sf::OpenGLWidget::initializeGL to initialize the OpenGL context for derived classes. | |
![]() | |
const QMatrix4x4 & | _projectionMatrix |
Easy of access reference to the projection matrix from the widget. | |
const QMatrix4x4 & | _cameraMatrix |
Easy of access reference to the camera matrix from the sf::OpenGLWidget. | |
const QMatrix4x4 & | _lightPositionMatrix |
Easy of access reference to the light position matrix from the sf::OpenGLWidget. | |
const QMatrix4x4 & | _lightDirectionMatrix |
Easy of access reference to the light direction matrix from the sf::OpenGLWidget. | |
const QMatrix4x4 & | _modelMatrix |
Easy of access reference to the model matrix from the sf::OpenGLWidget. | |
enum sf::xgl::NipscanRenderer::FragmentProgram : int |
Enumeration of available shader inner programs passed to ShaderProgram::Uniform::uProgram uniform.
Enumerator | |
---|---|
fpPassthrough | No manipulation by the fragment shader. |
fpSpotlight | Applies the spotlight defined by ShaderProgram::Uniform::uLightPosition and other uniforms. |
|
explicit |
|
override |
|
overrideprotectedvirtual |
Called by sf::OpenGLWidget when a property has changed.
Implements sf::OpenGLRenderer.
|
overrideprotectedvirtual |
Called by from the render() method.
Implements sf::OpenGLRenderer.
|
overrideprotectedvirtual |
Called by setup() and (re-)generates the vertices for the drawn 3D-objects.
Implements sf::OpenGLRenderer.
|
protected |
|
overrideprotectedvirtual |
Called by from the render() method.
Implements sf::OpenGLRenderer.
|
protected |
|
protected |
|
overrideprotectedvirtual |
Sets an arbitrary value on the derived- or subclass.
index | Index like in an array. |
value | Variant able to accept any value. |
Implements sf::OpenGLRenderer.
|
protected |
|
overrideprotected |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |