Newer
Older
#include "pqAutoGeneratedObjectPanel.h"
#include "MantidKernel/System.h"
/**
Adds and removes from Paraview's autogenerated object panel for the Event-based reader/filter.
@author Owen Arnold, Tessella plc
@date 17/03/2011
Copyright © 2010 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory
This file is part of Mantid.
Mantid is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Mantid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
File change history is stored at: <https://svn.mantidproject.org/mantid/trunk/Code/Mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/
//Forward declarations
class GeometryWidget;
Owen Arnold
committed
class ThresholdRangeWidget;
class DLLExport EventNexusReaderObjectPanel : public pqAutoGeneratedObjectPanel
{
Q_OBJECT
private:
Owen Arnold
committed
/// cached min threshold.
double m_cachedMinThreshold;
/// cached max threshold.
double m_cachedMaxThreshold;
/// cached geometry xml string.
std::string m_geometryXMLString;
/// Pointer to custom geometry widget.
GeometryWidget* m_geometryWidget;
Owen Arnold
committed
/// Pointer to custom threshold range widget.
ThresholdRangeWidget* m_thresholdWidget;
private slots:
/// Handler for ignoring bin changes. i.e.
void ignoreBinChangesListner();
public:
/// Constructor
EventNexusReaderObjectPanel(pqProxy* pxy, QWidget* p);
/// Framework overriden method.
void updateInformationAndDomains();
/// Remove selected auto-generated widgets
void removeAutoGeneratedWidgets();
/// Pop the widget off the layout
void popWidget();
Owen Arnold
committed
/// Construct threshold ranges and link-up with properties
void constructThresholdRanges(QGridLayout* gLayout);
/// Construct geometry widgets and link-up with properties
void constructGeometry(QGridLayout* gLayout);