Re: [Paraview] VTK Writer

2012-05-11 Thread Luis Martinez

Hi all,

I was able to get it to work in 3.14 by doing:

PlotOverLine1.UpdatePipeline()

before creating the writer. 

Thanks,

Tony



> Date: Fri, 11 May 2012 09:18:29 -0400
> Subject: Re: [Paraview] VTK Writer
> From: utkarsh.ayac...@kitware.com
> To: mmn...@gmail.com
> CC: lamtmar...@hotmail.com; paraview@paraview.org
> 
> There definitely seems to be a bug in the WriterFactory which fails to
> return valid readers when running through Python. We are looking into
> it.
> 
> Utkarsh
> 
> On Thu, May 10, 2012 at 10:38 PM, Mohamad M. Nasr-Azadani
>  wrote:
> > Luis,
> >
> > I had similar problem with some writers.
> > It was very strange and sporadic (it occurred both when I used *.vtu and
> > *.csv writers).
> > I kind of got the feeling that most of the times it appeared when I ran PV
> > in parallel so I could solve it by running PV in serial mode.
> > But as I said, I am not 100% what is going on.
> >
> > Good luck,
> > Mohamad
> >
> > On Sun, May 6, 2012 at 11:44 AM, Luis Martinez 
> > wrote:
> >>
> >> Hi all,
> >>
> >> I have a pvbatch script that worked in version 3.12. It uses plot over
> >> line and writes out CSV data.  Now I get the following error in version
> >> 3.14:
> >>
> >> Is this a bug or am I supposed to call the writer differently in 3.14?
> >>
> >> Thanks!
> >>
> >> Tony
> >>
> >>
> >>
> >> ERROR: In
> >> /build/buildd/paraview-3.14.1/ParaViewCore/ServerManager/vtkSMWriterFactory.cxx,
> >> line 374
> >> vtkSMWriterFactory (0x17ee360): No matching writer found for extension:
> >> csv
> >>
> >> Traceback (most recent call last):
> >>   File "wakeProfilesAllTurbines.py", line 65, in 
> >> writer.FieldAssociation = "Points"
> >> AttributeError: 'NoneType' object has no attribute 'FieldAssociation'
> >>
> >>
> >>
> >>
> >> Here is the script Im using:
> >>
> >>
> >>
> >> try: paraview.simple
> >> except: from paraview.simple import *
> >> paraview.simple._DisableFirstRenderCameraReset()
> >> import os
> >> import math
> >> import matplotlib as mpl
> >> mpl.use('Agg')
> >> import matplotlib.pyplot as plt
> >> import csv
> >> from scipy.integrate import trapz
> >> # Current location
> >> directory=os.getcwd()
> >> if not os.path.exists('./wakeProfiles/plots/'):
> >> os.makedirs('./wakeProfiles/plots/')
> >> # Rotor Diameter
> >> D=93
> >> width=D*1.5
> >> profiles=[0.125,0.25,0.5,0.75,1,2,3,4]
> >> layout=open('./layout.dat')
> >> Umean_slice_0_vtk = LegacyVTKReader(
> >> FileNames=[directory+'/../ADM/sliceDataADM/12746.8908019/Umean_slice_0.vtk']
> >> )
> >> Umean_slice_1_vtk = LegacyVTKReader(
> >> FileNames=[directory+'/../ALM/sliceDataALM/12771/Umean_slice_0.vtk'] )
> >> SetActiveSource(Umean_slice_0_vtk)
> >> CellDatatoPointData1 = CellDatatoPointData()
> >> SetActiveSource(CellDatatoPointData1)
> >> Calculator1 = Calculator()
> >> Calculator1.AttributeMode = 'point_data'
> >> Calculator1.Function = 'Umean_X*cos(0.8265) + Umean_Y*sin(0.8265)'
> >> Calculator1.ResultArrayName = 'U_row'
> >> SetActiveSource(Umean_slice_1_vtk)
> >> CellDatatoPointData2 = CellDatatoPointData()
> >> SetActiveSource(CellDatatoPointData2)
> >> Calculator2 = Calculator()
> >> Calculator2.AttributeMode = 'point_data'
> >> Calculator2.Function = 'Umean_X*cos(0.8265) + Umean_Y*sin(0.8265)'
> >> Calculator2.ResultArrayName = 'U_row'
> >> for i, turbine in enumerate(layout):
> >> for profile in profiles:
> >> SetActiveSource(Calculator1)
> >> PlotOverLine1 = PlotOverLine( Source="High Resolution Line Source"
> >> )
> >> PlotOverLine1.Source.Resolution = 100
> >> alpha0=0.8265-math.atan((width/2)/(profile*D))
> >> alpha1=0.8265+math.atan((width/2)/(profile*D))
> >> L=math.sqrt((D*profile)**2+(width/2)**2)
> >> x0=float(turbine.split()[0])+L*math.cos(alpha0)
> >> y0=float(turbine.split()[1])+L*math.sin(alpha0)
> >> x1=float(turbine.split()[0])+L*math.cos(alpha1)
> >> y1=float(turbine.split()[1])+L*math.sin(alpha1)
> >> PlotOverLine1.Source.Point1 = [x0, y0, 65.0]
> >> PlotOverLine1.Source.Point2 = [x1, y1, 65.0]
> >> if not os.path.exists('./wakeProfiles/'+str(profile)):
> >> os.makedirs('./wakeProfiles/'+str(profile))
> >> if not os.path.exists('./wakeProfiles/plots/'+str(profile)):
> >> os.makedirs('./wakeProfiles/plots/'+str(profile))
> >>
> >> nameADM=directory+'/wakeProfiles/'+str(profile)+'/ADM'+'turbine'+str(i+1)+'.csv'
> >> writer = CreateWriter(nameADM, PlotOverLine1)
> >> writer.FieldAssociation = "Points"
> >> writer.UpdatePipeline()
> >> del writer
> >> SetActiveSource(Calculator2)
> >> PlotOverLine2 = PlotOverLine( Source="High Resolution Line Source"
> >> )
> >> PlotOverLine2.Source.Resolution = 100
> >> PlotOverLine2.Source.Point1 = [x0, y0, 65.0]
> >> PlotOverLine2.Source.Point2 = [x1, y1, 65.0]
> >>
> >> nameALM=directory+'/wakeProfiles/'+str(profile)+

