class OCCViewer_ViewSketcher;
class OCCViewer_ViewTransformer;
+#ifdef WIN32
+#pragma warning ( disable:4251 )
+#endif
+
/*!
\class OCCViewer_ViewPort
Visualisation canvas of SUIT-based application
static int nCounter; /* objects counter */
};
+#ifdef WIN32
+#pragma warning ( default:4251 )
+#endif
+
#endif
class QRect;
+#ifdef WIN32
+#pragma warning ( disable:4251 )
+#endif
+
class OCCVIEWER_EXPORT OCCViewer_ViewPort3d: public OCCViewer_ViewPort
{
Q_OBJECT
double myScale;
};
+#ifdef WIN32
+#pragma warning ( default:4251 )
+#endif
+
#endif
float aSizeInPercents = SUIT_Session::session()->resourceMgr()->doubleValue("Viewer","TrihedronSize", 105.);
- static float EPS = 5.0E-3;
+ static double EPS = 5.0E-3;
theSize = getTrihedron()->Size();
theNewSize = aMaxSide*aSizeInPercents / 100.0;
void SPlot2d_Viewer::renameAll( const Handle(SALOME_InteractiveObject)& IObj, const QString& name )
{
SUIT_ViewManager* vm = getViewManager();
- if( vm )
+ if ( vm )
{
const QPtrVector<SUIT_ViewWindow>& wnds = vm->getViews();
- for( int i=0; i<wnds.size(); i++ )
+ for ( uint i = 0; i < wnds.size(); i++ )
{
Plot2d_ViewWindow* pwnd = dynamic_cast<Plot2d_ViewWindow*>( wnds.at( i ) );
rename( IObj, name, pwnd->getViewFrame() );
#include <qaction.h>
+#ifdef WIN32
+#pragma warning ( disable:4251 )
+#endif
+
class SUPERVGRAPH_EXPORT SUPERVGraph_View: public QWidget, public SUIT_PopupClient {
Q_OBJECT;
public:
QToolBar* myToolBar;
SUPERVGraph_View* myView;
-};
+};
+
+#ifdef WIN32
+#pragma warning ( default:4251 )
+#endif
+
#endif
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QPtrVector<SUIT_ViewWindow> aViews = aViewManager->getViews();
- for (int i = 0; i < aViews.count(); i++) {
- if (TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at(i))) {
- aView->SetTrihedronSize(theSize, theRelative);
- }
+ for ( uint i = 0; i < aViews.count(); i++ )
+ {
+ if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
+ aView->SetTrihedronSize( theSize, theRelative );
}
}
}