![]() |
ImFusion SDK 4.3
|
#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: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.
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::string & | text () const |
| Returns the text to render. | |
| void | setText (const std::string &text) |
| Sets the text to render. | |
| const std::string & | hintingText () 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::Font & | font () 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. | |
| SignalReceiver & | operator= (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 |
|
virtual |
update the angle information according to current view orientation
Reimplemented from GlOverlay.