|
|
|
|
#ifndef NMWXPROPERTYINTERPOLATIONPREVIEWDLG_H
|
|
|
|
|
#define NMWXPROPERTYINTERPOLATIONPREVIEWDLG_H
|
|
|
|
|
|
|
|
|
|
#include "iDlgBase.h"
|
|
|
|
|
#include "nmSubWxs_global.h"
|
|
|
|
|
|
|
|
|
|
#include <QPointF>
|
|
|
|
|
#include <QRectF>
|
|
|
|
|
#include <QString>
|
|
|
|
|
#include <QVector>
|
|
|
|
|
|
|
|
|
|
class QVTKWidget;
|
|
|
|
|
|
|
|
|
|
// 网格属性插值结果的独立VTK预览对话框.
|
|
|
|
|
class NM_SUB_WXS_EXPORT nmWxPropertyInterpolationPreviewDlg : public iDlgBase
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit nmWxPropertyInterpolationPreviewDlg(
|
|
|
|
|
const QString& dataSetName,
|
|
|
|
|
const QString& scalarTitle,
|
|
|
|
|
const QRectF& bounds,
|
|
|
|
|
int columnCount,
|
|
|
|
|
int rowCount,
|
|
|
|
|
const QVector<double>& interpolationValues,
|
|
|
|
|
const QVector<QPointF>& measurementPoints,
|
|
|
|
|
const QVector<double>& measurementValues,
|
|
|
|
|
const QVector<QPointF>& outlinePoints,
|
|
|
|
|
bool showMeasurementPoints,
|
|
|
|
|
bool showMeasurementLabels,
|
|
|
|
|
QWidget* parent = 0);
|
|
|
|
|
|
|
|
|
|
void updatePreview(const QString& dataSetName,
|
|
|
|
|
const QString& scalarTitle,
|
|
|
|
|
const QRectF& bounds,
|
|
|
|
|
int columnCount,
|
|
|
|
|
int rowCount,
|
|
|
|
|
const QVector<double>& interpolationValues,
|
|
|
|
|
const QVector<QPointF>& measurementPoints,
|
|
|
|
|
const QVector<double>& measurementValues,
|
|
|
|
|
const QVector<QPointF>& outlinePoints,
|
|
|
|
|
bool showMeasurementPoints,
|
|
|
|
|
bool showMeasurementLabels);
|
|
|
|
|
void showMessage(const QString& dataSetName, const QString& message);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void initializeRenderer(const QString& scalarTitle,
|
|
|
|
|
const QRectF& bounds,
|
|
|
|
|
int columnCount,
|
|
|
|
|
int rowCount,
|
|
|
|
|
const QVector<double>& interpolationValues,
|
|
|
|
|
const QVector<QPointF>& measurementPoints,
|
|
|
|
|
const QVector<double>& measurementValues,
|
|
|
|
|
const QVector<QPointF>& outlinePoints,
|
|
|
|
|
bool showMeasurementPoints,
|
|
|
|
|
bool showMeasurementLabels);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QVTKWidget* m_pVtkWidget;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // NMWXPROPERTYINTERPOLATIONPREVIEWDLG_H
|