[vtkusers] Using vtkImagePlaneWidget::GetVector1 via tcl

dean.inglis at on.aibn.com dean.inglis at on.aibn.com
Tue Apr 1 21:46:22 EST 2003


Martin,

after looking at this again with less haste,
I'm pretty certain (I am not a tcl expert so 
someone else please comment?) that
vtkImagePlaneWidget (IPW) would have to maintain
ivars float Vector1[3] and float Vector2[3]
to pass pointers to for the tcl wrapping to
work.  That is:

void vtkImagePlaneWidget::GetVector1(float v1[3])
doesn't work, but 
float* vtkImagePlaneWidget::GetVector1()
would work only if IPW maintains Vector1
explicitly.  The reason IPW methods like GetOrigin
succeed is because they call the corresponding
functions of IPW's internal vtkPlaneSource, which
does maintain an ivar float Origin[3].  If you
can use my suggested work around from last post
that would be best.

Dean









More information about the vtkusers mailing list