#############################################################################
# Makefile for building: ttedit
-# Generated by qmake (2.01a) (Qt 4.5.0) on: Thu Mar 19 15:27:43 2009
+# Generated by qmake (2.01a) (Qt 4.5.0) on: Tue Mar 24 12:51:09 2009
# Project: ttedit.pro
# Template: app
# Command: /usr/bin/qmake -unix -o Makefile ttedit.pro
CC = gcc
CXX = g++
DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-CFLAGS = -pipe -O2 -march=pentium-m -pipe -D_REENTRANT -Wall -W $(DEFINES)
-CXXFLAGS = -pipe -O2 -march=pentium-m -pipe -D_REENTRANT -Wall -W $(DEFINES)
+CFLAGS = -pipe -O2 -pipe -march=athlon -D_REENTRANT -Wall -W $(DEFINES)
+CXXFLAGS = -pipe -O2 -pipe -march=athlon -D_REENTRANT -Wall -W $(DEFINES)
INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Iobj -Iobj
LINK = g++
LFLAGS = -Wl,--as-needed
QPainter p(this);
- p.setBrush(QColor(122, 163, 39));
-// Need to translate as well...
-// p.scale(2.0, 2.0);
+ p.setPen(QPen(Qt::black, 1.0, Qt::SolidLine));
+// p.setBrush(QColor(122, 163, 39));
+ p.setBrush(Qt::black);
/*
1.0 -> 3.0, height = 400
{
// height is limiting factor
p.scale(yConvFac, -yConvFac);
-//extraX = (rect.height() / (float)paintSize.height()) * (float)paintSize.width();
-//extraX = (extraX - rect.width()) / 2.0f;
extraX = (((float)paintSize.width() / yConvFac) - rect.width()) / 2.0f;
}
else
return vector(x * d, y * d, z * d);
}
-void vector::zero(const double epsilon)
+void vector::zero(const double epsilon/*= 1.0e-6*/)
{
if (fabs(x) < epsilon)
x = 0.0;
void operator+=(const vector &v);
void operator-=(const vector &v);
vector operator*(const double &d); // Scale vector by amount
- void zero(const double epsilon);
+ void zero(const double epsilon = 1.0e-6);
};
#endif // __VECTOR_H__