#include <iostream>
#include <GL/gl.h>
+#include <math.h>
PathScene::PathScene(int frags, int len, QWidget *parent) :
QGLWidget(parent),
X(0),
- clipZ(32.0),
+ clipZ(30.0),
zoom(0),
maxOrtho2d(-50.0, -50, 3000000.0, 300.0),
curOrtho2d(maxOrtho2d),
static void draw_lines(int fragsize, int length)
{
- float depth = 1.0;
+ float depth = 30;
glColor3f(0.3, 0.9, 0.3);
glLineWidth(0.001);
x = (GLfloat)(base_block * fragsize +base_offset);
depth -= 0.1;
- if (depth < -2.0) depth = 1.0;
+ if (depth < 20.0) depth = 30.0;
- z = (-32.0 - (-32.0 * depth));
+ z = -22.0 - (30-ceil(depth));
//std::cout << "Z: " << z << "\n";
mussaViewTB->addAction(toggleMotifsAction);
ThresholdWidget *threshold = new ThresholdWidget;
- connect(threshold, SIGNAL(currentThresholdChanged(int)),
+ threshold->setRange(21, 30);
+ scene->setClipPlane(21);
+ connect(threshold, SIGNAL(thresholdChanged(int)),
scene, SLOT(setClipPlane(int)));
mussaViewTB->addWidget(threshold);
addToolBar(mussaViewTB);