#include <channelcolors.h>
Public Member Functions | |
ChannelColors (const ChannelColors &channelcolors) | |
void | removeAll () |
Suppress all the elements of. | |
virtual QColor | color (int identifier) |
Returns the color for a channel with a given id (identifier ). | |
virtual QColor | groupColor (int identifier) |
Returns the group color for a channel with a given id (identifier ). | |
virtual QColor | spikeGroupColor (int identifier) |
Returns the spike group color for a channel with a given id (identifier ). | |
virtual void | setColor (int identifier, QColor color) |
Sets the color for a channel with a given id to color. | |
virtual void | setGroupColor (int identifier, QColor color) |
Sets the group color for a channel with a given id to color. | |
virtual void | setSpikeGroupColor (int identifier, QColor color) |
Sets the spike group color for a channel with a given id to color. | |
virtual int | channelId (int index) |
Returns the channel id with a given position in the list (index ). | |
virtual bool | contains (int channelId) |
Returns true if the channel Id exists false otherwise. | |
virtual uint | numberOfChannels () const |
Returns the number of channels. | |
virtual uint | append (int channelId, QColor color, QColor groupColor, QColor spikeGroupColor) |
Appends a channel to the list of channels. | |
virtual uint | append (int channelId, QColor color) |
This is an overloaded member function, provided for convenience. | |
virtual void | insert (int channelId, int index, QColor color, QColor groupColor, QColor spikeGroupColor) |
Inserts a channel at position index in the list of channels. | |
virtual bool | remove (int identifier) |
Removes a channel, with a given id (identifier ),from the list of channels. | |
ChannelColors (const ChannelColors &channelcolors) | |
void | removeAll () |
Suppress all the elements of. | |
virtual QColor | color (int identifier) |
Returns the color for a channel with a given id (identifier ). | |
virtual QColor | groupColor (int identifier) |
Returns the group color for a channel with a given id (identifier ). | |
virtual QColor | spikeGroupColor (int identifier) |
Returns the spike group color for a channel with a given id (identifier ). | |
virtual void | setColor (int identifier, QColor color) |
Sets the color for a channel with a given id to color. | |
virtual void | setGroupColor (int identifier, QColor color) |
Sets the group color for a channel with a given id to color. | |
virtual void | setSpikeGroupColor (int identifier, QColor color) |
Sets the spike group color for a channel with a given id to color. | |
virtual int | channelId (int index) |
Returns the channel id with a given position in the list (index ). | |
virtual bool | contains (int channelId) |
Returns true if the channel Id exists false otherwise. | |
virtual uint | numberOfChannels () const |
Returns the number of channels. | |
virtual uint | append (int channelId, QColor color, QColor groupColor, QColor spikeGroupColor) |
Appends a channel to the list of channels. | |
virtual uint | append (int channelId, QColor color) |
This is an overloaded member function, provided for convenience. | |
virtual void | insert (int channelId, int index, QColor color, QColor groupColor, QColor spikeGroupColor) |
Inserts a channel at position index in the list of channels. | |
virtual bool | remove (int identifier) |
Removes a channel, with a given id (identifier ),from the list of channels. | |
Classes | |
struct | ChannelColor |
Structure representing a color channel. |
The list index is zero based.
QColor ChannelColors::color | ( | int | identifier | ) | [virtual] |
Returns the color for a channel with a given id (identifier
).
identifier | channel id. |
QColor ChannelColors::groupColor | ( | int | identifier | ) | [virtual] |
Returns the group color for a channel with a given id (identifier
).
identifier | channel id. |
QColor ChannelColors::spikeGroupColor | ( | int | identifier | ) | [virtual] |
Returns the spike group color for a channel with a given id (identifier
).
identifier | channel id. |
void ChannelColors::setColor | ( | int | identifier, | |
QColor | color | |||
) | [virtual] |
Sets the color for a channel with a given id to color.
identifier | channel id. | |
color | color to attribute to the channel. |
void ChannelColors::setGroupColor | ( | int | identifier, | |
QColor | color | |||
) | [virtual] |
Sets the group color for a channel with a given id to color.
identifier | channel id. | |
color | group color to attribute to the channel. |
void ChannelColors::setSpikeGroupColor | ( | int | identifier, | |
QColor | color | |||
) | [virtual] |
Sets the spike group color for a channel with a given id to color.
identifier | channel id. | |
color | spike group color to attribute to the channel. |
int ChannelColors::channelId | ( | int | index | ) | [virtual] |
Returns the channel id with a given position in the list (index
).
index | the index in the list of channels |
bool ChannelColors::contains | ( | int | channelId | ) | [virtual] |
Returns true if the channel Id exists false otherwise.
channelId | the id of the channel to check for existence |
virtual uint ChannelColors::numberOfChannels | ( | ) | const [inline, virtual] |
Returns the number of channels.
uint ChannelColors::append | ( | int | channelId, | |
QColor | color, | |||
QColor | groupColor, | |||
QColor | spikeGroupColor | |||
) | [virtual] |
Appends a channel to the list of channels.
channelId | the channel id. | |
color | the color of the channel. | |
groupColor | the group color of the channel. | |
spikeGroupColor | the decteion group color of the channel. |
uint ChannelColors::append | ( | int | channelId, | |
QColor | color | |||
) | [virtual] |
This is an overloaded member function, provided for convenience.
It behaves essentially like the above function. Appends a channel to the list of channels with its groupColor and spikeGroupColor equal to its color.
channelId | the channel id. | |
color | the color of the channel. |
void ChannelColors::insert | ( | int | channelId, | |
int | index, | |||
QColor | color, | |||
QColor | groupColor, | |||
QColor | spikeGroupColor | |||
) | [virtual] |
Inserts a channel at position index
in the list of channels.
channelId | the channel id. | |
index | index position where to insert the channel. | |
color | the color of the channel. | |
groupColor | the group color of the channel. | |
spikeGroupColor | the decteion group color of the channel. |
bool ChannelColors::remove | ( | int | identifier | ) | [virtual] |
Removes a channel, with a given id (identifier
),from the list of channels.
identifier | the channel id. |
virtual QColor ChannelColors::color | ( | int | identifier | ) | [virtual] |
Returns the color for a channel with a given id (identifier
).
identifier | channel id. |
virtual QColor ChannelColors::groupColor | ( | int | identifier | ) | [virtual] |
Returns the group color for a channel with a given id (identifier
).
identifier | channel id. |
virtual QColor ChannelColors::spikeGroupColor | ( | int | identifier | ) | [virtual] |
Returns the spike group color for a channel with a given id (identifier
).
identifier | channel id. |
virtual void ChannelColors::setColor | ( | int | identifier, | |
QColor | color | |||
) | [virtual] |
Sets the color for a channel with a given id to color.
identifier | channel id. | |
color | color to attribute to the channel. |
virtual void ChannelColors::setGroupColor | ( | int | identifier, | |
QColor | color | |||
) | [virtual] |
Sets the group color for a channel with a given id to color.
identifier | channel id. | |
color | group color to attribute to the channel. |
virtual void ChannelColors::setSpikeGroupColor | ( | int | identifier, | |
QColor | color | |||
) | [virtual] |
Sets the spike group color for a channel with a given id to color.
identifier | channel id. | |
color | spike group color to attribute to the channel. |
virtual int ChannelColors::channelId | ( | int | index | ) | [virtual] |
Returns the channel id with a given position in the list (index
).
index | the index in the list of channels |
virtual bool ChannelColors::contains | ( | int | channelId | ) | [virtual] |
Returns true if the channel Id exists false otherwise.
channelId | the id of the channel to check for existence |
virtual uint ChannelColors::numberOfChannels | ( | ) | const [inline, virtual] |
Returns the number of channels.
virtual uint ChannelColors::append | ( | int | channelId, | |
QColor | color, | |||
QColor | groupColor, | |||
QColor | spikeGroupColor | |||
) | [virtual] |
Appends a channel to the list of channels.
channelId | the channel id. | |
color | the color of the channel. | |
groupColor | the group color of the channel. | |
spikeGroupColor | the decteion group color of the channel. |
virtual uint ChannelColors::append | ( | int | channelId, | |
QColor | color | |||
) | [virtual] |
This is an overloaded member function, provided for convenience.
It behaves essentially like the above function. Appends a channel to the list of channels with its groupColor and spikeGroupColor equal to its color.
channelId | the channel id. | |
color | the color of the channel. |
virtual void ChannelColors::insert | ( | int | channelId, | |
int | index, | |||
QColor | color, | |||
QColor | groupColor, | |||
QColor | spikeGroupColor | |||
) | [virtual] |
Inserts a channel at position index
in the list of channels.
channelId | the channel id. | |
index | index position where to insert the channel. | |
color | the color of the channel. | |
groupColor | the group color of the channel. | |
spikeGroupColor | the decteion group color of the channel. |
virtual bool ChannelColors::remove | ( | int | identifier | ) | [virtual] |
Removes a channel, with a given id (identifier
),from the list of channels.
identifier | the channel id. |