+
/*=========================================================================
Program: vv http://www.creatis.insa-lyon.fr/rio/vv
#ifndef VVSLICERMANAGER_H
#define VVSLICERMANAGER_H
+// std
#include <iostream>
#include <vector>
#include <string>
void SetColorMap(int colormap);
void SetPreset(int preset);
void SetOverlayColor(int color) {
- mOverlayColor = color;
+ mOverlayColor = (color/60)*60; //SR: new vvBlendImageActor needs 0 or 255 per component
}
void SetFusionOpacity(int opacity) {
mFusionOpacity = opacity;
mLinkedId.push_back(newId);
}
void RemoveLink(std::string oldId) {
- mLinkedId.remove(oldId);
+ mLinkedId.remove(oldId);
}
///Remove the actor defined by its type and index (example: 3rd contour)
vvLandmarks *GetLandmarks();
void AddLandmark(float x,float y,float z,float t);
+
+ void NextImage(int slicer);
+ void PrevImage(int slicer);
+ void LeftButtonReleaseEvent(int slicer);
+ void VerticalSliderHasChanged(int slicer, int slice);
signals :
void currentImageChanged(std::string id);
void WindowLevelChanged(double window, double level, int preset, int colormap);
void UpdateLinkManager(std::string, int slicer, double x, double y, double z, int temps);
void LandmarkAdded();
+ void ChangeImageWithIndexOffset(vvSlicerManager *sm, int slicer, int offset);
+ void LeftButtonReleaseSignal(int slicer);
+ void AVerticalSliderHasChanged(int slicer, int slice);
protected:
std::vector<vvSlicer*> mSlicers;
std::list<std::string> mLinkedId;
vvLandmarks* mLandmarks;
+
+ std::vector<int> mPreviousSlice;
+ std::vector<int> mPreviousTSlice;
};
#endif