Re: [Paraview] Searching of a specific actor in the actor list

2012-05-11 Thread Cory Quammen
Li,

I don't know of a way to add a name or other identifier to a vtkObject.

It might be easier to have an auxiliary data structure that stores
references to the vtkActors and lets you set the visibility by
accessing the vtkActor through that data structure. I tend to find
this easier than working with the VTK structures directly. For
example, you might just use a map from your program-specific data
structure to the vtkActor that represents it.

Hope that helps,
Cory

On Fri, May 11, 2012 at 3:49 PM, Li Guan  wrote:
> Dear all,
>
> I would like to change the visibility property of a specific actor in
> the renderer. Right now, I need to remember which orderly ID my actor
> is in the actor list and iterate through the following to get to the
> actor,
>
> vtkPropCollection* props = renderer->GetViewProps();
> props->InitTraversal();
> for(int i = 0; i < props->GetNumberOfItems(); i++){...}
>
> This is quite complicated, and once one actor in the list is removed,
> the ID may change.
> Is there a way to set a name to an actor, and just traverse though the
> list to search for the actor with the specific name?
>
> Or there is a correct way to do so that I do not know of yet.
>
> Thanks in advance,
>
> Li
> ___
> 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



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
___
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] Searching of a specific actor in the actor list

2012-05-11 Thread Li Guan
Dear all,

I would like to change the visibility property of a specific actor in
the renderer. Right now, I need to remember which orderly ID my actor
is in the actor list and iterate through the following to get to the
actor,

vtkPropCollection* props = renderer->GetViewProps();
props->InitTraversal();
for(int i = 0; i < props->GetNumberOfItems(); i++){...}

This is quite complicated, and once one actor in the list is removed,
the ID may change.
Is there a way to set a name to an actor, and just traverse though the
list to search for the actor with the specific name?

Or there is a correct way to do so that I do not know of yet.

Thanks in advance,

Li
___
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] Read LAS format LiDAR data

2012-05-11 Thread Simon Su
Hello,

can ParaView read LAS data format? or any other x y z intensity format data?

thanks
-simon
___
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] error when Generating vtkgl.cxx

2012-05-11 Thread Utkarsh Ayachit
Sounds like a reasonable path to follow.

Utkarsh

