[vtkusers] Adding a vtkPoint
Benjamin Jähn
jaminus_jahnatos at freenet.de
Mon Jul 9 08:03:35 EDT 2012
Then something with your Render() call goes wrong.
In my callback i just used pIren->Render() and everything worked fine.
Good Luck,
Benjamin
Am 09.07.2012 13:47, schrieb Jack Leigh:
> 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
>>>
>>>
>>
>>
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list