Plasma
ItemSpace::ItemGroup::Request Class Reference
#include <itemspace.h>
Public Member Functions | |
void | activate (ItemSpace *itemSpace, ItemGroup *group) |
Request (int sourceGroup, qreal sourceGroupPushRequested, qreal pushRequested) | |
Public Attributes | |
bool | m_compensated |
qreal | m_pushRequested |
int | m_sourceGroup |
qreal | m_sourceGroupPushRequested |
Detailed Description
Definition at line 180 of file itemspace.h.
Constructor & Destructor Documentation
ItemSpace::ItemGroup::Request::Request | ( | int | sourceGroup, | |
qreal | sourceGroupPushRequested, | |||
qreal | pushRequested | |||
) |
Create a push request.
No calculations will be performed.
- Parameters:
-
sourceGroup the group that posted the request, or -1 if it was posted manually. sourceGroupPushRequested how much the posting group wanted to move itself when the request was posted (if sourceGroup is -1) pushRequested how much the group concerned is asked to move
Definition at line 362 of file itemspace.cpp.
Member Function Documentation
Perform obstacle searching and post push request to obstacle groups.
This is the main method involved in recursive push calculation.
If an item is found to be in the way of any of the group's items, its ItemGroup will be created if it doesn't have one already, and a new push request will bo posted to it.
If the offending group can not move as much as we need it to, we limit the amount our group wants to move, and future obstacles will be asked to move less than they would have been had there been no obstacle.
- Parameters:
-
group the ItemGroup this push request belongs to
Definition at line 374 of file itemspace.cpp.
Member Data Documentation
Definition at line 223 of file itemspace.h.
Definition at line 219 of file itemspace.h.
Definition at line 217 of file itemspace.h.
Definition at line 218 of file itemspace.h.
The documentation for this class was generated from the following files: