-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #5167. Separate classes into headers
- Loading branch information
1 parent
0f915e6
commit 2766c0f
Showing
7 changed files
with
65 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
Code/Mantid/MantidQt/SliceViewer/inc/MantidQtSliceViewer/ConcretePeaksPresenter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef MANTID_SLICEVIEWER_CONCRETEPEAKSPRESENTER_H_ | ||
#define MANTID_SLICEVIEWER_CONCRETEPEAKSPRESENTER_H_ | ||
|
||
#include "MantidQtSliceViewer/PeaksPresenter.h" | ||
#include <vector> | ||
|
||
namespace MantidQt | ||
{ | ||
namespace SliceViewer | ||
{ | ||
/*--------------------------------------------------------- | ||
ConcretePeaksPresenter | ||
Concrete implmentation of the Peaks presenter. | ||
----------------------------------------------------------*/ | ||
class DLLExport ConcretePeaksPresenter : public PeaksPresenter | ||
{ | ||
public: | ||
ConcretePeaksPresenter(PeakOverlayViewFactory* factory, boost::shared_ptr<Mantid::API::IPeaksWorkspace> peaksWS); | ||
virtual ~ConcretePeaksPresenter(); | ||
virtual void update(); | ||
virtual void updateWithSlicePoint(const double& slicePoint); | ||
private: | ||
typedef std::vector< boost::shared_ptr<PeakOverlayView> > VecPeakOverlayView; | ||
/// Peak overlay views. | ||
VecPeakOverlayView m_viewPeaks; | ||
}; | ||
|
||
} | ||
} | ||
|
||
#endif /* MANTID_SLICEVIEWER_CONCRETEPEAKSPRESENTER_H_ */ |
27 changes: 27 additions & 0 deletions
27
Code/Mantid/MantidQt/SliceViewer/inc/MantidQtSliceViewer/NullPeaksPresenter.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef MANTID_SLICEVIEWER_NULLPEAKSPRESENTER_H_ | ||
#define MANTID_SLICEVIEWER_NULLPEAKSPRESENTER_H_ | ||
|
||
#include "MantidQtSliceViewer/PeaksPresenter.h" | ||
|
||
namespace MantidQt | ||
{ | ||
namespace SliceViewer | ||
{ | ||
/*--------------------------------------------------------- | ||
NullPeaksPresenter | ||
This implementation prevents the client code having to run Null checks on the PeaksPresenter pointer before using it. | ||
----------------------------------------------------------*/ | ||
class DLLExport NullPeaksPresenter : public PeaksPresenter | ||
{ | ||
public: | ||
virtual void update(){}; | ||
virtual void updateWithSlicePoint(const double&) | ||
{ | ||
} | ||
}; | ||
|
||
} | ||
} | ||
|
||
#endif /* MANTID_SLICEVIEWER_NULLPEAKSPRESENTER_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters