<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hello vtkusers,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to get values of some columns in my vtkTable. Below, you could see my table and how I am setting the values. Works fine. Then, I want get some values by ColumnName (“ThistheColumn1”) instead of to inform row number and column number as well as vtk examples shows. I know of the existence of the function vtkVariant vtkTable::GetValueByName         (vtkIdType const char *            ). However, I don’t know how to apply in my particular case that is vtkDoubleArray and that I have to use this value as double and not as variant.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>tableLine</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> = </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkSmartPointer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkTable</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>>::</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>New</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkSmartPointer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkDoubleArray</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>> </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>ThistheColumn1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> =<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                      </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkSmartPointer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkDoubleArray</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>>::</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>New</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>ThistheColumn1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> -></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>SetName</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>ThistheColumn1</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>tableLine</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>AddColumn</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>ThistheColumn1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkSmartPointer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkDoubleArray</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>> </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>ThistheColumn2</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> =<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                      </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkSmartPointer</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>vtkDoubleArray</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>>::</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>New</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>ThistheColumn2</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>SetName</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>ThistheColumn2</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>tableLine</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>AddColumn</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>ThistheColumn2</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>              </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>for</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> (</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>unsigned</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>int</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>r</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> = 0; </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>r</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> < </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>numberRowsLine</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>; </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>r</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>++)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                      {<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                             </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>for</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> (</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>unsigned</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>int</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>c</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> = 0; </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>c</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> < </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>modelLine</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>columnCount</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(); </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>c</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>++)<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                             {<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                                    </span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>QString</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>sh</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'> = </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>modelLine</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>item</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>r</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>, </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>c</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>)-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>data</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:#216F85;background:white;mso-highlight:white'>Qt</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>::</span><span style='font-size:9.5pt;font-family:Consolas;color:#6F008A;background:white;mso-highlight:white'>DisplayRole</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>).</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>toString</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>();</span><span style='font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white'>// .toString();</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                                    </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>tableLine</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>-></span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>SetValue</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>(</span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>r</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>, </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>c</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>, </span><span style='font-size:9.5pt;font-family:Consolas;color:navy;background:white;mso-highlight:white'>sh</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>.</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>toLatin1</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>().</span><span style='font-size:9.5pt;font-family:Consolas;color:#880000;background:white;mso-highlight:white'>constData</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>());<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                             }<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>                      }</span><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black'>vtkDocumentation to get values<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'>vtkVariant v = table->GetValue( r,c);<o:p></o:p></p><p class=MsoNormal style='text-autospace:none'>    std::cout << "(r,c) = (" << r << "," << c << ") = " << v << std::endl;<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you very much for any help.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span lang=PT-BR style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'>Luis Vieira</span></b><span lang=PT-BR style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'>, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'>Consultant, Software Engineer<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'>Vektore Exploration Consulting Corporation</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#66696A;border:none windowtext 1.0pt;padding:0cm;background:white;mso-fareast-language:EN-CA'>ca.linkedin.com/in/</span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#333333;border:none windowtext 1.0pt;padding:0cm;background:white;mso-fareast-language:EN-CA'>joaoluisvieira</span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-CA'><a href="mailto:luis.vieira@vektore.com"><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:blue'>luis.vieira@vektore.com</span></a></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:EN-CA'><a href="http://www.vektore.com/"><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif;color:#0563C1'>www.vektore.com</span></a></span><span style='font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:EN-CA'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>