[vtkusers] Difference Between Deepcopy and Shallowcopy

david bahn bahndavid2006 at gmail.com
Thu Sep 5 09:41:52 EDT 2013


Hi All,
        Could you please tell me, what is the difference between deepcopy()
and shallowcopy() functions in vtk.


David







On Thu, Sep 5, 2013 at 3:08 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. Re: Strange slowness with vtkImagePlaneWidget (Dean Inglis)
>    2. VTK + Quick 2 (Jude Pereira)
>    3. Re: VTK + Quick 2 (Shawn Waldon)
>    4. Re: VTK + Quick 1 (Shawn Waldon)
>    5. Re: VTK + Quick 1 (Jude Pereira)
>    6. Re: Disable warning about "does not support stereo"
>       (Alex Malyushytskyy)
>    7. Re: Any ideas for showing selected items? (Alex Malyushytskyy)
>    8. Re: Triangulation (Alex Malyushytskyy)
>    9. Re: Is this a bug? (Max)
>   10. Re: Zooming actor (Max)
>   11. Re: Disable warning about "does not support stereo" (Max)
>   12. Re: Extract polylines from the surface (Cory Quammen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 4 Sep 2013 13:10:32 -0400
> From: Dean Inglis <inglis.dl at gmail.com>
> Subject: Re: [vtkusers] Strange slowness with vtkImagePlaneWidget
> To: Marco Sambin <m.sambin at gmail.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CABX+vok+5zV0vQabDRO4zfj6KS92x8GA-h8BxQL-oQsHsweVbA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Marco,
>
> can you test and see what happens with only 1 image plane widget?  Texture
> mapping used in the widget works on a power of two sampling and
> maybe for certain slice orientations, your hardware / driver is having
> issue with that.  Test with only 1 widget and do the
> test 3 x with the plane orientation orthogonally different with each test.
> Try one widget with the plane orientation non-orthognally aligned.
> Also, when reporting issues with VTK, you should specify your build
> environment (eg., VTK version, compiler, static/shared, debug/release,
> basic hardware and OS
> parameters such as RAM, GPU, CPU etc.).
>
>
> - Dean
>
>
> On Wed, Sep 4, 2013 at 12:48 PM, Marco Sambin <m.sambin at gmail.com> wrote:
>
> > Hi,
> >
> > let me add something to my previous post, since I discovered some facts
> > which may be useful in identifying the issue.
> >
> > I made the following test:
> >
> > 1) I have a set of 357 raw files in an input folder. Each file contains a
> > 512x512 unsigned short pixel matrix.
> >
> > 2) Using this single set of raw files (i.e., always keeping the same
> input
> > test volume), after several attempts I discovered that if I limit my
> reader
> > to read just 326 slices or less, then rendering of the
> vtkImagePlaneWidget
> > will be slow. On the other side, if I allow my reader to read 327 slices
> or
> > more, then rendering of vtkImagePlaneWidget will be fast. In code (with
> > reference to the code posted in my previous message):
> >
> > [...]
> > imageReaderVTK.SetDataExtent(0, sliceCols - 1,
> >                               0, sliceRows - 1,
> >                               0, 325);
> > [...]
> > ---> rendering will be SLOW
> >
> >
> > [...]
> > imageReaderVTK.SetDataExtent(0, sliceCols - 1,
> >                               0, sliceRows - 1,
> >                               0, 326);
> > [...]
> > ---> rendering will be FAST
> >
> > Once again, the set of RAW input slices available in the input folder is
> > always the same.
> >
> > Any explanation for this?
> >
> > The only explanation which comes to my mind is the existence in VTK of a
> > rendering technique adopting a policy like "if data is small enough to be
> > managed by the graphic card, then demand this task to the graphic card,
> > otherwise use the CPU", and on that old PC the CPU may be a lot faster
> than
> > the graphic card to do that job.
> >
> > Is this just fantasy? Or there may be an explanation of that kind to the
> > behavior I observed on that old PC?
> >
> > Thanks in advance for your comments.
> >
> > Marco
> >
> >
> > On Wed, Sep 4, 2013 at 5:29 PM, Marco Sambin <m.sambin at gmail.com> wrote:
> >
> >> Hi Dean,
> >>
> >> first of all, thank you for your message.
> >>
> >> The underlying pixel data type is unsigned short for both volumes.
> >> Here is how I configure the reader:
> >>
> >>         imageReaderVTK =  new vtkImageReader2();
> >>         imageReaderVTK.FileLowerLeftOn();
> >>         imageReaderVTK.SetFilePrefix(filePrefix);
> >>         imageReaderVTK.SetFilePattern("%s_%d.raw");
> >>         imageReaderVTK.SetDataExtent(0, sliceCols - 1,
> >>                               0, sliceRows - 1,
> >>                               0, numOfImages - 1);
> >>         imageReaderVTK.SetDataSpacing(xSpacing, ySpacing, zSpacing);
> >>         imageReaderVTK.SetDataOrigin(0.0, 0.0, 0.0);
> >>         imageReaderVTK.SetDataScalarTypeToUnsignedShort();
> >>         imageReaderVTK.SetDataByteOrderToBigEndian();
> >>         imageReaderVTK.UpdateWholeExtent();
> >>
> >>
> >> And here is how I configure the widget:
> >>
> >>     vtkGenericRenderWindowInteractor interactor =
> >> getRenderWindowInteractor();
> >>     planeWidgets[planeWidgetIndex].RestrictPlaneToVolumeOn();
> >>     planeWidgets[planeWidgetIndex].SetInteractor(interactor);
> >>     planeWidgets[planeWidgetIndex].DisplayTextOn();
> >>     planeWidgets[planeWidgetIndex].TextureInterpolateOn();
> >>     planeWidgets[planeWidgetIndex].UserControlledLookupTableOff();
> >>     planeWidgets[planeWidgetIndex].SetResliceInterpolateToCubic();
> >>     planeWidgets[planeWidgetIndex].KeyPressActivationOff();
> >>
> >>
> planeWidgets[planeWidgetIndex].SetInputConnection(imageReaderVTK.GetOutputPort());
> >>     planeWidgets[planeWidgetIndex].SetWindowLevel(winWidth, winLevel,
> 0);
> >>
> planeWidgets[planeWidgetIndex].SetPlaneOrientation(planeWidgetIndex);
> >>
> >>     planeWidgets[planeWidgetIndex].PlaceWidget(volBounds);
> >>     planeWidgets[planeWidgetIndex].On();
> >>     planeWidgets[planeWidgetIndex].SetEnabled(1);
> >>
> >> As I explained in my previous post, strangely the widgets interact with
> >> much better performances when my volume is made up of 360 512x512
> slices,
> >> and worse when my volume is made up of 90 512x512 slices.
> >> But this only happens on the old PC. On my development machine the
> >> rendering performance of the widgets are fine and undistinguishable in
> both
> >> cases.
> >>
> >> I would like to underline that, on the old machine and with the smaller
> >> volume, the rendering of the vtkImagePlaneWidget is slow even when I
> try to
> >> modify the camera position through the default VTK interactor. I do not
> >> trigger any recomputation of window/level, or other, just roll my camera
> >> around the volume, and still I see the rendering slowness (I can
> >> distinguish painting of each triangle of each texture).
> >>
> >> Thanks in advance for sharing your comments and suggestions with me.
> >>
> >> Marco
> >>
> >>
> >>
> >> On Wed, Sep 4, 2013 at 4:21 PM, Dean Inglis <inglis.dl at gmail.com>
> wrote:
> >>
> >>> Hi Marco,
> >>>
> >>> what is the underlying pixel data type in those two images ?  The
> widget
> >>> has an internal
> >>> vtkImageMapToColors which will do additional processing to convert the
> >>> input to
> >>> uchar if required.  How do you configure your widgets ?
> >>>
> >>>
> >>> - Dean
> >>>
> >>>
> >>> On Wed, Sep 4, 2013 at 7:08 AM, Marco Sambin <m.sambin at gmail.com>
> wrote:
> >>>
> >>>> Hi all.
> >>>>
> >>>> In my VTK6-based Java application, I am using a vtkCanvas where I
> >>>> display three orthogonal vtkImagePlaneWidgets, cutting a volume loaded
> >>>> through vtkImageReader2.
> >>>>
> >>>> Everything works fine on my development machine, which is a recent and
> >>>> moderately-powerful 64-bit Win 7-based machine.
> >>>>
> >>>> For legacy-compatibility purposes, I tested this application under an
> >>>> older Win XP-based Pentium 4 machine with 1 GB RAM and old Barco
> graphic
> >>>> cards, and I obtained "strange" results:
> >>>>
> >>>> - if I feed vtkImageReader2 with a volume made up of around 360 raw
> >>>> slices, each one 512x512 pixels, then the overall rendering
> performances of
> >>>> the view containing the three vtkImagePlaneWidgets are acceptable.
> >>>>
> >>>> - on the other side, if I feed vtkImageReader2 with a volume made up
> of
> >>>> 90 (i.e., fewer) raw slices, each one 512x512 pixels, then the overall
> >>>> rendering performances of the view containing the three
> >>>> vtkImagePlaneWidgets become really poor, and I can distinguish the
> texture
> >>>> appearing on top of each plane widget painting as two separate
> triangles,
> >>>> given the slow rendering.
> >>>>
> >>>> Can you guess why the rendering performance of the
> vtkImagePlaneWidgets
> >>>> are much worse with the smaller volume w.r.t. with the larger volume?
> >>>>
> >>>> Thanks for any hints you will give.
> >>>>
> >>>> Best regards,
> >>>>
> >>>> Marco
> >>>>
> >>>>
> >>>> _______________________________________________
> >>>> 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/20130904/cedc444f/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 4 Sep 2013 19:09:56 +0000
> From: Jude Pereira <jpereira at advsolinc.com>
> Subject: [vtkusers] VTK + Quick 2
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> 353902dcc5c8498e901af058d76493de at BY2PR05MB142.namprd05.prod.outlook.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hey guys,
> Does anyone have any experience using QVTKWidget with a QML interface?
> We would love to just use QML for the UI all the way through but since VTK
> does not seem to officially support QML, I've been looking into options
> like QGraphicsProxyWidget and embedding a subclass of it containing the
> QVTKWidget into the QML scene.
> I haven't had much success since I keep running into exceptions inside
> QVTKWidget and would rather not try to debug VTK code if someone has some
> insight into the issue.
>
> Any examples on the topic would help immensely.
>
> Thanks
> Jude
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130904/b3468280/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 4 Sep 2013 15:13:15 -0400
> From: Shawn Waldon <swaldon at cs.unc.edu>
> Subject: Re: [vtkusers] VTK + Quick 2
> To: Jude Pereira <jpereira at advsolinc.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <CAKqg6a5ZgtWjkRVavgJVfci=
> ys_dqi7mr1qeZzusbov7x43SBw at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> Have you seen this example?
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance
>
> HTH,
> Shawn
>
>
> On Wed, Sep 4, 2013 at 3:09 PM, Jude Pereira <jpereira at advsolinc.com>
> wrote:
>
> >  Hey guys,****
> >
> > Does anyone have any experience using QVTKWidget with a QML
> interface?****
> >
> > We would love to just use QML for the UI all the way through but since
> VTK
> > does not seem to officially support QML, I?ve been looking into options
> > like QGraphicsProxyWidget and embedding a subclass of it containing the
> > QVTKWidget into the QML scene. ****
> >
> > I haven?t had much success since I keep running into exceptions inside
> > QVTKWidget and would rather not try to debug VTK code if someone has some
> > insight into the issue. ****
> >
> > ** **
> >
> > Any examples on the topic would help immensely.****
> >
> > ** **
> >
> > Thanks****
> >
> > Jude****
> >
> > _______________________________________________
> > 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/20130904/dc292399/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Wed, 4 Sep 2013 15:30:37 -0400
> From: Shawn Waldon <swaldon at cs.unc.edu>
> Subject: Re: [vtkusers] VTK + Quick 1
> To: Jude Pereira <jpereira at advsolinc.com>, VTK <vtkusers at vtk.org>
> Message-ID:
>         <CAKqg6a5oxWHWUh2ZHsKQuTd5ay_Keq=
> 71mNPdTkHW5e27ygWTg at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> I haven't used QML, only pure Qt with VTK.  I wasn't aware that the
> difference between the two was that big...  Does anyone else have any
> suggestions for this?
>
> Shawn
>
> PS: Copy the mailing list on replies so that others know the suggestion
> didn't help.
>
>
> On Wed, Sep 4, 2013 at 3:24 PM, Jude Pereira <jpereira at advsolinc.com>
> wrote:
>
> >  I hadn?t seen that exact one but I?ve seen something similar. ****
> >
> > The issue isn?t simply using VTK inside a Qt app. ****
> >
> > It?s using VTK inside an application with a declarative interface (i.e.
> > QML). QML is very designer oriented and a lot of controls that exist in
> Qt
> > Widgets don?t exist in QML (like QVTKWidget. There is no QML
> equivalent)**
> > **
> >
> > The solution to this is to use a QGraphicsProxyWidget<
> http://doc.qt.digia.com/4.7/declarative-cppextensions-qwidgets.html>which
> (I think) lets you place widgets inside QML applications (at least
> > QML apps designed with Quick 1).****
> >
> > ** **
> >
> > I?ve tried to subclass QGraphicsProxyWidget with no luck so far. A pure
> Qt
> > widget application on the other hand (like the one you linked me to) does
> > work.****
> >
> > ** **
> >
> > Jude****
> >
> > ** **
> >
> > *From:* Shawn Waldon [mailto:swaldon at cs.unc.edu]
> > *Sent:* Wednesday, September 04, 2013 3:13 PM
> > *To:* Jude Pereira
> > *Cc:* vtkusers at vtk.org
> > *Subject:* Re: [vtkusers] VTK + Quick 2****
> >
> > ** **
> >
> > Have you seen this example?****
> >
> >
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance
> > ****
> >
> > ** **
> >
> > HTH,****
> >
> > Shawn****
> >
> > ** **
> >
> > On Wed, Sep 4, 2013 at 3:09 PM, Jude Pereira <jpereira at advsolinc.com>
> > wrote:****
> >
> >  Hey guys,****
> >
> > Does anyone have any experience using QVTKWidget with a QML
> interface?****
> >
> > We would love to just use QML for the UI all the way through but since
> VTK
> > does not seem to officially support QML, I?ve been looking into options
> > like QGraphicsProxyWidget and embedding a subclass of it containing the
> > QVTKWidget into the QML scene. ****
> >
> > I haven?t had much success since I keep running into exceptions inside
> > QVTKWidget and would rather not try to debug VTK code if someone has some
> > insight into the issue. ****
> >
> >  ****
> >
> > Any examples on the topic would help immensely.****
> >
> >  ****
> >
> > Thanks****
> >
> > Jude****
> >
> >
> > _______________________________________________
> > 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****
> >
>
>
>
> --
> 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/20130904/052b1e73/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Wed, 4 Sep 2013 19:34:25 +0000
> From: Jude Pereira <jpereira at advsolinc.com>
> Subject: Re: [vtkusers] VTK + Quick 1
> To: Shawn Waldon <swaldon at cs.unc.edu>, VTK <vtkusers at vtk.org>
> Message-ID:
>         <
> 3dcab9a1a71441248aa92a0aa64cff53 at BY2PR05MB142.namprd05.prod.outlook.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> My bad. Didn't realize that (although it is obvious).
>
> Yeah, the difference between Qt widgets and Quick 1 is big but not
> irreconcilable. Quick 2 on the other hand is completely different and any
> Qt widgets you had are useless in Quick 2.
>
> Jude
>
> From: Shawn Waldon [mailto:swaldon at cs.unc.edu]
> Sent: Wednesday, September 04, 2013 3:31 PM
> To: Jude Pereira; VTK
> Subject: Re: [vtkusers] VTK + Quick 1
>
> I haven't used QML, only pure Qt with VTK.  I wasn't aware that the
> difference between the two was that big...  Does anyone else have any
> suggestions for this?
>
> Shawn
>
> PS: Copy the mailing list on replies so that others know the suggestion
> didn't help.
>
> On Wed, Sep 4, 2013 at 3:24 PM, Jude Pereira <jpereira at advsolinc.com
> <mailto:jpereira at advsolinc.com>> wrote:
> I hadn't seen that exact one but I've seen something similar.
> The issue isn't simply using VTK inside a Qt app.
> It's using VTK inside an application with a declarative interface (i.e.
> QML). QML is very designer oriented and a lot of controls that exist in Qt
> Widgets don't exist in QML (like QVTKWidget. There is no QML equivalent)
> The solution to this is to use a QGraphicsProxyWidget<
> http://doc.qt.digia.com/4.7/declarative-cppextensions-qwidgets.html>
> which (I think) lets you place widgets inside QML applications (at least
> QML apps designed with Quick 1).
>
> I've tried to subclass QGraphicsProxyWidget with no luck so far. A pure Qt
> widget application on the other hand (like the one you linked me to) does
> work.
>
> Jude
>
> From: Shawn Waldon [mailto:swaldon at cs.unc.edu<mailto:swaldon at cs.unc.edu>]
> Sent: Wednesday, September 04, 2013 3:13 PM
> To: Jude Pereira
> Cc: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
> Subject: Re: [vtkusers] VTK + Quick 2
>
> Have you seen this example?
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/RenderWindowUISingleInheritance
>
> HTH,
> Shawn
>
> On Wed, Sep 4, 2013 at 3:09 PM, Jude Pereira <jpereira at advsolinc.com
> <mailto:jpereira at advsolinc.com>> wrote:
> Hey guys,
> Does anyone have any experience using QVTKWidget with a QML interface?
> We would love to just use QML for the UI all the way through but since VTK
> does not seem to officially support QML, I've been looking into options
> like QGraphicsProxyWidget and embedding a subclass of it containing the
> QVTKWidget into the QML scene.
> I haven't had much success since I keep running into exceptions inside
> QVTKWidget and would rather not try to debug VTK code if someone has some
> insight into the issue.
>
> Any examples on the topic would help immensely.
>
> Thanks
> Jude
>
> _______________________________________________
> 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
>
>
>
> --
> Shawn Waldon
> Graduate Research Assistant
> Department of Computer Science
> University of North Carolina at Chapel Hill
> swaldon at cs.unc.edu<mailto:swaldon at cs.unc.edu>
>
>
>
> --
> Shawn Waldon
> Graduate Research Assistant
> Department of Computer Science
> University of North Carolina at Chapel Hill
> swaldon at cs.unc.edu<mailto:swaldon at cs.unc.edu>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130904/3b08f0b5/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 6
> Date: Wed, 4 Sep 2013 13:38:37 -0700
> From: Alex Malyushytskyy <alexmalvtk at gmail.com>
> Subject: Re: [vtkusers] Disable warning about "does not support
>         stereo"
> To: David Cole <dlrdave at aol.com>
> Cc: VTK <vtkusers at vtk.org>
> Message-ID:
>         <CAHR9pJ0EL7N=
> dv86+8OTu_6i-tCcCAfm3QwY_n76Tx9gwjcgww at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> >> If you are overriding OnChar, simply do not call the parent class when
> the '3' key is pressed. The '3' key means "turn on (or off) 3D stereo
> viewing" in the default interactor style. And attempting to do that is what
> triggers the warning...
>
> You are missing that if you do this, you will disable not only warning, but
> 3D functionality on the systems which are able to support it.
>
> Alex
>
>
> On Wed, Sep 4, 2013 at 3:49 AM, David Cole <dlrdave at aol.com> wrote:
>
> > it would be called from
> >> vtkInteractorStyle::OnChar()
> >>
> >> You may subclass vtkInteractorStyle you use -
> >>
> >> (for example vtkInteractorStyleTrackballCam**era ), override
> >>   virtual void OnChar();
> >>
> >
> >
> > If you are overriding OnChar, simply do not call the parent class when
> the
> > '3' key is pressed. The '3' key means "turn on (or off) 3D stereo
> viewing"
> > in the default interactor style. And attempting to do that is what
> triggers
> > the warning...
> >
> > Search for "Keypress 3" here:
> >
> >    http://www.vtk.org/doc/**nightly/html/**classvtkInteractorStyle.html<
> http://www.vtk.org/doc/nightly/html/classvtkInteractorStyle.html>
> >
> >
> > HTH,
> > David
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130904/e4224b38/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Wed, 4 Sep 2013 13:50:40 -0700
> From: Alex Malyushytskyy <alexmalvtk at gmail.com>
> Subject: Re: [vtkusers] Any ideas for showing selected items?
> To: Doug Hoppes <dhoppes at mbfbioscience.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <CAHR9pJ0v3GtsWJ=Ojsqvuvg9pFjb6fpEk8OfX==
> fWaCm9bL34A at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> There are not that many choices. You either outline or change color.
>
> Outlining works the best for 2D. With all the 3D geometry I worked it is
> very time consuming or not informative.
>
> Color is used in any CAD system I ever worked with. Especially if you need
> to select not whole actor but some polygons, edges or nodes,
>
> Alex
>
>
>
> On Wed, Sep 4, 2013 at 5:24 AM, Doug Hoppes <dhoppes at mbfbioscience.com
> >wrote:
>
> >  Hi all,****
> >
> > ** **
> >
> >                 Okay, I?m stuck.  I have around 20,000 items in my scene.
> > I need some sort of indicator for the user to select 10,000 of them.
>  So, I
> > have my list of 10,000 selected items.  Any ideas on a way to show that
> the
> > objects are selected?  VTKActors are pretty heavy weight, so the idea was
> > going with a glyph.  However, the objects are various meshes/surfaces.
>  So,
> > if I create a glyph, it may be inside of the surface and the user won?t
> be
> > able to know if the item is selected.****
> >
> > ** **
> >
> >                 My only thought is some sort of mesh outline that is a
> > glyph, rather than an actor.  Note: I can?t just turn all of the selected
> > items to wireframes because there is an option to show the surface as a
> > wireframe.  I thought of making the surface semi-transparent, but the
> > user?s also want to control the transparency of the item that is
> selected.
> > ****
> >
> > ** **
> >
> > Doug****
> >
> > _______________________________________________
> > 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/20130904/694a19f7/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 8
> Date: Wed, 4 Sep 2013 14:10:31 -0700
> From: Alex Malyushytskyy <alexmalvtk at gmail.com>
> Subject: Re: [vtkusers] Triangulation
> To: R R <rrane at rocketmail.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CAHR9pJ39jQonuSKGbhPpq-ECba3ZZ72fdrQGGmDF9qio9igOeQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> You took set of 3d points,
> triangulated their projections on the XOY plane (Z was ignored) and
> displayed results in 3D.
>
> Is it still unclear why you god such results?
>
> Alex
>
>
> On Sun, Sep 1, 2013 at 11:32 PM, R R <rrane at rocketmail.com> wrote:
>
> > Hello everybody,
> >
> > I've used Delaunay2D on a point cloud data of a face to create a
> > triangulated mesh but the result doesn't look good. Could any body please
> > help me why the result look like this? (I have attached an image of the
> > result)
> >
> > Any help will be greatly appreciated!
> >
> > Thank you so much,
> > Rane
> >
> > _______________________________________________
> > 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/20130904/6ef5027b/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 9
> Date: Wed, 4 Sep 2013 14:47:09 -0700 (PDT)
> From: Max <smapersmaper at gmail.com>
> Subject: Re: [vtkusers] Is this a bug?
> To: vtkusers at vtk.org
> Message-ID: <1378331229396-5723284.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi Doug
> It is not a bug but a feature.
> It happens because the order in which the mesh triangles are rendered
> matters.
> The solution is to use a filter to change this order to draw the triangles
> that are far from the camera first.
> I will have the exact filter name when I'm back to work.
>
> Max
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Is-this-a-bug-tp5723274p5723284.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 10
> Date: Wed, 4 Sep 2013 14:50:41 -0700 (PDT)
> From: Max <smapersmaper at gmail.com>
> Subject: Re: [vtkusers] Zooming actor
> To: vtkusers at vtk.org
> Message-ID: <1378331441656-5723285.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi David
> If you mean to see the actor closer, use renderer.getActiveCamera().zoom()
> If you mean to change its scale use vtkActor.getProperty().setScale()
>
> Max
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Zooming-actor-tp5723271p5723285.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 11
> Date: Wed, 4 Sep 2013 14:57:20 -0700 (PDT)
> From: Max <smapersmaper at gmail.com>
> Subject: Re: [vtkusers] Disable warning about "does not support
>         stereo"
> To: vtkusers at vtk.org
> Message-ID: <1378331840589-5723286.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Another solution is to redirect the warnings to a file.
> This way you know the warnings but they don't bother the user.
>
> Max
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Disable-warning-about-does-not-support-stereo-tp5723212p5723286.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 12
> Date: Wed, 4 Sep 2013 21:08:45 -0400
> From: Cory Quammen <cquammen at cs.unc.edu>
> Subject: Re: [vtkusers] Extract polylines from the surface
> To: david bahn <bahndavid2006 at gmail.com>, VTK Mailing List
>         <vtkusers at vtk.org>
> Message-ID:
>         <CANmPiKATiXRze1bAGco+S4vkOriX=
> ERkwpTvKE7N23nRhQXELQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> David,
>
> There is nothing that I know of in VTK that will do exactly what you
> want/need. You'll have to extract those lines in some way, perhaps by using
> the vtkExtractGeometry filter with an appropriate vtkImplicitFunction, such
> as vtkBox.
>
> - Cory
>
>
> On Wed, Sep 4, 2013 at 8:23 AM, david bahn <bahndavid2006 at gmail.com>
> wrote:
>
> > thanks cory, but i have to extract only one edge, which is the yellow one
> > given in the figure as i showed you.
> >
> >
> > On Wed, Sep 4, 2013 at 2:17 PM, Cory Quammen <cquammen at cs.unc.edu>
> wrote:
> >
> >> David,
> >>
> >> This example shows you how to get part of the way there:
> >>
> >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/BoundaryEdges
> >>
> >> It will extract all the boundary edges, though, not just the yellow
> edge.
> >>
> >> Hope that helps,
> >> Cory
> >>
> >>
> >> On Wed, Sep 4, 2013 at 8:06 AM, david bahn <bahndavid2006 at gmail.com
> >wrote:
> >>
> >>> Hi cory,
> >>>           i have to extract polyline(shown in yellow color) as it is
> >>> given in the given figure, which i am attaching with this mail
> >>>
> >>>
> >>>
> >>> [image: Inline image 1]
> >>>
> >>>
> >>>
> >>> On Wed, Sep 4, 2013 at 1:50 PM, Cory Quammen <cquammen at cs.unc.edu
> >wrote:
> >>>
> >>>> David,
> >>>>
> >>>> It would help if your questions were more specific. For instance,
> >>>> which polylines do you want to extract from your surface?
> >>>>
> >>>> Do you want all the edges between polygons? See
> >>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/ExtractEdges
> >>>>
> >>>> If you want to extract edges that have only one polygon on a side for
> >>>> instance (to give one definition of the bounds of the surface), see
> >>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/BoundaryEdges
> >>>>
> >>>> Thanks,
> >>>> Cory
> >>>>
> >>>>
> >>>> On Wed, Sep 4, 2013 at 5:33 AM, david bahn <bahndavid2006 at gmail.com>
> >>>> wrote:
> >>>> > Hi,
> >>>> >    I have to extract polylines from the surface, anybody can suggest
> >>>> me, how
> >>>> > can i do this?
> >>>> >
> >>>> >
> >>>> > David
> >>>> >
> >>>> > _______________________________________________
> >>>> > 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
> >>>> >
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Cory Quammen
> >>>> Research Associate
> >>>> Department of Computer Science
> >>>> The University of North Carolina at Chapel Hill
> >>>>
> >>>
> >>>
> >>
> >>
> >> --
> >> Cory Quammen
> >> Research Associate
> >> Department of Computer Science
> >> The University of North Carolina at Chapel Hill
> >>
> >
> >
>
>
> --
> Cory Quammen
> Research Associate
> Department of Computer Science
> The University of North Carolina at Chapel Hill
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130904/986d86ed/attachment.htm
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: image/png
> Size: 152504 bytes
> Desc: not available
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130904/986d86ed/attachment.png
> >
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 113, Issue 8
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130905/33de74d5/attachment.htm>


More information about the vtkusers mailing list