On Fri, May 11, 2012 at 2:08 PM, Aurélien Marsan  wrote:
> Sorry I jut see your answer.
>
> Using the french system language, I had the same error message with ubuntu
> 12.04.
> But We find a solution today : to set the ubuntu language environment in
> english, instead of french.
>
> I also had an other error message when compiling using "make -j", at approx.
> 5% of the compilation, that didn't occured anymore when compiling using
> "make" only. (sorry, I don't remember where...)
> That error was linked to the language : unknown /xc3 character, or something
> like that, and make us try to compile with ubuntu in english.
>
> Does that make sense to you ?
>
> Thanks,
>
> Aurélien
>
> 2012/5/10 Utkarsh Ayachit 
>>
>> Can you try running make as follows
>> > VERBOSE=1 make vtkRendering
>>
>> and then post the output?
>>
>> Thanks
>>
>> On Thu, May 10, 2012 at 1:18 PM, Aurélien Marsan 
>> wrote:
>> > Hi all,
>> >
>> > Here is a problem that were already encountered.
>> > http://public.kitware.com/pipermail/paraview/2011-June/021919.html
>> >
>> > I have exactly the same error message, that I can not understand.
>> >
>> > Linking CXX shared module ../../bin/vtkIOPython.so
>> > [ 28%] Built target vtkIOPython
>> > [ 28%] Generating vtkSurfaceLICPainter_vs1.cxx,
>> > vtkSurfaceLICPainter_vs1.h
>> > [ 28%] Generating vtkgl.cxx
>> > USAGE: ../../bin/vtkParseOGLExt 
>> > make[2]: *** [VTK/Rendering/vtkgl.cxx] Erreur 1
>> > make[1]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/all] Erreur 2
>> > make: *** [all] Erreur 2
>> >
>> > Any idea about the origin of that sudden compilation stop ?
>> >
>> > I am compiling on Ubuntu 10.04 LTS, 64bits.
>> >
>> > Thanks,
>> >
>> > Aurélien
>> >
>> > ___
>> > 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] error when Generating vtkgl.cxx

2012-05-11 Thread Aurélien Marsan
Sorry I jut see your answer.

Using the french system language, I had the same error message with ubuntu
12.04.
But We find a solution today : to set the ubuntu language environment in
english, instead of french.

I also had an other error message when compiling using "make -j", at
approx. 5% of the compilation, that didn't occured anymore when compiling
using "make" only. (sorry, I don't remember where...)
That error was linked to the language : unknown /xc3 character, or
something like that, and make us try to compile with ubuntu in english.

Does that make sense to you ?

Thanks,

Aurélien

2012/5/10 Utkarsh Ayachit 

> Can you try running make as follows
> > VERBOSE=1 make vtkRendering
>
> and then post the output?
>
> Thanks
>
> On Thu, May 10, 2012 at 1:18 PM, Aurélien Marsan 
> wrote:
> > Hi all,
> >
> > Here is a problem that were already encountered.
> > http://public.kitware.com/pipermail/paraview/2011-June/021919.html
> >
> > I have exactly the same error message, that I can not understand.
> >
> > Linking CXX shared module ../../bin/vtkIOPython.so
> > [ 28%] Built target vtkIOPython
> > [ 28%] Generating vtkSurfaceLICPainter_vs1.cxx,
> vtkSurfaceLICPainter_vs1.h
> > [ 28%] Generating vtkgl.cxx
> > USAGE: ../../bin/vtkParseOGLExt 
> > make[2]: *** [VTK/Rendering/vtkgl.cxx] Erreur 1
> > make[1]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/all] Erreur 2
> > make: *** [all] Erreur 2
> >
> > Any idea about the origin of that sudden compilation stop ?
> >
> > I am compiling on Ubuntu 10.04 LTS, 64bits.
> >
> > Thanks,
> >
> > Aurélien
> >
> > ___
> > 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] OpenDataFile with ParaViewWeb JavaScript Console

2012-05-11 Thread Sebastien Jourdain
You can create your own python plugin that will append the proper path
in front of the provided name.

=== myPlugin.py ===
from paraview import simple

def load(file):
   return simple.OpenDataFile('/your-path/' + file)

===

In JS you'll do something like that

var plugin = paraview.getPlugin('myPlugin');
var reader = plugin.load('NameOfFile.mhd');

But you should figure out why the server crashed by looking at the log
if you can. The full path should have worked.

Seb

On Fri, May 11, 2012 at 11:31 AM, Tuan Ha Tran
 wrote:
> Hi everybody,
>     I have a question to ask. I use ParaViewWeb JavaScript Console to load
> an image file to ParaViewWeb, I use the followed code "var reader
> =paraview.OpenDataFile({filename:"../NameOfFile"});"     I tried with the
> absolute path of my PC (which is normally not the good solution) and get the
> "ServerDownException"
>     So, if I want ParaViewWeb to look at in the web-apps of tomcat server,
> which path I have to use? As I know, if the file is in the same location as
> the PWConsole.war, we can access to it directly using {filename:"hola.mhd"}
> (for example)
>     Anyone have an idea?
>    Thank in advance.
>
> ___
> 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] OpenDataFile with ParaViewWeb JavaScript Console

