<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=utf-8">
<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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="DE-AT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Good try but does not effect anything except the string in paraview’s combo box. The strange thing is that I also cannot see anything in spreadsheet
 view (empty cell and point data)… but on information tab point data and cell data is there….<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Joachim Pouderoux [mailto:joachim.pouderoux@kitware.com]
<br>
<b>Gesendet:</b> Montag, 09. Jänner 2017 19:40<br>
<b>An:</b> Lodron, Gerald<br>
<b>Cc:</b> Paraview User (paraview@paraview.org); Paraview Developer (Paraview-developers@paraview.org)<br>
<b>Betreff:</b> Re: [Paraview] vtkImageData Plugin, vtkImageData not rendered<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Gerald,<o:p></o:p></p>
</div>
<p class="MsoNormal">Not sure it is the only issue but please try giving a name to the output scalar arrays.<o:p></o:p></p>
</div>
<p class="MsoNormal">ParaView won't make visible arrays which don't have a name.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Example:<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Courier New"">  output->GetPointData()->GetScalars()->SetName("values");</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Best,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><b>Joachim Pouderoux</b><span style="font-size:10.0pt">, </span>
<span style="font-size:7.5pt">PhD</span><o:p></o:p></p>
<p class="MsoNormal"><i><span style="font-size:7.5pt">Technical Expert - Scientific Computing Team</span></i><br>
<b><span style="font-size:7.5pt"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></span></b><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2017-01-09 5:20 GMT-04:00 Lodron, Gerald <<a href="mailto:Gerald.Lodron@joanneum.at" target="_blank">Gerald.Lodron@joanneum.at</a>>:<o:p></o:p></p>
<p class="MsoNormal">Hi<br>
<br>
I programmed successfully a plugin source wich generates a vtkImageData output and made it the same way as on my 3d cloud plugins of vtkPolyData. The source is inherited from vtkImageAlgorithm and only contains one output with unsigned char array and one component.<br>
<br>
In the request data function of the filter I currently have a very dummy:<br>
<br>
output->SetDimensions(oData.imgSizeX, oData.imgSizeY, 1);<br>
output ->AllocateScalars(VTK_UNSIGNED_CHAR, 1);<br>
 memcpy(output ->GetScalarPointer(), &oData.imgData[0], oData.imgSizeX* oData.imgSizeY*sizeof(unsigned char));<br>
<br>
in paraview I see in the information tab that  I have an uniform rectilinear grid with 1917201 cells and 1920000 points (image is 1600*1200px). In data Arrays I get an "ImageScalars" of unsigned char and a correct range of my memcopy data (my min max range
 is not 0,255 so data seems to be there)...<br>
<br>
the problem is that I cannot see anything in the render view, any suggestions what I am making wrong? I tested all representation (slice, surface, outline, on Solid Color and on my array), never see anything.....<br>
<br>
I also compared the Information tab on a loaded jpeg image and cannot see any difference (which is rendered in render view except the Array's string name), by the way: can I disable "MapScalars" by default?<br>
<br>
I am using pv5.2<br>
<br>
------------------------------------------------------------------------------------<br>
Gerald Lodron<br>
 <br>
Researcher of Machine Vision Applications Group<br>
DIGITAL - Institute for Information and Communication Technologies<br>
 <br>
JOANNEUM RESEARCH Forschungsgesellschaft mbH<br>
Steyrergasse 17, 8010 Graz, AUSTRIA<br>
 <br>
phone:   +43-316-876-1751   <br>
general fax: +43-316-876-1751<br>
web: <a href="http://www.joanneum.at/digital" target="_blank">http://www.joanneum.at/digital</a><br>
e-mail: <a href="mailto:gerald.lodron@joanneum.at">gerald.lodron@joanneum.at</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">
http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>