[vtkusers] Adding a vtkPoint

Jack Leigh leighman at gmx.se
Mon Jul 9 07:47:37 EDT 2012


That didn't seem to work either.

Scrolling in or out seems to work so maybe it's something to do with the 
camera not resetting?
Adding an axes actor also seemed to work, for whatever reason...

Cheers,
Jack

On 09/07/12 12:04, Benjamin Jähn wrote:
> hey,
> have you tried vertexfilter->Modified() ?
>
> Otherwise i have no idea.
>
> Good Luck,
> Benjamin
>
> Am 09.07.2012 12:13, schrieb Jack Leigh:
>> Okay so I have
>> points -> polydata -> vertexglyphfilter -> mapper -> actor -> renderer
>> -> renderwindow -> renderwindowinteractor
>>
>> I set a style on the renderwindowinteractor to intercept a click.
>> I have a callback deriving from vtkCommand as in the wiki examples
>> which I set to occur on the click and I know that is getting called.
>> I pass various pointers in as public members as in the examples.
>> I add a new point with InsertNextPoint().
>>
>> I have then tried polydata->Modified(), vertexfilter->Update() and
>> iren->GetRenderWindow()->Render() but no new points appear.
>>
>> Thanks,
>> Jack
>>
>> On 09/07/12 08:22, Benjamin Jähn wrote:
>>> Hi,
>>>
>>> can you post a little example. Or explain in more detail what you want
>>> to do?
>>> I think i have done something similar maybe I can help you.
>>>
>>> One thing I can remember is that you have to call Modified() on the
>>> first involved vtkAlgorithem.
>>> vtkPolyData inherits from vtkDataSet so it is not an Source algortihm.
>>>
>>> Even if this helps please show your implementation. I am realy
>>> interested in the solution.
>>>
>>> God Luck,
>>> Benjamin
>>>
>>> Am 09.07.2012 02:00, schrieb Jack Leigh:
>>>> What do I need to do to update a pipeline after I have added a new
>>>> point to vtkPoints?
>>>>
>>>> I have a callback which should add a new point and update the renderer.
>>>> I have tried Modified() on the PolyData and Render() on the
>>>> RenderWindow.
>>>>
>>>> What am I missing?
>>>>
>>>> Thanks,
>>>> Jack
>>
>>
>
>





More information about the vtkusers mailing list