#include <PartDisplay.h>
Collaboration diagram for TSE3::App::PartDisplay:
Public Member Functions | |
PartDisplay (TSE3::Part *part, TSE3::PresetColours *pc=0) | |
bool | useColour () |
void | colour (int &r, int &g, int &b) |
The PartDisplay class handles interpretting a TSE3::Part's TSE3::DisplayParams alongside it's child TSE3::Phrase's TSE3::DisplayParams.
The TSE3::Part parameters take precidence over the TSE3::Phrase parameters. This class centralises the logic for working out which parameter to use.
The PartDisplay class uses the Application's TSE3::PresetColours object if necessary to find a preset colour value.
|
You specify the Part to display and the TSE3::PresetColours that applies.
|
|
Returns whether to display this part in colour or not. |
|
Returns which colour to use on redraw. |