mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-25 23:50:48 +05:00
PAL12114.
This commit is contained in:
parent
d4d795c435
commit
eda03521e0
@ -45,6 +45,7 @@
|
|||||||
#include "SVTK_ViewModel.h"
|
#include "SVTK_ViewModel.h"
|
||||||
#include "SVTK_ViewWindow.h"
|
#include "SVTK_ViewWindow.h"
|
||||||
#include "SVTK_View.h"
|
#include "SVTK_View.h"
|
||||||
|
#include "SVTK_Renderer.h"
|
||||||
|
|
||||||
#include "GEOM_Actor.h"
|
#include "GEOM_Actor.h"
|
||||||
#include "GEOM_Client.hxx"
|
#include "GEOM_Client.hxx"
|
||||||
@ -230,6 +231,35 @@ void GEOM_Swig::createAndDisplayGO (const char* Entry)
|
|||||||
ProcessVoidEvent(new TEventUpdateBrowser ());
|
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)
|
int GEOM_Swig::getIndexTopology(const char* SubIOR, const char* IOR)
|
||||||
{
|
{
|
||||||
|
@ -50,6 +50,7 @@ public:
|
|||||||
~GEOM_Swig();
|
~GEOM_Swig();
|
||||||
|
|
||||||
void createAndDisplayGO(const char* Entry);
|
void createAndDisplayGO(const char* Entry);
|
||||||
|
void createAndDisplayFitAllGO(const char* Entry);
|
||||||
void setDisplayMode(const char* Entry, int mode);
|
void setDisplayMode(const char* Entry, int mode);
|
||||||
void setColor(const char* Entry, int red, int green, int blue);
|
void setColor(const char* Entry, int red, int green, int blue);
|
||||||
void setTransparency(const char* Entry, float transp);
|
void setTransparency(const char* Entry, float transp);
|
||||||
|
@ -37,6 +37,7 @@ class GEOM_Swig
|
|||||||
~GEOM_Swig();
|
~GEOM_Swig();
|
||||||
|
|
||||||
void createAndDisplayGO(const char* Entry);
|
void createAndDisplayGO(const char* Entry);
|
||||||
|
void createAndDisplayFitAllGO(const char* Entry);
|
||||||
int getIndexTopology(const char *SubEntry, const char *Entry);
|
int getIndexTopology(const char *SubEntry, const char *Entry);
|
||||||
const char* getShapeTypeString(const char *Entry);
|
const char* getShapeTypeString(const char *Entry);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user