<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1215776714;
        mso-list-type:hybrid;
        mso-list-template-ids:-247016154 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Good Morning/Afternoon/Evening All<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I am busy developing a custom FITS image viewer with VTK and QT4.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I got hold of an old template from the following resource <a href="http://www.visbox.com/prajlich/vtkFitsReader/">http://www.visbox.com/prajlich/vtkFitsReader/</a><o:p></o:p></p><p class=MsoNormal>but I am struggling to compile because of the major changes from vtk over the last decade or so.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I am rebuilding it from scratch into my current app but running into some small problems.<o:p></o:p></p><p class=MsoNormal>I was able to get about 90% of it compiling but stuck with the following to version conflicts.<o:p></o:p></p><p class=MsoNormal><br>Original source has the following:<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <o:p></o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Courier New"'>vtkFloatScalars<span style='color:silver'> </span><span style='color:black'>*scalars</span><span style='color:silver'> </span><span style='color:black'>=</span><span style='color:silver'> </span>vtkFloatScalars<span style='color:black'>::</span>New<span style='color:black'>();</span><o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Times New Roman","serif";color:silver'>&nbsp; </span></i><i><span style='font-size:10.0pt;font-family:"Times New Roman","serif";color:black'>scalars-&gt;</span></i><i><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Allocate<span style='color:black'>(npixels);<o:p></o:p></span></span></i></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>but of course vtkFloatScalars has been removed and I have substituted it with <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Courier New"'>vtkFloatArray<span style='color:silver'> </span><span style='color:black'>*scalars</span><span style='color:silver'> </span><span style='color:black'>=</span><span style='color:silver'> </span>vtkFloatArray<span style='color:black'>::</span>New<span style='color:black'>();</span><o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Times New Roman","serif";color:silver'>&nbsp; </span></i><i><span style='font-size:10.0pt;font-family:"Times New Roman","serif";color:black'>scalars-&gt;</span></i><i><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Allocate<span style='color:black'>(npixels);<o:p></o:p></span></span></i></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>and this seems to work.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>The big problem is finding the replacement for <o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><i>vtkStructuredPoints<span style='color:silver'> </span><span style='color:black'>*output</span><span style='color:silver'> </span><span style='color:black'>=</span><span style='color:silver'> </span><span style='color:black'>(</span>vtkStructuredPoints<span style='color:silver'> </span><span style='color:black'>*)</span><span style='color:silver'> </span><span style='color:olive'>this</span><span style='color:black'>-&gt;</span>Output<span style='color:black'>;<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='color:black'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>output-&gt;SetDimensions(naxes[0], naxes[1], naxes[2]);<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>&nbsp; output-&gt;SetOrigin(0.0, 0.0, 0.0);<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>output-&gt;GetPointData()-&gt;SetScalars(scalars);<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>Now the big problem is the substitute for vtkStructuredPoints (apparently its vtkImageData but its not compiling)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>My Questions are as follows:<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>What Is the appropriate substitute for vtkStructuredPoints in this context?<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>Is there an alternative FITS (Flexible Image Transport System) reader for vtk or an updated vtkFitsReader class/function?<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><span style='mso-list:Ignore'>3)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>An equivalent HDF5 reader instead of FITS .<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:.25in'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>Extra Info.<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.25in'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:.25in'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>Original source code vtk version = vtk2.2<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.25in'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>Current vtk version being used is= vtk5.4<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.25in'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:.25in'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>Thanks in advance<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.25in'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:.25in'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'>Patrick.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><BR>

    <!--StartFragment-->
    

    <p style="margin-bottom: 10pt; margin-top: 0cm; margin-right: 0cm; margin-left: 0cm" class="msonormal">
      <font face="Monospaced">###</font>
    </p>
    <p style="margin-bottom: 10pt; margin-top: 0cm; margin-right: 0cm; margin-left: 0cm" class="msonormal">
      <font size="3" face="Monospaced">UNIVERSITY OF CAPE TOWN </font>
    </p>
    <p style="margin-bottom: 10pt; margin-top: 0cm; margin-right: 0cm; margin-left: 0cm" class="msonormal">
      
    </p>
    <p style="margin-bottom: 10pt; margin-top: 0cm; margin-right: 0cm; margin-left: 0cm" class="msonormal">
      <font size="3" face="Calibri">This e-mail is subject to the UCT ICT 
      policies and e-mail disclaimer published on our website at 
      http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from 
      +27 21 650 9111. This e-mail is intended only for the person(s) to whom 
      it is addressed. If the e-mail has reached you in error, please notify 
      the author. If you are not the intended recipient of the e-mail you may 
      not use, disclose, copy, redirect or print the content. If this e-mail 
      is not related to the business of UCT it is sent by the sender in the 
      sender's individual capacity.</font>
    </p>
    <p style="margin-bottom: 10pt; margin-top: 0cm; margin-right: 0cm; margin-left: 0cm" class="msonormal">
      
    </p>
    <p style="margin-bottom: 10pt; margin-top: 0cm; margin-right: 0cm; margin-left: 0cm" class="msonormal">
      <font face="Monospaced">### </font><br>
    </p>
    <!--EndFragment-->
  </BODY></HTML>