24 Q_PROPERTY(QColor
lightColor READ getLightColor WRITE setLightColor)
25 Q_PROPERTY(
float cutoffAngle READ getCutoffAngle WRITE setCutoffAngle)
26 Q_PROPERTY(
float ambientStrength READ getAmbientStrength WRITE setAmbientStrength)
27 Q_PROPERTY(
float diffuseStrength READ getDiffuseStrength WRITE setDiffuseStrength)
29 Q_PROPERTY(
float shininess READ getShininess WRITE setShininess)
75 bool solid,
double x_axis,
double y_axis,
double z_axis,
76 double a_axis,
double b_axis,
double c_axis,
83 void notify(
const void* member);
88 float _ambientStrength;
89 float _diffuseStrength;
90 float _specularStrength;
95 std::array<double, 6> _indexValues;
Pure virtual class to implement rendering separated from the widget and makes the sf::OpenGLWidget th...
Definition OpenGLRenderer.h:12
Class to render axis lines in OpenGL. All axis have the same color. Length is both positive and negat...
Definition Axes.h:15
Class to render a cone in OpenGL. Height of the cone is along the Z-axis where the tip is at (0,...
Definition Cone.h:13
Class to render a cylinder in OpenGL. Has a single color. Height of the cone is along the Z-axis wher...
Definition Cylinder.h:14
Class to render a circle in OpenGL.
Definition Disk.h:11
Dynamic object .
Definition Dynamic.h:14
Class to render a line in OpenGL.
Definition Line.h:11
Definition NipscanRenderer.h:22
void changedProperty() override
Called by sf::OpenGLWidget when a property has changed.
float diffuseStrength
Definition NipscanRenderer.h:27
float specularStrength
Definition NipscanRenderer.h:28
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)
FragmentProgram fragmentProgram
Definition NipscanRenderer.h:30
void generate() override
Called by setup() and (re-)generates the vertices for the drawn 3D-objects.
FragmentProgram
Enumeration of available shader inner programs passed to ShaderProgram::Uniform::uProgram uniform.
Definition NipscanRenderer.h:41
@ fpSpotlight
Definition NipscanRenderer.h:45
@ fpPassthrough
Definition NipscanRenderer.h:43
float cutoffAngle
Definition NipscanRenderer.h:25
float ambientStrength
Definition NipscanRenderer.h:26
void draw() override
Called by from the render() method.
void paint() override
Called by from the render() method.
void generateNipscan(VertexArrayBase *)
void timerEvent(QTimerEvent *event) override
void setIndexValue(int index, QVariant value) override
Sets an arbitrary value on the derived- or subclass.
QColor lightColor
Definition NipscanRenderer.h:24
float shininess
Definition NipscanRenderer.h:29
Class to render Normals from another vertex array.
Definition Normals.h:12
Shader program having a default vertex and fragment shader.
Definition ShaderProgram.h:13
Class to render a sphere in OpenGL. Center of the sphere is in (0,0,0). Has a single color.
Definition Sphere.h:14
Class to render a cylinder in OpenGL. Height of the cone is along the Z-axis where the tip is at (0,...
Definition Tube.h:13
Base class for Vertex array derived classes.
Definition VertexArrayBase.h:14
#define SF_DECL_PROP_GS(Type, Name)
Declares unreferenced getter and unreferenced setter for a property.
Definition misc/qt/Macros.h:8
Definition DemoRenderer.h:6