Example #1
0
void SliceEditView::PrepareBase(int baselayers, int filledlayers)
{
	currSlice += baselayers - pCPJ->getBase();
	
	pCPJ->setBase(baselayers);
	pCPJ->setFilled(filledlayers);
	
	GoToSlice(currSlice);
	pBuilder->SetDirty();
	UpdateWidgets();
}
Example #2
0
SliceDebugger::SliceDebugger(B9Layout* pmain, QWidget *parent, Qt::WFlags flags) : QWidget(parent, flags)
{
	ui.setupUi(this);
	pMain = pmain;

	ppaintwidget = new SliceContext(NULL, pMain);
	ppaintwidget->debugmode = true;
	ui.debuglayout->addWidget(ppaintwidget);
	
	currslice = 1;
	GoToSlice(QString().number(currslice));
}
Example #3
0
void SliceEditView::TopSlice()
{
	GoToSlice(pCPJ->getTotalLayers() -1);
	ui.horizontalSlider->setValue(pCPJ->getTotalLayers() -1);
}
Example #4
0
void SliceEditView::BaseSlice()
{
	GoToSlice(0);
	ui.horizontalSlider->setValue(0);
}
Example #5
0
void SliceEditView::PgDownSlice(int increment)
{
	GoToSlice(currSlice-increment);
	ui.horizontalSlider->setValue(currSlice);
} 
Example #6
0
void SliceEditView::PrevSlice()
{
	GoToSlice(currSlice-1);
	ui.horizontalSlider->setValue(currSlice);
}
Example #7
0
//navigation
void SliceEditView::NextSlice()
{
	GoToSlice(currSlice+1);
	ui.horizontalSlider->setValue(currSlice);
}
Example #8
0
void SliceEditView::BaseSlice()
{
	GoToSlice(0);
	//ui.horizontalSlider->setValue(0);//fixed_csh
}
Example #9
0
void SliceEditView::PgUpSlice(int increment)
{
	GoToSlice(currSlice+increment);
	//ui.horizontalSlider->setValue(currSlice);//fixed_csh
}