51 using namespace FSLIB;
52 using namespace Eigen;
67 if(hemi == 0 || hemi == 1)
86 if(hemi == 0 || hemi == 1)
104 if(p_LHAnnotation.
hemi() == 0)
105 m_qMapAnnots.insert(0, p_LHAnnotation);
107 qWarning(
"Left hemisphere id is not 0. LH annotation not assigned!");
109 if(p_RHAnnotation.
hemi() == 1)
110 m_qMapAnnots.insert(1, p_RHAnnotation);
112 qWarning(
"Right hemisphere id is not 1. RH annotation not assigned!");
121 *
this = t_AnnotationSet;
128 m_qMapAnnots.clear();
138 qint32 hemi = p_Annotation.
hemi();
139 m_qMapAnnots.remove(hemi);
141 m_qMapAnnots.insert(hemi, p_Annotation);
148 p_AnnotationSet.
clear();
150 QStringList t_qListFileName;
151 t_qListFileName << p_sLHFileName << p_sRHFileName;
153 for(qint32 i = 0; i < t_qListFileName.size(); ++i)
158 if(t_qListFileName[i].contains(
"lh."))
159 p_AnnotationSet.m_qMapAnnots.insert(0, t_Annotation);
160 else if(t_qListFileName[i].contains(
"rh."))
161 p_AnnotationSet.m_qMapAnnots.insert(1, t_Annotation);
173 QList<Label> &p_qListLabels,
174 QList<RowVector4i> &p_qListLabelRGBAs,
175 const QStringList& lLabelPicks)
const
177 if(!m_qMapAnnots[0].toLabels(p_surfSet[0], p_qListLabels, p_qListLabelRGBAs, lLabelPicks))
179 else if(!m_qMapAnnots[1].toLabels(p_surfSet[1], p_qListLabels, p_qListLabelRGBAs, lLabelPicks))
190 return m_qMapAnnots[idx];
192 return m_qMapAnnots[idx];
195 qWarning(
"Warning: Index is not '0' or '1'! Returning '0'.");
196 return m_qMapAnnots[0];
205 return m_qMapAnnots[idx];
207 return m_qMapAnnots[idx];
210 qWarning(
"Warning: Index is not '0' or '1'! Returning '0'.");
211 return m_qMapAnnots[0];
219 if(idt.compare(
"lh") == 0)
220 return m_qMapAnnots[0];
221 else if(idt.compare(
"rh") == 0)
222 return m_qMapAnnots[1];
225 qWarning(
"Warning: Identifier is not 'lh' or 'rh'! Returning 'lh'.");
226 return m_qMapAnnots[0];
234 if(idt.compare(
"lh") == 0)
235 return m_qMapAnnots[0];
236 else if(idt.compare(
"rh") == 0)
237 return m_qMapAnnots[1];
240 qWarning(
"Warning: Identifier is not 'lh' or 'rh'! Returning 'lh'.");
241 return m_qMapAnnots[0];