<HTML>
<HEAD>
<TITLE>Re: [Paraview] Dataset name in a MultiBlock dataset and display of unstructured grid</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Zhigao,<BR>
<BR>
Are you creating your own reader? If so, why not combine the actual reader and subsequent filter into a single “meta” reader class. That way ParaView can read in the data and apply the block extraction all in one step. It should make the user interface easier to use and gets around the problem in question.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 3/31/09 2:17 AM, "#CHENG ZHIGAO#" <<a href="CHEN0136@ntu.edu.sg">CHEN0136@ntu.edu.sg</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> Thanks, Paul...The name part has been done according to your suggestion... The other question still remains:<BR>
<BR>
<BR>
The scenario is that: I have a reader which reads a multiple block data. Each of the data block is a unstructured grid. After i load the data and press the Apply button. The meshes are displayed in the view window which is not what i want. I just want the reader to store the data and a subsequent filter will be used to retrieve the data block by block and display them. The grid needs to be constructed in the reader since all corresponding functions are in the reader. The filter knows nothing about these. Another option is "eyeball" icon in the pipeline browser, is it possible to "turn off" by default?<BR>
<BR>
What should I do? Setting the block name is for the filter to display the options that the user can choose. Is this the right way to do it?<BR>
<BR>
Thanks in advance.<BR>
<BR>
Regards,<BR>
zhigao<BR>
<BR>
-----Original Message-----<BR>
From: Paul Edwards [<a href="mailto:paul.m.edwards@gmail.com">mailto:paul.m.edwards@gmail.com</a>]<BR>
Sent: Mon 3/30/2009 4:08 PM<BR>
To: #CHENG ZHIGAO#<BR>
Cc: <a href="paraview@paraview.org">paraview@paraview.org</a><BR>
Subject: Re: [Paraview] Dataset name in a MultiBlock dataset and display of unstructured grid<BR>
<BR>
Hi Zhigao,<BR>
<BR>
If you are writing a reader or filter that returns a multi-block data set<BR>
you can name a block with the following:<BR>
<BR>
<BR>
MULTI_BLOCK_DATA_SET->GetMetaData(BLOCK_NUMBER)->Set(vtkCompositeDataSet::NAME(),<BR>
"PUT_NAME_HERE");<BR>
<BR>
If you are just using ParaView you can use the "Extract Block" filter and<BR>
select the blocks you are interested in. In the pipeline browser you can<BR>
change the name from "ExtractBlock1" to something more meaningful.<BR>
<BR>
Regards,<BR>
Paul<BR>
<BR>
<BR>
2009/3/29 #CHENG ZHIGAO# <<a href="CHEN0136@ntu.edu.sg">CHEN0136@ntu.edu.sg</a>><BR>
<BR>
><BR>
> hey,<BR>
><BR>
> As a beginner in paraview, please forgive my silly questions. :<)<BR>
><BR>
> I have a multiblock datasets which contains several unstructured grid.<BR>
> If there a way to set a different name for each block? And What should i do<BR>
> if i do not want to display some of the datasets while displaying the<BR>
> others? Or how can I hidden them all if i can not display parts of it?<BR>
><BR>
> Thanks for your help in advance.<BR>
><BR>
> Regards,<BR>
> zhigao<BR>
><BR>
> _______________________________________________<BR>
> Powered by www.kitware.com<BR>
><BR>
> Visit other Kitware open-source projects at<BR>
> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
><BR>
> Please keep messages on-topic and check the ParaView Wiki at:<BR>
> <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
><BR>
> Follow this link to subscribe/unsubscribe:<BR>
> <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
><BR>
><BR>
<BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>