ImFusion C++ SDK 4.4.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 GlObjectgl () const
 Get the underlying abstract GlObject.
GlObjectgl ()
 Get the underlying abstract GlObject.
const Manipulatormanipulator () const
 Get the underlying manipulator.
Manipulatormanipulator ()
 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 GlObjectglObject () const
 Get the underlying abstract GlObject.
GlObjectglObject ()
const GlObjectgl () const
 Original API methods for the underlying abstract GlObject.
GlObjectgl ()

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
GlObjectm_object
Manipulatorm_manipulator = nullptr
bool m_own = true
Protected Attributes inherited from ImFusion::GUI::ViewObject
std::unique_ptr< GlObjectm_glObject

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