![]() |
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... | |
| typedef TClosure< void, NipscanRenderer * > | HandlerType |
| Closure type to handle rendering. | |
Public Member Functions | |
| NipscanRenderer (OpenGLWidget *widget, ShaderProgram *sp) | |
| Initializing constructor. | |
| ~NipscanRenderer () override | |
| Virtual overridden destructor. | |
| void | setHandler (const HandlerType &handler) |
| Callback function for setting the axis positions and sizing the element and tool. Code to create an instance to pass to this method. | |
| void | setToolInformation (const ToolInformation &info) |
| Sets the tool information. | |
| void | setElementInformation (const ElementInformation &) |
| Sets the element information. | |
Public Member Functions inherited from sf::OpenGLRenderer | |
| 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 the shader program has been linked. | |
| void | render () |
| Call overridden method render() after the shader program has been linked. | |
| OpenGLWidget * | getWidget () const |
| Gets the owning widget which is calling the shots. | |
| QOpenGLShaderProgram * | getShaderProgram () |
| Gets shader program given in the constructor. | |
| virtual void | addRenderObject (OpenGLRenderObject *ro, bool append=true) |
| Adds an object to be rendered. The order of addition determines the outcome when transparency is involved. When an object is destroyed, it is removed from the list using the 'destroyed' signal. | |
Protected Member Functions | |
| void | generate () override |
| Overridden from base class. | |
| void | paint () override |
| Overridden from base class. | |
| void | renderObjects () |
| Overridden from base class. | |
| void | draw () override |
| Overridden from base class. | |
| void | changedProperty () override |
| Overridden from base class. | |
| void | setIndexValue (int index, QVariant value) override |
| Overridden from base class. | |
| void | renderNipscan (bool solid, double x_axis, double y_axis, double z_axis, double a_axis, double b_axis, double c_axis) |
Properties | |
| QColor | lightColor |
| float | cutoffAngle |
| float | ambientStrength |
| float | diffuseStrength |
| float | specularStrength |
| float | shininess |
| FragmentProgram | fragmentProgram |
Additional Inherited Members | |
Static Public Member Functions inherited from sf::OpenGLRenderer | |
| static void | initialize (OpenGLWidget *widget) |
| Called by sf::OpenGLWidget::initializeGL to initialize the OpenGL context for derived classes. | |
Protected Attributes inherited from sf::OpenGLRenderer | |
| QList< OpenGLRenderObject * > | _renderObjects |
| Holds the list of objects to render. | |
| 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. | |
| typedef TClosure<void, NipscanRenderer*> sf::xgl::NipscanRenderer::HandlerType |
Closure type to handle rendering.
| 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 |
Initializing constructor.
|
override |
Virtual overridden destructor.
|
overrideprotectedvirtual |
Overridden from base class.
Implements sf::OpenGLRenderer.
|
overrideprotectedvirtual |
Overridden from base class.
Implements sf::OpenGLRenderer.
|
overrideprotectedvirtual |
Overridden from base class.
Implements sf::OpenGLRenderer.
|
overrideprotectedvirtual |
Overridden from base class.
Implements sf::OpenGLRenderer.
|
protected |
|
protected |
Overridden from base class.
| void sf::xgl::NipscanRenderer::setElementInformation | ( | const ElementInformation & | ) |
Sets the element information.
| void sf::xgl::NipscanRenderer::setHandler | ( | const HandlerType & | handler | ) |
Callback function for setting the axis positions and sizing the element and tool. Code to create an instance to pass to this method.
|
overrideprotectedvirtual |
Overridden from base class.
Implements sf::OpenGLRenderer.
| void sf::xgl::NipscanRenderer::setToolInformation | ( | const ToolInformation & | info | ) |
Sets the tool information.
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |