ImFusion SDK 4.3
GlImageIntensifierAngleOverlay Class Reference

#include <ImFusion/GL/GlImageIntensifierAngleOverlay.h>

Text overlay representing the current view's matrix in the form of image intensifier angles, for instance "RAO -3.3, CAU -51.5". More...

+ Inheritance diagram for GlImageIntensifierAngleOverlay:

Detailed Description

Text overlay representing the current view's matrix in the form of image intensifier angles, for instance "RAO -3.3, CAU -51.5".

See https://dicom.nema.org/medical/Dicom/2017c/output/chtml/part03/sect_C.8.7.5.html for more details on how the primary and secondary Positioner Angles are defined.

Note
For slice views, the shown angles represent how the C-arm needs to be positioned so that the detector is parallel the slice view. For volume views, the shown angles are based on the view's camera, as if one were looking in the detector-source direction.
See also
GlTextOverlay

Public Member Functions

 GlImageIntensifierAngleOverlay (InteractiveView *disp)
 
void update ()
 update the angle information according to current view orientation
 
- Public Member Functions inherited from GlTextOverlay
void render (const GL::Viewport &viewport) override
 Render text overlay.
 
const std::stringtext () const
 Returns the text to render.
 
void setText (const std::string &text)
 Sets the text to render.
 
const std::stringhintingText () const
 Returns the optional text to use for computing size hints.
 
void setHintingText (const std::string &value)
 Sets the optional text to use for computing size hints.
 
bool isDrawBackgroundEnabled () const
 Returns whether a background is drawn below the text.
 
void setDrawBackgroundEnabled (bool draw)
 Sets whether to draw background below the text.
 
int backgroundMarginSize () const
 Returns the size of the background margin around the text.
 
void setBackgroundMarginSize (int size)
 Sets the size of the background margin around the text.
 
vec4 backgroundColor () const
 Returns the color of the background.
 
void setBackgroundColor (const vec4 &color)
 Sets the color of the background.
 
const vec4 & color () const
 Returns the text color.
 
void setColor (const vec4 &color)
 Sets the text color.
 
const GL::TextRenderer::Fontfont () const
 Returns the font to use for rendering.
 
void setFont (const GL::TextRenderer::Font &value)
 Sets the font to use for rendering.
 
void setFontSize (int size)
 Convenience function to set font size.
 
void setHorizontalAlignment (GL::TextRenderer::AlignmentH horizontalAlignment)
 Sets the horizontal alignment of the rendered text.
 
GL::TextRenderer::AlignmentH horizontalAlignment () const
 Returns the horizontal alignment of the rendered text.
 
void setVerticalAlignment (GL::TextRenderer::AlignmentV verticalAlignment)
 Sets the vertical alignment of the rendered text.
 
GL::TextRenderer::AlignmentV verticalAlignment () const
 Returns the vertical alignment of the rendered text.
 
- Public Member Functions inherited from GlOverlay
 GlOverlay (int widthHint, int heightHint, int minWidthHint, int minHeightHint)
 Instantiate a new GlOverlay with the given size hints.
 
virtual void setVisible (bool visible)
 Set overlay visibility.
 
virtual bool visible () const
 Return overlay visibility.
 
virtual void setSizeHint (int width, int height)
 Sets the preferred size of the overlay for a DPI scaling of 1.0.
 
virtual int sizeHintWidth () const
 Gets the preferred width of the overlay.
 
virtual int sizeHintHeight () const
 Gets the preferred height of the overlay.
 
virtual void setMinimalSizeHint (int width, int height)
 Sets the minimal size of the overlay for a DPI scaling of 1.0.
 
virtual int minimalSizeHintWidth () const
 Gets the minimal width of the overlay.
 
virtual int minimalSizeHintHeight () const
 Gets the minimal height of the overlay.
 
- 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

- Public Attributes inherited from GlOverlay
Signal< int, int > m_sizeChangedSignal
 Signal emitted when the size hint has changed.
 
Signal< int, int > m_minSizeChangedSignal
 Signal emitted when the minimum size hint has changed.
 
- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 
- Protected Attributes inherited from GlTextOverlay
std::unique_ptr< Impl > m_impl
 
- Protected Attributes inherited from GlOverlay
bool m_visible = true
 Overlay visibility.
 
int m_sizeHintWidth = 0
 
int m_sizeHintHeight = 0
 
int m_minSizeHintWidth = 0
 
int m_minSizeHintHeight = 0
 

Member Function Documentation

◆ update()

void update ( )
virtual

update the angle information according to current view orientation

Reimplemented from GlOverlay.


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