void LoadImages(std::vector<std::string> filenames, vvImageReader::LoadedImageType type);
vvSlicerManager * AddImage(vvImage::Pointer image,std::string filename);
void AddField(QString file,int index);
- void AddOverlayImage(int index, QString filename);
+ void AddOverlayImage(int index, std::vector<std::string> fileNames, vvImageReader::LoadedImageType type);
void AddFusionImage(int index, QString filename);
void AddROI(int index, QString filename);
- ///Adds a mesh to a SlicerManager, with optional warping by vector field
+ void AddLandmarks(int index, std::vector<std::string>);
+///Adds a mesh to a SlicerManager, with optional warping by vector field
void AddContour(int image_index, vvMesh::Pointer contour, bool propagation);
///This is used to show an image when opened or computed
void ShowLastImage();
void SaveCurrentStateAs(const std::string& stateFile);
void ReadSavedStateFile(const std::string& stateFile);
void LinkAllImages();
+ QString Get4x4MatrixDoubleAsString(vtkSmartPointer<vtkMatrix4x4> matrix, const int precision=3);
virtual void UpdateCurrentSlicer();
virtual QTabWidget * GetTab();
public slots:
///Allows the user to open and select various surfaces contained in a dicom-struct file
+ void AddDCStructContour(int index, QString file);
void OpenDCStructContour();
///Computes the midposition image of a 4D sequence with a VF and displays it
void ComputeMidPosition();
void SetWindowLevel(double w, double l);
void UpdateColorMap();
void UpdateWindowLevel();
+ void UpdateSlicingPreset();
void SwitchWindowLevel();
void ApplyWindowLevelToAllImages();
+ void ApplyWindowToSetOfImages(double window, unsigned int indexMin, unsigned int indexMax);
+ void ApplyLevelToSetOfImages(double level, unsigned int indexMin, unsigned int indexMax);
void UpdateLinkManager(std::string id, int slicer, double x, double y, double z, int temps);
void UpdateLinkedNavigation(std::string id, vvSlicerManager *sm, vvSlicer* refSlicer);
- void AddLink(QString image1,QString image2);
+ void AddLink(QString image1,QString image2,bool fromPanel = true);
void RemoveLink(QString image1,QString image2);
void ChangeImageWithIndexOffset(vvSlicerManager *sm, int slicer, int offset);
void SetVFProperty(int subsampling,int scale,int lut, int width, double r, double g, double b);
void SetOverlayProperty(int color, int linked, double window, double level);
- void SetFusionProperty(int opacity, int tresOpacity, int colormap,double window,double level);
+ void SetFusionProperty(int opacity, int tresOpacity, int colormap,double window,double level, bool showLegend);
void GoToCursor();
+ void GoToLandmark();
void PlayPause();
void PlayNext();
void ChangeFrameRate(int rate) {
QString GetSizeInBytes(unsigned long size);
QString GetVectorDoubleAsString(std::vector<double> vectorDouble);
QString GetVectorIntAsString(std::vector<int> vectorInt);
- QString Get4x4MatrixDoubleAsString(vtkSmartPointer<vtkMatrix4x4> matrix);
int GetSlicerIndexFromItem(QTreeWidgetItem* item);
QTreeWidgetItem* GetItemFromSlicerManager(vvSlicerManager* sm);
void SaveScreenshot(QVTKWidget *widget);