// .. "3D viewer" group <<end>>
QString formats;
- int bgId;
#ifndef DISABLE_OCCVIEWER
+ int bgId;
// .. "OCC viewer" group <<start>>
int occGroup = pref->addPreference( tr( "PREF_GROUP_OCCVIEWER" ), salomeCat );
if ( sec == QString( "3DViewer" ) && (param == QString( "trihedron_size" ) || param == QString( "relative_size" )))
{
- double sz = resMgr->doubleValue( sec, "trihedron_size", -1 );
- bool relative = resMgr->booleanValue( sec, "relative_size", true );
QList<SUIT_ViewManager*> lst;
#ifndef DISABLE_OCCVIEWER
+ double sz = resMgr->doubleValue( sec, "trihedron_size", -1 );
+ bool relative = resMgr->booleanValue( sec, "relative_size", true );
viewManagers( OCCViewer_Viewer::Type(), lst );
QListIterator<SUIT_ViewManager*> itOCC( lst );
while ( itOCC.hasNext() && sz >= 0 )
if ( sec == QString( "3DViewer" ) && param == QString( "show_static_trihedron" ) )
{
- bool isVisible = resMgr->booleanValue( "3DViewer", "show_static_trihedron", true );
QList<SUIT_ViewManager*> lst;
#ifndef DISABLE_OCCVIEWER
+ bool isVisible = resMgr->booleanValue( "3DViewer", "show_static_trihedron", true );
viewManagers( OCCViewer_Viewer::Type(), lst );
QListIterator<SUIT_ViewManager*> itOCC( lst );
while ( itOCC.hasNext() )
if ( sec == QString( "3DViewer" ) && param == QString( "navigation_mode" ) )
{
- int mode = resMgr->integerValue( "3DViewer", "navigation_mode", 0 );
QList<SUIT_ViewManager*> lst;
#ifndef DISABLE_OCCVIEWER
+ int mode = resMgr->integerValue( "3DViewer", "navigation_mode", 0 );
viewManagers( OCCViewer_Viewer::Type(), lst );
QListIterator<SUIT_ViewManager*> itOCC( lst );
while ( itOCC.hasNext() )
if ( sec == QString( "3DViewer" ) && param == QString( "zooming_mode" ) )
{
- int mode = resMgr->integerValue( "3DViewer", "zooming_mode", 0 );
QList<SUIT_ViewManager*> lst;
#ifndef DISABLE_OCCVIEWER
+ int mode = resMgr->integerValue( "3DViewer", "zooming_mode", 0 );
viewManagers( OCCViewer_Viewer::Type(), lst );
QListIterator<SUIT_ViewManager*> itOCC( lst );
while ( itOCC.hasNext() )
QList<SUIT_ViewWindow*> aWindowList = desk->windows();
SUIT_ViewWindow* anActiveWindow = desk->activeWindow();
QList<SUIT_ViewWindow*>::const_iterator it = aWindowList.begin();
+ #ifndef DISABLE_OCCVIEWER
int aKey = 0;
+ #endif
for ( ; it != aWindowList.end(); it++ ) {
myWindowsList.push_back(*it);
#ifndef DISABLE_OCCVIEWER
//Show all toolbars and windows
QList<SUIT_ViewWindow*>::const_iterator itr = myWindowsList.begin();
+ #ifndef DISABLE_OCCVIEWER
int aKey = 0;
+ #endif
for ( ; itr != myWindowsList.end(); itr++ ) {
#ifndef DISABLE_OCCVIEWER
OCCViewer_ViewFrame* anActiveOCCFrame = dynamic_cast<OCCViewer_ViewFrame*>( *itr );
if ( LightApp_Application* anApp = getApplication() ) {
SUIT_ViewManager* viewMgr = anApp->activeViewManager();
if (!viewMgr) return;
- if ( SUIT_ViewWindow* window = viewMgr->getActiveView() ) {
#ifndef DISABLE_VTKVIEWER
+ if ( SUIT_ViewWindow* window = viewMgr->getActiveView() ) {
if ( SVTK_ViewWindow* svtk = dynamic_cast<SVTK_ViewWindow*>( window ) ) {
if ( vtkRenderer* ren = svtk->getRenderer()) {
if ( vtkCamera* camera = ren->GetActiveCamera() ) {
}
}
}
-#endif
}
+#endif
}
}
};
if ( LightApp_Application* anApp = getApplication() ) {
SUIT_ViewManager* viewMgr = anApp->activeViewManager();
if (!viewMgr) return;
- if ( SUIT_ViewWindow* window = viewMgr->getActiveView() ) {
#ifndef DISABLE_VTKVIEWER
+ if ( SUIT_ViewWindow* window = viewMgr->getActiveView() ) {
if ( SVTK_ViewWindow* svtk = dynamic_cast<SVTK_ViewWindow*>( window ) ) {
if ( vtkRenderer* ren = svtk->getRenderer()) {
if ( vtkCamera* camera = ren->GetActiveCamera() ) {
}
svtk->Repaint();
}
-#endif
}
+#endif
}
}
};