76 qint32 t_iNumChannels = sensorLayoutElement.attribute(
"NumChannels", 0).toInt();
78 Q_UNUSED(t_iNumChannels)
80 layout.m_sName = sensorLayoutElement.attribute(
"Type",
"");
82 QDomElement childSensor = sensorLayoutElement.firstChildElement(
"Sensor");
83 while (!childSensor.isNull()) {
84 QString chName = layout.m_sName.isEmpty() ? childSensor.attribute(
"ChannelNumber") : QString(
"%1%2").arg(layout.m_sName).arg(childSensor.attribute(
"ChannelNumber"));
85 layout.m_qListFullChannelNames.append(chName);
86 layout.m_qListShortChannelNames.append(childSensor.attribute(
"ChannelNumber"));
87 float plot_x = childSensor.attribute(
"plot_x").toFloat()*5;
88 float plot_y = childSensor.attribute(
"plot_y").toFloat()*5;
89 layout.m_qListLocations.append(QPointF(plot_x,plot_y));
90 childSensor = childSensor.nextSiblingElement(
"Sensor");
Declaration of the SensorLayout Class.
The SensorLayout class represents a channel layout.
static SensorLayout parseSensorLayout(const QDomElement &sensorLayoutElement)