[vtkusers] Best way to add a print in a distribution file ?

kenichiro yoshimi rccm.kyoshimi at gmail.com
Tue May 9 03:24:27 EDT 2017


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 <vtkusers at vtk.org>:
> 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
> 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
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list