<addaction name="actionSouth_West_Window"/>
<addaction name="actionSouth_East_Window"/>
</widget>
- <widget class="QMenu" name="menuTools">
- <property name="title">
- <string>Tools</string>
- </property>
- <addaction name="actionMaximum_Intensity_Projection"/>
- </widget>
<widget class="QMenu" name="menuExperimental">
<property name="title">
<string>Experimental</string>
<addaction name="actionWarp_image_with_vector_field"/>
<addaction name="actionCompute_mid_position_image"/>
</widget>
+ <widget class="QMenu" name="menuTools">
+ <property name="title">
+ <string>Tools</string>
+ </property>
+ </widget>
<addaction name="menuFile"/>
<addaction name="menuOverlay"/>
<addaction name="menuScreenshots"/>
#include "vvDeformationDialog.h"
#include "vvImageWarp.h"
#include "vvUtils.h"
-#include "vvMaximumIntensityProjection.h"
#include "vvMidPosition.h"
#include "vvMesh.h"
#include "vvStructSelector.h"
connect(SEHorizontalSlider,SIGNAL(valueChanged(int)),this,SLOT(SEHorizontalSliderMoved()));
//connect everything
- connect(actionMaximum_Intensity_Projection,SIGNAL(triggered()),this,SLOT(ComputeMIP()));
connect(actionCompute_mid_position_image,SIGNAL(triggered()),this,SLOT(ComputeMidPosition()));
connect(actionDeformable_Registration,SIGNAL(triggered()),this,SLOT(ComputeDeformableRegistration()));
connect(actionWarp_image_with_vector_field,SIGNAL(triggered()),this,SLOT(WarpImage()));
//------------------------------------------------------------------------------
-//------------------------------------------------------------------------------
-void vvMainWindow::ComputeMIP()
-{
- vvMaximumIntensityProjection mip;
- vvSlicerManager* selected_slicer = mSlicerManagers[GetSlicerIndexFromItem(DataTree->selectedItems()[0])];
- QFileInfo info(selected_slicer->GetFileName().c_str());
- mip.Compute(selected_slicer);
- if (!mip.error)
- AddImage(mip.GetOutput(),info.path().toStdString()+"/"+info.completeBaseName().toStdString()+"_mip.mhd");
-}
-//------------------------------------------------------------------------------
-
-
//------------------------------------------------------------------------------
void vvMainWindow::ComputeMidPosition()
{
//create an item in the tree with good settings
QTreeWidgetItem *item = new QTreeWidgetItem();
item->setData(0,Qt::UserRole,slicer_manager->GetFileName().c_str());//files[i].c_str());
- item->setData(COLUMN_IMAGE_NAME,Qt::DisplayRole,filename.c_str());
+ item->setData(COLUMN_IMAGE_NAME,Qt::DisplayRole,slicer_manager->GetFileName().c_str());//filename.c_str());
qApp->processEvents();
for (int j = 1; j <= 4; j++) item->setData(j,Qt::CheckStateRole,1);
item->setData(COLUMN_IMAGE_NAME,Qt::UserRole,id.toStdString().c_str());
mSlicerManagers.back()->SetId(id.toStdString());
- linkPanel->addImage(filename, id.toStdString());
+ linkPanel->addImage(slicer_manager->GetFileName().c_str()// filename
+ , id.toStdString());
connect(mSlicerManagers.back(), SIGNAL(currentImageChanged(std::string)),
this, SLOT(CurrentImageChanged(std::string)));