Vital
Loading...
Searching...
No Matches
OpenGlAutoImageComponent< ComponentType > Class Template Reference

A template class that wraps a given ComponentType and automatically redraws an OpenGlImageComponent on mouse events. More...

#include <open_gl_image_component.h>

Inheritance diagram for OpenGlAutoImageComponent< ComponentType >:

Public Member Functions

virtual void mouseDown (const MouseEvent &e) override
 
virtual void mouseUp (const MouseEvent &e) override
 
virtual void mouseDoubleClick (const MouseEvent &e) override
 
virtual void mouseEnter (const MouseEvent &e) override
 
virtual void mouseExit (const MouseEvent &e) override
 
virtual void mouseWheelMove (const MouseEvent &e, const MouseWheelDetails &wheel) override
 
OpenGlImageComponentgetImageComponent ()
 Gets the underlying OpenGlImageComponent.
 
virtual void redoImage ()
 Redraws the image after a state change.
 

Protected Attributes

OpenGlImageComponent image_component_
 The OpenGlImageComponent for rendering this component.
 

Detailed Description

template<class ComponentType>
class OpenGlAutoImageComponent< ComponentType >

A template class that wraps a given ComponentType and automatically redraws an OpenGlImageComponent on mouse events.

This class automatically triggers redraws of the image whenever mouse events occur, ensuring the image stays up-to-date with the component's state.

Member Function Documentation

◆ getImageComponent()

template<class ComponentType >
OpenGlImageComponent * OpenGlAutoImageComponent< ComponentType >::getImageComponent ( )
inline

Gets the underlying OpenGlImageComponent.

Returns
Pointer to the image component.

◆ mouseDoubleClick()

template<class ComponentType >
virtual void OpenGlAutoImageComponent< ComponentType >::mouseDoubleClick ( const MouseEvent & e)
inlineoverridevirtual

◆ mouseDown()

template<class ComponentType >
virtual void OpenGlAutoImageComponent< ComponentType >::mouseDown ( const MouseEvent & e)
inlineoverridevirtual

◆ mouseEnter()

template<class ComponentType >
virtual void OpenGlAutoImageComponent< ComponentType >::mouseEnter ( const MouseEvent & e)
inlineoverridevirtual

◆ mouseExit()

template<class ComponentType >
virtual void OpenGlAutoImageComponent< ComponentType >::mouseExit ( const MouseEvent & e)
inlineoverridevirtual

◆ mouseUp()

template<class ComponentType >
virtual void OpenGlAutoImageComponent< ComponentType >::mouseUp ( const MouseEvent & e)
inlineoverridevirtual

◆ mouseWheelMove()

template<class ComponentType >
virtual void OpenGlAutoImageComponent< ComponentType >::mouseWheelMove ( const MouseEvent & e,
const MouseWheelDetails & wheel )
inlineoverridevirtual

◆ redoImage()

template<class ComponentType >
virtual void OpenGlAutoImageComponent< ComponentType >::redoImage ( )
inlinevirtual

Redraws the image after a state change.

Member Data Documentation

◆ image_component_

template<class ComponentType >
OpenGlImageComponent OpenGlAutoImageComponent< ComponentType >::image_component_
protected

The OpenGlImageComponent for rendering this component.


The documentation for this class was generated from the following file: