float aDY = ( aRowPixelHeight - 1 ) / aYScale, aDX;
char aLetter;
int aLettIndex, row;
- for( int i = 0; i < theStr.length(); i++ )
+ for ( int i = 0; i < (int)theStr.length(); i++ )
{
aLetter = theStr.data()[i];
aLettIndex = (int)aLetter - FirstSymbolNumber;
int GLViewer_TexFont::getStringWidth( QString theStr )
{
int aWidth = 0;
- for( int i = 0; i < theStr.length(); i ++ )
+ for ( int i = 0; i < (int)theStr.length(); i ++ )
{
char aLetter = theStr.data()[i];
int aLettIndex = (int)aLetter - FirstSymbolNumber;
int aCurPos = 2*anISize + sizeOf8Float + aTypeLength + aToolTipLength;
// adds aspect byte array
- for( i = aCurPos; i < aCurPos + aAspect.size(); i++ )
+ for ( i = aCurPos; i < (int)( aCurPos + aAspect.size() ); i++ )
aResult[i] = aAspect[i - aCurPos];
aCurPos = aCurPos + aAspect.size();
// adds GL text byte array
- for( i = aCurPos; i < aCurPos + aGLText.size(); i++ )
+ for ( i = aCurPos; i < (int)( aCurPos + aGLText.size() ); i++ )
aResult[i] = aGLText[i - aCurPos];
aCurPos += aGLText.size();
// File: GLViewer_Tools.cxx
// Created: April, 2005
-//#include "GLViewerAfx.h"
#include "GLViewer_Tools.h"
#include <GL/gl.h>
-#include <iostream.h>
+#include <iostream>
/****************************************************************************
** Class: GLViewer_LineList
if( !myArray )
{
- cout << "Can't allocate memory: " << size << endl;
+ std::cout << "Can't allocate memory: " << size << std::endl;
myRealSize = 0;
}
else
void GLViewer_LineList::print()
{
- cout << "MainCoord: " << myMainCoord <<" SIZE: " << myRealSize << " ENum: " << mySegmentNumber << " :::";
+ std::cout << "MainCoord: " << myMainCoord <<" SIZE: " << myRealSize << " ENum: " << mySegmentNumber << " :::";
for( int i = 0; i < mySegmentNumber; i++ )
- cout << " " << myArray[2*i] << " " << myArray[2*i+1] << " | ";
+ std::cout << " " << myArray[2*i] << " " << myArray[2*i+1] << " | ";
- cout << endl;
+ std::cout << std::endl;
}
void GLViewer_LineList::show( FieldDim theDim )
void GLViewer_LineField::print()
{
- cout << "My X matrix Number: " << myXSize << endl;
+ std::cout << "My X matrix Number: " << myXSize << std::endl;
for( int i = 0; i < myXSize; i++ )
myXLineArray[i]->print();
- cout << "My Y matrix Number: " << myYSize << endl;
+ std::cout << "My Y matrix Number: " << myYSize << std::endl;
for( int j = 0; j < myYSize; j++ )
myYLineArray[j]->print();
}
}
glEnd();
delete[] anArray;
- cout << "Show function" << endl;
+ std::cout << "Show function" << std::endl;
}
int GLViewer_LineField::getDimSize( FieldDim theDim )
aCurArray[i].myLineIndex == myEndPoint.myXLineIndex &&
aCurArray[i].mySegmentindex == myEndPoint.myXSegmentIndex )
{
- cout << "Algorithm complete X!!!!!!!" << endl;
+ std::cout << "Algorithm complete X!!!!!!!" << std::endl;
myEndPoint.mySolveIndex = i;
return IS_SOLVED;
}
aCurArray[i].myLineIndex == myEndPoint.myYLineIndex &&
aCurArray[i].mySegmentindex == myEndPoint.myYSegmentIndex )
{
- cout << "Algorithm complete Y!!!!!!!" << endl;
+ std::cout << "Algorithm complete Y!!!!!!!" << std::endl;
myEndPoint.mySolveIndex = i;
return IS_SOLVED;
}
else
myCurArrayIndex = 0;
- cout << "Number of ways: " << count << endl;
+ std::cout << "Number of ways: " << count << std::endl;
if( count == 0 )
return IS_LOOP;
while( true )
{
- cout << "-----------Iteration #" << myCurCount << "-------------" << endl;
+ std::cout << "-----------Iteration #" << myCurCount << "-------------" << std::endl;
iteration();
IterationStatus is = checkComplete();