[vtkusers] How to communicate between vtkPiecewiseFunctionand vtkDataArray
Yi-Yu Chou
chouyiyu at hotmail.com
Wed Aug 11 16:58:52 EDT 2004
Dear Amy,
Thanks for your replying, but I encountered a weired problem....
I can't use GetDataPointer method !!!!!
In my code, I set :
r_fun = vtkPiecewiseFunction()
r_fun.AddPoint(0, 0)
r_fun.AddPoint(255, 1)
r_pt = r_fun.GetDataPointer()
When I ran it under vtk4.2 with python 2.3, it appeared an error message :
r_fun.GetDataPointer()
AttributeError: GetDataPointer
Do you now what's going wrong ?????
>From: Amy Henderson <amy.henderson at kitware.com>
>To: vtkusers at vtk.org
>Subject: Re: [vtkusers] How to communicate between vtkPiecewiseFunctionand
vtkDataArray
>Date: Wed, 11 Aug 2004 15:27:12 -0400
>
>Hi Yi-Yu,
>
>You can get the underlying double array from the
>vtkPiecewiseFunction using the GetDataPointer method. You can pass
>this array to a vtkDoubleArray using its SetArray method. (You will
>also need to fill in the size of the array and whether
>vtkDoubleArray is responsible for deleting the double array you
>passed in.)
>
>- Amy
>
>At 03:21 PM 8/11/2004, Yi-Yu Chou wrote:
>>Dear vtk users,
>>
>>Is it possible to use vtkPiecewiseFunctions to build a vtkDataArray
>>?
>>Please give me some ideas.
>>Thanks a lot !!!
>>
>>Yi-Yu
>>
>>_________________________________________________________________
>>下載最新版本的 MSN
>>Messenger:和朋友在線上聊天,用有趣的表情符號傳達心意!
>>http://messenger.msn.com.tw/
>>_______________________________________________
>>This is the private VTK discussion list. Please keep messages
>>on-topic. Check the FAQ at:
>><http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
_________________________________________________________________
加入 MSN 社群:擁抱群眾、分享經驗、發現生活的樂趣
http://groups.msn.com?pgmarket=zh-tw
More information about the vtkusers
mailing list