Re: [Paraview] Block pqRenderView rendering
For those who are interested in, I used a little trick to do that by setting NonInteractiveRenderDelay to a high value. ( I putted 3600 seconds = one hour ) I putted a force render button that ignore NonInteractiveRenderDelay value and render the mesh. Problems are : When I force render, the NonInteractiveRenderDelay timer continue decrease. ( I would like the timer to stop ) When adding sources to the current pqRenderView, they are immediately rendered. ( I would like to avoid that and juste add them in a brute state like when manipulated) Actually I have to put a high value to the NonInteractiveRenderDelay, but it could be nice to put it to -1 (or have a setter) and have it never to render except when force render. = I work with 10Go or more data-set so I often need to move the mesh for long to find the correct vue, if it try to render it each time it's not practice. PS: should I add a Feature Request ? Gil Wertz Gil gilwe...@hotmail.com From: gilwe...@hotmail.com To: paraview@paraview.org Date: Wed, 13 Apr 2011 15:27:55 +0200 Subject: [Paraview] Block pqRenderView rendering Once again a little question -_- : I don't wan my pqRenderView to render after mouse event, en then I'll render by clicking a button. I need to do that because my mesh is heavy ( ~10Go ). Is there a way to block rendering ? or To set a big time wait before rendering ? then I will just use a button to pqRenderView.render(); Tnaks Wertz Gil gilwe...@hotmail.com ___ 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 ___ 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
Re: [Paraview] set the coarsing level of a mesh
of course I've seen the Still Subsample Rate and Interactive Subsample Rate options but after settings values, it doesn't change anything ... Wertz Gil gilwe...@hotmail.com From: gilwe...@hotmail.com To: paraview@paraview.org Date: Thu, 14 Apr 2011 14:56:59 +0200 Subject: [Paraview] set the coarsing level of a mesh When manipulate mesh in a pqRenderView, the mesh become coarse to be easily manipulated. I want to set the coarse level of the mesh ( like a % or a ratio ) but I didn't find a property that correspond. Thanks for you help ^^. PS: I use big data-set (10Go) so I need to make it lighter. Wertz Gil gilwe...@hotmail.com ___ 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 ___ 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
Re: [Paraview] change server timeout and hide Output Messages
Little UP When creating the pqServer, if it cannot connect directly to the server it wait for 60s, I wan to set the time out to 1s. the builder line : m_server = m_object_builder-createServer(pqServerResource(host)); //here timeout of 60s if no server Thanks Wertz Gil gilwe...@hotmail.com From: gilwe...@hotmail.com To: paraview@paraview.org Date: Mon, 4 Apr 2011 15:13:33 +0200 Subject: [Paraview] change server timeout and hide Output Messages When I try to connect my client to a pvserver and this one is not launched I have this message : Warning: In /data/wertz/paraview-source/Servers/Common/vtkProcessModuleConnectionManager.cxx, line 299 vtkProcessModuleConnectionManager (0x2a84d10): Connect failed. Retrying for 53.8997 more seconds. How do I set timeout to 1 second ? How do I catch those warning without showing Output Messages window and from which element/class/manager does it depend ? When I launch pvserver and connect on it with a client, when I try with a second one I get timeout (because pvserver is not multi-client ), how do I get if the server is not launched or if a client is already connected ? Thanks. Code : QString host = cs://; host += given_host; host += :; host += port; if(m_server) //if any remote or builtin server, delete them to free ressources m_object_builder-removeServer(m_server); //create new remote server m_server = m_object_builder-createServer(pqServerResource(host)); //here timeout of 60s blocking thread //if the server is remote then : if(m_server m_server-isRemote()){ ... Wertz Gil gilwe...@hotmail.com ___ 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 ___ 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
Re: [Paraview] change server timeout and hide Output Messages
I'd see, but it's VTK code, I'll have to change the vtkProcessModuleConnectionManager::OpenConnection( const char* hostname, int port) and I don't wan this ... Thanks for your response ... Wertz Gil gilwe...@hotmail.com Date: Wed, 13 Apr 2011 09:10:17 -0400 Subject: Re: [Paraview] change server timeout and hide Output Messages From: utkarsh.ayac...@kitware.com To: gilwe...@hotmail.com CC: paraview@paraview.org That's by design and currently there's no way of changing it besides changing the code. Feel free to add a feature request to the bug tracker and we can address it in future releases. On Wed, Apr 13, 2011 at 2:07 AM, Gil Wertz gilwe...@hotmail.com wrote: Little UP When creating the pqServer, if it cannot connect directly to the server it wait for 60s, I wan to set the time out to 1s. the builder line : m_server = m_object_builder-createServer(pqServerResource(host)); //here timeout of 60s if no server Thanks Wertz Gil gilwe...@hotmail.com From: gilwe...@hotmail.com To: paraview@paraview.org Date: Mon, 4 Apr 2011 15:13:33 +0200 Subject: [Paraview] change server timeout and hide Output Messages When I try to connect my client to a pvserver and this one is not launched I have this message : Warning: In /data/wertz/paraview-source/Servers/Common/vtkProcessModuleConnectionManager.cxx, line 299 vtkProcessModuleConnectionManager (0x2a84d10): Connect failed. Retrying for 53.8997 more seconds. How do I set timeout to 1 second ? How do I catch those warning without showing Output Messages window and from which element/class/manager does it depend ? When I launch pvserver and connect on it with a client, when I try with a second one I get timeout (because pvserver is not multi-client ), how do I get if the server is not launched or if a client is already connected ? Thanks. Code : QString host = cs://; host += given_host; host += :; host += port; if(m_server) //if any remote or builtin server, delete them to free ressources m_object_builder-removeServer(m_server); //create new remote server m_server = m_object_builder-createServer(pqServerResource(host)); //here timeout of 60s blocking thread //if the server is remote then : if(m_server m_server-isRemote()){ ... Wertz Gil gilwe...@hotmail.com ___ 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 ___ 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 ___ 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
[Paraview] Block pqRenderView rendering
Once again a little question -_- : I don't wan my pqRenderView to render after mouse event, en then I'll render by clicking a button. I need to do that because my mesh is heavy ( ~10Go ). Is there a way to block rendering ? or To set a big time wait before rendering ? then I will just use a button to pqRenderView.render(); Tnaks Wertz Gil gilwe...@hotmail.com ___ 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
[Paraview] set Representation opacity
I try to set pqPipelineRepresentation opacity but have no conclusive result ... There is a getOpacity but no setOpacity function, I looked at paraview's code but I didn't find an easy way ( no way at all ) to set the opacity of my pqPipelineRepresentations that are in my pqRenderView. Any idea ? Maybe using pqPipelineRepresentation is not the best way. I add representation to my pqRenderView like this : m_object_builder-createDataRepresentation(m_input-getOutputPort(0), this-m_RenderView); Where m_input is a pqPipelineSource. (and I need to set the opacity of this newly created representation) Thanks Wertz Gil gilwe...@hotmail.com ___ 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
Re: [Paraview] set Representation opacity
I founded a way to do that easily : vtkSMProxy *proxy = representation-getProxy(); vtkSMProperty * prop = proxy-GetProperty(Opacity); pqSMAdaptor::setElementProperty(prop, value); proxy-UpdateVTKObjects(); this-m_RenderView-render(); Regards Wertz Gil gilwe...@hotmail.com From: gilwe...@hotmail.com To: paraview@paraview.org Date: Mon, 11 Apr 2011 09:28:08 +0200 Subject: [Paraview] set Representation opacity I try to set pqPipelineRepresentation opacity but have no conclusive result ... There is a getOpacity but no setOpacity function, I looked at paraview's code but I didn't find an easy way ( no way at all ) to set the opacity of my pqPipelineRepresentations that are in my pqRenderView. Any idea ? Maybe using pqPipelineRepresentation is not the best way. I add representation to my pqRenderView like this : m_object_builder-createDataRepresentation(m_input-getOutputPort(0), this-m_RenderView); Where m_input is a pqPipelineSource. (and I need to set the opacity of this newly created representation) Thanks Wertz Gil gilwe...@hotmail.com ___ 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 ___ 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
Re: [Paraview] set Representation opacity
And which one is better ? Wertz Gil gilwe...@hotmail.com Date: Mon, 11 Apr 2011 08:47:50 -0400 Subject: Re: [Paraview] set Representation opacity From: utkarsh.ayac...@kitware.com To: gilwe...@hotmail.com CC: paraview@paraview.org Indeed. Another way I like to use to set properties is as follows: vtkSMProxy *proxy = representation-getProxy(); vtkSMPropertyHelper(proxy, Opacity).Set(value); proxy-UpdateVTKObjects(); Utkarsh On Mon, Apr 11, 2011 at 6:10 AM, Gil Wertz gilwe...@hotmail.com wrote: I founded a way to do that easily : vtkSMProxy *proxy = representation-getProxy(); vtkSMProperty * prop = proxy-GetProperty(Opacity); pqSMAdaptor::setElementProperty(prop, value); proxy-UpdateVTKObjects(); this-m_RenderView-render(); Regards Wertz Gil gilwe...@hotmail.com From: gilwe...@hotmail.com To: paraview@paraview.org Date: Mon, 11 Apr 2011 09:28:08 +0200 Subject: [Paraview] set Representation opacity I try to set pqPipelineRepresentation opacity but have no conclusive result ... There is a getOpacity but no setOpacity function, I looked at paraview's code but I didn't find an easy way ( no way at all ) to set the opacity of my pqPipelineRepresentations that are in my pqRenderView. Any idea ? Maybe using pqPipelineRepresentation is not the best way. I add representation to my pqRenderView like this : m_object_builder-createDataRepresentation(m_input-getOutputPort(0), this-m_RenderView); Where m_input is a pqPipelineSource. (and I need to set the opacity of this newly created representation) Thanks Wertz Gil gilwe...@hotmail.com ___ 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 ___ 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 ___ 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
[Paraview] set 3D Glyphs arrow orientation
Is there a way to set 3D Glyphs (from pqDisplayRepresentationWidget) arrow orientation ? for example set +x,-x,+y,-j,+z or -z as arrow orientation. Regards Wertz Gil gilwe...@hotmail.com ___ 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
Re: [Paraview] pqColorScaleEditor crash
I'm not sure of what I could give you ( I tried to debug with gdb but it just say that the application crash, I knew it -_- ) But I made a sandbox and have the same problem, the code is shorter, I'll give it. I joined 3 files, the app file named paraview-crash-on-legend.cpp and my 3D widget. By the way I'm open for all comment or idea of improvement or else about good practise. Thanks for your fast answer ! I use : Qt 4 Paraview 10.0-RC1. Wertz Gil gilwe...@hotmail.com Date: Thu, 31 Mar 2011 10:40:46 -0400 Subject: Re: [Paraview] pqColorScaleEditor crash From: utkarsh.ayac...@kitware.com To: gilwe...@hotmail.com CC: paraview@paraview.org Gil, If you can provide the call-stack for where you're getting the segfault, it will be helpful. Utkarsh On Thu, Mar 31, 2011 at 10:13 AM, Gil Wertz gilwe...@hotmail.com wrote: I'm making a program that make calculation and try to integrate some Paraview stuff, every things goes fine, I have my render from the server, but when I use pqColorScaleEditor, the dialog show himself, I can change color depending on scale but when I check the legend checkbox, the application crash and I have no idea why ... Part of my code : void Widget3D::show_color_editor(){ scaleEdit = new pqColorScaleEditor(m_RenderView-getWidget()); pqDataRepresentation* repr = m_input-getRepresentation(m_RenderView); scaleEdit-setRepresentation(repr); scaleEdit-show(); } void Widget3D::createView(){ if(m_server){ // create a graphics window and put it in our main window this-m_RenderView = qobject_castpqRenderView*( m_object_builder-createView(pqRenderView::renderViewType(), m_server)); if(m_RenderView){ m_layout_v-insertWidget(0,this-m_RenderView-getWidget()); }else{ //NLog::globalLog()-addError(Problem when creating a RenderView.); } }else{ //NLog::globalLog()-addError(Cannot create RenderView if no paraview server connection is set.); } } void Widget3D::showRender() { if(m_source){ m_input = m_source;//m_filter2; m_object_builder-createDataRepresentation(m_input-getOutputPort(0), this-m_RenderView); changeStyle(); pqDataRepresentation* repr = m_input-getRepresentation(m_RenderView); this-m_color-setRepresentation(m_input-getRepresentation(m_RenderView)); //this-scaleEdit-setRepresentation(m_input-getRepresentation(m_RenderView)); qDebug() repr-getLookupTable(); //m_RenderView-get qDebug() repr-getLookupTableProxy(); // zoom to object this-m_RenderView-resetCamera(); // make sure we update this-m_RenderView-render(); }else{ //NLog::globalLog()-addError(There is no file to render.); } } Widget3D::Widget3D(QWidget *parent) : QWidget(parent) { // automatically make a server connection m_core = pqApplicationCore::instance(); m_object_builder = m_core-getObjectBuilder(); // Register ParaView interfaces. m_plugin_manager = m_core-getPluginManager(); // adds support for standard paraview views. m_plugin_manager-addInterface(new pqStandardViewModules(m_plugin_manager)); createView(); showRender(); connect(m_show_color_palet,SIGNAL(released()),this,SLOT(show_color_editor())); } You'll notice that I use client - server paraview architecture. What is strange is that I have no problem seting color on my mesh but the legend make the application crash. I tryed different things like : scaleEdit = new pqColorScaleEditor(m_RenderView-getWidget()); scaleEdit-show(); = it show me that there is no map ta set the legend... So I think it found the map Maybe the problem is that the rendering is made in server side, but I did not have problems with pqDisplayColorWidget that also use pqDataRepresentation. Thanks for any idea, if you need the full code I can provide it. Wertz Gil gilwe...@hotmail.com ___ 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 #include QApplication #include pqApplicationCore.h #include Widget3D.hpp int main(int argc, char * argv[]) { QApplication app(argc, argv
Re: [Paraview] pqColorScaleEditor crash
I'm sorry I think a founded the problem , I didn't know that I had to create a new pqLookupTableManager myself and set it to pqApplicationCore::instance() with setLookupTableManager. I had no problem with ObjectBuilder and PluginManager that I didn't needed to instantiate. Is it a bug ? Thanks Wertz Gil gilwe...@hotmail.com From: gilwe...@hotmail.com To: utkarsh.ayac...@kitware.com Date: Fri, 1 Apr 2011 08:23:21 +0200 CC: paraview@paraview.org Subject: Re: [Paraview] pqColorScaleEditor crash I'm not sure of what I could give you ( I tried to debug with gdb but it just say that the application crash, I knew it -_- ) But I made a sandbox and have the same problem, the code is shorter, I'll give it. I joined 3 files, the app file named paraview-crash-on-legend.cpp and my 3D widget. By the way I'm open for all comment or idea of improvement or else about good practise. Thanks for your fast answer ! I use : Qt 4 Paraview 10.0-RC1. Wertz Gil gilwe...@hotmail.com Date: Thu, 31 Mar 2011 10:40:46 -0400 Subject: Re: [Paraview] pqColorScaleEditor crash From: utkarsh.ayac...@kitware.com To: gilwe...@hotmail.com CC: paraview@paraview.org Gil, If you can provide the call-stack for where you're getting the segfault, it will be helpful. Utkarsh On Thu, Mar 31, 2011 at 10:13 AM, Gil Wertz gilwe...@hotmail.com wrote: I'm making a program that make calculation and try to integrate some Paraview stuff, every things goes fine, I have my render from the server, but when I use pqColorScaleEditor, the dialog show himself, I can change color depending on scale but when I check the legend checkbox, the application crash and I have no idea why ... Part of my code : void Widget3D::show_color_editor(){ scaleEdit = new pqColorScaleEditor(m_RenderView-getWidget()); pqDataRepresentation* repr = m_input-getRepresentation(m_RenderView); scaleEdit-setRepresentation(repr); scaleEdit-show(); } void Widget3D::createView(){ if(m_server){ // create a graphics window and put it in our main window this-m_RenderView = qobject_castpqRenderView*( m_object_builder-createView(pqRenderView::renderViewType(), m_server)); if(m_RenderView){ m_layout_v-insertWidget(0,this-m_RenderView-getWidget()); }else{ //NLog::globalLog()-addError(Problem when creating a RenderView.); } }else{ //NLog::globalLog()-addError(Cannot create RenderView if no paraview server connection is set.); } } void Widget3D::showRender() { if(m_source){ m_input = m_source;//m_filter2; m_object_builder-createDataRepresentation(m_input-getOutputPort(0), this-m_RenderView); changeStyle(); pqDataRepresentation* repr = m_input-getRepresentation(m_RenderView); this-m_color-setRepresentation(m_input-getRepresentation(m_RenderView)); //this-scaleEdit-setRepresentation(m_input-getRepresentation(m_RenderView)); qDebug() repr-getLookupTable(); //m_RenderView-get qDebug() repr-getLookupTableProxy(); // zoom to object this-m_RenderView-resetCamera(); // make sure we update this-m_RenderView-render(); }else{ //NLog::globalLog()-addError(There is no file to render.); } } Widget3D::Widget3D(QWidget *parent) : QWidget(parent) { // automatically make a server connection m_core = pqApplicationCore::instance(); m_object_builder = m_core-getObjectBuilder(); // Register ParaView interfaces. m_plugin_manager = m_core-getPluginManager(); // adds support for standard paraview views. m_plugin_manager-addInterface(new pqStandardViewModules(m_plugin_manager)); createView(); showRender(); connect(m_show_color_palet,SIGNAL(released()),this,SLOT(show_color_editor())); } You'll notice that I use client - server paraview architecture. What is strange is that I have no problem seting color on my mesh but the legend make the application crash. I tryed different things like : scaleEdit = new pqColorScaleEditor(m_RenderView-getWidget()); scaleEdit-show(); = it show me that there is no map ta set the legend... So I think it found the map Maybe the problem is that the rendering is made in server side, but I did not have problems with pqDisplayColorWidget that also use pqDataRepresentation. Thanks for any idea, if you need the full code I can provide it. Wertz Gil gilwe...@hotmail.com ___ Powered
[Paraview] pqColorScaleEditor crash
I'm making a program that make calculation and try to integrate some Paraview stuff, every things goes fine, I have my render from the server, but when I use pqColorScaleEditor, the dialog show himself, I can change color depending on scale but when I check the legend checkbox, the application crash and I have no idea why ... Part of my code : void Widget3D::show_color_editor(){ scaleEdit = new pqColorScaleEditor(m_RenderView-getWidget()); pqDataRepresentation* repr = m_input-getRepresentation(m_RenderView); scaleEdit-setRepresentation(repr); scaleEdit-show(); } void Widget3D::createView(){ if(m_server){ // create a graphics window and put it in our main window this-m_RenderView = qobject_castpqRenderView*( m_object_builder-createView(pqRenderView::renderViewType(), m_server)); if(m_RenderView){ m_layout_v-insertWidget(0,this-m_RenderView-getWidget()); }else{ //NLog::globalLog()-addError(Problem when creating a RenderView.); } }else{ //NLog::globalLog()-addError(Cannot create RenderView if no paraview server connection is set.); } } void Widget3D::showRender() { if(m_source){ m_input = m_source;//m_filter2; m_object_builder-createDataRepresentation(m_input-getOutputPort(0), this-m_RenderView); changeStyle(); pqDataRepresentation* repr = m_input-getRepresentation(m_RenderView); this-m_color-setRepresentation(m_input-getRepresentation(m_RenderView)); //this-scaleEdit-setRepresentation(m_input-getRepresentation(m_RenderView)); qDebug() repr-getLookupTable(); //m_RenderView-get qDebug() repr-getLookupTableProxy(); // zoom to object this-m_RenderView-resetCamera(); // make sure we update this-m_RenderView-render(); }else{ //NLog::globalLog()-addError(There is no file to render.); } } Widget3D::Widget3D(QWidget *parent) : QWidget(parent) { // automatically make a server connection m_core = pqApplicationCore::instance(); m_object_builder = m_core-getObjectBuilder(); // Register ParaView interfaces. m_plugin_manager = m_core-getPluginManager(); // adds support for standard paraview views. m_plugin_manager-addInterface(new pqStandardViewModules(m_plugin_manager)); createView(); showRender(); connect(m_show_color_palet,SIGNAL(released()),this,SLOT(show_color_editor())); } You'll notice that I use client - server paraview architecture. What is strange is that I have no problem seting color on my mesh but the legend make the application crash. I tryed different things like : scaleEdit = new pqColorScaleEditor(m_RenderView-getWidget()); scaleEdit-show(); = it show me that there is no map ta set the legend... So I think it found the map Maybe the problem is that the rendering is made in server side, but I did not have problems with pqDisplayColorWidget that also use pqDataRepresentation. Thanks for any idea, if you need the full code I can provide it. Wertz Gil gilwe...@hotmail.com ___ 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
Re: [Paraview] How to get the different data array / data set of a vtk file
The solution was to use pqDisplayColorWidget ... I'd use it like follow and it worked well : this-m_RenderView = qobject_castpqRenderView*( m_object_builder-createView(pqRenderView::renderViewType(), m_server)); QPointerpqPipelineSource m_source = m_object_builder-createReader(sources, LegacyVTKFileReader,QStringList(given_file), m_server); pqDataRepresentation* repr = m_input-getRepresentation(m_RenderView); this-m_color-setRepresentation(m_input-getRepresentation(m_RenderView)); Hope it'll help someone. Wertz Gil gilwe...@hotmail.com From: gilwe...@hotmail.com To: paraview@paraview.org Date: Mon, 28 Mar 2011 14:32:53 +0200 Subject: [Paraview] How to get the different data array / data set of a vtk file In Paraview, in Information Data Arrays there is a list of the data set of my vtk file (name,type,Data range). 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 ) Thanks in advance ! :-) Wertz Gil gilwe...@hotmail.com ___ 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 ___ 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
[Paraview] How to get the different data array / data set of a vtk file
In Paraview, in Information Data Arrays there is a list of the data set of my vtk file (name,type,Data range). 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 ) Thanks in advance ! :-) Wertz Gil gilwe...@hotmail.com ___ 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
[Paraview] open an in-memory vtk file
I made a client-server paraview system, from the client I ask to the server to open a vtk file, render it and give back render to the client. It's working well. But now, my boss said that we'll have a vtk file generated by an other program that'll be about 100Go and we don't want to write it to HDD in .vtk formate and after read it ( like before ), so I need to read the vtk file directly from memory. Is there a way to give to a reader a pointer to the memory vtk file ? PS: I'm not sure that this is very understandable but I'm not sure myself ... The main thing is that we make a vtk file in memory but don't want to write it in HDD. ( First solution envisaged is to dump memory. ) Thanks. Wertz Gil gilwe...@hotmail.com ___ 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
[Paraview] Compilation problem : Bad value
Hello, I have the following errors when compiling paraview and I don't have any ID of what it is ... :: error: ../../../bin/libvtkStreaming.a(vtkACosmoReader.cxx.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC ../../../bin/libvtkStreaming.a:: error: could not read symbols: Bad value I did look on google, but nobody have this problem for the same library than me, an nearly all the solution I saw where deprecated ... thanks for your help ^^. Wertz Gil gilwe...@hotmail.com ___ 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
[Paraview] can not drag object in TestPVSynchronizedRenderWindows
Hello, I'm new paraview code user and I tried some stuff in TestPVSynchronizedRenderWindows but when run , I can only rotate and zoom, but I would like to move object with the 3 mouse button. ( like when I use vtkRenderWindow with vtkRenderWindowInteractor ). In TestPVSynchronizedRenderWindows we use Proxy and I didn't find how to add the drag on it. My proxy are : vtkSMProxy* repr = pxm-NewProxy(representations,GeometryRepresentation); vtkSMProxy* viewProxy = vtkSMProxyManager::GetProxyManager()-NewProxy(views, RenderView); Thanks Wertz Gil gilwe...@hotmail.com ___ 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