ImFusion SDK 4.3
StructuresViewRenderer Class Reference

#include <ImFusion/Seg/StructuresViewRenderer.h>

Helper class to automatically visualize the content of a StructuresView in a DisplayWidget. More...

+ Inheritance diagram for StructuresViewRenderer:

Detailed Description

Helper class to automatically visualize the content of a StructuresView in a DisplayWidget.

StructuresViewRenderer will listen to all changes provide the following visualizations:

  • A GlLabelRenderer instance to render labeled pixels in 2D/MPR views. Since multiple structures may be backed by the same label map, they will also shared the same GlLabelRenderer.
  • An outline rendering of each structure in the 2D/MPR views.
  • A raycasting-based visualization in the 3D view.

You can enable setUseMeshBasedVisualization() to gain a more high-quality visualization. If enabled, StructuresViewRenderer will compute a mesh for each Structure and use this for outline rendering in MPR views and for rendering in the 3D view.

This class will forward changes of the structure configuration (e.g. color, visibility) to the corresponding renderer objects.

Note
Due to its computational complexity the process of extracting a Mesh from the label map is performed asynchronously in a background thread. Therefore, changes of the underlying pixel data may not be visible instantly everywhere if setUseMeshBasedVisualization() is enabled.

Public Member Functions

 StructuresViewRenderer (DisplayWidgetMulti &display)
 
StructuresViewstructuresView () const
 Returns the StructuresView to visualize in the DisplayWidget.
 
void setStructuresView (StructuresView *value)
 Sets the StructuresView to visualize in the DisplayWidget.
 
double labelRendererOpacity () const
 Returns the global opacity of the GlLabelRenderer instances used for visualization.
 
void setLabelRendererOpacity (double value)
 Sets the global opacity of the GlLabelRenderer instances used for visualization.
 
double lineThicknessPx () const
 Returns the thickness of the outline rendered for the structures in 2D/MPR views.
 
void setLineThicknessPx (double value)
 Sets the thickness of the outline rendered for the structures in 2D/MPR views.
 
bool usesMeshBasedVisualization () const
 Returns the flag whether to use a mesh-based visualization (higher quality but more expensive) of the structures.
 
void setUseMeshBasedVisualization (bool value)
 Sets the flag whether to use a mesh-based visualization (higher quality but more expensive) of the structures.
 
- Public Member Functions inherited from SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
 
SignalReceiveroperator= (SignalReceiver rhs)
 Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
 
virtual ~SignalReceiver ()
 Virtual destructor disconnects from all connected signals.
 

Additional Inherited Members

- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close