2012-05-11 Thread Tuan Ha Tran
Hi everybody,
I have a question to ask. I use ParaViewWeb JavaScript Console to load an 
image file to ParaViewWeb, I use the followed code "var reader 
=paraview.OpenDataFile({filename:"../NameOfFile"});" I tried with the 
absolute path of my PC (which is normally not the good solution) and get the 
"ServerDownException"
So, if I want ParaViewWeb to look at in the web-apps of tomcat server, 
which path I have to use? As I know, if the file is in the same location as the 
PWConsole.war, we can access to it directly using {filename:"hola.mhd"} (for 
example)
Anyone have an idea?
   Thank in advance.___
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] VTK Writer

2012-05-11 Thread Utkarsh Ayachit
There definitely seems to be a bug in the WriterFactory which fails to
return valid readers when running through Python. We are looking into
it.

Utkarsh

On Thu, May 10, 2012 at 10:38 PM, Mohamad M. Nasr-Azadani
 wrote:
> Luis,
>
> I had similar problem with some writers.
> It was very strange and sporadic (it occurred both when I used *.vtu and
> *.csv writers).
> I kind of got the feeling that most of the times it appeared when I ran PV
> in parallel so I could solve it by running PV in serial mode.
> But as I said, I am not 100% what is going on.
>
> Good luck,
> Mohamad
>
> On Sun, May 6, 2012 at 11:44 AM, Luis Martinez 
> wrote:
>>
>> Hi all,
>>
>> I have a pvbatch script that worked in version 3.12. It uses plot over
>> line and writes out CSV data.  Now I get the following error in version
>> 3.14:
>>
>> Is this a bug or am I supposed to call the writer differently in 3.14?
>>
>> Thanks!
>>
>> Tony
>>
>>
>>
>> ERROR: In
>> /build/buildd/paraview-3.14.1/ParaViewCore/ServerManager/vtkSMWriterFactory.cxx,
>> line 374
>> vtkSMWriterFactory (0x17ee360): No matching writer found for extension:
>> csv
>>
>> Traceback (most recent call last):
>>   File "wakeProfilesAllTurbines.py", line 65, in 
>>     writer.FieldAssociation = "Points"
>> AttributeError: 'NoneType' object has no attribute 'FieldAssociation'
>>
>>
>>
>>
>> Here is the script Im using:
>>
>>
>>
>> try: paraview.simple
>> except: from paraview.simple import *
>> paraview.simple._DisableFirstRenderCameraReset()
>> import os
>> import math
>> import matplotlib as mpl
>> mpl.use('Agg')
>> import matplotlib.pyplot as plt
>> import csv
>> from scipy.integrate import trapz
>> # Current location
>> directory=os.getcwd()
>> if not os.path.exists('./wakeProfiles/plots/'):
>>     os.makedirs('./wakeProfiles/plots/')
>> # Rotor Diameter
>> D=93
>> width=D*1.5
>> profiles=[0.125,0.25,0.5,0.75,1,2,3,4]
>> layout=open('./layout.dat')
>> Umean_slice_0_vtk = LegacyVTKReader(
>> FileNames=[directory+'/../ADM/sliceDataADM/12746.8908019/Umean_slice_0.vtk']
>> )
>> Umean_slice_1_vtk = LegacyVTKReader(
>> FileNames=[directory+'/../ALM/sliceDataALM/12771/Umean_slice_0.vtk'] )
>> SetActiveSource(Umean_slice_0_vtk)
>> CellDatatoPointData1 = CellDatatoPointData()
>> SetActiveSource(CellDatatoPointData1)
>> Calculator1 = Calculator()
>> Calculator1.AttributeMode = 'point_data'
>> Calculator1.Function = 'Umean_X*cos(0.8265) + Umean_Y*sin(0.8265)'
>> Calculator1.ResultArrayName = 'U_row'
>> SetActiveSource(Umean_slice_1_vtk)
>> CellDatatoPointData2 = CellDatatoPointData()
>> SetActiveSource(CellDatatoPointData2)
>> Calculator2 = Calculator()
>> Calculator2.AttributeMode = 'point_data'
>> Calculator2.Function = 'Umean_X*cos(0.8265) + Umean_Y*sin(0.8265)'
>> Calculator2.ResultArrayName = 'U_row'
>> for i, turbine in enumerate(layout):
>>     for profile in profiles:
>>     SetActiveSource(Calculator1)
>>     PlotOverLine1 = PlotOverLine( Source="High Resolution Line Source"
>> )
>>     PlotOverLine1.Source.Resolution = 100
>>     alpha0=0.8265-math.atan((width/2)/(profile*D))
>>     alpha1=0.8265+math.atan((width/2)/(profile*D))
>>     L=math.sqrt((D*profile)**2+(width/2)**2)
>>     x0=float(turbine.split()[0])+L*math.cos(alpha0)
>>     y0=float(turbine.split()[1])+L*math.sin(alpha0)
>>     x1=float(turbine.split()[0])+L*math.cos(alpha1)
>>     y1=float(turbine.split()[1])+L*math.sin(alpha1)
>>     PlotOverLine1.Source.Point1 = [x0, y0, 65.0]
>>     PlotOverLine1.Source.Point2 = [x1, y1, 65.0]
>>     if not os.path.exists('./wakeProfiles/'+str(profile)):
>>     os.makedirs('./wakeProfiles/'+str(profile))
>>     if not os.path.exists('./wakeProfiles/plots/'+str(profile)):
>>     os.makedirs('./wakeProfiles/plots/'+str(profile))
>>
>> nameADM=directory+'/wakeProfiles/'+str(profile)+'/ADM'+'turbine'+str(i+1)+'.csv'
>>     writer = CreateWriter(nameADM, PlotOverLine1)
>>     writer.FieldAssociation = "Points"
>>     writer.UpdatePipeline()
>>     del writer
>>     SetActiveSource(Calculator2)
>>     PlotOverLine2 = PlotOverLine( Source="High Resolution Line Source"
>> )
>>     PlotOverLine2.Source.Resolution = 100
>>     PlotOverLine2.Source.Point1 = [x0, y0, 65.0]
>>     PlotOverLine2.Source.Point2 = [x1, y1, 65.0]
>>
>> nameALM=directory+'/wakeProfiles/'+str(profile)+'/ALM'+'turbine'+str(i+1)+'.csv'
>>     writer = CreateWriter(nameALM, PlotOverLine2)
>>     writer.FieldAssociation = "Points"
>>     writer.UpdatePipeline()
>>     del writer
>>     csvreader1 = csv.reader(open(nameADM,'rb'))
>>     csvreader2 = csv.reader(open(nameALM,'rb'))
>>     x,y,x1,y1=[],[],[],[]
>>     for j, line in enumerate(csvreader1):
>>     if j>0:
>>     x.append((float(line[5])-width/2)/D)
>>     y.append(float(line[0]))
>>     for j, line in enumerate(csvreader2):
>>     if j>0:
>>  

