46 #include <Qt3DRender/QEffect>
47 #include <Qt3DRender/QParameter>
48 #include <Qt3DRender/QRenderPass>
49 #include <Qt3DRender/QFilterKey>
50 #include <Qt3DRender/QTechnique>
51 #include <Qt3DRender/QShaderProgram>
52 #include <Qt3DRender/QGraphicsApiFilter>
63 using namespace DISP3DLIB;
64 using namespace Qt3DRender;
76 , m_pComputeShader(new QShaderProgram)
77 , m_pComputeRenderPass(new QRenderPass)
78 , m_pComputeFilterKey(new QFilterKey)
79 , m_pComputeTechnique(new QTechnique)
80 , m_pDrawShader(new QShaderProgram)
81 , m_pDrawRenderPass(new QRenderPass)
82 , m_pDrawTechnique(new QTechnique)
83 , m_pSignalDataParameter(new QParameter)
84 , m_pColsParameter(new QParameter)
85 , m_pRowsParameter(new QParameter)
86 , m_pInterpolationMatParameter(new QParameter)
87 , m_pOutputColorParameter(new QParameter)
88 , m_pThresholdXParameter(new QParameter(QStringLiteral(
"fThresholdX"), 1e-10f))
89 , m_pThresholdZParameter(new QParameter(QStringLiteral(
"fThresholdZ"), 6e-6f))
90 , m_pColormapParameter(new QParameter(QStringLiteral(
"ColormapType"), 3))
153 m_pDrawTechnique->graphicsApiFilter()->setProfile(QGraphicsApiFilter::CoreProfile);
172 m_pComputeShader->setComputeShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/compute/interpolation.csh"))));
175 m_pDrawShader->setVertexShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/compute/interpolation.vert"))));
176 m_pDrawShader->setFragmentShaderCode(QShaderProgram::loadSource(QUrl(QStringLiteral(
"qrc:/engine/model/materials/shaders/compute/interpolation.frag"))));