class PartDisplay

Support class for TSE3::Part display. More...

Full nameTSE3::App::PartDisplay
Definition#include <PartDisplay.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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.

See also: TSE3

 PartDisplay (TSE3::Part *part, TSE3::PresetColours *pc = 0)

PartDisplay

You specify the Part to display and the TSE3::PresetColours that applies.

Parameters:
partTSE3::Part to create DisplayParams for
pcTSE3::PresetColours object to use

bool  useColour ()

useColour

Returns whether to display this part in colour or not.

void  colour (int &r, int &g, int &b)

colour

Returns which colour to use on redraw.