wxVtkBaseView::wxVtkBaseView(wxWindow *parent)
{
_parent = parent;
- _iren = (wxVTKRenderWindowInteractor*)new wxVTKRenderWindowInteractorPlus(_parent,this);
+ _iren = (crea::wxVTKRenderWindowInteractor*)new wxVTKRenderWindowInteractorPlus(_parent,this);
// _iren->UseCaptureMouseOn();
// _iren = new wxVTKRenderWindowInteractor(_parent,-1);
_interactorStyle = NULL;
//_iren=NULL;
}
//-------------------------------------------------------------------
-wxVTKRenderWindowInteractor* wxVtkBaseView::GetWxVTKRenderWindowInteractor() throw (char*)
+crea::wxVTKRenderWindowInteractor* wxVtkBaseView::GetWxVTKRenderWindowInteractor() throw (char*)
{
- if(_iren==NULL){
- throw "wxVtkBaseView::GetWxVTKRenderWindowInteractor() _iren wxVTKRenderWindowInteractorPlus =NULL";
+ if(_iren==NULL)
+ {
+ throw "wxVtkBaseView::GetWxVTKRenderWindowInteractor() _iren cwxVTKRenderWindowInteractorPlus =NULL";
}
return _iren;
}
//-------------------------------------------------------------------
void wxVtkBaseView::RefreshView() // virtual
{
- printf("EED wxVtkBaseView::RefreshView() \n");
// EED 10 Oct 2007
-
#if defined(WIN32)
GetRenWin()->Render();
#else
GetRenderer()->DisplayToWorld();
double fP[4];
GetRenderer()->GetWorldPoint( fP );
- if ( fP[3] ){
+ if ( fP[3] ){
fP[0] /= fP[3];
fP[1] /= fP[3];
fP[2] /= fP[3];
X = xx;
Y = yy;
- Z=zz;
+ Z = zz;
// EEDx5
//JCP 13/05/2009
if (type!=2)
{
Z=fP[2];
- }
+ }
+
}
//---------------------------------------------------------------------------