<div dir="ltr">Hi,<div style> I want to use the application of example (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a>) in example (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a>) but when i trying to modifying this, i am getting certain errors. I am attaching my modifying code with this mail, could you please tell me the mistakes which i am doing in that.</div>
<div style><br></div><div style>Looking forward your reply soon.</div><div style><br></div><div style>rahul indoria</div><div style><br></div><div style><br></div><div style><br></div><div style><br></div><div style><br></div>
<div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 6:00 PM, <span dir="ltr"><<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Send vtkusers mailing list submissions to<br>
<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:vtkusers-owner@vtk.org" target="_blank">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of vtkusers digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. How do I render a volume from an UnstructuredGrid? (Ruff)<br>
2. Re: vtkButtonSource?vtkRectangularButtonSource<br>
?vtkEllipticalButtonSource (louiskoo)<br>
3. Re: Problem in an example (Shawn Waldon)<br>
4. Re: Contouring Irregular Points (David E DeMarle)<br>
5. Re: Contouring Irregular Points (Michael Jackson)<br>
6. Re: Contouring Irregular Points (David E DeMarle)<br>
7. Re: How do I render a volume from an UnstructuredGrid? (Ruff)<br>
8. How to use vtkButtonWidget.AddObserver() (louiskoo)<br>
9. Re: vtkButtonSource?vtkRectangularButtonSource<br>
?vtkEllipticalButtonSource (mirko heuegger)<br>
10. Vtk 6.0 dotnet (Domenico Quaranta)<br>
11. Is it possible to make an image slice of unstructured grid? (Ruff)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 4 Jul 2013 06:21:02 -0700 (PDT)<br>
From: Ruff <<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>><br>
Subject: [vtkusers] How do I render a volume from an UnstructuredGrid?<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID: <<a href="mailto:1372944062789-5721766.post@n5.nabble.com" target="_blank">1372944062789-5721766.post@n5.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
I've created an unstructured grid and would like to volume render it's scalar<br>
values, but nothing is rendered.<br>
It seems like it is calculating the space I've specified but I cannot see<br>
anything. Like I'm missing some small obvious thing.<br>
<br>
I also tried setting a function to the mapper (Not that I know exactly what<br>
it does) but it doesn't seem to do anything.<br>
<br>
/I know that my current dataset could easily be used as structuredPoints,<br>
but I am planning to use a more arbitrary structure for the datafiles./<br>
<br>
The code is as follows:<br>
#!/usr/bin/env python<br>
<br>
import math<br>
from random import*<br>
from vtk import*<br>
<br>
#------------------------------------------------------------------#<br>
# Just generating a pretty pattern #<br>
#------------------------------------------------------------------#<br>
cubeSize = 40<br>
atomIndex = 0<br>
coordinates = vtk.vtkPoints()<br>
scalars = vtk.vtkFloatArray()<br>
<br>
for z in range(0,cubeSize):<br>
for y in range(0,cubeSize):<br>
for x in range(0,cubeSize):<br>
distX = abs(cubeSize/2 - x)<br>
distY = abs(cubeSize/2 - y)<br>
distZ = abs(cubeSize/2 - z)<br>
dist = math.sqrt(distX*distX + distY*distY + distZ*distZ)<br>
<br>
coordinates.InsertPoint(atomIndex, x, y, z)<br>
scalars.InsertValue(atomIndex, abs(math.cos(dist*.1)*255))<br>
#------------------------------------------------------------------#<br>
# Done generating pretty pattern #<br>
#------------------------------------------------------------------#<br>
<br>
#Setting up scalar grid<br>
ScalarGrid = vtk.vtkUnstructuredGrid()<br>
ScalarGrid.SetPoints(coordinates)<br>
ScalarGrid.GetPointData().SetScalars(scalars)<br>
<br>
#------------------------------------------------------------------#<br>
# Fixing a bunch of volume properties #<br>
#------------------------------------------------------------------#<br>
# Scalars (0-255) mapped to transparency<br>
opacity = vtk.vtkPiecewiseFunction()<br>
opacity.AddPoint(150, 0)<br>
opacity.AddPoint(255, 1)<br>
<br>
# Scalars (0-255) mapped to colors<br>
colors = vtk.vtkColorTransferFunction()<br>
colors.AddRGBPoint(0,1,1,1)<br>
colors.AddRGBPoint(230,0,1,0)<br>
colors.AddRGBPoint(250,1,0,0)<br>
<br>
# Colors and opacity goes into a property, along with some fancy stuff<br>
volumeProperty = vtk.vtkVolumeProperty()<br>
volumeProperty.SetColor(colors)<br>
volumeProperty.SetScalarOpacity(opacity)<br>
volumeProperty.ShadeOn()<br>
volumeProperty.SetInterpolationTypeToLinear()<br>
<br>
#------------------------------------------------------------------#<br>
# End of volume properties #<br>
#------------------------------------------------------------------#<br>
<br>
# Mapping the grid<br>
volumeMapper = vtkUnstructuredGridVolumeRayCastMapper()<br>
volumeMapper.SetInput(ScalarGrid)<br>
#This seems to do nothing at all<br>
Function = vtk.vtkUnstructuredGridBunykRayCastFunction()<br>
volumeMapper.SetRayCastFunction(Function)<br>
<br>
# Volume using the mapper<br>
volume = vtk.vtkVolume()<br>
volume.SetMapper(volumeMapper)<br>
volume.SetProperty(volumeProperty)<br>
<br>
# Standard renderer, render window and interactor<br>
ren = vtk.vtkRenderer()<br>
ren.AddVolume(volume)<br>
ren.SetBackground(1, 1, 1)<br>
<br>
# =======THIS IS WRITTEN ONLY TO SEE THAT SOMETHING IS RENDERED=======<br>
cylinder = vtkCylinderSource()<br>
cylinderMapper = vtkPolyDataMapper()<br>
cylinderMapper.SetInput(cylinder.GetOutput())<br>
cylinderActor = vtkActor()<br>
cylinderActor.SetMapper(cylinderMapper)<br>
ren.AddActor(cylinderActor)<br>
# =====================================================================<br>
<br>
renWin = vtk.vtkRenderWindow()<br>
renWin.AddRenderer(ren)<br>
renWin.SetSize(600, 600)<br>
<br>
iren = vtk.vtkRenderWindowInteractor()<br>
iren.SetRenderWindow(renWin)<br>
iren.Initialize()<br>
iren.Start()<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-do-I-render-a-volume-from-an-UnstructuredGrid-tp5721766.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-do-I-render-a-volume-from-an-UnstructuredGrid-tp5721766.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 4 Jul 2013 06:28:47 -0700 (PDT)<br>
From: louiskoo <<a href="mailto:419655660@qq.com" target="_blank">419655660@qq.com</a>><br>
Subject: Re: [vtkusers] vtkButtonSource?vtkRectangularButtonSource<br>
?vtkEllipticalButtonSource<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID: <<a href="mailto:1372944527281-5721767.post@n5.nabble.com" target="_blank">1372944527281-5721767.post@n5.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Yes,I have taken your suggstion.<br>
<br>
vtkButtonWidget buttonWidget = vtkButtonWidget.New();<br>
vtkRenderWindowInteractor renderInteractor =<br>
renderWindowControl1.RenderWindow.GetInteractor();<br>
renderInteractor.LeftButtonPressEvt += new<br>
vtkObject.vtkObjectEventHandler(renderInteractor_LeftButtonPressEvt);<br>
buttonWidget.SetInteractor(renderInteractor);<br>
buttonWidget.SetRepresentation(rep);<br>
//buttonWidget.LeftButtonPressEvt += new<br>
vtkObject.vtkObjectEventHandler(buttonWidget_LeftButtonPressEvt);<br>
buttonWidget.On();<br>
<br>
But the result is that the buttonWidget has no effect when I click the<br>
buttonWidget .<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkButtonSource-vtkRectangularButtonSource-vtkEllipticalButtonSource-tp5721752p5721767.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkButtonSource-vtkRectangularButtonSource-vtkEllipticalButtonSource-tp5721752p5721767.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 4 Jul 2013 09:29:14 -0400<br>
From: Shawn Waldon <<a href="mailto:swaldon@cs.unc.edu" target="_blank">swaldon@cs.unc.edu</a>><br>
Subject: Re: [vtkusers] Problem in an example<br>
To: rahul indoria <<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>><br>
Cc: "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<CAKqg6a5sy8M=BsiA=<a href="mailto:L8TiGzOsAr-wK_NEVzxmPB6HwkCC8L8Ng@mail.gmail.com" target="_blank">L8TiGzOsAr-wK_NEVzxmPB6HwkCC8L8Ng@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Rahul,<br>
<br>
It looks like you may be building against an older version of VTK.<br>
SetInputData was not added until VTK 6, so if you are using VTK 5 (or<br>
accidentally using the wrong header files), that is why you are getting the<br>
message. If you just want to modify the code, you could change it to<br>
SetInput instead (the VTK 5 and previous method used for the same purpose).<br>
The methods are slightly different (see<br>
<a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput" target="_blank">http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput</a>), but<br>
for the purposes of this example they are the same.<br>
<br>
HTH,<br>
<br>
Shawn<br>
<br>
<br>
On Thu, Jul 4, 2013 at 8:58 AM, rahul indoria <<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>>wrote:<br>
<br>
> Hi,<br>
> when i am running this code, this example(<br>
> <a href="http://vtk.org/gitweb?p=VTK.git;a=blob_plain;f=Examples/DataManipulation/Cxx/Arrays.cxx" target="_blank">http://vtk.org/gitweb?p=VTK.git;a=blob_plain;f=Examples/DataManipulation/Cxx/Arrays.cxx</a><br>
> ) *showing an error : 'SetInputData'* : is not a member of<br>
> 'vtkPolyDataMapper', but when i am checking this class, this class has this<br>
> member function, could you please tell me, why i am getting this example?<br>
><br>
><br>
> Looking forward your reply.<br>
> rahul indoria<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
<br>
<br>
--<br>
Shawn Waldon<br>
Graduate Student<br>
Department of Computer Science<br>
University of North Carolina at Chapel Hill<br>
<a href="mailto:swaldon@cs.unc.edu" target="_blank">swaldon@cs.unc.edu</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130704/42a9508f/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130704/42a9508f/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 4 Jul 2013 09:53:49 -0400<br>
From: David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>><br>
Subject: Re: [vtkusers] Contouring Irregular Points<br>
To: Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>><br>
Cc: "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<<a href="mailto:CANjZAi-7DJaKp7G6eWSynHP8tv06NWXapn1HOKEtqoZHuhOJKw@mail.gmail.com" target="_blank">CANjZAi-7DJaKp7G6eWSynHP8tv06NWXapn1HOKEtqoZHuhOJKw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
pointset->delauney->contour<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>
<br>
<br>
On Thu, Jul 4, 2013 at 8:06 AM, Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
> wrote:<br>
<br>
> Can VTK create a contour plot of "irregular" points? What I mean is that I<br>
> have a bunch of X,Y + intensity points but the X,Y points are NOT on a<br>
> regular grid they are just "Point Data". A collaborator of mine uses IDL to<br>
> produce some plots from this data and I would like to use VTK for my own<br>
> projects.<br>
><br>
> Thanks for any help.<br>
> ___________________________________________________________<br>
> Mike Jackson Principal Software Engineer<br>
> BlueQuartz Software Dayton, Ohio<br>
> <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a> <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</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<br>
> <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 VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130704/42dede44/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130704/42dede44/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 4 Jul 2013 09:56:03 -0400<br>
From: Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>><br>
Subject: Re: [vtkusers] Contouring Irregular Points<br>
To: "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
Message-ID: <<a href="mailto:B3832DE6-FA1D-463A-AED1-38D8FCE74818@bluequartz.net" target="_blank">B3832DE6-FA1D-463A-AED1-38D8FCE74818@bluequartz.net</a>><br>
Content-Type: text/plain; charset=iso-8859-1<br>
<br>
Is that available in ParaView by any chance?<br>
___________________________________________________________<br>
Mike Jackson Principal Software Engineer<br>
<br>
<br>
On Jul 4, 2013, at 9:53 AM, David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>> wrote:<br>
<br>
> pointset->delauney->contour<br>
><br>
> David E DeMarle<br>
> Kitware, Inc.<br>
> R&D Engineer<br>
> 21 Corporate Drive<br>
> Clifton Park, NY 12065-8662<br>
> Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>
><br>
><br>
> On Thu, Jul 4, 2013 at 8:06 AM, Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>> wrote:<br>
> Can VTK create a contour plot of "irregular" points? What I mean is that I have a bunch of X,Y + intensity points but the X,Y points are NOT on a regular grid they are just "Point Data". A collaborator of mine uses IDL to produce some plots from this data and I would like to use VTK for my own projects.<br>
><br>
> Thanks for any help.<br>
> ___________________________________________________________<br>
> Mike Jackson Principal Software Engineer<br>
> BlueQuartz Software Dayton, Ohio<br>
> <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a> <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Thu, 4 Jul 2013 09:59:59 -0400<br>
From: David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>><br>
Subject: Re: [vtkusers] Contouring Irregular Points<br>
To: Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>><br>
Cc: "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<<a href="mailto:CANjZAi8xqxORavJR%2BMaXzeNWEBDaTYfEAZgO5u3RLRBSwZAF8Q@mail.gmail.com" target="_blank">CANjZAi8xqxORavJR+MaXzeNWEBDaTYfEAZgO5u3RLRBSwZAF8Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
yes<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>
<br>
<br>
On Thu, Jul 4, 2013 at 9:56 AM, Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
> wrote:<br>
<br>
> Is that available in ParaView by any chance?<br>
> ___________________________________________________________<br>
> Mike Jackson Principal Software Engineer<br>
><br>
><br>
> On Jul 4, 2013, at 9:53 AM, David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>><br>
> wrote:<br>
><br>
> > pointset->delauney->contour<br>
> ><br>
> > David E DeMarle<br>
> > Kitware, Inc.<br>
> > R&D Engineer<br>
> > 21 Corporate Drive<br>
> > Clifton Park, NY 12065-8662<br>
> > Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a><br>
> ><br>
> ><br>
> > On Thu, Jul 4, 2013 at 8:06 AM, Michael Jackson <<br>
> <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>> wrote:<br>
> > Can VTK create a contour plot of "irregular" points? What I mean is that<br>
> I have a bunch of X,Y + intensity points but the X,Y points are NOT on a<br>
> regular grid they are just "Point Data". A collaborator of mine uses IDL to<br>
> produce some plots from this data and I would like to use VTK for my own<br>
> projects.<br>
> ><br>
> > Thanks for any help.<br>
> > ___________________________________________________________<br>
> > Mike Jackson Principal Software Engineer<br>
> > BlueQuartz Software Dayton, Ohio<br>
> > <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a> <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</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<br>
> <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 VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
> ><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<br>
> <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 VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130704/372d753c/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130704/372d753c/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Thu, 4 Jul 2013 07:01:04 -0700 (PDT)<br>
From: Ruff <<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>><br>
Subject: Re: [vtkusers] How do I render a volume from an<br>
UnstructuredGrid?<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID: <<a href="mailto:1372946464751-5721772.post@n5.nabble.com" target="_blank">1372946464751-5721772.post@n5.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
I just noticed that in creating the unstructuredgrid, i do not count up the<br>
atomIndex in the writing loop (missing a 'atomIndex = atomIndex + 1').<br>
Fixing this does not solve my problem though.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-do-I-render-a-volume-from-an-UnstructuredGrid-tp5721766p5721772.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-do-I-render-a-volume-from-an-UnstructuredGrid-tp5721766p5721772.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Thu, 4 Jul 2013 07:14:05 -0700 (PDT)<br>
From: louiskoo <<a href="mailto:419655660@qq.com" target="_blank">419655660@qq.com</a>><br>
Subject: [vtkusers] How to use vtkButtonWidget.AddObserver()<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID: <<a href="mailto:1372947245702-5721774.post@n5.nabble.com" target="_blank">1372947245702-5721774.post@n5.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
anyone can give me some ideas?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-use-vtkButtonWidget-AddObserver-tp5721774.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-use-vtkButtonWidget-AddObserver-tp5721774.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Thu, 4 Jul 2013 16:19:07 +0200<br>
From: mirko heuegger <<a href="mailto:mheuegger@gmail.com" target="_blank">mheuegger@gmail.com</a>><br>
Subject: Re: [vtkusers] vtkButtonSource?vtkRectangularButtonSource<br>
?vtkEllipticalButtonSource<br>
To: louiskoo <<a href="mailto:419655660@qq.com" target="_blank">419655660@qq.com</a>><br>
Cc: vtkusers <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
Message-ID:<br>
<CACR=3K4tBiyeSpnC1PfVtf=jCqaNmHEU9cyOWCkxJrw1Hh=<a href="mailto:YqA@mail.gmail.com" target="_blank">YqA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello!<br>
<br>
If I extend my mentioned example ('Form1.cs') by:<br>
this.buttonWidget = vtkButtonWidget.New();<br>
iren.LeftButtonPressEvt += new vtkObject.vtkObjectEventHandler(dummyEvnt);<br>
this.buttonWidget.SetInteractor(this.RendWinInteractor);<br>
this.buttonWidget.On();<br>
and the event will fired, so I guess your snippet is working and the error<br>
is located elsewhere.<br>
<br>
<br>
regards<br>
<br>
mirko<br>
<br>
<br>
<br>
On Thu, Jul 4, 2013 at 3:28 PM, louiskoo <<a href="mailto:419655660@qq.com" target="_blank">419655660@qq.com</a>> wrote:<br>
<br>
> Yes,I have taken your suggstion.<br>
><br>
> vtkButtonWidget buttonWidget = vtkButtonWidget.New();<br>
> vtkRenderWindowInteractor renderInteractor =<br>
> renderWindowControl1.RenderWindow.GetInteractor();<br>
> renderInteractor.LeftButtonPressEvt += new<br>
> vtkObject.vtkObjectEventHandler(renderInteractor_LeftButtonPressEvt);<br>
> buttonWidget.SetInteractor(renderInteractor);<br>
> buttonWidget.SetRepresentation(rep);<br>
> //buttonWidget.LeftButtonPressEvt += new<br>
> vtkObject.vtkObjectEventHandler(buttonWidget_LeftButtonPressEvt);<br>
> buttonWidget.On();<br>
><br>
> But the result is that the buttonWidget has no effect when I click the<br>
> buttonWidget .<br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://vtk.1045678.n5.nabble.com/vtkButtonSource-vtkRectangularButtonSource-vtkEllipticalButtonSource-tp5721752p5721767.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkButtonSource-vtkRectangularButtonSource-vtkEllipticalButtonSource-tp5721752p5721767.html</a><br>
> Sent from the VTK - Users mailing list archive at Nabble.com.<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<br>
> <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 VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<br>
<br>
<br>
--<br>
Real programmers don't document; if it was<br>
hard to write, it should be hard to understand.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130704/96c5275b/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130704/96c5275b/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Thu, 4 Jul 2013 16:41:04 +0200<br>
From: Domenico Quaranta <<a href="mailto:n40.analysis@gmail.com" target="_blank">n40.analysis@gmail.com</a>><br>
Subject: [vtkusers] Vtk 6.0 dotnet<br>
To: DeMarle David E <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>><br>
Cc: "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
Message-ID: <<a href="mailto:FFFB70FF-F916-4DE7-A0AD-5144A1A24B31@gmail.com" target="_blank">FFFB70FF-F916-4DE7-A0AD-5144A1A24B31@gmail.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Hi Dave<br>
I read that sometimes ago you posted that the new vtk 6.0 will support .net automatically.<br>
Is this still the case? Can I use vtk directly in vs2012?<br>
<br>
Thanks in advance<br>
<br>
Nico<br>
<br>
------------------------------<br>
<br>
Message: 11<br>
Date: Thu, 4 Jul 2013 08:02:27 -0700 (PDT)<br>
From: Ruff <<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>><br>
Subject: [vtkusers] Is it possible to make an image slice of<br>
unstructured grid?<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Message-ID: <<a href="mailto:1372950147716-5721777.post@n5.nabble.com" target="_blank">1372950147716-5721777.post@n5.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Im looking at examples and google, but i cannot find anywhere where they<br>
start with an unstructured grid to use with VTK's image slicing abilities.<br>
Can it be done, and in that case how would you do it? What conversions are<br>
needed?<br>
<br>
If not, is there some way to use vtkStructuredPoints with the image slicer?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Is-it-possible-to-make-an-image-slice-of-unstructured-grid-tp5721777.html" target="_blank">http://vtk.1045678.n5.nabble.com/Is-it-possible-to-make-an-image-slice-of-unstructured-grid-tp5721777.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
End of vtkusers Digest, Vol 111, Issue 9<br>
****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,255)"><b>Best Regards<br>Rahul Indoria<br>Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a></b></span><br>
</div>
</div></div></div></div>