26 Q_PROPERTY(QColor
lightColor READ getLightColor WRITE setLightColor)
27 Q_PROPERTY(
float cutoffAngle READ getCutoffAngle WRITE setCutoffAngle)
28 Q_PROPERTY(
float ambientStrength READ getAmbientStrength WRITE setAmbientStrength)
29 Q_PROPERTY(
float diffuseStrength READ getDiffuseStrength WRITE setDiffuseStrength)
31 Q_PROPERTY(
float shininess READ getShininess WRITE setShininess)
55 Q_ENUM(FragmentProgram)
108 void renderNipscan(
bool solid,
double x_axis,
double y_axis,
double z_axis,
double a_axis,
double b_axis,
double c_axis) const;
120 void notify(const
void* member);
150 float _ambientStrength;
158 float _diffuseStrength;
162 float _specularStrength;
176 std::
array<
double, 6> _indexValues;
178 Matrix44 _indexSurface;
OpenGLRenderer(OpenGLWidget *widget, QOpenGLShaderProgram *sp)
Constructor passing the widget which has the OpenGL context. The owner is the shader program object.
Encapsulates the std::function() template.
Definition TClosure.h:14
Class to render axis lines in OpenGL. Length is both positive and negative direction.
Definition Axes.h:14
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. The height of the cone is along the Z-axis ...
Definition Cylinder.h:14
Class to render a disk in OpenGL.
Definition Disk.h:11
Dynamic object .
Definition Dynamic.h:14
Class to render a line in OpenGL.
Definition Line.h:11
void renderNipscan(bool solid, double x_axis, double y_axis, double z_axis, double a_axis, double b_axis, double c_axis) const
NipscanRenderer(OpenGLWidget *widget, ShaderProgram *sp)
Initializing constructor.
void changedProperty() override
Overridden from base class.
float diffuseStrength
Definition NipscanRenderer.h:29
float specularStrength
Definition NipscanRenderer.h:30
void setHandler(const HandlerType &handler)
Callback function for setting the axis positions and sizing the element and tool. Code to create an i...
FragmentProgram fragmentProgram
Definition NipscanRenderer.h:32
void generate() override
Overridden from base class.
FragmentProgram
Enumeration of available shader inner programs passed to ShaderProgram::Uniform::uProgram uniform.
Definition NipscanRenderer.h:49
@ fpSpotlight
Definition NipscanRenderer.h:53
@ fpPassthrough
Definition NipscanRenderer.h:51
float cutoffAngle
Definition NipscanRenderer.h:27
float ambientStrength
Definition NipscanRenderer.h:28
void renderObjects()
Overridden from base class.
void draw() override
Overridden from base class.
void paint() override
Overridden from base class.
void setElementInformation(const ElementInformation &)
Sets the element information.
void setToolInformation(const ToolInformation &info)
Sets the tool information.
void setIndexValue(int index, QVariant value) override
Overridden from base class.
QColor lightColor
Definition NipscanRenderer.h:26
float shininess
Definition NipscanRenderer.h:31
TClosure< void, NipscanRenderer * > HandlerType
Closure type to handle rendering.
Definition NipscanRenderer.h:68
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. The 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:15
#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
std::array< T, N > array(QVector3D vect, T value=1)
Template function to get an 'std::array' type from a Vector3D. This function is to pass a 3D vector w...
#define _SCN_NIPSCAN_CLASS
Definition scn/nipscan/global.h:35
Pose of the Nipscan manipulator comprising all relevant axis.
Definition Nipscan.h:15