Skip to content

Commit

Permalink
Renamed another function I will use. Connection python to c++ works. …
Browse files Browse the repository at this point in the history
…This refs #5801
  • Loading branch information
JeanBilheux committed Oct 1, 2012
1 parent a819778 commit ad2e48e
Show file tree
Hide file tree
Showing 21 changed files with 146 additions and 361 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidQt/RefDetectorViewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set ( SRC_FILES
src/RefImageView.cpp
src/SliderHandler.cpp
src/RangeHandler.cpp
src/ImageDataSource.cpp
src/RefImageDataSource.cpp
src/RefIVConnections.cpp
src/RefMatrixWSDataSource.cpp
src/RefMatrixWSImageView.cpp
Expand All @@ -30,7 +30,7 @@ set ( INC_FILES
inc/MantidQtRefDetectorViewer/GraphDisplay.h
inc/MantidQtRefDetectorViewer/RefImageView.h
inc/MantidQtRefDetectorViewer/QtUtils.h
inc/MantidQtRefDetectorViewer/ImageDataSource.h
inc/MantidQtRefDetectorViewer/RefImageDataSource.h
inc/MantidQtRefDetectorViewer/SliderHandler.h
inc/MantidQtRefDetectorViewer/RangeHandler.h
inc/MantidQtRefDetectorViewer/RefMatrixWSDataSource.h
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <cstddef>
#include "MantidQtRefDetectorViewer/DataArray.h"
#include "MantidQtRefDetectorViewer/ImageDataSource.h"
#include "MantidQtRefDetectorViewer/RefImageDataSource.h"

/**
@class ArrayDataSource
Expand Down Expand Up @@ -41,7 +41,7 @@ namespace MantidQt
namespace RefDetectorViewer
{

class EXPORT_OPT_MANTIDQT_IMAGEVIEWER ArrayDataSource: public ImageDataSource
class EXPORT_OPT_MANTIDQT_IMAGEVIEWER ArrayDataSource: public RefImageDataSource
{
public:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <qwt_plot.h>
#include <qwt_plot_curve.h>

#include "MantidQtRefDetectorViewer/ImageDataSource.h"
#include "MantidQtRefDetectorViewer/RefImageDataSource.h"
#include "MantidQtRefDetectorViewer/DllOptionIV.h"

/**
Expand Down Expand Up @@ -55,7 +55,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER GraphDisplay
~GraphDisplay();

/// Set the source of information for the table of position information
void SetDataSource( ImageDataSource* data_source );
void SetDataSource( RefImageDataSource* data_source );

/// Set the actual data that will be displayed on the graph
void SetData( const QVector<double> & xData,
Expand All @@ -81,7 +81,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER GraphDisplay
QwtPlot* graph_plot;
QwtPlotCurve* curve;
// QTableWidget* graph_table;
ImageDataSource* data_source;
RefImageDataSource* data_source;

bool is_vertical;
bool is_log_x;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define RANGE_HANDLER_H

#include "ui_RefImageView.h"
#include "MantidQtRefDetectorViewer/ImageDataSource.h"
#include "MantidQtRefDetectorViewer/RefImageDataSource.h"
#include "MantidQtRefDetectorViewer/DllOptionIV.h"

/**
Expand Down Expand Up @@ -49,7 +49,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RangeHandler
RangeHandler( Ui_MainWindow* iv_ui );

/// Configure min, max and step controls for the specified data source
void ConfigureRangeControls( ImageDataSource* data_source );
void ConfigureRangeControls( RefImageDataSource* data_source );

/// Get the range of data to display in the image, from GUI controls
void GetRange( double &min, double &max, double &step );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <QTableWidget>
#include <qwt_plot.h>

#include "MantidQtRefDetectorViewer/ImageDataSource.h"
#include "MantidQtRefDetectorViewer/RefImageDataSource.h"
#include "MantidQtRefDetectorViewer/GraphDisplay.h"
#include "MantidQtRefDetectorViewer/RefImagePlotItem.h"
#include "MantidQtRefDetectorViewer/SliderHandler.h"
Expand Down Expand Up @@ -77,7 +77,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RefImageDisplay
~RefImageDisplay();

/// Set the source of the image data and information for the table
void SetDataSource( ImageDataSource* data_source );
void SetDataSource( RefImageDataSource* data_source );

/// Rebuild the scroll bars and image due to change of xmin, xmax, step
void UpdateRange();
Expand Down Expand Up @@ -134,7 +134,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RefImageDisplay
std::vector<QRgb> negative_color_table;
std::vector<double> intensity_table;

ImageDataSource* data_source;
RefImageDataSource* data_source;
DataArray* data_array;

QwtPlot* image_plot;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <QtGui>

#include "MantidQtRefDetectorViewer/GraphDisplay.h"
#include "MantidQtRefDetectorViewer/ImageDataSource.h"
#include "MantidQtRefDetectorViewer/RefImageDataSource.h"
#include "MantidQtRefDetectorViewer/DllOptionIV.h"

/**
Expand Down Expand Up @@ -50,7 +50,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RefImageView : public QMainWindow
public:

/// Construct an ImageView to display data from the specified data source
RefImageView( ImageDataSource* data_source );
RefImageView( RefImageDataSource* data_source );

~RefImageView();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <cstddef>

#include "MantidQtRefDetectorViewer/DataArray.h"
#include "MantidQtRefDetectorViewer/ImageDataSource.h"
#include "MantidQtRefDetectorViewer/RefImageDataSource.h"
#include "MantidQtRefDetectorViewer/DllOptionIV.h"

#include "MantidAPI/MatrixWorkspace.h"
Expand Down Expand Up @@ -44,7 +44,7 @@ namespace MantidQt
namespace RefDetectorViewer
{

class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RefMatrixWSDataSource: public ImageDataSource
class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RefMatrixWSDataSource: public RefImageDataSource
{
public:

Expand All @@ -67,7 +67,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RefMatrixWSDataSource: public ImageDataSou

/// Get DataArray covering full range of data in x, and y directions
DataArray * GetDataArray( bool is_log_x );

/// Get DataArray covering restricted range of data
DataArray * GetDataArray( double xmin,
double xmax,
Expand All @@ -83,7 +83,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER RefMatrixWSDataSource: public ImageDataSou
std::vector<std::string> &list );
private:
Mantid::API::MatrixWorkspace_sptr mat_ws;

};

} // namespace MantidQt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <QRect>

#include "ui_RefImageView.h"
#include "MantidQtRefDetectorViewer/ImageDataSource.h"
#include "MantidQtRefDetectorViewer/RefImageDataSource.h"
#include "MantidQtRefDetectorViewer/DllOptionIV.h"

/**
Expand Down Expand Up @@ -52,7 +52,7 @@ class EXPORT_OPT_MANTIDQT_IMAGEVIEWER SliderHandler

/// Configure the image scrollbars for the specified data and drawing area
void ConfigureSliders( QRect draw_area,
ImageDataSource* data_source );
RefImageDataSource* data_source );

/// Configure the horizontal scrollbar to cover the specified range
void ConfigureHSlider( int n_data_steps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ArrayDataSource::ArrayDataSource( double total_xmin, double total_xmax,
double total_ymin, double total_ymax,
size_t total_rows, size_t total_cols,
float* data )
:ImageDataSource( total_xmin, total_xmax,
:RefImageDataSource( total_xmin, total_xmax,
total_ymin, total_ymax,
total_rows, total_cols )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ GraphDisplay::~GraphDisplay()
* @param data_source The ImageDataSource that provides information for
* the table.
*/
void GraphDisplay::SetDataSource( ImageDataSource* data_source )
void GraphDisplay::SetDataSource( RefImageDataSource* data_source )
{
this->data_source = data_source;
}
Expand Down

0 comments on commit ad2e48e

Please sign in to comment.