<x>0</x>
<y>0</y>
<width>1008</width>
- <height>20</height>
+ <height>27</height>
</rect>
</property>
<property name="defaultUp">
<property name="text">
<string>Navigation Help</string>
</property>
- <property name="shortcut">
- <string>F1</string>
- </property>
<property name="iconVisibleInMenu">
<bool>true</bool>
</property>
+ <property name="priority">
+ <enum>QAction::NormalPriority</enum>
+ </property>
</action>
<action name="actionOpen_Dicom_Struct">
<property name="icon">
{
for(unsigned int i=0; i<mSquaresActorList.size(); i++) {
mSquaresActorList[i]->GetProperty()->SetColor(r,g,b);
- mSquaresActorList[i]->GetProperty()->SetOpacity(0.995);
+ mSquaresActorList[i]->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL
}
}
//------------------------------------------------------------------------------
squaresMapper->ScalarVisibilityOff();
squaresActor->SetMapper(squaresMapper);
squaresActor->GetProperty()->SetColor(1.0,0,0);
- squaresActor->GetProperty()->SetOpacity(0.995);
+ squaresActor->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL
squaresActor->SetPickable(0);
squaresActor->VisibilityOff();
mSlicer->GetRenderer()->AddActor(squaresActor);
#include "QTreePushButton.h"
#include <QUrl>
#include <QSettings>
+#include <QShortcut>
// VV include
#include "vvMainWindow.h"
{
setupUi(this); // this sets up the GUI
+ //Qt::WindowFlags flags = windowFlags();
+ //setWindowFlags(flags | Qt::WindowStaysOnTopHint);
+
mInputPathName = "";
mMenuTools = menuTools;
// mMenuSegmentation = menuSegmentation;
connect(actionAdd_overlay_image_to_current_image,SIGNAL(triggered()), this,SLOT(SelectOverlayImage()));
connect(actionAdd_USSequence_toCT,SIGNAL(triggered()), this,SLOT(SelectFusionSequence()));
connect(actionNavigation_Help,SIGNAL(triggered()),this,SLOT(ShowHelpDialog()));
+
+ QShortcut *shortcutHelp = new QShortcut(QKeySequence(QKeySequence::HelpContents),this);
+ shortcutHelp->setContext(Qt::ApplicationShortcut);
+ QObject::connect(shortcutHelp, SIGNAL(activated()), this, SLOT(ShowHelpDialog()));
+
connect(actionDocumentation,SIGNAL(triggered()),this,SLOT(ShowDocumentation()));
connect(actionRegister_vv,SIGNAL(triggered()),this,SLOT(PopupRegisterForm()));
//mLandMapper->ScalarVisibilityOff();
mLandActor->SetMapper(mLandMapper);
- mLandActor->GetProperty()->SetOpacity(0.995);
+ mLandActor->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL
mLandActor->GetProperty()->SetColor(255,10,212);
mLandActor->SetPickable(0);
mLandActor->SetVisibility(true);
mGlyphFilter->SetOrientation(orientation[0], orientation[1], orientation[2]);
position[this->SliceOrientation] += offset;
mVFActor->SetPosition(position);
- mVFActor->GetProperty()->SetOpacity(0.995);
+ mVFActor->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL
mVFMapper->Update();
}
#include "vvToolInputSelectorWidget.h"
// vtk
+#include <vtkAxis.h>
#include <vtkImageActor.h>
#include <vtkCamera.h>
#include <vtkImageClip.h>
vtkSmartPointer<vtkFloatArray> arrY = vtkSmartPointer<vtkFloatArray>::New();
arrX = mFilter->GetArrayX();
arrY = mFilter->GetArrayY();
- arrX->SetName("Voxel");
+ arrX->SetName("Distance (mm)");
arrY->SetName("Intensity");
table->AddColumn(arrX);
table->AddColumn(arrY);
#endif
line->SetColor(0, 255, 0, 255);
line->SetWidth(1.0);
+ chart->GetAxis(vtkAxis::LEFT)->SetTitle("Intensity");
+ chart->GetAxis(vtkAxis::BOTTOM)->SetTitle("Distance (mm)");
this->ProfileWidget->GetRenderWindow()->GetRenderers()->RemoveAllItems();
this->ProfileWidget->GetRenderWindow()->AddRenderer(mView->GetRenderer());
#endif
vtkSmartPointer<vtkActor> lineActor = vtkSmartPointer<vtkActor>::New();
lineActor->SetMapper(lineMapper);
- lineActor->GetProperty()->SetOpacity(0.995);
+ lineActor->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL
for(int i=0;i<mCurrentSlicerManager->GetNumberOfSlicers(); i++) {
mCurrentSlicerManager->GetSlicer(i)->GetRenderer()->AddActor(lineActor);
mOverlayActors.push_back(vvBinaryImageOverlayActor::New());
mOverlayActors[i]->SetImage(mImageLine, 0);
mOverlayActors[i]->SetColor(1,0,0);
- mOverlayActors[i]->SetOpacity(0.995);
+ mOverlayActors[i]->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL
mOverlayActors[i]->SetSlicer(mCurrentSlicerManager->GetSlicer(i));
mOverlayActors[i]->Initialize(true);
mOverlayActors[i]->SetDepth(1);