*/
bool CAM_Module::activateOperation( int actionId )
{
+ //GUI_UNUSED(actionId);
return false;
}
*/
bool CAM_Module::activateOperation( const QString& actionId )
{
+ //GUI_UNUSED(actionId);
return false;
}
*/
bool CAM_Module::activateOperation( const QString& actionId, const QString& pluginName )
{
+ //GUI_UNUSED(actionId);
return false;
}
GLboolean GLViewer_MarkerSet::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull,
GLboolean isCircle, GLboolean isShift )
{
+ //GUI_UNUSED(isFull);
+ //GUI_UNUSED(rect);
if( !myIsVisible )
return false;
// cout << "GLViewer_MarkerSet::select " << x << " " << y << endl;
myXCoord( 0 ),
myYCoord( 0 )
{
+ //GUI_UNUSED(size);
myHighFlag = GL_TRUE;
myHNumbers.clear();
*/
GLboolean GLViewer_Polyline::highlight( GLfloat x, GLfloat y, GLfloat tol, GLboolean isCircle )
{
+ //GUI_UNUSED(isCircle);
+ //GUI_UNUSED(tol);
if( !myIsVisible )
return false;
GLfloat xa, xb, ya, yb, l;
GLboolean GLViewer_Polyline::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull,
GLboolean isCircle, GLboolean isShift )
{
+ //GUI_UNUSED(isCircle);
+ //GUI_UNUSED(isFull);
+ //GUI_UNUSED(isShift);
+ //GUI_UNUSED(rect);
+ //GUI_UNUSED(tol);
if( !myIsVisible )
return false;
GLfloat xa, xb, ya, yb, l;
GLboolean GLViewer_TextObject::select( GLfloat theX, GLfloat theY, GLfloat theTol, GLViewer_Rect rect,
GLboolean isFull, GLboolean isCircle, GLboolean isShift )
{
+ //GUI_UNUSED(isFull);
+ //GUI_UNUSED(isShift);
+ //GUI_UNUSED(rect);
if( !myIsVisible )
return false;
aFindFont.myIsItal = myQFont.italic();
aFindFont.myIsUndl = myQFont.underline();
aFindFont.myPointSize = myQFont.pointSize();
- aFindFont.myViewPortId = size_t(QGLContext::currentContext());
+ aFindFont.myViewPortId = long(QGLContext::currentContext()); //!<TODO: conversion from "size_t" to "long"
if( TexFontBase.contains( aFindFont ) )
{
if ( !ctx )
return aList;
- aFindFont.myViewPortId = (int)ctx;
+ aFindFont.myViewPortId = (LONG_PTR)ctx;
if ( GLViewer_TexFont::BitmapFontCache.contains( aFindFont ) )
aList = GLViewer_TexFont::BitmapFontCache[aFindFont];
QMap<GLViewer_TexFindId, GLuint>::iterator it = GLViewer_TexFont::BitmapFontCache.begin();
for ( ; it != GLViewer_TexFont::BitmapFontCache.end(); ++it )
{
- if ( it.key().myViewPortId == (int)ctx && it.value() > listBase )
+ if ( it.key().myViewPortId == (LONG_PTR)ctx && it.value() > listBase )
listBase = it.value();
}
listBase += 256;
myLineWidth( (GLfloat)0.05 ), myCenterWidth( (GLfloat)1.5 ), myCenterRadius( (GLfloat)5.0 ),
myScaleFactor( 10 ), myIsUpdate( GL_FALSE )
{
+ //GUI_UNUSED(height);
+ //GUI_UNUSED(width);
+ //GUI_UNUSED(winH);
+ //GUI_UNUSED(winW);
+ //GUI_UNUSED(xPan);
+ //GUI_UNUSED(xScale);
+ //GUI_UNUSED(xSize);
+ //GUI_UNUSED(yPan);
+ //GUI_UNUSED(yScale);
+ //GUI_UNUSED(ySize);
myGridColor[0] = 0.5;
myGridColor[1] = 0.5;
myGridColor[2] = 0.5;
*/
int GLViewer_Group::count()
{
- return myList.size();
+ return (size_t)myList.size(); //!< TODO: conversion from size_t to int
}
/*!
*/
void GLViewer_Selector2d::checkSelection( int selBefore, bool append, int aStatus )
{
+ //GUI_UNUSED(append);
int selAfter = numSelected();
if ( selBefore > 0 && selAfter < 1 )
emit selSelectionCancel();
{
int aResult = 0;
QFontMetrics aFM( myQFont );
- for( uint i = 0; i < myText.length(); i++ )
+ for( uint i = 0; i < (uint)myText.length(); i++ )
aResult += aFM.width( myText.at(i) ) + mySeparator;
return aResult;
}
*/
bool GLViewer_ObjectTip::maybeTip( const QPoint &p )
{
-
+ //GUI_UNUSED(p);
GLViewer_Context* aContext = ((GLViewer_Viewer2d*)mypViewPort->getViewFrame()->getViewer())->getGLContext();
*/
void GLViewer_LineField::addLine( FieldDim theDim, GLViewer_LineList* )
{
+ //GUI_UNUSED(theDim);
//not implemented
}
*/
void GLViewer_ViewPort2d::fitAll( bool keepScale, bool withZ )
{
+ //GUI_UNUSED(withZ);
//cout << "GLViewer_ViewPort2d::fitAll" << endl;
float xa, xb, ya, yb;
myTransformer( 0 ),
mySelMode( NoSelection )
{
+ //GUI_UNUSED(title);
}
/*!
*/
void GLViewer_Viewer::onSelectionDone( bool bAdded, SelectionChangeStatus status )
{
+ //GUI_UNUSED(bAdded);
emit selectionChanged( status );
}
*/
void GLViewer_Viewer2d::updateColors( QColor colorH, QColor colorS )
{
+ //GUI_UNUSED(colorH);
+ //GUI_UNUSED(colorS);
// cout << "GLViewer_Viewer2d::updateColors" << endl;
/*
*/
void GLViewer_Viewer2d::updateDrawers( GLboolean update, GLfloat scX, GLfloat scY )
{
+ //GUI_UNUSED(scX);
+ //GUI_UNUSED(scY);
// cout << "GLViewer_Viewer2d::updateDrawers" << endl;
//myGLContext->updateScales( scX, scY );
GLViewer_Widget::GLViewer_Widget( QWidget* parent, const char* name ):
QGLWidget( parent, 0/*, WRepaintNoErase | WResizeNoErase*/ )
{
+ //GUI_UNUSED(name);
myViewPort = ( GLViewer_ViewPort2d* )parent;
myXPan = 0.0;
/*!
Custom enter event handler
*/
-void GLViewer_Widget::enterEvent( QEvent* e )
+void GLViewer_Widget::enterEvent( QEvent* /*e*/ )
{
updateGL();
}
/*!
Custom leave event handler
*/
-void GLViewer_Widget::leaveEvent( QEvent* e )
+void GLViewer_Widget::leaveEvent( QEvent* /*e*/ )
{
updateGL();
}
#if defined(WIN32) && defined(UNICODE)
LPWSTR *szArglist = NULL;
int nArgs;
- int i;
szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
helpfile = QString::fromWCharArray(szArglist[nArgs-1]);
// Free memory allocated for CommandLineToArgvW arguments.
//! \retval Return false.
virtual bool isVisible( const Handle(SALOME_InteractiveObject)& ){ return false; }
virtual void Repaint() {} //!< Null body here.
- virtual void GetVisible( SALOME_ListIO& theList ) {}
+ virtual void GetVisible( SALOME_ListIO& theList ) {/*GUI_UNUSED(theList);*/}
};
/*!
bool changed = false;
QMap<int, int> aMap;
- for ( uint i = 0; i < ids.count(); i++ )
+ for ( uint i = 0; i < (uint)ids.count(); i++ )
aMap.insert( ids.at( i ), 0 );
for ( IdStateMap::Iterator it = myState.begin(); it != myState.end(); ++it )
*/
void QDS_Datum::unitSystemChanged( const QString& unitSystem )
{
+ //GUI_UNUSED(initSystem);
QString labText = label();
QString unitText = unitsToText( units() );
{
QString trg = src;
- for ( uint i = 0; i < trg.length(); )
+ for ( uint i = 0; i < (uint)trg.length(); )
{
if ( trg.mid( i, 2 ) == QString( "&&" ) )
i += 2;
bool changed = false;
QMap<int, int> aMap;
- for ( uint i = 0; i < ids.count(); i++ )
+ for ( uint i = 0; i < (uint)ids.count(); i++ )
aMap.insert( ids.at( i ), 0 );
for ( IdStateMap::Iterator it = myState.begin(); it != myState.end(); ++it )
char inbuf[512], outbuf[512];
/* convert buffer */
- int nbread = ::fread( inbuf, 1, sizeof( inbuf ), src );
+ int nbread = (int)::fread( inbuf, 1, sizeof( inbuf ), src ); //!< TODO: conversion from 'size_t' to 'int'
for ( int incnt = 0; incnt < nbread; incnt++ )
{
if ( waitingLF )
waitingLF = ( inbuf[nbread - 1] == CR );
/* write converted buffer to temp file */
- int nbwri = ::fwrite( outbuf, 1, outcnt, tgt );
+ int nbwri = (int)::fwrite( outbuf, 1, outcnt, tgt ); //!< TODO: conversion from 'size_t' to 'int'
if ( nbwri != outcnt )
{
::fclose( src );
QStringList vars = { "QT5_ROOT_DIR", "QT_ROOT_DIR", "QTDIR" };
QString qtPath;
- for (uint i = 0; i < vars.length() && qtPath.isEmpty(); i++ ) {
+ for (uint i = 0; i < (uint)vars.length() && qtPath.isEmpty(); i++ ) { //!< TODO: mismatch signed/unsigned
qtPath = getenv(vars[i]);
}
if ( !qtPath.isEmpty() && !context.isEmpty() )
state = v.validate( str, pos );
else
{
- if ( str.length() >= overhead && str.startsWith( pref ) &&
+ if ( (uint)str.length() >= overhead && str.startsWith( pref ) && //!< TODO: mismatch signed/unsigned
str.right( suff.length() ) == suff )
{
QString core = str.mid( pref.length(), str.length() - overhead );
*/
void SUIT_DataBrowser::updateTree( SUIT_DataObject* obj, const bool autoOpen )
{
+ //GUI_UNUSED(autoOpen);
SUIT_ProxyModel* m = qobject_cast<SUIT_ProxyModel*>( model() );
if ( m ) {
m->updateTree( obj );
*/
void SUIT_DataBrowser::onExpanded( const QModelIndex& index )
{
+ //GUI_UNUSED(index);
if (myResizeOnExpandItem) {
adjustFirstColumnWidth();
adjustColumnsWidth();
bool SUIT_TreeModel::dropMimeData( const QMimeData* data, Qt::DropAction action,
int row, int column, const QModelIndex& parent )
{
+ //GUI_UNUSED(column);
if ( action == Qt::IgnoreAction )
// do nothing with data
return false;
*/
int SUIT_ViewWindow::getId() const
{
- return int(long(this));
+ return int(LONG_PTR(this));
}
/*!
*/
void SUIT_ViewWindow::onSynchronizeView( bool checked )
{
+ //GUI_UNUSED(checked);
QAction* a = qobject_cast<QAction*>( sender() );
if ( a ) {
synchronizeView( this, a->data().toInt() );
TColStd_MapOfInteger anIndexes;
if(aMapIter != aVectorIdsMap.end()){
const SVTK_AreaPicker::TVectorIds& aVectorIds = aMapIter->second;
- vtkIdType anEnd = aVectorIds.size();
+ vtkIdType anEnd = (int)aVectorIds.size(); //!< TODO: conversion from size_t to int
for(vtkIdType anId = 0; anId < anEnd; anId++ ) {
int aPointId = aVectorIds[anId];
if( aPointId >= 0 && mySelector->IsValid( this, aPointId, true ) ) {
TColStd_MapOfInteger anIndexes;
if(aMapIter != aVectorIdsMap.end()){
const SVTK_AreaPicker::TVectorIds& aVectorIds = aMapIter->second;
- vtkIdType anEnd = aVectorIds.size();
+ vtkIdType anEnd = (int)aVectorIds.size(); //!< TODO: conversion from size_t to int
for(vtkIdType anId = 0; anId < anEnd; anId++ ) {
int aCellId = aVectorIds[anId];
if ( !mySelector->IsValid( this, aCellId ) )
SVTK_IndexedMapOfIds anIndexes;
if(aMapIter != aVectorIdsMap.end()){
const SVTK_AreaPicker::TVectorIds& aVectorIds = aMapIter->second;
- vtkIdType anEnd = aVectorIds.size();
+ vtkIdType anEnd = (int)aVectorIds.size(); //!< TODO: conversion from size_t to int
for(vtkIdType anId = 0; anId < anEnd; anId++ ) {
int aCellId = aVectorIds[anId];
if ( !mySelector->IsValid( this, aCellId ) )
myFeatureEdges->Delete();
- for(int i = 0, iEnd = myPassFilter.size(); i < iEnd; i++)
+ for(size_t i = 0, iEnd = myPassFilter.size(); i < iEnd; i++)
myPassFilter[i]->Delete();
}
if(myIsFeatureEdgesEnabled)
mTime = std::max(mTime,myFeatureEdges->GetMTime());
- for(int i = 0, iEnd = myPassFilter.size(); i < iEnd; i++)
+ for(size_t i = 0, iEnd = myPassFilter.size(); i < iEnd; i++)
std::max(mTime,myPassFilter[i]->GetMTime());
return mTime;
public:
static Standard_Integer HashCode(const std::vector<Standard_Integer> ids,
const Standard_Integer upper) {
- Standard_Integer seed = ids.size();
+ Standard_Integer seed = (int)ids.size(); //!< TODO: conversion from size_t to int
for( Standard_Integer i = 0; i < (Standard_Integer) ids.size(); i++ ) {
Standard_Integer v = ids[i];
seed ^= v + 0x9e3779b9 + ( seed << 6 ) + ( seed >> 2 );
//"- total = "<<mySemaphore->total()<<
"; available = "<<mySemaphore->available()<<endl;
if(MYDEBUG) cout<<"SVTK_ImageWriterMgr::Stop - *mySemaphore += "<<myThreads.size()<<endl;
- mySemaphore->acquire( myThreads.size() );
+ mySemaphore->acquire( (int)myThreads.size() ); //!< TODO: conversion from size_t to int
for(size_t anId = 0, anEnd = myThreads.size(); anId < anEnd; anId++){
SVTK_ImageWriter* anImageWriter = myThreads[anId];
return true;
bool res = true;
- for ( uint i = 0; i < thePoints->count() - 1 && res; i++ )
+ for ( uint i = 0; i < (uint)thePoints->count() - 1 && res; i++ )
{
const QPoint& aStart = thePoints->point( i );
const QPoint& anEnd = thePoints->point( i + 1 );
SVTK_SelectorDef
::IObjectCount() const
{
- return myIObjects.size();
+ return (int)myIObjects.size(); //!< TODO: conversion from size_t to int
}
/*!
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetTrihedronSize( theSize, theRelative );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetStaticTrihedronVisible( theIsVisible );
myProjMode = theMode;
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetProjectionMode( theMode );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetStereoType( theType );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetAnaglyphFilter( theFilter );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetQuadBufferSupport( theEnable );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetInteractionStyle( theStyle );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetZoomingStyle( theStyle );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetPreSelectionMode( theMode );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetIncrementalSpeed( theValue, theMode );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetSpacemouseButtons( theBtn1, theBtn2, theBtn3 );
if (SUIT_ViewManager* aViewManager = getViewManager()) {
QVector<SUIT_ViewWindow*> aViews = aViewManager->getViews();
- for ( uint i = 0; i < aViews.count(); i++ )
+ for ( uint i = 0; i < (uint)aViews.count(); i++ )
{
if ( TViewWindow* aView = dynamic_cast<TViewWindow*>(aViews.at( i )) )
aView->SetSelectionEnabled( isEnabled );
SliderType type, const QColor& light, const QColor& dark,
const QColor& border_top, const QColor& border_bot )
{
+ //GUI_UNUSED(border_top)
p->save();
QPainterPath path, bottomPath;
if ( rad == 0 )
myTransformFilter->Delete();
- for(int i = 0, iEnd = myPassFilter.size(); i < iEnd; i++)
+ for(size_t i = 0, iEnd = myPassFilter.size(); i < iEnd; i++)
if(myPassFilter[i])
myPassFilter[i]->Delete();
{
theInputID = theInputDataSetID = -1;
- vtkIdType aNbInputs = theRanges.size();
+ vtkIdType aNbInputs = (int)theRanges.size(); //!< TODO: conversion from size_t to int
if(theInputDataSetID < 0 || theInputDataSetID >= aNbInputs)
return -1;
return;
vtkIdType aStartId = 0;
- vtkIdType aNbInputs = theRanges.size();
+ vtkIdType aNbInputs = (int)theRanges.size(); //!< TODO: conversion from size_t to int
for(vtkIdType aDataSetId = 0; aDataSetId < aNbInputs; ++aDataSetId){
vtkIdType aRange = theRanges[aDataSetId];
if(aRange > theOutputID){
*/
vtkUnstructuredGrid* VTKViewer_ArcBuilder::BuildGrid(const PntList& theList) const
{
- int aListsize = theList.size();
+ int aListsize = (int)theList.size(); //!< TODO: conversion from size_t to int
vtkUnstructuredGrid* aGrid = NULL;
if(aListsize != 0) {
if(DEBUG_TRIA_EXECUTE) cout << "; Added = FALSE" << endl;
}
}
- int aNbPoints = aPointIds.size();
+ int aNbPoints = (int)aPointIds.size(); //!< TODO: conversion from size_t to int
aCenter[0] /= aNbPoints;
aCenter[1] /= aNbPoints;
aCenter[2] /= aNbPoints;
}
if(!aSortedPointIds.empty()){
- int aNumFacePts = aSortedPointIds.size();
+ int aNumFacePts = (int)aSortedPointIds.size(); //!< TODO: conversion from size_t to int
::TConnectivities aConnectivities(aNumFacePts);
TSortedPointIds::const_iterator anIter = aSortedPointIds.begin();
TSortedPointIds::const_iterator anEndIter = aSortedPointIds.end();
// To check, whether the polygons give a convex polyhedron or not
if(theIsCheckConvex){
- int aNbPolygons = aPolygons.size();
+ int aNbPolygons = (int)aPolygons.size(); //!< TODO: conversion from size_t to int
for (int aPolygonId = 0; aPolygonId < aNbPolygons; aPolygonId++) {
::TPolygon& aPolygon = aPolygons[aPolygonId];
double* aNormal = aPolygon.myNormal;
// To pass resulting set of the polygons to the output
{
- int aNbPolygons = aPolygons.size();
+ int aNbPolygons = (int)aPolygons.size(); //!< TODO: conversion from size_t to int
for (int aPolygonId = 0; aPolygonId < aNbPolygons; aPolygonId++) {
::TPolygon& aPolygon = aPolygons[aPolygonId];
if(DEBUG_TRIA_EXECUTE) cout << "PoilygonId="<<aPolygonId<<" | ";
cout << aConnectivities[i] << ",";
cout << endl;
}
- int aNbPoints = aConnectivities.size();
+ int aNbPoints = (int)aConnectivities.size(); //!< TODO: conversion from size_t to int
vtkIdType aNewCellId = theOutput->InsertNextCell(VTK_POLYGON,aNbPoints,&aConnectivities[0]);
if(theStoreMapping)
VTKViewer_GeometryFilter::InsertId( theCellId, VTK_POLYGON, theVTK2ObjIds, theDimension2VTK2ObjIds );
if( count > 0 )
{
content = ( char* )malloc( sizeof( char ) * ( count + 1 ) );
- count = fread( content, sizeof( char ), count, file );
+ count = (int)fread( content, sizeof( char ), count, file ); //!< TODO: conversion from size_t to int
content[ count ] = '\0';
}
fclose( file );
const bool theItalic,
const bool theShadow )
{
+ //GUI_UNUSED(theFamily);
SetColor( theColor );
myBold->setChecked( theBold );
bool& theItalic,
bool& theShadow ) const
{
+ //GUI_UNUSED(theFamily);
theColor = GetColor();
theBold = myBold->isChecked();