//---------------------------------------------------------------------------
void vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(int type)
{
-printf("EED vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas Start \n ");
InteractorStyleMaracas *intStyMar;
int i,size=_lstInteractorStyleMaracas.size();
-//EED Borrame
-//FILE *ff = fopen("c:/temp/wxVtkBaseView_SceneManagerStadistics.txt","a+");
-//fprintf(ff,"EED vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas \n" );
-//for (i=0;i<size;i++)
-//{
-//fprintf(ff," %p\n" , _lstInteractorStyleMaracas[i] );
-//}
-//fclose(ff);
-
-
for (i=0;i<size;i++)
{
} // for
EvaluateToRefresh();
-printf("EED vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas End \n ");
-
}
//---------------------------------------------------------------------------
void vtkInteractorStyleBaseView::OnChar() // virtual
//---------------------------------------------------------------------------
void vtkInteractorStyleBaseView::EvaluateToRefresh()
{
-printf("EED vtkInteractorStyleBaseView::EvaluateToRefresh Start \n ");
if ( _blockRefresh==false )
{
if ( (_refresh_waiting==true) && (_parent_refresh_waiting==false))
{
_refresh_waiting = false;
- printf("EED vtkInteractorStyleBaseView::EvaluateToRefresh 1.0 \n ");
this->_wxvtkbaseview->Refresh();
- printf("EED vtkInteractorStyleBaseView::EvaluateToRefresh 1.1 \n ");
}
if (_parent_refresh_waiting==true)
{
#if wxMAJOR_VERSION <= 2
this->_wxvtkbaseview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent1);
#else
- printf("EED vtkInteractorStyleBaseView::EvaluateToRefresh 2.0 \n ");
this->_wxvtkbaseview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessWindowEvent(newevent1);
- printf("EED vtkInteractorStyleBaseView::EvaluateToRefresh 2.1 \n ");
#endif
int i;
int size = _lstParentToReport.size();
for(i = 0; i<size; i++)
{
- printf("EED vtkInteractorStyleBaseView::EvaluateToRefresh 3.0 \n ");
_lstParentToReport[i]->ProcessEvent(newevent1);
- printf("EED vtkInteractorStyleBaseView::EvaluateToRefresh 3.1 \n ");
}//for
}//if
}//if _blockRefresh
-printf("EED vtkInteractorStyleBaseView::EvaluateToRefresh End\n");
}
//---------------------------------------------------------------------------
void vtkInteractorStyleBaseView::BlockRefresh()
//-------------------------------------------------------------------
void wxVtk3DBaseView::Refresh()
{
-printf("EED wxVtk3DBaseView::Refresh Start\n");
// _renWin->Render();
vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor();
vri->vtkRenderWindowInteractor::Render();
-printf("EED wxVtk3DBaseView::Refresh End\n");
}
//-------------------------------------------------------------------
_aRenderer->SetMaximumNumberOfPeels(100);
_renWin->SetMultiSamples(0);
_renWin->SetAlphaBitPlanes(1);
+
+//EED 2021-11-3
+// The Depth Peeling method have a bug in MacOs
+// In vtkDualDepthPeelingPass::Peel() TranslucentWrittenPixels are incoherent TOO BIG some times. Why ??
+// So the comparition in vtkDualDepthPeelingPass::PeelingDone() is not coherent.
+// while (!this->PeelingDone())
+// {
+// this->Peel();
+// }
+// Or CurrentPeel >= MaximumNumberOfPeels || TranslucentWrittenPixels <= OcclusionThreshold not coherent. Why ??
+ _aRenderer->UseDepthPeelingOff();
+
} // if _configure
}