#include "SVTK_ViewModel.h"
#include "SVTK_ViewWindow.h"
#include "SVTK_View.h"
+#include "SVTK_Renderer.h"
#include "GEOM_Actor.h"
#include "GEOM_Client.hxx"
ProcessVoidEvent(new TEventUpdateBrowser ());
}
+void GEOM_Swig::createAndDisplayFitAllGO (const char* Entry)
+{
+ class TEventFitAll: public SALOME_Event
+ {
+ public:
+ TEventFitAll() {}
+ virtual void Execute() {
+ SUIT_Application* app = SUIT_Session::session()->activeApplication();
+ if (!app) return;
+
+ if (SVTK_ViewWindow* aViewWindow = GetSVTKViewWindow(app))
+ {
+ SVTK_View* aView = aViewWindow->getView();
+ aView->GetRenderer()->OnFitAll();
+ }
+ else if (OCCViewer_Viewer* occViewer = GetOCCViewer(app))
+ {
+ Handle(V3d_Viewer) aViewer3d = occViewer->getViewer3d();
+ aViewer3d->InitActiveViews();
+
+ if (aViewer3d->MoreActiveViews())
+ aViewer3d->ActiveView()->FitAll();
+ }
+ }
+ };
+
+ createAndDisplayGO(Entry);
+ ProcessVoidEvent(new TEventFitAll());
+}
int GEOM_Swig::getIndexTopology(const char* SubIOR, const char* IOR)
{
~GEOM_Swig();
void createAndDisplayGO(const char* Entry);
+ void createAndDisplayFitAllGO(const char* Entry);
void setDisplayMode(const char* Entry, int mode);
void setColor(const char* Entry, int red, int green, int blue);
void setTransparency(const char* Entry, float transp);
~GEOM_Swig();
void createAndDisplayGO(const char* Entry);
+ void createAndDisplayFitAllGO(const char* Entry);
int getIndexTopology(const char *SubEntry, const char *Entry);
const char* getShapeTypeString(const char *Entry);