#include "ui_vvToolProfile.h"
#include "clitkProfileImage_ggo.h"
+#include "clitkProfileImageGenericFilter.h"
+#include <vtkTable.h>
+#include <vtkContextView.h>
+#include <vtkContextScene.h>
//------------------------------------------------------------------------------
class vvToolProfile:
void GetArgsInfoFromGUI();
virtual void InputIsSelected(vvSlicerManager * m);
+ bool isPointsSelected();
+
//-----------------------------------------------------
public slots:
virtual void apply();
virtual bool close();
virtual void reject();
- void valueChangedT1(double v);
- void valueChangedT2(double v);
- void UpdateOrientation(int slicer, int orientation);
- void UpdateSlice(int slicer,int slices);
- void enableLowerThan(bool b);
- void useFGBGtoggled(bool);
- void InteractiveDisplayToggled(bool b);
- // void LeftButtonReleaseEvent(int slicer);
+
+ void selectPoint1();
+ void selectPoint2();
+ void cancelPoints();
+ void computeProfile();
protected:
void RemoveVTKObjects();
virtual void closeEvent(QCloseEvent *event);
Ui::vvToolProfile ui;
args_info_clitkProfileImage mArgsInfo;
- std::vector<vvImageContour::Pointer> mImageContour;
- std::vector<vvImageContour::Pointer> mImageContourLower;
- bool mInteractiveDisplayIsEnabled;
- void Update(int slicer);
+ int* mPoint1;
+ int* mPoint2;
+ bool mPoint1Selected;
+ bool mPoint2Selected;
+ vtkSmartPointer<vtkContextView> mView;
+ clitk::ProfileImageGenericFilter::Pointer mFilter;
+
}; // end class vvToolProfile
//------------------------------------------------------------------------------