<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
The solution was to use "pqDisplayColorWidget" ... <br><br>I'd use it like follow and it worked well : <br><br>this->m_RenderView = qobject_cast<pqRenderView*>(<br> m_object_builder->createView(pqRenderView::renderViewType(), m_server));<br><br> QPointer<pqPipelineSource> m_source = m_object_builder->createReader("sources", "LegacyVTKFileReader",QStringList(given_file), m_server);<br><br> pqDataRepresentation* repr = m_input->getRepresentation(m_RenderView);<br><br> this->m_color->setRepresentation(m_input->getRepresentation(m_RenderView));<br><br><br>Hope it'll help someone.<br><br><hr size="2" width="100%"><blockquote><blockquote><b>Wertz Gil</b><br></blockquote><i>gilwertz@hotmail.com</i><br></blockquote><hr size="2" width="100%"><br><br><br><br><hr id="stopSpelling">From: gilwertz@hotmail.com<br>To: paraview@paraview.org<br>Date: Mon, 28 Mar 2011 14:32:53 +0200<br>Subject: [Paraview] How to get the different data array / data set of a vtk        file<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
In Paraview, in "Information" > "Data Arrays" there is a list of the data set of my vtk file (name,type,Data range).<br><br>But when I create a 'LegacyVTKFileReader', I give the inputFile, but how do I know number of dataSet , their names and how do I use one specifically ? ( Actually I automaticaly use the first dataSet )<br><br>Thanks in advance ! :-) <br><br><hr size="2" width="100%"><blockquote><blockquote><b>Wertz Gil</b><br></blockquote><i>gilwertz@hotmail.com</i><br></blockquote><hr size="2" width="100%"><br><br>                                           
<br>_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview                                            </body>
</html>