[vtkusers] Best way to add a print in a distribution file ?
foufara
foufara at yahoo.fr
Tue May 9 07:47:48 EDT 2017
Yes you are right, if I look at vtkLineSource.h I see that vtkGetVectorMacro is called just before SetPoint1 is declared.
I don’t understand the meaning of that, but that should be the reason.
Thank you
> Le 9 mai 2017 à 09:24, kenichiro yoshimi [via VTK] <ml+s1045678n5743148h66 at n5.nabble.com> a écrit :
>
> Hi,
>
> Probably, you are calling a function defined by
> vtkGetVectorMacro(Point1,double,3);
> and hence a function to which you have added print
> void vtkLineSource::SetPoint1(float point1f[3])
> may not be called.
>
> Regards,
>
> 2017-05-09 15:44 GMT+09:00 foufara via vtkusers <[hidden email] <x-msg://10/user/SendEmail.jtp?type=node&node=5743148&i=0>>:
>
> > Hi,
> >
> > thank you for this answer.
> >
> > Actually I was writing it correctly std::endl.
> > I tried flushing but it didn’t change anything.
> > The print I had added was in
> >
> > void vtkLineSource::SetPoint1(float point1f[3])
> >
> > I then added another print in
> >
> > int vtkLineSource::RequestData(
> > vtkInformation *vtkNotUsed(request),
> > vtkInformationVector **vtkNotUsed(inputVector),
> > vtkInformationVector *outputVector)
> >
> > And this one works.
> > So I guess the code does not call
> >
> > void vtkLineSource::SetPoint1(float point1f[3])
> >
> > at all.
> >
> > But then what does it call when I write :
> >
> > // Create a line
> > vtkSmartPointer<vtkLineSource> lineSource =
> > vtkSmartPointer<vtkLineSource>::New();
> > lineSource->SetPoint1(1.0, 0.0, 0.0);
> > lineSource->SetPoint2(0.0, 1.0, 0.0);
> >
> > in my code ? Is it because of the smart pointer ?
> >
> > Cheers,
> >
> >
> >
> > --
> > View this message in context: http://vtk.1045678.n5.nabble.com/Best-way-to-add-a-print-in-a-distribution-file-tp5743112p5743145.html <http://vtk.1045678.n5.nabble.com/Best-way-to-add-a-print-in-a-distribution-file-tp5743112p5743145.html>
> > Sent from the VTK - Users mailing list archive at Nabble.com.
> > _______________________________________________
> > 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>
> >
> > Search the list archives at: http://markmail.org/search/?q=vtkusers <http://markmail.org/search/?q=vtkusers>
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers <http://public.kitware.com/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 <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>
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers <http://markmail.org/search/?q=vtkusers>
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers <http://public.kitware.com/mailman/listinfo/vtkusers>
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://vtk.1045678.n5.nabble.com/Best-way-to-add-a-print-in-a-distribution-file-tp5743112p5743148.html <http://vtk.1045678.n5.nabble.com/Best-way-to-add-a-print-in-a-distribution-file-tp5743112p5743148.html>
> To unsubscribe from Best way to add a print in a distribution file ?, click here <http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5743112&code=Zm91ZmFyYUB5YWhvby5mcnw1NzQzMTEyfDc0MjQxOTgzMg==>.
> 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: http://vtk.1045678.n5.nabble.com/Best-way-to-add-a-print-in-a-distribution-file-tp5743112p5743152.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170509/87b34d45/attachment.html>
More information about the vtkusers
mailing list