}
}
+
+ //----------------------------------------------------------------------------
template<class TPrs3d_i, class TDlg, int TIsDlgModal>
- inline
void
EditPrs3d(VisuGUI* theModule,
Handle(SALOME_InteractiveObject)& theIO,
}
}
+
//---------------------------------------------------------------
template<class TPrs3d_i>
- inline
TPrs3d_i*
CreatePrs3dFromFactory(VisuGUI* theModule,
_PTR(SObject) theTimeStamp,
//---------------------------------------------------------------
template<class TPrs3d_i, class TViewer, class TDlg, int IsDlgModal>
- inline
TPrs3d_i*
CreateAndEditPrs3d(VisuGUI* theModule,
_PTR(SObject) theTimeStamp,
//---------------------------------------------------------------
template<class TPrs3d_i, class TViewer, class TDlg, int IsDlgModal>
- inline
void
CreatePrs3dInViewer(VisuGUI* theModule,
_PTR(SObject) theTimeStampSObj,
theModule->application()->putInfo(QObject::tr("INF_DONE"));
}
+
+ //----------------------------------------------------------------------------
template<class TPrs3d_i, class TDlg, int IsDlgModal>
- inline
void
CreatePrs3d(VisuGUI* theModule,
const QString& theDesiredViewerType = QString())
}
}
}
+
+
+ //----------------------------------------------------------------------------
+ VISU::Prs3d_i*
+ GetPrs3d(CORBA::Object_ptr theObject)
+ {
+ if(!CORBA::is_nil(theObject)){
+ VISU::Base_var aBase = VISU::Base::_narrow(theObject);
+ if(!CORBA::is_nil(aBase)){
+ PortableServer::ServantBase_var aServant = VISU::GetServant(aBase);
+ if(aServant.in())
+ return dynamic_cast<VISU::Prs3d_i*>(aServant.in());
+ }
+ }
+ return NULL;
+ }
+
+
+ //----------------------------------------------------------------------------
}
#endif