RenderWorldWrapperWidget Class Reference

The wrapper widget for RenderWorld. More...

Inheritance diagram for RenderWorldWrapperWidget:

List of all members.

Public Member Functions

 RenderWorldWrapperWidget (QWidget *parent=NULL, Qt::WindowFlags flags=0)
 Constructor.
virtual ~RenderWorldWrapperWidget ()
 Destructor.
virtual void shareResourcesWith (ResourcesUser *buddy)
 Shares resources with the provided instance of ResourcesUser.
void updateRenderWorld ()
 Triggers an update of the RenderWorld object.

Detailed Description

The wrapper widget for RenderWorld.

This widget contains RenderWorld. Renderworld has to be wrapped inside a QWidget, because it is not possible to set the flags as required by Total99 directly on the RenderWorld object. If you try to do this, it will crash on some windows machines :-S

Definition at line 158 of file evorobotviewer.h.


Constructor & Destructor Documentation

RenderWorldWrapperWidget ( QWidget *  parent = NULL,
Qt::WindowFlags  flags = 0 
)

Constructor.

Parameters:
parentthe parent widget
flagswindow flags

Definition at line 401 of file evorobotviewer.cpp.

References QGLViewer::restoreStateFromFile(), QGLViewer::setStateFileName(), and ConcurrentResourcesUser::usableResources().

~RenderWorldWrapperWidget ( ) [virtual]

Destructor.

Definition at line 425 of file evorobotviewer.cpp.


Member Function Documentation

void shareResourcesWith ( ResourcesUser buddy) [virtual]

Shares resources with the provided instance of ResourcesUser.

We override this function to share resources with the inner RenderWorld object

Parameters:
buddythe instance with which resources will be shared
Note:
This is NOT thread safe (both this and the other instance should not be being accessed by other threads). Moreover do not call this while holding the lock to resources

Reimplemented from ConcurrentResourcesUser.

Definition at line 443 of file evorobotviewer.cpp.

References ConcurrentResourcesUser::shareResourcesWith().

void updateRenderWorld ( )

Triggers an update of the RenderWorld object.

Definition at line 430 of file evorobotviewer.cpp.


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