[vtkusers] Writing vtp and vtk file

david bahn bahndavid2006 at gmail.com
Thu Aug 15 09:24:12 EDT 2013


Hi All,
        i have to write a polydata into a vtk and vtp file, so that i can
see it in paraview, could you please suggest me, how to do this?


david





On Thu, Aug 15, 2013 at 2:42 AM, <vtkusers-request at vtk.org> wrote:

> Send vtkusers mailing list submissions to
>         vtkusers at vtk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
>         vtkusers-request at vtk.org
>
> You can reach the person managing the list at
>         vtkusers-owner at vtk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
>    1. Extract region with vtkTracerInteractorStyleImage (Fabian Torres)
>    2. Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
>       Example 5) (Sebastien Jourdain)
>    3. return vtkSmartPointers from a function or signal/slot
>       (Miro Drahos)
>    4. Re: return vtkSmartPointers from a function or    signal/slot
>       (Shawn Waldon)
>    5. Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
>       Example 5) (rkwright)
>    6. VTK 6.1 (Jude Pereira)
>    7. vtkDistanceWidget handles bug in VTK 5.10.1 ? (Vincent Gratsac)
>    8. Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
>       Example 5) (Sean McBride)
>    9. Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
>       Example 5) (rkwright)
>   10. Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
>       Example 5) (Sean McBride)
>   11. Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
>       Example 5) (Ric Wright)
>   12. Re: Extract region with vtkTracerInteractorStyleImage
>       (Fabian Torres)
>   13. Re: (no subject) (Alex Malyushytskyy)
>   14. One kind of vtkMultiBlockDataSet shows up in VTK 5.7      while
>       not in VTK 6.0 (Chao Liang)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 14 Aug 2013 11:32:58 -0500
> From: Fabian Torres <dae.wong at gmail.com>
> Subject: [vtkusers] Extract region with vtkTracerInteractorStyleImage
> To: vtkusers at vtk.org
> Message-ID: <8311C7A9-8B67-4322-AE21-9BBB9ECE4E99 at gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi all.
>
> I have a class that inherits from vtkTracerInteractorStyleImage. This
> class allows the user to draw closed lines in an image and extract the
> vtkPath and vtkPoints every time the class catches a tracerEvent.
>
> My problem is that I want to extract the value of every pixel inside the
> drew region. How can I do this using the information from the obtained
> vtkPath or vtkPoints.
>
> Thnanks all
>
> ------------------------------
>
> Message: 2
> Date: Wed, 14 Aug 2013 12:42:57 -0400
> From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
> Subject: Re: [vtkusers] AWT + SWT + Event Loops (was Re: VTK6 and Java
>         Cone Example 5)
> To: rkwright <rkwright at geofx.com>
> Cc: vtkusers <vtkusers at vtk.org>
> Message-ID:
>         <CABObKxdWVd2PkzZdG6kYdDtcZrG1RH82zz=srck-Ev5=_Yg5=
> g at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi Ric,
>
> I work mostly in C++ with ParaView, but I've used VTK in the past with Java
> and multi-threading without much trouble. But once again, I'm not talking
> about SWT, just pure Swing/AWT.
> My question related to the crash was on the AWT/Swing example not SWT.
>
> Seb
>
>
> On Wed, Aug 14, 2013 at 11:53 AM, rkwright <rkwright at geofx.com> wrote:
>
> > Seb,
> >
> > Yes, the crash is the same. Sometimes it isn't even at close time - the
> > app will hang then crash.  When I have been able to pause inside and look
> > or get a look at the stack it is buried way down in SWT or some inner
> > message loop in VTK.  I strongly suspect that it is some threading issue
> > between VTK and SWT.  You mentioned that VTK is not thread?safe while
> > Eclipse and SWT use LOTS of threads.  Like you say, if you stick with VTK
> > alone (in ObjectiveC and/or C++) it is fine.
> >
> > So if I want to write in Java and use Eclipse I a few choices:
> >
> >    - Give up on using Java and Eclipse, just use Xcode and Objective
> C/C++
> >    - Carefully use VTK, avoiding any danger spots (e.g. Interactors) but
> >    I won't know what to avoid until I get there
> >    - Abandon trying to use VTK and go back to my VTK equivalent which is
> >    far more primitive.
> >
> > My problem is that I don't want to fight the tools.  I don?t WANT to
> write
> > rendering systems, etc.  Been there, done that (I've written parts 2
> > PostScript interpreters, was part of the SVG Viewer team at Adobe,
> > Illustrator, etc.).  I'm looking for a system I can just use and not have
> > to fix or work around.  It may be that the message is stop fighting and
> > accept using Xcode.  Is that what you work in?  Xcode and Objective
> C/C++?
> >
> > Thanks
> > Ric
> >
> >
> > From: "Sebastien Jourdain-2 [via VTK]" <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722740&i=0>
> > >
> > Date: Wednesday, August 14, 2013 10:41 AM
> >
> > To: Ric Wright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722740&i=1>
> > >
> > Subject: Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone Example
> > 5)
> >
> > Hi Ric,
> >
> > I have no experience with SWT, so I can't really help you here, but I can
> > ensure you that VTK works just fine on Mac OS X with Java 6 and
> > interaction. In fact, I never had any crash at close time.
> >
> > Does the sample code from the vtk.jar crash in the same manner at close
> > time ?
> >
> > Seb
> >
> >
> > On Wed, Aug 14, 2013 at 11:08 AM, rkwright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722739&i=0>
> > > wrote:
> >
> >> Sebastien,
> >>
> >> (BTW, thank you *very* much for your patience in answering my questions
> >> in such timely fashion).
> >>
> >> I didn't see the SWT option when I built VTK the first time.  However, I
> >> took a break and quickly built an Eclipse plugin using the code in
> >> wrapping/java/vtk/rendering.  I created a view based on the
> >> swtConeRenderer.java code, substituting the parent SWT composite passed
> to
> >> the ViewPart creation step, passing that composite to the constructor of
> >> vtkSwtComponent.  It ALMOST works except that it creates a wholly new
> >> window outside the actual Eclipse view.  And that view works, complete
> with
> >> mouse-wheel scaling.  BUT, when I close that view ?  it crashes Eclipse,
> >> *exactly* as it does in the other demo I put together using the SWT_AWT
> >> bridge. Same message, same crash in Eclipse.  Clearly, something goes
> >> horribly awry down in the bowels of the native code in SWT.
> >>
> >> So I will continue to experiment with VTK but avoid anything to do with
> >> interactors.  But I return to my earlier question: Am I likely to run
> into
> >> similar problems or is it largely or wholly in the interactors that VTK
> >> starts/handles its own event loops?  So far the only problems I have
> seen
> >> are when interactors are involved (though my experience is rather
> limited,
> >> of course).
> >>
> >> Thanks
> >> Ric
> >>
> >>
> >> From: "Sebastien Jourdain-2 [via VTK]" <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722738&i=0>
> >> >
> >> Date: Wednesday, August 14, 2013 9:53 AM
> >>
> >> To: Ric Wright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722738&i=1>
> >> >
> >> Subject: Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone Example
> >> 5)
> >>
> >> You need to build VTK with the SWT component ON. Moreover,
> vtkRenderWIndowInteractor
> >> does not spawn a new event loop as VTK is NOT thread safe.
> >>
> >>
> >> On Wed, Aug 14, 2013 at 10:31 AM, rkwright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722733&i=0>
> >> > wrote:
> >>
> >>> I have been working through the samples in the jar. The only failure so
> >>> far is the vtkRenderWindowInteractor.
> >>>
> >>> I was not aware of a SWT component in VTK.  I see a Java file
> >>> vtkSwtComponent.java but it isn't clear to me that it is going to
> solve my
> >>> problems.   There are two issues I see:
> >>>
> >>>    - vtkSwtComponent appears to use the SWT OpenGL canvas widget.  This
> >>>    is largely unsupported in SWT and was half-broken last time I
> looked at it.
> >>>     I gave up on it long ago and turned to JOGL embedding in SWT via
> the
> >>>    bridge (which works for me at present)
> >>>    - It's not clear how this would solve the other issue
> >>>    where vtkRenderWIndowInteractor spawns its own event loop and that
> causes
> >>>    problems with SWT ? or does vtkRenderWIndowInteractor not use any
> AWT
> >>>    utilities or methods?
> >>>
> >>> I'll experiment with the vtkSwtComponent (I see one simple example
> file,
> >>> swtConeRendering.java) and see if that helps. Though there is no SWT
> >>> support in vtk.jar so I'll guess I'll have to include the SWT files
> >>> directly in my project.
> >>>
> >>> Thanks for your advice.
> >>>
> >>> Ric
> >>>
> >>> BTW, I am running Apple's Java 1.6.0_51-b11-457-11M4509. 64 bit
> >>>
> >>> From: "Sebastien Jourdain-2 [via VTK]" <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722724&i=0>
> >>> >
> >>> Date: Wednesday, August 14, 2013 8:42 AM
> >>> To: Ric Wright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722724&i=1>
> >>> >
> >>> Subject: Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
> >>> Example 5)
> >>>
> >>> Just read the sample codes that are provided in the vtk.jar or in the
> >>> Source code under Wrapping/Java/vtk/sample, they should be pretty
> strait
> >>> forward.
> >>> Moreover, VTK do provide a SWT component for rendering if you build it,
> >>> so you shouldn't have any event loop issue...
> >>>
> >>> Seb
> >>>
> >>>
> >>> On Wed, Aug 14, 2013 at 9:30 AM, Ric Wright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=0>
> >>> > wrote:
> >>>
> >>>> So did some more spelunking and it looks like this is just a basic
> >>>> incompatibility for SWT and AWT ? in the specific case where AWT is
> trying
> >>>> to start their own event loop once SWT has started.  Previously, in my
> >>>> other work, I handled events on my own ? I didn't ask or expect AWT to
> >>>> start or manage it's own events. I used AWT basically to host the
> OpenGL
> >>>> canvas (based on JOGL).  But when one invokes the
> vtkRenderWIndowInteractor
> >>>> an event loop IS spawned and the causes various weird problems.
> >>>>
> >>>> There is a fairly long summary of some of the issues here:
> >>>>
> >>>> http://marc.info/?l=openjdk-awt-dev&m=135818602009136&w=2
> >>>>
> >>>> So the question that comes to my mind is how dependent is the rest of
> >>>> VTK on starting its own event loops?  I.e. Can I use the rest of VTK
> and
> >>>> its pipeline to perform graphics, manage datasets, etc.  I am willing
> to
> >>>> give up the Interactor and its mimicking of trackball if everything
> else is
> >>>> likely to work.  But if spawning its own event loop(s) is intrinsic
> to how
> >>>> most of VTK works then I'm probably dead in the water.
> >>>>
> >>>> Thoughts or suggestions?
> >>>>
> >>>> Thanks
> >>>> Ric
> >>>>
> >>>>
> >>>> From: Ric Wright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=1>
> >>>> >
> >>>>
> >>>> Date: Tuesday, August 13, 2013 12:59 PM
> >>>> To: Sebastien Jourdain <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=2>
> >>>> >
> >>>> Cc: Sean McBride <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=3>>,
> >>>> vtkusers <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=4>
> >>>> >
> >>>>
> >>>> Subject: Re: [vtkusers] VTK6 and Java Cone Example 5
> >>>>
> >>>> An update on this.  I ported over some of my other Eclipse work and
> >>>> adapted it to VTK.  It is pushed to my account on github and there is
> a
> >>>> writeup here:  http://rkwright.github.io/geofx-pages/vtkview.html.
> >>>>  There are 3 articles in there.  The latest rev of the code is here:
> >>>> https://github.com/rkwright/vtkscene in the develop branch.
> >>>>
> >>>> Mostly, it works great.  However, when I tried the fifth cone example,
> >>>> which has the problematic vtkRenderWindowInteractor, I ran into
> similar
> >>>> problems as before.  I instantiated it with a valid
> vtkPanel.RenderWindow
> >>>> but it still goes off into the ozone, sometimes crashing the native
> >>>> vtkOpenGL dylib.
> >>>>
> >>>> I'm going to skip the interactor for now and move on to see if I run
> >>>> into more problems. If not, I can probably live without that widget
> but the
> >>>> problems there might be symptomatic of deeper problems on OSX 64 bit
> >>>> systems.
> >>>>
> >>>> Any further suggestions would be welcome.
> >>>>
> >>>> Thanks
> >>>> Ric
> >>>>
> >>>>
> >>>> From: Sebastien Jourdain <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=5>
> >>>> >
> >>>>
> >>>> Date: Tuesday, August 6, 2013 8:56 AM
> >>>> To: Ric Wright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=6>
> >>>> >
> >>>> Cc: Sean McBride <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=7>>,
> >>>> vtkusers <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=8>
> >>>> >
> >>>>
> >>>> Subject: Re: [vtkusers] VTK6 and Java Cone Example 5
> >>>>
> >>>> In Java you should use the Java specific classes anyway like
> >>>> vtkPanel/vtkCanvas or the new version of them used in the vtk.sample
> >>>> package of the vtk.jar...
> >>>>
> >>>> The purpose of those example was to show the possible match between
> the
> >>>> different languages...
> >>>>
> >>>> Nothing more I believe,
> >>>>
> >>>> Seb
> >>>>
> >>>>
> >>>> On Tue, Aug 6, 2013 at 8:52 AM, Ric Wright <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=9>
> >>>> > wrote:
> >>>>
> >>>>> Ah, OK.  Well, I don't know what to do here.  Is this happening to
> >>>>> others?
> >>>>>  Should I file a bug?  Just try to work around it by not using
> >>>>> RenderWindowInteractors (sounds kind of lame).  Or?
> >>>>>
> >>>>> Suggestions?
> >>>>>
> >>>>> Thanks
> >>>>> Ric
> >>>>>
> >>>>>
> >>>>> On 8/5/13 4:15 PM, "Sean McBride" <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=10>>
> >>>>> wrote:
> >>>>>
> >>>>> >On Mon, 5 Aug 2013 16:10:55 -0500, Ric Wright said:
> >>>>> >
> >>>>> >>Well, a little playing around didn't seem to help, but I am frankly
> >>>>> not
> >>>>> >>an
> >>>>> >>expert on threads.  However, it seems to me that the source of the
> >>>>> >>problem
> >>>>> >>is that the vtkRenderWindowInteractor gets initialized then the
> >>>>> start()
> >>>>> >>method creates an event loop that is monitored by the
> >>>>> >>vtkRenderWindowInteractor.  I suspect that start() method spawns a
> >>>>> new
> >>>>> >>thread to listen to the events and it is the spawning of that
> thread
> >>>>> that
> >>>>> >>causes the exception.
> >>>>> >
> >>>>> >VTK's Cocoa classes never create any threads.
> >>>>> >
> >>>>> >Cheers,
> >>>>> >
> >>>>> >--
> >>>>> >____________________________________________________________
> >>>>> >Sean McBride, B. Eng                 [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5722710&i=11>
> >>>>>
> >>>>> >Rogue Research                        www.rogue-research.com
> >>>>> >Mac Software Developer              Montr?al, Qu?bec, Canada
> >>>>> >
> >>>>> >
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>> _______________________________________________
> >>> 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 VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>> ------------------------------
> >>>  If you reply to this email, your message will be added to the
> >>> discussion below:
> >>>
> >>>
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722710.html
> >>>  To unsubscribe from VTK6 and Java Examples, click here.
> >>> NAML<
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >>>
> >>> ------------------------------
> >>> View this message in context: Re: AWT + SWT + Event Loops (was Re: VTK6
> >>> and Java Cone Example 5)<
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722724.html
> >
> >>> Sent from the VTK - Users mailing list archive<
> http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html>at Nabble.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 VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>
> >> _______________________________________________
> >> 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 VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >> ------------------------------
> >>  If you reply to this email, your message will be added to the
> >> discussion below:
> >>
> >>
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722733.html
> >>  To unsubscribe from VTK6 and Java Examples, click here.
> >> NAML<
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >>
> >> ------------------------------
> >> View this message in context: Re: AWT + SWT + Event Loops (was Re: VTK6
> >> and Java Cone Example 5)<
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722738.html
> >
> >> Sent from the VTK - Users mailing list archive<
> http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html>at Nabble.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 VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
> > _______________________________________________
> > 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 VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722739.html
> >  To unsubscribe from VTK6 and Java Examples, click here.
> > NAML<
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
> > ------------------------------
> > View this message in context: Re: AWT + SWT + Event Loops (was Re: VTK6
> > and Java Cone Example 5)<
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722740.html
> >
> > Sent from the VTK - Users mailing list archive<
> http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html>at Nabble.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 VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/d616185f/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 14 Aug 2013 09:45:53 -0700
> From: Miro Drahos <mdrahos at robodoc.com>
> Subject: [vtkusers] return vtkSmartPointers from a function or
>         signal/slot
> To: <vtkusers at vtk.org>
> Message-ID: <520BB441.3090500 at robodoc.com>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> Hi all,
> I am having really hard times passing on reference to the objects that
> are stored as vtkSmartPointer<T> as private data within a class. E.g.:
> class MyClass
> {
>    public:
>      ...
>     private:
>      vtkSmartPointer<vtkPolyData> surface;
> };
>
> What is the best way to pass 'surface' via signal/slot mechanism of Qt?
> I thought I'd create a public method
> vtkPolyData * MyClass::getSurface() { return surface.GetPointer(); }
> The problem is that GetPointer() returns *const* T* which the compiler
> complains about when I later want to use it. As a matter of fact, all
> vtkSmartPointer's public methods return const something.
>
> What would be the preferred way to pass objects stored as
> vtkSmartPointer<T> object?
> 1.) T* MyClass::getT() const { return object.GetPointer(); }
> 2.) vtkSmartPointer<T> MyClass::getT() { return object; }
> 3.) something else?
>
> I want to pass the object via signal/slot mechanism. What would be the
> best way?
> A.) signal doneSurfaceProcessing(vtkPolyData &);
> B.) signal doneSurfaceProcessing(vtkPolyData *);
> C.) signal doneSurfaceProcessing(vtkSmartPointer<vtkPolyData>);
>
> The idea is to send off the signal with something like
> emit doneSurfaceProcessing(myclass->getSurface());
>
> then the slot would be
> setSurface(???)  //vtkSmartPointer<T>  or T* or T& ?
>
> Thank you!!
> Miro
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/e18bac79/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Wed, 14 Aug 2013 12:51:02 -0400
> From: Shawn Waldon <swaldon at cs.unc.edu>
> Subject: Re: [vtkusers] return vtkSmartPointers from a function or
>         signal/slot
> To: Miro Drahos <mdrahos at robodoc.com>
> Cc: VTK <vtkusers at vtk.org>
> Message-ID:
>         <
> CAKqg6a6VsYPACE7sZSBdTHJ4E9iEKdMQ57W8aQC-b9G3cQG15g at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Miro,
>
> Most of your questions about vtkSmartPointer are answered in this tutorial:
> http://www.vtk.org/Wiki/VTK/Tutorials/SmartPointers
>
> I'll let someone else handle the Qt signal/slots questions since I haven't
> tried to do that.  But I would point out that VTK is not thread-safe, so if
> you are trying to use this mechanism to communicate between threads make
> sure you know what you are getting into first.
>
> HTH,
> Shawn
>
>
> On Wed, Aug 14, 2013 at 12:45 PM, Miro Drahos <mdrahos at robodoc.com> wrote:
>
> >  Hi all,
> > I am having really hard times passing on reference to the objects that
> are
> > stored as vtkSmartPointer<T> as private data within a class. E.g.:
> > class MyClass
> > {
> >   public:
> >     ...
> >    private:
> >     vtkSmartPointer<vtkPolyData> surface;
> > };
> >
> > What is the best way to pass 'surface' via signal/slot mechanism of Qt?
> > I thought I'd create a public method
> > vtkPolyData * MyClass::getSurface() { return surface.GetPointer(); }
> > The problem is that GetPointer() returns *const* T* which the compiler
> > complains about when I later want to use it. As a matter of fact, all
> > vtkSmartPointer's public methods return const something.
> >
> > What would be the preferred way to pass objects stored as
> > vtkSmartPointer<T> object?
> > 1.) T* MyClass::getT() const { return object.GetPointer(); }
> > 2.) vtkSmartPointer<T> MyClass::getT() { return object; }
> > 3.) something else?
> >
> > I want to pass the object via signal/slot mechanism. What would be the
> > best way?
> > A.) signal doneSurfaceProcessing(vtkPolyData &);
> > B.) signal doneSurfaceProcessing(vtkPolyData *);
> > C.) signal doneSurfaceProcessing(vtkSmartPointer<vtkPolyData>);
> >
> > The idea is to send off the signal with something like
> > emit doneSurfaceProcessing(myclass->getSurface());
> >
> > then the slot would be
> > setSurface(???)  //vtkSmartPointer<T>  or T* or T& ?
> >
> > Thank you!!
> > Miro
> >
> >
> > _______________________________________________
> > 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 VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
>
> --
> Shawn Waldon
> Graduate Research Assistant
> Department of Computer Science
> University of North Carolina at Chapel Hill
> swaldon at cs.unc.edu
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/b2efa43b/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Wed, 14 Aug 2013 10:00:08 -0700 (PDT)
> From: rkwright <rkwright at geofx.com>
> Subject: Re: [vtkusers] AWT + SWT + Event Loops (was Re: VTK6 and Java
>         Cone    Example 5)
> To: vtkusers at vtk.org
> Message-ID: <CE312000.1037C4%rkwright at geofx.com>
> Content-Type: text/plain; charset="utf-8"
>
> Seb,
>
> Right.  The crashes are only when SWT is involved. I'll keep poking but
> like
> I say, I don't want to learn/build new tooling (if I can help it).  But I
> find VTK kind of enigmatic in many respects.  For example, I thought I
> would
> try the Cocoa version, just for fun.  So I created a new VTK source and
> build folders, selected Xcode then ran configure, then generate.  It said
> "Configure done",  "Generate done".  Then what?  There's no makefile I can
> see to run the actual build.  Is there another cmake step?  I don't recall
> there being one when I generated the Java wrappers.  I just ran make in the
> config then generate and there was a makefile.  But this time no makefile.
> What am I missing?
>
> Anyway, back to my real job.  I'll take another look later. Again, thanks
> for  your help.
>
> Ric
>
>
> From:  "Sebastien Jourdain-2 [via VTK]"
> <ml-node+s1045678n5722742h40 at n5.nabble.com>
> Date:  Wednesday, August 14, 2013 11:43 AM
> To:  Ric Wright <rkwright at geofx.com>
> Subject:  Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone Example
> 5)
>
> Hi Ric,
>
> I work mostly in C++ with ParaView, but I've used VTK in the past with Java
> and multi-threading without much trouble. But once again, I'm not talking
> about SWT, just pure Swing/AWT.
> My question related to the crash was on the AWT/Swing example not SWT.
>
> Seb
>
>
> On Wed, Aug 14, 2013 at 11:53 AM, rkwright <[hidden email]
> </user/SendEmail.jtp?type=node&node=5722742&i=0> > wrote:
> > Seb,
> >
> > Yes, the crash is the same. Sometimes it isn't even at close time - the
> app
> > will hang then crash.  When I have been able to pause inside and look or
> get a
> > look at the stack it is buried way down in SWT or some inner message
> loop in
> > VTK.  I strongly suspect that it is some threading issue between VTK and
> SWT.
> > You mentioned that VTK is not thread?safe while Eclipse and SWT use LOTS
> of
> > threads.  Like you say, if you stick with VTK alone (in ObjectiveC
> and/or C++)
> > it is fine.
> >
> > So if I want to write in Java and use Eclipse I a few choices:
> > * Give up on using Java and Eclipse, just use Xcode and Objective C/C++
> > * Carefully use VTK, avoiding any danger spots (e.g. Interactors) but I
> won't
> > know what to avoid until I get there
> > * Abandon trying to use VTK and go back to my VTK equivalent which is
> far more
> > primitive.
> > My problem is that I don't want to fight the tools.  I don?t WANT to
> write
> > rendering systems, etc.  Been there, done that (I've written parts 2
> > PostScript interpreters, was part of the SVG Viewer team at Adobe,
> > Illustrator, etc.).  I'm looking for a system I can just use and not
> have to
> > fix or work around.  It may be that the message is stop fighting and
> accept
> > using Xcode.  Is that what you work in?  Xcode and Objective C/C++?
> >
> > Thanks
> > Ric
> >
> >
> > From:  "Sebastien Jourdain-2 [via VTK]" <[hidden email]
> > <http://user/SendEmail.jtp?type=node&node=5722740&i=0> >
> > Date:  Wednesday, August 14, 2013 10:41 AM
> >
> > To:  Ric Wright <[hidden email]
> > <http://user/SendEmail.jtp?type=node&node=5722740&i=1> >
> > Subject:  Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
> Example 5)
> >
> > Hi Ric,
> >
> > I have no experience with SWT, so I can't really help you here, but I can
> > ensure you that VTK works just fine on Mac OS X with Java 6 and
> interaction.
> > In fact, I never had any crash at close time.
> >
> > Does the sample code from the vtk.jar crash in the same manner at close
> time ?
> >
> > Seb
> >
> >
> > On Wed, Aug 14, 2013 at 11:08 AM, rkwright <[hidden email]
> > <http://user/SendEmail.jtp?type=node&node=5722739&i=0> > wrote:
> >> Sebastien,
> >>
> >> (BTW, thank you very much for your patience in answering my questions
> in such
> >> timely fashion).
> >>
> >> I didn't see the SWT option when I built VTK the first time.  However,
> I took
> >> a break and quickly built an Eclipse plugin using the code in
> >> wrapping/java/vtk/rendering.  I created a view based on the
> >> swtConeRenderer.java code, substituting the parent SWT composite passed
> to
> >> the ViewPart creation step, passing that composite to the constructor of
> >> vtkSwtComponent.  It ALMOST works except that it creates a wholly new
> window
> >> outside the actual Eclipse view.  And that view works, complete with
> >> mouse-wheel scaling.  BUT, when I close that view ?  it crashes Eclipse,
> >> exactly as it does in the other demo I put together using the SWT_AWT
> bridge.
> >> Same message, same crash in Eclipse.  Clearly, something goes horribly
> awry
> >> down in the bowels of the native code in SWT.
> >>
> >> So I will continue to experiment with VTK but avoid anything to do with
> >> interactors.  But I return to my earlier question: Am I likely to run
> into
> >> similar problems or is it largely or wholly in the interactors that VTK
> >> starts/handles its own event loops?  So far the only problems I have
> seen are
> >> when interactors are involved (though my experience is rather limited,
> of
> >> course).
> >>
> >> Thanks
> >> Ric
> >>
> >>
> >> From:  "Sebastien Jourdain-2 [via VTK]" <[hidden email]
> >> <http://user/SendEmail.jtp?type=node&node=5722738&i=0> >
> >> Date:  Wednesday, August 14, 2013 9:53 AM
> >>
> >> To:  Ric Wright <[hidden email]
> >> <http://user/SendEmail.jtp?type=node&node=5722738&i=1> >
> >> Subject:  Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
> Example 5)
> >>
> >> You need to build VTK with the SWT component ON. Moreover,
> >> vtkRenderWIndowInteractor does not spawn a new event loop as VTK is NOT
> >> thread safe.
> >>
> >>
> >> On Wed, Aug 14, 2013 at 10:31 AM, rkwright <[hidden email]
> >> <http://user/SendEmail.jtp?type=node&node=5722733&i=0> > wrote:
> >>> I have been working through the samples in the jar. The only failure
> so far
> >>> is the vtkRenderWindowInteractor.
> >>>
> >>> I was not aware of a SWT component in VTK.  I see a Java file
> >>> vtkSwtComponent.java but it isn't clear to me that it is going to
> solve my
> >>> problems.   There are two issues I see:
> >>> * vtkSwtComponent appears to use the SWT OpenGL canvas widget.  This is
> >>> largely unsupported in SWT and was half-broken last time I looked at
> it.  I
> >>> gave up on it long ago and turned to JOGL embedding in SWT via the
> bridge
> >>> (which works for me at present)
> >>> * It's not clear how this would solve the other issue where
> >>> vtkRenderWIndowInteractor spawns its own event loop and that causes
> problems
> >>> with SWT ? or does vtkRenderWIndowInteractor not use any AWT utilities
> or
> >>> methods?
> >>> I'll experiment with the vtkSwtComponent (I see one simple example
> file,
> >>> swtConeRendering.java) and see if that helps. Though there is no SWT
> support
> >>> in vtk.jar so I'll guess I'll have to include the SWT files directly
> in my
> >>> project.
> >>>
> >>> Thanks for your advice.
> >>>
> >>> Ric
> >>>
> >>> BTW, I am running Apple's Java 1.6.0_51-b11-457-11M4509. 64 bit
> >>>
> >>> From:  "Sebastien Jourdain-2 [via VTK]" <[hidden email]
> >>> <http://user/SendEmail.jtp?type=node&node=5722724&i=0> >
> >>> Date:  Wednesday, August 14, 2013 8:42 AM
> >>> To:  Ric Wright <[hidden email]
> >>> <http://user/SendEmail.jtp?type=node&node=5722724&i=1> >
> >>> Subject:  Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone
> Example 5)
> >>>
> >>> Just read the sample codes that are provided in the vtk.jar or in the
> Source
> >>> code under Wrapping/Java/vtk/sample, they should be pretty strait
> forward.
> >>> Moreover, VTK do provide a SWT component for rendering if you build
> it, so
> >>> you shouldn't have any event loop issue...
> >>>
> >>> Seb
> >>>
> >>>
> >>> On Wed, Aug 14, 2013 at 9:30 AM, Ric Wright <[hidden email]
> >>> <http://user/SendEmail.jtp?type=node&node=5722710&i=0> > wrote:
> >>>> So did some more spelunking and it looks like this is just a basic
> >>>> incompatibility for SWT and AWT ? in the specific case where AWT is
> trying
> >>>> to start their own event loop once SWT has started.  Previously, in my
> >>>> other work, I handled events on my own ? I didn't ask or expect AWT to
> >>>> start or manage it's own events. I used AWT basically to host the
> OpenGL
> >>>> canvas (based on JOGL).  But when one invokes the
> vtkRenderWIndowInteractor
> >>>> an event loop IS spawned and the causes various weird problems.
> >>>>
> >>>> There is a fairly long summary of some of the issues here:
> >>>>
> >>>> http://marc.info/?l=openjdk-awt-dev&m=135818602009136&w=2
> >>>>
> >>>> So the question that comes to my mind is how dependent is the rest of
> VTK
> >>>> on starting its own event loops?  I.e. Can I use the rest of VTK and
> its
> >>>> pipeline to perform graphics, manage datasets, etc.  I am willing to
> give
> >>>> up the Interactor and its mimicking of trackball if everything else is
> >>>> likely to work.  But if spawning its own event loop(s) is intrinsic
> to how
> >>>> most of VTK works then I'm probably dead in the water.
> >>>>
> >>>> Thoughts or suggestions?
> >>>>
> >>>> Thanks
> >>>> Ric
> >>>>
> >>>>
> >>>> From:  Ric Wright <[hidden email]
> >>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=1> >
> >>>>
> >>>> Date:  Tuesday, August 13, 2013 12:59 PM
> >>>> To:  Sebastien Jourdain <[hidden email]
> >>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=2> >
> >>>> Cc:  Sean McBride <[hidden email]
> >>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=3> >, vtkusers
> <[hidden
> >>>> email] <http://user/SendEmail.jtp?type=node&node=5722710&i=4> >
> >>>>
> >>>> Subject:  Re: [vtkusers] VTK6 and Java Cone Example 5
> >>>>
> >>>> An update on this.  I ported over some of my other Eclipse work and
> adapted
> >>>> it to VTK.  It is pushed to my account on github and there is a
> writeup
> >>>> here:  http://rkwright.github.io/geofx-pages/vtkview.html.  There
> are 3
> >>>> articles in there.  The latest rev of the code is here:
> >>>> https://github.com/rkwright/vtkscene in the develop branch.
> >>>>
> >>>> Mostly, it works great.  However, when I tried the fifth cone example,
> >>>> which has the problematic vtkRenderWindowInteractor, I ran into
> similar
> >>>> problems as before.  I instantiated it with a valid
> vtkPanel.RenderWindow
> >>>> but it still goes off into the ozone, sometimes crashing the native
> >>>> vtkOpenGL dylib.
> >>>>
> >>>> I'm going to skip the interactor for now and move on to see if I run
> into
> >>>> more problems. If not, I can probably live without that widget but the
> >>>> problems there might be symptomatic of deeper problems on OSX 64 bit
> >>>> systems.
> >>>>
> >>>> Any further suggestions would be welcome.
> >>>>
> >>>> Thanks
> >>>> Ric
> >>>>
> >>>>
> >>>> From:  Sebastien Jourdain <[hidden email]
> >>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=5> >
> >>>>
> >>>> Date:  Tuesday, August 6, 2013 8:56 AM
> >>>> To:  Ric Wright <[hidden email]
> >>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=6> >
> >>>> Cc:  Sean McBride <[hidden email]
> >>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=7> >, vtkusers
> <[hidden
> >>>> email] <http://user/SendEmail.jtp?type=node&node=5722710&i=8> >
> >>>>
> >>>> Subject:  Re: [vtkusers] VTK6 and Java Cone Example 5
> >>>>
> >>>> In Java you should use the Java specific classes anyway like
> >>>> vtkPanel/vtkCanvas or the new version of them used in the vtk.sample
> >>>> package of the vtk.jar...
> >>>>
> >>>> The purpose of those example was to show the possible match between
> the
> >>>> different languages...
> >>>>
> >>>> Nothing more I believe,
> >>>>
> >>>> Seb
> >>>>
> >>>>
> >>>> On Tue, Aug 6, 2013 at 8:52 AM, Ric Wright <[hidden email]
> >>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=9> > wrote:
> >>>>> Ah, OK.  Well, I don't know what to do here.  Is this happening to
> others?
> >>>>>  Should I file a bug?  Just try to work around it by not using
> >>>>> RenderWindowInteractors (sounds kind of lame).  Or?
> >>>>>
> >>>>> Suggestions?
> >>>>>
> >>>>> Thanks
> >>>>> Ric
> >>>>>
> >>>>>
> >>>>> On 8/5/13 4:15 PM, "Sean McBride" <[hidden email]
> >>>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=10> > wrote:
> >>>>>
> >>>>>> >On Mon, 5 Aug 2013 16:10:55 -0500, Ric Wright said:
> >>>>>> >
> >>>>>>> >>Well, a little playing around didn't seem to help, but I am
> frankly
> >>>>>>> not
> >>>>>>> >>an
> >>>>>>> >>expert on threads.  However, it seems to me that the source of
> the
> >>>>>>> >>problem
> >>>>>>> >>is that the vtkRenderWindowInteractor gets initialized then the
> >>>>>>> start()
> >>>>>>> >>method creates an event loop that is monitored by the
> >>>>>>> >>vtkRenderWindowInteractor.  I suspect that start() method spawns
> a new
> >>>>>>> >>thread to listen to the events and it is the spawning of that
> thread
> >>>>>>> that
> >>>>>>> >>causes the exception.
> >>>>>> >
> >>>>>> >VTK's Cocoa classes never create any threads.
> >>>>>> >
> >>>>>> >Cheers,
> >>>>>> >
> >>>>>> >--
> >>>>>> >____________________________________________________________
> >>>>>> >Sean McBride, B. Eng                 [hidden email]
> >>>>>> <http://user/SendEmail.jtp?type=node&node=5722710&i=11>
> >>>>>
> >>>>>> >Rogue Research                        www.rogue-research.com
> >>>>>> <http://www.rogue-research.com>
> >>>>>> >Mac Software Developer              Montr?al, Qu?bec, Canada
> >>>>>> >
> >>>>>> >
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com <http://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 VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>>
> >>>
> >>> If you reply to this email, your message will be added to the
> discussion
> >>> below:
> >>>
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722710.ht
> >>> ml
> >>> To unsubscribe from VTK6 and Java Examples, click here.
> >>> NAML
> >>> <
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewe
> >>>
> r&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNam
> >>>
> espace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.Nod
> >>>
> eNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emai
> >>> ls%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >>>
> >>>
> >>> View this message in context: Re: AWT + SWT + Event Loops (was Re:
> VTK6 and
> >>> Java Cone Example 5)
> >>> <
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722724.h
> >>> tml>
> >>> Sent from the VTK - Users mailing list archive
> >>> <http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html>  at
> Nabble.com.
> >>>
> >>> _______________________________________________
> >>> Powered by www.kitware.com <http://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 VTK FAQ at:
> >>> http://www.vtk.org/Wiki/VTK_FAQ
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/listinfo/vtkusers
> >>>
> >>
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com <http://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 VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >>
> >> If you reply to this email, your message will be added to the discussion
> >> below:
> >>
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722733.htm
> >> l
> >> To unsubscribe from VTK6 and Java Examples, click here.
> >> NAML
> >> <
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer
> >>
> &id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNames
> >>
> pace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNa
> >>
> mespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%2
> >> 1nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >>
> >>
> >> View this message in context: Re: AWT + SWT + Event Loops (was Re: VTK6
> and
> >> Java Cone Example 5)
> >> <
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722738.ht
> >> ml>
> >> Sent from the VTK - Users mailing list archive
> >> <http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html>  at
> Nabble.com.
> >>
> >> _______________________________________________
> >> Powered by www.kitware.com <http://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 VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com <http://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 VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> >
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722739.html
> > To unsubscribe from VTK6 and Java Examples, click here.
> > NAML
> > <
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&
> >
> id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespa
> >
> ce-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNames
> >
> pace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nab
> > ble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
> >
> >
> > View this message in context: Re: AWT + SWT + Event Loops (was Re: VTK6
> and
> > Java Cone Example 5)
> > <
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722740.htm
> > l>
> > Sent from the VTK - Users mailing list archive
> > <http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html>  at
> Nabble.com.
> >
> > _______________________________________________
> > Powered by www.kitware.com <http://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 VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722742.ht
> ml
> To unsubscribe from VTK6 and Java Examples, click here
> <
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe
>
> _by_code&node=5722474&code=cmt3cmlnaHRAZ2VvZnguY29tfDU3MjI0NzR8LTgxODEwNjM2M
> A==> .
> NAML
> <
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewe
>
> r&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNam
>
> espace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.Nod
>
> eNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emai
> ls%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722745.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/8f354d38/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 6
> Date: Wed, 14 Aug 2013 17:14:28 +0000
> From: Jude Pereira <jpereira at advsolinc.com>
> Subject: [vtkusers] VTK 6.1
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> 0b2e49178c624132a07b02dcb87cdf39 at BY2PR05MB142.namprd05.prod.outlook.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> I'm eagerly awaiting VTK 6.1 as this<http://vtk.org/Bug/view.php?id=12945>
> says that it includes Qt 5 support.
> Any idea when 6.1 will be released?
>
> Jude
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/a281f50e/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Wed, 14 Aug 2013 19:18:40 +0200
> From: Vincent Gratsac <vincent.gratsac.lists at gmail.com>
> Subject: [vtkusers] vtkDistanceWidget handles bug in VTK 5.10.1 ?
> To: VTK Users <vtkusers at vtk.org>
> Message-ID: <520BBBF0.3010705 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi all,
>
> I'm trying to use vtkDistanceWidget but it seems that there is a problem
> with its handles.
>
> When I first draw the vtkDistanceWidget, all is ok. Handles are placed
> at the two extremitites of the green line.
> I can interact with the view in order to do some rotations or zooms on
> the render window.
> But if i click again on one of the handles and move it to another place,
> then when trying again to interact with the view, all objects will move
> correctly except the handles that I previously moved.
>
> An important point is that I can't reproduce this behavior with VTK
> 5.4.2, but unfortunately, I can't use this version for my software
> development.
> Maybe someone already experienced this and found a solution...
>
> Here is the code that I reproduces the problem :
>
> > #include "vtkDistanceWidget.h"
> > #include "vtkDistanceRepresentation2D.h"
> > #include "vtkSphereSource.h"
> > #include "vtkPolyDataMapper.h"
> > #include "vtkActor.h"
> > #include "vtkRenderer.h"
> > #include "vtkRenderWindow.h"
> > #include "vtkRenderWindowInteractor.h"
> > #include "vtkCommand.h"
> > #include "vtkInteractorEventRecorder.h"
> > #include "vtkRegressionTestImage.h"
> > #include "vtkDebugLeaks.h"
> > #include "vtkCoordinate.h"
> > #include "vtkMath.h"
> > #include "vtkHandleWidget.h"
> > #include "vtkPointHandleRepresentation2D.h"
> > #include "vtkAxisActor2D.h"
> > #include "vtkProperty2D.h"
> >
> >
> > // The actual test function
> > int main( int argc, char *argv[] )
> > {
> >   // Create the RenderWindow, Renderer and both Actors
> >   //
> >   vtkRenderer *ren1 = vtkRenderer::New();
> >   vtkRenderWindow *renWin = vtkRenderWindow::New();
> >   renWin->AddRenderer(ren1);
> >
> >   vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
> >   iren->SetRenderWindow(renWin);
> >
> >   // Create a test pipeline
> >   //
> >   vtkSphereSource *ss = vtkSphereSource::New();
> >   vtkPolyDataMapper *mapper = vtkPolyDataMapper::New();
> >   mapper->SetInput(ss->GetOutput());
> >   vtkActor *actor = vtkActor::New();
> >   actor->SetMapper(mapper);
> >
> >   // Create the widget and its representation
> >   vtkPointHandleRepresentation2D *handle =
> > vtkPointHandleRepresentation2D::New();
> >   handle->GetProperty()->SetColor(1,0,0);
> >   handle->GetSelectedProperty()->SetColor(0,0,1);
> >  // handle->SetActiveRepresentation(110);
> >
> >   vtkDistanceRepresentation2D *rep = vtkDistanceRepresentation2D::New();
> >   rep->SetHandleRepresentation(handle);
> >
> >   rep->GetAxis()->SetNumberOfMinorTicks(4);
> >   rep->GetAxis()->SetTickLength(9);
> >   rep->GetAxis()->SetTitlePosition(0.2);
> >
> >   vtkDistanceWidget *widget = vtkDistanceWidget::New();
> >   widget->SetInteractor(iren);
> >   widget->CreateDefaultRepresentation();
> >   widget->SetRepresentation(rep);
> >
> >   // Add the actors to the renderer, set the background and size
> >   //
> >   ren1->AddActor(actor);
> >   ren1->SetBackground(0.1, 0.2, 0.4);
> >   renWin->SetSize(300, 300);
> >
> >   // render the image
> >   //
> >   iren->Initialize();
> >   renWin->Render();
> >   widget->On();
> >
> > iren->Start();
> >
> >   ss->Delete();
> >   mapper->Delete();
> >   actor->Delete();
> >   handle->Delete();
> >   rep->Delete();
> >   widget->Off();
> >   widget->Delete();
> >   iren->Delete();
> >   renWin->Delete();
> >   ren1->Delete();
> >
> >   return 0;
> > }
>
>
>
> ------------------------------
>
> Message: 8
> Date: Wed, 14 Aug 2013 13:39:43 -0400
> From: "Sean McBride" <sean at rogue-research.com>
> Subject: Re: [vtkusers] AWT + SWT + Event Loops (was Re: VTK6 and Java
>         Cone Example 5)
> To: rkwright <rkwright at geofx.com>, <vtkusers at vtk.org>
> Message-ID: <20130814173943.339520834 at mail.rogue-research.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, 14 Aug 2013 10:00:08 -0700, rkwright said:
>
> >Right.  The crashes are only when SWT is involved. I'll keep poking but
> like
> >I say, I don't want to learn/build new tooling (if I can help it).  But I
> >find VTK kind of enigmatic in many respects.  For example, I thought I
> would
> >try the Cocoa version, just for fun.  So I created a new VTK source and
> >build folders, selected Xcode then ran configure, then generate.  It said
> >"Configure done",  "Generate done".  Then what?  There's no makefile I can
> >see to run the actual build.  Is there another cmake step?  I don't recall
> >there being one when I generated the Java wrappers.  I just ran make in
> the
> >config then generate and there was a makefile.  But this time no makefile.
> >What am I missing?
>
> That sounds more like due to being new to CMake than new to VTK.  If you
> chose the Xcode generator, then cmake will have created a .xcodeproj file,
> you then just open that project in Xcode just like a hand-created Xcode
> project.
>
> Remember, VTK is a library, so you can build VTK itself with a makefile or
> Xcode.  You can then take the resulting libraries and add them to your own
> makefile, Xcode project, CMake build file, or custom build system.
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montr?al, Qu?bec, Canada
>
>
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 14 Aug 2013 10:49:37 -0700 (PDT)
> From: rkwright <rkwright at geofx.com>
> Subject: Re: [vtkusers] AWT + SWT + Event Loops (was Re: VTK6 and Java
>         Cone    Example 5)
> To: vtkusers at vtk.org
> Message-ID: <CE312CD7.103ADF%rkwright at geofx.com>
> Content-Type: text/plain; charset="utf-8"
>
> LOL.  Yes, I figured that out.  I was actually on the phone talking with
> one
> of my project's engineers about the build process on Android, Eclipse vs.
> command line and !!  Slap forehead.  There is NO makefile?  :-)  So I
> started the build and it built without problems.  I'll have a go at it
> later
> when I get a chance.
>
> Thanks
> Ric
>
>
> From:  "Sean McBride [via VTK]" <ml-node+s1045678n5722748h26 at n5.nabble.com
> >
> Date:  Wednesday, August 14, 2013 12:40 PM
> To:  Ric Wright <rkwright at geofx.com>
> Subject:  Re: AWT + SWT + Event Loops (was Re: VTK6 and Java Cone Example
> 5)
>
> On Wed, 14 Aug 2013 10:00:08 -0700, rkwright said:
>
> >Right.  The crashes are only when SWT is involved. I'll keep poking but
> like
> >I say, I don't want to learn/build new tooling (if I can help it).  But I
> >find VTK kind of enigmatic in many respects.  For example, I thought I
> would
> >try the Cocoa version, just for fun.  So I created a new VTK source and
> >build folders, selected Xcode then ran configure, then generate.  It said
> >"Configure done",  "Generate done".  Then what?  There's no makefile I can
> >see to run the actual build.  Is there another cmake step?  I don't recall
> >there being one when I generated the Java wrappers.  I just ran make in
> the
> >config then generate and there was a makefile.  But this time no makefile.
> >What am I missing?
>
> That sounds more like due to being new to CMake than new to VTK.  If you
> chose the Xcode generator, then cmake will have created a .xcodeproj file,
> you then just open that project in Xcode just like a hand-created Xcode
> project.
>
> Remember, VTK is a library, so you can build VTK itself with a makefile or
> Xcode.  You can then take the resulting libraries and add them to your own
> makefile, Xcode project, CMake build file, or custom build system.
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 [hidden email]
> </user/SendEmail.jtp?type=node&node=5722748&i=0>
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montr?al, Qu?bec, Canada
>
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722748.ht
> ml
> To unsubscribe from VTK6 and Java Examples, click here
> <
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe
>
> _by_code&node=5722474&code=cmt3cmlnaHRAZ2VvZnguY29tfDU3MjI0NzR8LTgxODEwNjM2M
> A==> .
> NAML
> <
> http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewe
>
> r&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNam
>
> espace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.Nod
>
> eNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emai
> ls%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/VTK6-and-Java-Examples-tp5722474p5722749.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/e96a1283/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 10
> Date: Wed, 14 Aug 2013 14:50:16 -0400
> From: "Sean McBride" <sean at rogue-research.com>
> Subject: Re: [vtkusers] AWT + SWT + Event Loops (was Re: VTK6 and Java
>         Cone Example 5)
> To: rkwright <rkwright at geofx.com>, <vtkusers at vtk.org>
> Message-ID: <20130814185016.312926488 at mail.rogue-research.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, 14 Aug 2013 08:53:02 -0700, rkwright said:
>
> >It may be that the message is stop fighting and accept
> >using Xcode.  Is that what you work in?  Xcode and Objective C/C++?
>
> Well, "it depends" of course, on what you're doing, why, etc., etc.  But
> VTK is written in C++, support for other languages is well-supported but is
> an extra layer.  Similarly, Java has fallen out of favour with Apple, and
> not included by default anymore.  Using a 3rd party Java (7) and 3rd party
> development environment (Eclipse) are likely to be less smooth than using
> OS vendor supplied languages (C/C++/Obj-C) and tools (ie Xcode).  But it
> all depends.  YMMV.
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montr?al, Qu?bec, Canada
>
>
>
>
> ------------------------------
>
> Message: 11
> Date: Wed, 14 Aug 2013 14:01:01 -0500
> From: Ric Wright <rkwright at geofx.com>
> Subject: Re: [vtkusers] AWT + SWT + Event Loops (was Re: VTK6 and Java
>         Cone Example 5)
> To: Sean McBride <sean at rogue-research.com>,     <vtkusers at vtk.org>
> Message-ID: <CE313C47.103E93%rkwright at geofx.com>
> Content-Type: text/plain;       charset="ISO-8859-1"
>
> Sean,
>
> You're right.  But OTOH, I did build the VTK in XCOde and then pulled up
> the Example/GUI Xcode project (Examples/GUI/Cocoa).  Unfortunately, the
> project doesn't match its own documentation.  It says point the project at
> the VTK/include project.  But there isn't one - there are a couple of
> dozen (I love C++ :-).  That can be resolved (slowly) but the project is
> also looking for all the lib files to be .a (static) libs.  But the VTK
> project builds dylibs (which is the right way, IMO).
>
> I'm sure all this can be resolved, but it's a lot of learning curves and
> tool fiddling.  This isn't my job, it's my hobby. As I said before, it's a
> tradeoff - climb the VTK hill and benefit from the work you guys have
> done, or stick with what I have got - which works.  I'll be probably keep
> going because I hate giving up ;-)
>
> Thanks
> Ric
>
>
> On 8/14/13 1:50 PM, "Sean McBride" <sean at rogue-research.com> wrote:
>
> >On Wed, 14 Aug 2013 08:53:02 -0700, rkwright said:
> >
> >>It may be that the message is stop fighting and accept
> >>using Xcode.  Is that what you work in?  Xcode and Objective C/C++?
> >
> >Well, "it depends" of course, on what you're doing, why, etc., etc.  But
> >VTK is written in C++, support for other languages is well-supported but
> >is an extra layer.  Similarly, Java has fallen out of favour with Apple,
> >and not included by default anymore.  Using a 3rd party Java (7) and 3rd
> >party development environment (Eclipse) are likely to be less smooth than
> >using OS vendor supplied languages (C/C++/Obj-C) and tools (ie Xcode).
> >But it all depends.  YMMV.
> >
> >Cheers,
> >
> >--
> >____________________________________________________________
> >Sean McBride, B. Eng                 sean at rogue-research.com
> >Rogue Research                        www.rogue-research.com
> >Mac Software Developer              Montr?al, Qu?bec, Canada
> >
> >
>
>
>
>
> ------------------------------
>
> Message: 12
> Date: Wed, 14 Aug 2013 17:31:30 -0500
> From: Fabian Torres <dae.wong at gmail.com>
> Subject: Re: [vtkusers] Extract region with
>         vtkTracerInteractorStyleImage
> To: David Doria <daviddoria at gmail.com>, vtkusers at vtk.org
> Message-ID:
>         <CALD_EpLNYzP1b9Yp7quW=zNvEVu8q9jD1mY7Os0DaJQkm+O=
> OA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Sorry the name is vtkInteractorStyleImage.
> vtkTracerInteractorStyleImage is the name of my class.
>
>
> On Wed, Aug 14, 2013 at 4:08 PM, David Doria <daviddoria at gmail.com> wrote:
>
> > Are you sure you typed the class name correctly?
> > 'vtkTracerInteractorStyleImage' is not a class in VTK as far as I can
> > tell: http://www.vtk.org/doc/nightly/html/classes.html
> >
> > David
> >
> >
> > On Wed, Aug 14, 2013 at 12:32 PM, Fabian Torres <dae.wong at gmail.com>
> > wrote:
> > > Hi all.
> > >
> > > I have a class that inherits from vtkTracerInteractorStyleImage. This
> > class allows the user to draw closed lines in an image and extract the
> > vtkPath and vtkPoints every time the class catches a tracerEvent.
> > >
> > > My problem is that I want to extract the value of every pixel inside
> the
> > drew region. How can I do this using the information from the obtained
> > vtkPath or vtkPoints.
> > >
> > > Thnanks all
> > > _______________________________________________
> > > 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 VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > >
> > > Follow this link to subscribe/unsubscribe:
> > > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
>
>
> --
> Fabi?n Torres Robles
> Maestria en Ciencias en Ingenier?a Electr?nica
> Ingenier?a en Sistemas Electr?nicos
> tel. 58081280, 0445534661338
> e-mail fabian.trobles at gmail.com, dae.wong at gmail.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/e1779de9/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 13
> Date: Wed, 14 Aug 2013 16:13:08 -0700
> From: Alex Malyushytskyy <alexmalvtk at gmail.com>
> Subject: Re: [vtkusers] (no subject)
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CAHR9pJ2QF6yDUBt8xgajCG0MsHROHqPT8CpHbbjcf7uWOuh1uQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Could you please stop polluting vtk mailing list with meaningless or no
> subject messages.
> If you continue people will start ignore you.
>
> It is good to read some guidelines before posting.
> Example:
> http://fedoraproject.org/wiki/Mailing_list_guidelines
>
> Regards,
>   Alex
>
>
>
>
>
> On Wed, Aug 14, 2013 at 7:58 AM, Anka Kochanowska <pluszcz at gmail.com>
> wrote:
>
> > That means that you have to pass an argument to the executable
> > ReadTextFile.
> >
> > Example for SimplePointReader:
> >  ./SimplePointsReader
> /opt/vtk-5.10/VTKData5.10.1/Data/mbwavelet_ascii.xyz
> >
> >
> > I have no time to build all vtk examples. Why don't you read the example
> > code and find out what is asked for?
> >
> > If you need a specific format asked in the example, download VTKData.
> > as I said, I am using vtk 5, but you should download data for vtk 6.
> >
> > Anka
> >
> >
> >
> > On Wed, Aug 14, 2013 at 10:54 AM, Altamash Abbasi <
> > altamashabbasi at gmail.com> wrote:
> >
> >> Now this error is coming. . . . still GUI is not coming . . .
> >>
> >> stame1 at itlrstud044:~/software/ReadTextFile/build> ./ReadTextFile
> >> Usage: ./ReadTextFile Filename(.xyz)
> >>
> >> _______________________________________________
> >> 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 VTK FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >>
> >
> > _______________________________________________
> > 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 VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/31d29f29/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 14
> Date: Wed, 14 Aug 2013 17:42:47 -0700
> From: Chao Liang <chaolian at mtu.edu>
> Subject: [vtkusers] One kind of vtkMultiBlockDataSet shows up in VTK
>         5.7     while not in VTK 6.0
> To: vtkusers at vtk.org
> Message-ID:
>         <
> CAD4LrprNDFmd_VB_NiLMyt57GZjvaNFqnbSAYQsnBVi-E77qOA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
>
> Please attached files. The same code, it works in vtk 5.7 but not in vtk
> 6.0.
> I don't know what the problem is.
>
> Here is what I did in my code:
> ----------------------
> |           |         |
> |           |         |
> |           |         |
> ----------------------
> As shown above, the data set is two cubes and they share the same surface.
> I made a vtkMultiBlockDataSet like this:
>
> along x dir, 4 lines, each line I set it to be a block;
> along y dir, 6 lines, each line I set it to be a block;
> along z dir, 6 lines, each line I set it to be a block.
>
> Then just as normal, set up renderWindow, renderer, actor etc. Note: I did
> add macros in vtk 6.0, and FYI, I did successfully show up another
> vtkMultiBlockDataSet, i.e., 2 cubes, but they don't share any surface.
>
> So, my question is : Why it shows up in vtk 5.7 but not in vtk 6.0? Is it
> possible somehow vtk 6.0 does not support this kind of vtkMultiBlockDataSet
> (i.e., have shared surfaces, points) rendering ?
>
> Any help is appreciated. Thanks.
>
> Chao
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: test_multiblock.cpp
> Type: text/x-c++src
> Size: 4911 bytes
> Desc: not available
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/fdc4a4b2/attachment.cpp
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: test_multiblock_plot_vtk5.7.cpp
> Type: text/x-c++src
> Size: 4720 bytes
> Desc: not available
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130814/fdc4a4b2/attachment-0001.cpp
> >
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 112, Issue 31
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130815/8a217d21/attachment.htm>


More information about the vtkusers mailing list