Re: [Paraview] Problems with displaying labels floating over data points

2012-05-11 Thread Nenad Vujicic
Hello Utkarsh,

Thank You very much for Your help! It works great when created as
Python macro. I probably messed up something in my C++ code.

Best regards,
Nenad.

On Thu, May 10, 2012 at 2:28 PM, Utkarsh Ayachit
 wrote:
> Creating a DataLabelRepresentation should have worked. Here's a Python
> script that illustrates the same:
>
> from paraview.simple import *
> s = Sphere()
> r = Show()
> v = Render()
> l = servermanager.rendering.DataLabelRepresentation()
> l.Input = s
> l.PointLabelVisibility = 1
> l.PointLabelMode = "IDs"
> v.Representations.append(l)
> Render()
>
> Utkarsh
>
> On Wed, May 9, 2012 at 5:53 PM, Nenad Vujicic  wrote:
>> Hello everyone,
>>
>> I have a set of points over which I would like to have floating labels
>> rendered from values defined in per-point attribute array. If I select
>> these points and turn on "Point Labels", on Selection Inspector
>> docking panel, I get exactly what I need, but, I would like to have
>> these labels not bound to currently selected points.
>>
>> I figured out that these labels are drawn using
>> vtkDataLabelRepresentation class, but I was unable to apply this
>> representation to points I extracted from plugin. My idea was to
>> create a filter, which will extract all points I'm interested in, and
>> to catch adding new representation
>> object to Server Manager and current view and replace it with
>> pqDataRepresentation which points to vtkDataLabelRepresentation.
>> Unfortunately, it didn't work. I also tried with patching
>> vtkPVCompositeRepresentation to have always turned on these labels,
>> but it failed too.
>>
>> Does anyone have idea how I could add these labels?
>>
>> Thanks to everyone!
>>
>> Nenad.
>> ___
>> 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