Skip to main content

AverageScene

Namespace: DISPLIB  ·  Library: Display Library

#include <disp/averagescene.h>

class DISPLIB::AverageScene

Sensor-layout QGraphicsScene placing one AverageSceneItem per visible channel.

Extends LayoutScene with the per-condition colour table, the cached FiffInfo channel map and the dispatcher that creates / refreshes one AverageSceneItem per visible sensor.

Inheritance


Public Methods

AverageScene(view, parent)

Constructs a AverageScene.


setScaleMap(scaleMap)

Sets the scale map to scaleMap.

Parameters:

  • scaleMap : const QMap< qint32, float > & map with all channel types and their current scaling value.

repaintItems(selectedChannelItems)

Repaints all items from the layout data in the scene.

Parameters:

  • selectedChannelItems : const QList< QGraphicsItem * > & items which are to painted to the average scene

repaintSelectionItems(selectedChannelItems)

Repaints all items from the layout data in the scene from a SelectionItem object.

Parameters:

  • selectedChannelItems : const SelectionItem & data about items which are to be painted.

updateScene()

Updates and repaints the scene.


setActivationPerAverage(qMapActivationPerAverage)

Set the activation per average map information.

Parameters:

  • qMapActivationPerAverage : const QSharedPointer< QMap< QString, bool > > The average activation information.

setColorPerAverage(qMapAverageColor)

Set the color per average map information.

Parameters:

  • qMapAverageColor : const QSharedPointer< QMap< QString, QColor > > The average color information.

getSignalColorForAllItems()

Set the signal color for all items in the scene.

Returns:

  • const QColor & — The color used for all the itmes' signal paths.

setSignalItemColor(signalColor)

Sets the signal color for the items the scene holds.

Parameters:

  • signalColor.

Authors of this file