ImFusion C++ SDK 4.5.0
ImFusion::Interactive< T, S > Class Template Reference

#include <ImFusion/GUI/Interactive.h>

Strongly typed templated version of an InteractiveObject. More...

Inheritance diagram for ImFusion::Interactive< T, S >:

Detailed Description

template<typename T, typename S = Manipulator>
class ImFusion::Interactive< T, S >

Strongly typed templated version of an InteractiveObject.

Public Member Functions

 Interactive (T *object, S *manipulator=nullptr, bool own=true)
 Instantiate a new InteractiveOverlay optionally taking ownership of the underlying GlObject and Manipulator.
const T * gl () const
 Get a typed pointer to the underlying annotation.
T * gl ()
 Get a typed pointer to the underlying annotation.
const S * manipulator () const
 Get the underlying manipulator.
S * manipulator ()
 Get the underlying manipulator.
Public Member Functions inherited from ImFusion::InteractiveObject
 InteractiveObject (GlObject *object, Manipulator *manipulator=nullptr, bool own=true)
 Instantiate a new InteractiveOverlay, optionally taking ownership of the underlying GlObject and Manipulator.
template<typename T>
const T * gl () const
 Get a typed pointer to the underlying GlObject.
template<typename T>
T * gl ()
 Get a typed pointer to the underlying GlObject.
const GlObject * gl () const
 Get the underlying abstract GlObject.
GlObject * gl ()
 Get the underlying abstract GlObject.
const Manipulator * manipulator () const
 Get the underlying manipulator.
Manipulator * manipulator ()
 Get the underlying manipulator.
virtual bool sceneEvent (QEvent *event, InteractiveView *view)
 Called by the hosting InteractiveView to notify on user input events.
virtual void goTo (DisplayWidgetMulti *display, Data *data=nullptr, int frame=-1) const
 Center the views contained in the passed display widget which show data on the object.
GUI::EventResult handleInputEvent (const GUI::InputEvent &event, const GUI::View &view) override
 Gets called by the parent view in order to handle user input events.
Public Member Functions inherited from ImFusion::GUI::ViewObject
 ViewObject (std::unique_ptr< GlObject > glObject)
 Instantiate a new ViewObject taking ownership of the underlying GlObject which must not be null.
const GlObject & glObject () const
 Get the underlying abstract GlObject.
GlObject & glObject ()
const GlObject * gl () const
 Original API methods for the underlying abstract GlObject.
GlObject * gl ()

Additional Inherited Members

Public Attributes inherited from ImFusion::InteractiveObject
Signal< const InteractiveObject * > signalDeleted
 Signal emitted when this instance is deleted.
Protected Attributes inherited from ImFusion::InteractiveObject
GlObject * m_object
Manipulator * m_manipulator = nullptr
bool m_own = true
Protected Attributes inherited from ImFusion::GUI::ViewObject
std::unique_ptr< GlObject > m_glObject

The documentation for this class was generated from the following file:
  • ImFusion/GUI/Interactive.h
Search Tab / S to search, Esc to close