Tulip  4.1.0
Better Visualization Through Research
 All Classes Files Functions Variables Enumerations Enumerator Properties Groups Pages
tlp::GLInteractorComponent Class Reference

#include <GLInteractor.h>

Inherits tlp::InteractorComponent.

Public Slots

virtual bool compute (tlp::GlMainWidget *)
 
virtual bool draw (tlp::GlMainWidget *)
 

Additional Inherited Members

- Public Member Functions inherited from tlp::InteractorComponent
virtual void clear ()
 
virtual bool eventFilter (QObject *, QEvent *)
 
virtual void init ()
 
void setView (View *view)
 
Viewview () const
 
virtual void viewChanged (View *)
 

Detailed Description

The GLInteractorComponent class is an InteractorComponent that can do OpenGL rendering on a GlMainWidget.

Warning
Only GLInteractorComponent that are stored into a GLInteractorComposite will be able to do OpenGL rendering. Storing them into an InteractorComposite will have no effect.

GLInteractorComponent are meant to be stored into a GLInteractorComposite When installed on a GlMainWidget, this interactor will have two new methods getting called:

  • draw: Draws a visual feedback into the OpenGL scene. This is called after the scene was rendered
  • compute: Allows the interactor to do some pre-initialisation steps before the OpenGL scene is rendered.

Definition at line 40 of file GLInteractor.h.

Member Function Documentation

virtual bool tlp::GLInteractorComponent::compute ( tlp::GlMainWidget )
inlinevirtualslot

Initializes the interactor before the scene in the given GlMainWidget is rendered.

Definition at line 56 of file GLInteractor.h.

virtual bool tlp::GLInteractorComponent::draw ( tlp::GlMainWidget )
inlinevirtualslot

Draws an OpenGL visual feedback for the interactor into a given GlMainWidget. This method is called after the scene was rendered.

Returns
true if the rendering completed sucessfully

Definition at line 49 of file GLInteractor.h.