On 30.07.2013 11:21, Clarkson, Matt wrote:
> Hi there,
>
> I have a wierd rendering issue going on. I am dynamically updating a
> mitk::PointSet. At each update I call pointSet->Clear(), and then insert a
> new load of points.
> I have 2 QmitkRenderWindows on screen both set to 3D mode. In one of them the
> points are always visible. In the second one, they flicker on and off. If I
> interact with the window, they appear again, and then flicker off.
>
> Having checked lots of things already, I am now wondering about whether I
> should be doing anything with the bounding box when I create the new list of
> points.
> So can anyone tell me if I have to doing anything after inserting points?
> When should UpdateOutputInformation be called? and when should
> SetRequestedRegionToLargestPossibleRegion()?
> Are these relevant here?
Hi Matt,
this sounds indeed strange. The PointSet class should itself care about
its bounding box, and when looking at InsertPoint, it seems that it does.
Two ideas:
- when one window shows nothing, could it be that it rendered just
after the moment you called Clear() but before you filled the
point set again? Maybe you are missing an explicit rendering update.
- unprobable but possible: if your point positions are very variable,
some or all of the new points might be outside the "world" that you
initialized for the render windows by calling e.g.
RenderingManager::InitializeViews(..).
Regards,
Daniel
--
Dr. Daniel Maleike Telefon: + 49 6221 647976 3
Mint Medical GmbH, Friedrich-Ebert-Straße 2, 69221 Dossenheim/Heidelberg
Geschäftsführer: Dr. Matthias Baumhauer
Registergericht Mannheim, HRB 709351
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users