[vtkusers] deepcopy and shallowcopy
david bahn
bahndavid2006 at gmail.com
Fri Aug 23 10:52:14 EDT 2013
Hi All,
i have a question about the application of deepcopy and
shallowcopy functions in polydata, how does these two functions works,
anybody can give me an example to understand the applications of these two
functions in an example?
david
On Thu, Aug 22, 2013 at 6:00 PM, <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. Qt Quick 2 support (Jude Pereira)
> 2. Visualizing 3D faces (R R)
> 3. Re: Clipping problem when panning (Serge Lalonde)
> 4. Qt + Vtk - Callbacks and signals/slots (Jose Ignacio Prieto)
> 5. Fwd: Need help regarding VTK and Coin3D (ANOOP)
> 6. Fwd: Need help regarding VTK and Coin3D (ANOOP)
> 7. opening blockMeshDict File (Altamash Abbasi)
> 8. Re: VTK Interactor problem (Florian Schiffers)
> 9. Error (Altamash Abbasi)
> 10. Error (Altamash Abbasi)
> 11. Question (Altamash Abbasi)
> 12. Re: Qt + Vtk - Callbacks and signals/slots (Anka Kochanowska)
> 13. Re: Why is QVTKGraphicsItem not in Mainthread? (Zweistein)
> 14. plot a huge amount of spheres (curator)
> 15. Re: plot a huge amount of spheres (Gib Bogle)
> 16. Re: plot a huge amount of spheres (Marcus D. Hanwell)
> 17. Re: plot a huge amount of spheres (David E DeMarle)
> 18. Re: plot a huge amount of spheres (Shawn Waldon)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 21 Aug 2013 17:38:30 +0000
> From: Jude Pereira <jpereira at advsolinc.com>
> Subject: [vtkusers] Qt Quick 2 support
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <
> 74f99cbd4a28493bb7762fb21b2febc4 at BY2PR05MB142.namprd05.prod.outlook.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hey VTKers,
> Are there any known plans to support Qt 5 with Quick 2 in an upcoming
> release or are QTWidgets my best bet?
>
> Jude
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130821/83410fd1/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Wed, 21 Aug 2013 13:51:46 -0700 (PDT)
> From: R R <rrane at rocketmail.com>
> Subject: [vtkusers] Visualizing 3D faces
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <1377118306.30014.YahooMailNeo at web162802.mail.bf1.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello every one!
>
> I'm having problem with visualizing 3D faces using VTK.? I have both shape
> data (position of each vertex : as x,y,z) and texture data (color of each
> point: as R,G,B channels) for each 3D face. I am not sure what reader,
> filter, and mapper I should use.
>
>
> Could you please help me with that!
>
> Thanks,
> Rane?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130821/5deb36fe/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 21 Aug 2013 16:54:25 -0400
> From: Serge Lalonde <serge at infolytica.com>
> Subject: Re: [vtkusers] Clipping problem when panning
> To: vtkusers at vtk.org
> Message-ID: <52152901.3040406 at infolytica.com>
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130821/061cac05/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Wed, 21 Aug 2013 18:09:52 -0400
> From: Jose Ignacio Prieto <joseignacio.prieto at gmail.com>
> Subject: [vtkusers] Qt + Vtk - Callbacks and signals/slots
> To: VTK Users <vtkusers at vtk.org>
> Message-ID:
> <CANkppu6EDyDMghcLHk9Cq6C28areOPPVvvg4xArwH=
> Dr3XU+3g at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all,
> I think I am not fully understanding callbacks and signals. I have a qt
> project where the ui loads a vtk renderwindow. That render window has a
> callback (a box widget that has to update the clipping planes of the
> vtkvolume). After that I would like that inside the callback it emits a
> signal and the qvtkwidget then calls its renderwindow and renders all.
> I couldn't emit a signal, so I made the class mycallback to inherit both
> from vtkcommand and qobject, and now it doesn't compile showing
>
> undefined reference to `vtable for vtkBoxCallback'
>
>
> What should I do?
> Thanks
>
> --
> Jos? Ignacio Prieto
> celular(nuevo): 94348182
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130821/01253d7b/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Thu, 22 Aug 2013 11:58:21 +0530
> From: ANOOP <anoop.s.aradhya at gmail.com>
> Subject: [vtkusers] Fwd: Need help regarding VTK and Coin3D
> To: vtkusers at vtk.org
> Message-ID:
> <
> CAHxoJ+1Bos1jfJACnLKT2s3_RLSoyijEVKLmXbdHDm--i7EO8g at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Chris,
> *
> *
> * *I Need a lil help from you, Actually my task is to display
> an IGES File in Coin3D, I was going through your Post (
> http://www.vtk.org/pipermail/vtkusers/2004-May/073820.html)
>
> There i came up with you using VTK And Coin3D, Actually VTK
> Provides renderer for IGES File, Can you tell me how can i achieve my task
> using VTK and Coin3D To display IGES File, Please Help me....Waiting for
> your reply
>
> Thank you
> Anup S
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130822/92fdcaac/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 6
> Date: Thu, 22 Aug 2013 11:58:41 +0530
> From: ANOOP <anoop.s.aradhya at gmail.com>
> Subject: [vtkusers] Fwd: Need help regarding VTK and Coin3D
> To: vtkusers at vtk.org
> Message-ID:
> <
> CAHxoJ+36PSKe7n7-rZ+bdB0no3NmFeLMX55LafrmWS8AQG0HSg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
> *
> *
> * *I Need a lil help from you, Actually my task is to display
> an IGES File in Coin3D, I was going through your Post (
> http://www.vtk.org/pipermail/vtkusers/2004-May/073820.html)
>
> There i came up with you using VTK And Coin3D, Actually VTK
> Provides renderer for IGES File, Can you tell me how can i achieve my task
> using VTK and Coin3D To display IGES File, Please Help me....Waiting for
> your reply
>
> Thank you
> Anup S
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130822/879a561b/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 7
> Date: Thu, 22 Aug 2013 10:44:13 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: [vtkusers] opening blockMeshDict File
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <CACmdbMN=
> 4minM93CFCgKPLwqmwhS8A-Fc52WacgRD3jddCUdYQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> /*--------------------------------*- C++
> -*----------------------------------*\
> | ========= |
> |
> | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
> |
> | \\ / O peration | Version: 2.1.x
> |
> | \\ / A nd | Web: www.OpenFOAM.org
> |
> | \\/ M anipulation |
> |
>
> \*---------------------------------------------------------------------------*/
> FoamFile
> {
> version 2.0;
> format ascii;
> class dictionary;
> object blockMeshDict;
> }
> // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * //
>
> convertToMeters 0.1;
>
> vertices
> (
> (0 0 0)
> (1 0 0)
> (1 1 0)
> (0 1 0)
> (0 0 0.1)
> (1 0 0.1)
> (1 1 0.1)
> (0 1 0.1)
> );
>
> blocks
> (
> hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1)
> );
>
> edges
> (
> );
>
> boundary
> (
> movingWall
> {
> type wall;
> faces
> (
> (3 7 6 2)
> );
> }
> fixedWalls
> {
> type wall;
> faces
> (
> (0 4 7 3)
> (2 6 5 1)
> (1 5 4 0)
> );
> }
> frontAndBack
> {
> type empty;
> faces
> (
> (0 3 2 1)
> (4 5 6 7)
> );
> }
> );
>
> mergePatchPairs
> (
> );
> //
> *************************************************************************
> //
>
>
>
> This is the file of openfoam which shows geometry. . . Now the above code
> contains the geometry of Square box . . .
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadOBJ . . . I took the code
> from the link and add the path of openfoam file and also add the
> vtkopenfoamreader.h . . . .but the output is only empty GUI with green
> color and no geometry . . . anyone knows where the Problem???
>
> Regards
> Abbasi
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130822/693bab4f/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 8
> Date: Thu, 22 Aug 2013 12:26:18 +0200
> From: Florian Schiffers <florian.schiffers at physik.uni-erlangen.de>
> Subject: Re: [vtkusers] VTK Interactor problem
> To: Alex Malyushytskyy <alexmalvtk at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID: <5215E74A.9080907 at physik.uni-erlangen.de>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> Hello,
>
> thx for the answer. It helped me alot, but I still have the problem that
> I cannot access to class member variables in a callback function or the
> vtkInteractorStyleTrackballCamera Class.
>
> I have a structure like this:
>
> ( with pastebin: http://pastebin.com/qm42n1xh )
>
> void ClickCallbackFunction ( vtkObject* caller, long unsigned int
> eventId, void* clientData, void* callData );
> ElectrodeDetectorPlugin::ElectrodeDetectorPlugin(QVTKWidget *p): QObject(){
> m_InputData = vtkSmartPointer <vtkPolyData> ::
> New();
> m_InputDataActor = vtkSmartPointer <vtkActor> :: New();
>
> m_MaximaData = vtkSmartPointer<vtkPolyData>::New();
> m_InputMaximaActor = vtkSmartPointer<vtkActor>::New();
>
> vtkSmartPointer<MouseInteractorStyle1> style =
> vtkSmartPointer<MouseInteractorStyle1>::New(); // Style 1 for
> manipulation Spin/Pan etc.
> vtkSmartPointer<MouseInteractorStyle2> style =
> vtkSmartPointer<MouseInteractorStyle2>::New();
> ... ....
> renderWindow->GetInteractor()->SetInteractorStyle( style );
> vtkSmartPointer<vtkCallbackCommand> clickCallback =
> vtkSmartPointer<vtkCallbackCommand>::New(); clickCallback->SetCallback (
> ClickCallbackFunction ); renderWindowInteractor->AddObserver (
> vtkCommand::LeftButtonPressEvent, clickCallback );
>
> }
> void ClickCallbackFunction ( vtkObject* vtkNotUsed(caller), long
> unsigned int vtkNotUsed(eventId), void* vtkNotUsed(clientData), void*
> vtkNotUsed(callData) ) { std::cout << "Click callback" << std::endl;
>
> // Get the interactor like this:
> vtkRenderWindowInteractor *iren =
> static_cast<vtkRenderWindowInteractor*>(caller);
>
> HERE I need to operations on m_InputData, m_MaximaData using
> PointPicker Methods
> I also want to draw objects etc.
>
> }
>
> I tried a lot of stuff, but they all didn't work. Do you have any idea?
>
> Thank you for your help!
>
> best regards,
> Flo
>
> Am 21.08.2013 04:04, schrieb Alex Malyushytskyy:
> > I just want to add thet currently set . vtkInteractorStyle is defining
> > which events are handled and how.
> > So subclassing and overriding appropriate functionality is way to go.
> > Also you can create multiple vtkInteractorStyle and set them active
> > according to your needs.
> >
> > Hope this helps.
> >
> > Alex
> >
> >
> > On Tue, Aug 20, 2013 at 4:08 PM, Alex Malyushytskyy
> > <alexmalvtk at gmail.com <mailto:alexmalvtk at gmail.com>> wrote:
> >
> > Subclass vtkInteractorStyle (or derived class ) you are using.
> >
> > All the operations: rotation, calls as results on Keypressevents
> > are initiated there.
> > Depending on the actual subclass of vtkInteractorStyle things what
> > you need to do are different,
> > For example to suppress Keypressevents for
> > vtkInteractorStyleRubberBand subclass you can just override
> > void vtkInteractorStyleRubberBand::OnChar() to do nothing.
> >
> > Regards,
> > Alex
> >
> >
> > On Tue, Aug 20, 2013 at 5:59 AM, Phys1k3r
> > <florian.schiffers at physik.uni-erlangen.de
> > <mailto:florian.schiffers at physik.uni-erlangen.de>> wrote:
> >
> > Hello,
> >
> > I have written a vtk-programm that allows me to display a 3D
> > data set (VTK
> > and QT). Additonally you can interact with the 3D Data with
> > 'RightButtonPressEvent' and 'MiddleButtonPressEvent'. Both
> > interaction are
> > point picker interactions.
> >
> > My problem is, that for example, when I press the
> > 'RightButton' two things
> > happen at once:
> >
> > 1. Point on 3D Data get's picked
> > 2. Camera is zooming in/out (only when I move mouse during
> > picking, but this
> > happens from time to time)
> >
> > The same happens with 'MiddleButtonPressEvent', the objects
> > just get moved
> > instead.
> >
> > So basically I want a button on my GUI, where I can choose:
> > 1. Either Zoom in/out
> > 2. or pick a point
> >
> > As an alternative I would be satisfied with something like this:
> > 1. Just OnLeftButtonDown() -> Just Zoom/Pan/Spin
> > 2. OnLeftButtonDown() + KeePressEvent -> Don't zoom, pick
> > point instead
> >
> > This is how I implemented the 'MiddleButtonPressEventHandling'
> > by now:
> >
> >
> >
> > I know, this is not the best way, but it worked so far. I
> > propably will
> > implement it this way in the near future:
> >
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEventsObserver
> >
> > But even when I use the MouseEventsObserver I still have no
> > Idea how
> > suppress the Zoom/Pan/Spin Events...
> >
> > Than I thought of this method instead:
> > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents
> >
> > First of all, I don't need (and also don't want) all the
> > features of the
> > vtkInteractorStyle class like Keypressevents for p, r, s, u, v
> > e (as you can
> > find them here:
> > http://www.vtk.org/doc/nightly/html/classvtkInteractorStyle.html
> > at Detailed
> > Description)
> >
> > I just need to overwrite 'OnLeftButtonDown',
> 'OnMiddleButtonDown',
> > 'OnRightButtonDown' etc.
> >
> > So basically I tried things like this, but they don't work, of
> > course:
> >
> >
> >
> >
> > Honestly I have no idea how to solve my problem... I also
> > haven't found much
> > documentary besides the examples.
> >
> > Thank you for your help, I really appreciate it
> > Phys1k3r
> >
> >
> >
> > --
> > View this message in context:
> >
> http://vtk.1045678.n5.nabble.com/VTK-Interactor-problem-tp5722887.html
> > Sent from the VTK - Users mailing list archive 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
> >
> >
> >
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130822/2f568a82/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 9
> Date: Thu, 22 Aug 2013 13:14:42 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: [vtkusers] Error
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <CACmdbMM0rQb3Z=BP7xXG2CDkUSiuay1rYTbfQTs0ZRDv=
> S9CKQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> stame1 at itlrstud044
> :~/software/GenericDataObjectReader/build>./GenericDataObjectReader
> /home/stame1/software/GenericDataObjectReader/VTK/cavity_0
>
> Now I'm using this code because my file cavity_0 is in .vtk format. but
> this error is coming.
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/GenericDataObjectReader
>
> ERROR: In /home/stame1/software/VTK6.0.0/IO/Legacy/vtkDataReader.cxx, line
> 466
> vtkGenericDataObjectReader (0x627610): Unable to open file:
> /home/stame1/software/GenericDataObjectReader/VTK/cavity_0
>
> ERROR: In
> /home/stame1/software/VTK6.0.0/Common/ExecutionModel/vtkExecutive.cxx, line
> 754
> vtkCompositeDataPipeline (0x627af0): Algorithm
> vtkGenericDataObjectReader(0x627610) returned failure for request:
> vtkInformation (0x629530)
> Debug: Off
> Modified Time: 58
> Reference Count: 1
> Registered Events: (none)
> Request: REQUEST_DATA_OBJECT
> ALGORITHM_AFTER_FORWARD: 1
> FORWARD_DIRECTION: 0
>
>
>
> ERROR: In /home/stame1/software/VTK6.0.0/IO/Legacy/vtkDataReader.cxx, line
> 466
> vtkGenericDataObjectReader (0x627610): Unable to open file:
> /home/stame1/software/GenericDataObjectReader/VTK/cavity_0
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130822/ee3011bc/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 10
> Date: Thu, 22 Aug 2013 14:13:07 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: [vtkusers] Error
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <
> CACmdbMPDs9HYkUkL7S9+bntgpu6-Lv6-pR75HHh1ZDh_P_XXMw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> stame1 at itlrstud044:~/software/StructuredGridReader/build>
> ./StructuredGridReader
> /home/stame1/software/VTK/fixedWalls_0.vtk
> ERROR: In /home/stame1/software/VTK6.0.0/IO/Legacy/vtkDataReader.cxx, line
> 466
> vtkStructuredGridReader (0x62bff0): Unable to open file:
> /home/stame1/software/VTK/fixedWalls_0.vtk
>
> ERROR: In /home/stame1/software/VTK6.0.0/IO/Legacy/vtkDataReader.cxx, line
> 466
> vtkStructuredGridReader (0x62bff0): Unable to open file:
> /home/stame1/software/VTK/fixedWalls_0.vtk
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130822/fd7afe43/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 11
> Date: Thu, 22 Aug 2013 14:23:20 +0200
> From: Altamash Abbasi <altamashabbasi at gmail.com>
> Subject: [vtkusers] Question
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <CACmdbMP9rRR4khShyQxQ=
> RsTPSns6jTUzuai0jxqEufd-290ug at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I've unstructured grid file of type .vtk format . . .But wiki page contain
> the unstructured grid with .vtu format . . . how to manage these to
> formats??
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130822/214f3537/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 12
> Date: Thu, 22 Aug 2013 10:22:05 -0400
> From: Anka Kochanowska <pluszcz at gmail.com>
> Subject: Re: [vtkusers] Qt + Vtk - Callbacks and signals/slots
> To: Jose Ignacio Prieto <joseignacio.prieto at gmail.com>
> Cc: VTK Users <vtkusers at vtk.org>
> Message-ID:
> <
> CANnbg4F+HCxjBsAoTJpXrQ7-Lyk3fV2ySMU3+5hJavzcyAkX6A at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Does your class has a
>
> Q_OBJECT
>
> macro included?
>
> Anka
>
>
>
>
>
> On Wed, Aug 21, 2013 at 6:09 PM, Jose Ignacio Prieto <
> joseignacio.prieto at gmail.com> wrote:
>
> > Hi all,
> > I think I am not fully understanding callbacks and signals. I have a qt
> > project where the ui loads a vtk renderwindow. That render window has a
> > callback (a box widget that has to update the clipping planes of the
> > vtkvolume). After that I would like that inside the callback it emits a
> > signal and the qvtkwidget then calls its renderwindow and renders all.
> > I couldn't emit a signal, so I made the class mycallback to inherit both
> > from vtkcommand and qobject, and now it doesn't compile showing
> >
> > undefined reference to `vtable for vtkBoxCallback'
> >
> >
> > What should I do?
> > Thanks
> >
> > --
> > Jos? Ignacio Prieto
> > celular(nuevo): 94348182
> >
> > _______________________________________________
> > 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/20130822/6aa14aa9/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 13
> Date: Thu, 22 Aug 2013 07:37:34 -0700 (PDT)
> From: Zweistein <Matthiasth at gmx.de>
> Subject: Re: [vtkusers] Why is QVTKGraphicsItem not in Mainthread?
> To: vtkusers at vtk.org
> Message-ID: <1377182254815-5722963.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hello again,
>
> I was able to find out additional information about my problem now. The
> problem occured when I told cmake where my external HDF5 library is
> located:
>
> HDF5_C_LIBRARY set to "D:\Libs\hdf5-1.8.11\VS2010\Install\lib\hdf5.lib" in
> cmake.
>
> When i just put the path in there, I get warnings like:
> WARNING: Target "vtkIOAMR" requests linking to directory
> "D:/Libs/hdf5-1.8.11/VS2010/Install/lib/". Targets may link only to
> libraries. CMake is dropping the item.
> WARNING: Target "vtkNetCDF" requests linking to directory
> "D:/Libs/hdf5-1.8.11/VS2010/Install/lib/". Targets may link only to
> libraries. CMake is dropping the item.
> ...
>
> However, vtk uses now the hdf5.lib (release) library for debug and release
> version of vtk.
>
> How can i change that? In debug, hdf5_D.lib should be used.
>
> Best regards
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Why-is-QVTKGraphicsItem-not-in-Mainthread-tp5722937p5722963.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 14
> Date: Thu, 22 Aug 2013 16:39:44 +0200
> From: curator <curator at gmx.de>
> Subject: [vtkusers] plot a huge amount of spheres
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID: <521622B0.8050700 at gmx.de>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> Hi all,
>
> I am able to draw a vtkSphere with its own vtkSphere, vtkActor and
> vtkMapper equipped together. Now if I need several spheres, I add
> multiple instances of this stuff for each sphere and add them all up to
> the same renderer - so far, so good.
>
> Now I need to draw a really huge amount of spheres, which are all
> identical except the position. Is there any more efficient way to to
> that than just creating N vtkActors, N vtkMappers and N vtkSpheres?
>
> regards,
> curator
>
>
> ------------------------------
>
> Message: 15
> Date: Fri, 23 Aug 2013 02:45:04 +1200
> From: Gib Bogle <g.bogle at auckland.ac.nz>
> Subject: Re: [vtkusers] plot a huge amount of spheres
> To: vtkusers at vtk.org
> Message-ID: <521623F0.70106 at auckland.ac.nz>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> You need only multiple actors, all using the same mapper.
>
> On 23/08/2013 2:39 a.m., curator wrote:
> > Hi all,
> >
> > I am able to draw a vtkSphere with its own vtkSphere, vtkActor and
> vtkMapper
> > equipped together. Now if I need several spheres, I add multiple
> instances of
> > this stuff for each sphere and add them all up to the same renderer - so
> far,
> > so good.
> >
> > Now I need to draw a really huge amount of spheres, which are all
> identical
> > except the position. Is there any more efficient way to to that than just
> > creating N vtkActors, N vtkMappers and N vtkSpheres?
> >
> > regards,
> > curator
> > _______________________________________________
> > 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
>
>
> --
> Dr. Gib Bogle
> Senior Research Fellow
> Auckland Bioengineering Institute
> University of Auckland
> New Zealand
>
> http://www.bioeng.auckland.ac.nz
>
> g.bogle at auckland.ac.nz
> (64-9) 373-7599 Ext. 87030
>
>
>
> ------------------------------
>
> Message: 16
> Date: Thu, 22 Aug 2013 10:52:09 -0400
> From: "Marcus D. Hanwell" <marcus.hanwell at kitware.com>
> Subject: Re: [vtkusers] plot a huge amount of spheres
> To: curator <curator at gmx.de>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <
> CAMkPkZWRju2oSiQDNTGL6dxv2_u24RVCoSqwgYn4vwUguyjaAQ at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Thu, Aug 22, 2013 at 10:39 AM, curator <curator at gmx.de> wrote:
> > Hi all,
> >
> > I am able to draw a vtkSphere with its own vtkSphere, vtkActor and
> vtkMapper
> > equipped together. Now if I need several spheres, I add multiple
> instances
> > of this stuff for each sphere and add them all up to the same renderer -
> so
> > far, so good.
> >
> > Now I need to draw a really huge amount of spheres, which are all
> identical
> > except the position. Is there any more efficient way to to that than just
> > creating N vtkActors, N vtkMappers and N vtkSpheres?
> >
> I would suggest looking at the support for glyphing, the chemistry
> module uses this to render glyphed spheres and cylinders for example.
> Something available in ParaView is the point sprite plugin too, we are
> using a variation that is more flexible in the Open Chemistry work
> (point sprites are normally limited to 64 pixels in width I think)
> with vertex buffer objects but an implementation has not yet been
> merged into VTK master (I hope to get to this soon).
>
> Hope that helps.
>
> Marcus
>
>
> ------------------------------
>
> Message: 17
> Date: Thu, 22 Aug 2013 10:55:14 -0400
> From: David E DeMarle <dave.demarle at kitware.com>
> Subject: Re: [vtkusers] plot a huge amount of spheres
> To: Gib Bogle <g.bogle at auckland.ac.nz>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <CANjZAi9GVxsHHn+OJwM1PBa7JT+YS+FU8P4sxqpO4EOma=
> Dp6g at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Use a vtkPolyData with points on the locations, and a VTK_VERTEX cell
> refering to each one.
>
> Then send that into vtkGlyph to have the CPU makes the spheres which then
> get send to the card.
>
> Better yet, draw it with vtkGlyph3dMapper to make the spheres via vertex
> programs on the GPU instead of the CPU.
>
> Better still, bring ParaView's point sprite plugin over, which will draw
> the spheres via fragment programs on the GPU.
>
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
> On Thu, Aug 22, 2013 at 10:45 AM, Gib Bogle <g.bogle at auckland.ac.nz>
> wrote:
>
> > You need only multiple actors, all using the same mapper.
> >
> >
> > On 23/08/2013 2:39 a.m., curator wrote:
> >
> >> Hi all,
> >>
> >> I am able to draw a vtkSphere with its own vtkSphere, vtkActor and
> >> vtkMapper equipped together. Now if I need several spheres, I add
> multiple
> >> instances of this stuff for each sphere and add them all up to the same
> >> renderer - so far, so good.
> >>
> >> Now I need to draw a really huge amount of spheres, which are all
> >> identical except the position. Is there any more efficient way to to
> that
> >> than just creating N vtkActors, N vtkMappers and N vtkSpheres?
> >>
> >> regards,
> >> curator
> >> ______________________________**_________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at http://www.kitware.com/**
> >> opensource/opensource.html<
> 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 <http://www.vtk.org/Wiki/VTK_FAQ>
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/**listinfo/vtkusers<
> http://www.vtk.org/mailman/listinfo/vtkusers>
> >>
> >
> >
> > --
> > Dr. Gib Bogle
> > Senior Research Fellow
> > Auckland Bioengineering Institute
> > University of Auckland
> > New Zealand
> >
> > http://www.bioeng.auckland.ac.**nz <http://www.bioeng.auckland.ac.nz>
> >
> > g.bogle at auckland.ac.nz
> > (64-9) 373-7599 Ext. 87030
> >
> >
> > ______________________________**_________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at http://www.kitware.com/**
> > opensource/opensource.html<
> 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 <http://www.vtk.org/Wiki/VTK_FAQ>
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/**listinfo/vtkusers<
> http://www.vtk.org/mailman/listinfo/vtkusers>
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130822/cbe20db7/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 18
> Date: Thu, 22 Aug 2013 11:52:32 -0400
> From: Shawn Waldon <swaldon at cs.unc.edu>
> Subject: Re: [vtkusers] plot a huge amount of spheres
> To: David E DeMarle <dave.demarle at kitware.com>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> <
> CAKqg6a6wHN0VpM_4Qo6t+OpoBzvrC+SeTCJQgO+Adeo-MWMXwQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello all,
>
> I am working on a related issue the last few days. I have something a
> little more complex that I am wanting to draw many copies of and I need the
> orientation to be controllable as well as the position. Could I use a
> similar trick perhaps with glyphs for vectors?
>
> Thank you,
>
> Shawn Waldon
>
>
> On Thu, Aug 22, 2013 at 10:55 AM, David E DeMarle
> <dave.demarle at kitware.com>wrote:
>
> > Use a vtkPolyData with points on the locations, and a VTK_VERTEX cell
> > refering to each one.
> >
> > Then send that into vtkGlyph to have the CPU makes the spheres which then
> > get send to the card.
> >
> > Better yet, draw it with vtkGlyph3dMapper to make the spheres via vertex
> > programs on the GPU instead of the CPU.
> >
> > Better still, bring ParaView's point sprite plugin over, which will draw
> > the spheres via fragment programs on the GPU.
> >
> >
> > David E DeMarle
> > Kitware, Inc.
> > R&D Engineer
> > 21 Corporate Drive
> > Clifton Park, NY 12065-8662
> > Phone: 518-881-4909
> >
> >
> > On Thu, Aug 22, 2013 at 10:45 AM, Gib Bogle <g.bogle at auckland.ac.nz
> >wrote:
> >
> >> You need only multiple actors, all using the same mapper.
> >>
> >>
> >> On 23/08/2013 2:39 a.m., curator wrote:
> >>
> >>> Hi all,
> >>>
> >>> I am able to draw a vtkSphere with its own vtkSphere, vtkActor and
> >>> vtkMapper equipped together. Now if I need several spheres, I add
> multiple
> >>> instances of this stuff for each sphere and add them all up to the same
> >>> renderer - so far, so good.
> >>>
> >>> Now I need to draw a really huge amount of spheres, which are all
> >>> identical except the position. Is there any more efficient way to to
> that
> >>> than just creating N vtkActors, N vtkMappers and N vtkSpheres?
> >>>
> >>> regards,
> >>> curator
> >>> ______________________________**_________________
> >>> Powered by www.kitware.com
> >>>
> >>> Visit other Kitware open-source projects at http://www.kitware.com/**
> >>> opensource/opensource.html<
> 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 <http://www.vtk.org/Wiki/VTK_FAQ>
> >>>
> >>> Follow this link to subscribe/unsubscribe:
> >>> http://www.vtk.org/mailman/**listinfo/vtkusers<
> http://www.vtk.org/mailman/listinfo/vtkusers>
> >>>
> >>
> >>
> >> --
> >> Dr. Gib Bogle
> >> Senior Research Fellow
> >> Auckland Bioengineering Institute
> >> University of Auckland
> >> New Zealand
> >>
> >> http://www.bioeng.auckland.ac.**nz <http://www.bioeng.auckland.ac.nz>
> >>
> >> g.bogle at auckland.ac.nz
> >> (64-9) 373-7599 Ext. 87030
> >>
> >>
> >> ______________________________**_________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at http://www.kitware.com/**
> >> opensource/opensource.html<
> 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 <http://www.vtk.org/Wiki/VTK_FAQ>
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/**listinfo/vtkusers<
> 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
> >
> >
>
>
> --
> 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/20130822/4e619df4/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 112, Issue 45
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130823/ded822c3/attachment.htm>
More information about the vtkusers
mailing list