![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/GlSliceRenderer.h>
Interface for a class that can render data into a GlSlice/GlSliceView. More...
Interface for a class that can render data into a GlSlice/GlSliceView.
Implement the Configurable interface in order to provide an automatically generated GUI for configuration when using the InteractiveViewOptionsOverlay.
Public Member Functions | |
GlSliceRenderer ()=default | |
Creates a new GlSliceRenderer using the given decorator for masking. | |
virtual std::string | name () const =0 |
Returns the name for identification/GUI usage of this slice renderer. | |
virtual bool | accepts (const Data *data) const =0 |
Returns whether this slice renderer is capable of displaying the given data. | |
virtual void | render (const GL::ViewState &viewState, const Slice &slice, const Data &data, const DisplayOptions2d &displayOptions, bool encodeDistance)=0 |
Renders the data in the given configuration. | |
virtual mat4 | defaultPose (const Data &data, Slice::AnatomicalPlane originalPlane) const =0 |
Returns the default view matrix to use for showing the given dataset in a slice view of the given anatomical plane. | |
virtual vec2 | extent (const Slice &slice, const Data &data)=0 |
Returns the 2D extent of the data when rendering it onto slice in pixels. | |
![]() | |
virtual void | configure (const Properties *p) |
Configure this object instance by de-serializing the given Properties. | |
virtual void | configuration (Properties *p) const |
Serialize the current object configuration into the given Properties object. | |
virtual void | configureDefaults () |
Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
void | registerParameter (ParameterBase *param) |
Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
void | unregisterParameter (const ParameterBase *param) |
Remove the given Parameter or SubProperty from the list of registered parameters. | |
Configurable (const Configurable &rhs) | |
Configurable (Configurable &&rhs) noexcept | |
Configurable & | operator= (const Configurable &) |
Configurable & | operator= (Configurable &&) noexcept |
Additional Inherited Members | |
![]() | |
Signal | signalParametersChanged |
Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
![]() | |
std::vector< Param > | m_params |
List of all registered Parameter and SubProperty instances. | |
|
pure virtual |
Returns the name for identification/GUI usage of this slice renderer.
Implemented in GlSliceRendererImage, and GlSliceRendererSweep.
|
pure virtual |
Returns whether this slice renderer is capable of displaying the given data.
Implemented in GlSliceRendererImage, and GlSliceRendererSweep.
|
pure virtual |
Renders the data in the given configuration.
viewState | GlState object defining view and projection matrices. |
slice | Slice on which to render the data. |
data | The data to render |
displayOptions | The display options to use for rendering. |
encodeDistance | Flag whether to encode the distance to the border in the secondary color buffer. |
Implemented in GlSliceRendererImage, and GlSliceRendererSweep.
|
pure virtual |
Returns the default view matrix to use for showing the given dataset in a slice view of the given anatomical plane.
This function is for instance use by the reset function of ImageView2D/GlSliceView.
Implemented in GlSliceRendererImage, and GlSliceRendererSweep.
Returns the 2D extent of the data when rendering it onto slice in pixels.
Implemented in GlSliceRendererImage, and GlSliceRendererSweep.