RenderWorldWrapperWidget Class Reference

The wrapper widget for RenderWorld. More...

Inheritance diagram for RenderWorldWrapperWidget:

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.
 
- Public Member Functions inherited from ConcurrentResourcesUser
void addUsableResource (QString resource)
 
void addUsableResources (QStringList resources)
 
void declareResource (QString name, T *resource, QString lockBuddy="")
 
void deleteResource (QString name)
 
T * getResource (QString name, bool *resourceExists=NULL)
 
bool hasResource (QString name) const
 
void removeAllUsableResources ()
 
void removeUsableResource (QString resource)
 
void removeUsableResources (QStringList resources)
 
void usableResources (QStringList resources)
 
bool usedResourcesExist (QStringList *nonExistingResources=NULL) const
 

Additional Inherited Members

- Public Types inherited from ConcurrentResourcesUser
typedef
Resource::ResourceChangeType 
ResourceChangeType
 
- Protected Member Functions inherited from ConcurrentResourcesUser
T * getResource ()
 
ResourcesUseroperator= (const ResourcesUser &other)
 
 ResourcesUser ()
 
 ResourcesUser (const ResourcesUser &other)
 
- Protected Attributes inherited from ConcurrentResourcesUser
ResourceCollectionHolder m_resources
 

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 146 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 371 of file evorobotviewer.cpp.

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

Destructor.

Definition at line 395 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 413 of file evorobotviewer.cpp.

References ConcurrentResourcesUser::shareResourcesWith().

void updateRenderWorld ( )

Triggers an update of the RenderWorld object.

Definition at line 400 of file evorobotviewer.cpp.


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