Skip to content

Commit

Permalink
Refs #6347. Massive amount of code removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Jan 9, 2013
1 parent 259b2dc commit 07ae4ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 383 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,19 @@
#include <QPointer>
#include <QWidget>

class pqColorMapModel;
class pqPipelineRepresentation;
class pqPipelineSource;
class pqRenderView;

class QModelIndex;
class pqMultiSliceView;

namespace Mantid
{
namespace Vates
{
namespace SimpleGui
{

class AxisInformation;
class AxisInteractor;
/**
*
This class creates a multislice view which is based on the Matlab(C)
SliceOMatic view. This view is specfically designed for 3(+1)D datasets.
This class uses the MultiSliceView created by Kitware based on our
specifications.
@author Michael Reuter
@date 24/05/2011
Copyright &copy; 2011 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory
Expand Down Expand Up @@ -89,95 +80,20 @@ class EXPORT_OPT_MANTIDVATES_SIMPLEGUI_VIEWWIDGETS MultiSliceView : public ViewB
* ViewBase::resetDisplay()
*/
void resetDisplay();
/// ViewBase::setAxisScales()
void setAxisScales();

protected slots:
/**
* Show or hide a given slice from the view.
* @param isVisible flag to show/hide associated cut
* @param name the slice to show/hide from the view
*/
void cutVisibility(bool isVisible, const QString &name);
/**
* Delete a slice from the view.
* @param name the name of the slice to be deleted
*/
void deleteCut(const QString &name);
/**
* Make the slice interactor appear on the view when an indicator is
* selected.
* @param name the server manager name of the selected slice
*/
void indicatorSelected(const QString &name);
/**
* Create a slice in the YZ plane at a specific point on the dataset x axis.
* @param value create a YZ slice at the given x axis location
*/
void makeXcut(double value);
/**
* Create a slice in the XZ plane at a specific point on the dataset y axis.
* @param value create a XZ slice at the given y axis location
*/
void makeYcut(double value);
/**
* Create a slice in the XY plane at a specific point on the dataset z axis.
* @param value create a XY slice at the given z axis location
*/
void makeZcut(double value);
/// Select the appropriate indicator on the correct axis interactor widget.
void selectIndicator();
/// Launch SliceViewer with the specified cut.
void showCutInSliceViewer(const QString &name);
/**
* Update the origin position of the currently selected cut.
* @param position the origin coordinate to move the emitting slice to
*/
void updateCutPosition(double position);
/// Move the selected indicator to a given position.
void updateSelectedIndicator();

signals:
/**
* Signal to identify the name of a created slice indicator.
* @param name the name of the ParaView slice representation
*/
void sliceNamed(const QString &name);

private:
Q_DISABLE_COPY(MultiSliceView)

/// Determine if the incoming and current axis have the same bounds.
bool checkBounds(AxisInformation *info, AxisInteractor *axis);
/// Determine if the data can support the SliceViewer being shown.
void checkSliceViewCompat();
/// Determine if the incoming and current axis have the same title.
bool checkTitles(AxisInformation *info, AxisInteractor *axis);
/// Clear all axis indicator highlighting.
void clearIndicatorSelections();
/// Filter resize events.
bool eventFilter(QObject *ob, QEvent *ev);
/**
* Function that polls all of the axis indicators to see if any are left.
* @return true if no indicators are left, false if there are indicators
*/
bool noIndicatorsLeft();
/**
* Function that creates a slice in the appropriate plane at the
* requested axis location.
* @param origin the cartesian coordinates of the slice origin
* @param orient the cartesian coordinates of the slice normal
*/
void makeCut(double origin[], double orient[]);
/// Reset or delete indicator when bounds change.
void resetOrDeleteIndicators(AxisInteractor *axis, int pos);
/// Pull the dataset information and setup the axis interactors.
void setupAxisInfo();
/// Create the current data representation.
void setupData();

bool isOrigSrc; ///< Flag for SliceViewer information
QPointer<pqRenderView> mainView; ///< The main view class
QPointer<pqMultiSliceView> mainView; ///< The main view class
Ui::MultiSliceViewClass ui; ///< The view's UI form
};

Expand Down

0 comments on commit 07ae4ef

Please sign in to comment.