mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
Updated to the new painter based text printing
This commit is contained in:
parent
3207744258
commit
d19ca598fa
@ -115,7 +115,7 @@ bool DecorateShadowPlugin::startDecorate(QAction* action, MeshDocument& /*m*/, R
|
||||
}
|
||||
}
|
||||
|
||||
void DecorateShadowPlugin::decorate(QAction *action, MeshDocument &md, RichParameterSet *, GLArea *gla)
|
||||
void DecorateShadowPlugin::decorate(QAction *action, MeshDocument &md, RichParameterSet *, GLArea *gla,QPainter *)
|
||||
{
|
||||
switch(ID(action)){
|
||||
case DP_SHOW_SHADOW :
|
||||
|
||||
@ -78,7 +78,7 @@ public:
|
||||
|
||||
QList<QAction *> actions () const {return actionList;}
|
||||
virtual bool startDecorate(QAction * /*mode*/, MeshDocument &/*m*/, RichParameterSet * /*parent*/ par, GLArea * /*parent*/);
|
||||
virtual void decorate(QAction *a, MeshDocument &m, RichParameterSet *, GLArea *gla);
|
||||
virtual void decorate(QAction *a, MeshDocument &m, RichParameterSet *, GLArea *gla, QPainter *p);
|
||||
virtual void initGlobalParameterSet(QAction *, RichParameterSet & globalparam);
|
||||
private:
|
||||
DecorateShader* _decoratorSH, *_decoratorSSAO;
|
||||
|
||||
@ -70,7 +70,7 @@ void SampleMeshDecoratePlugin::initGlobalParameterSet(QAction *, RichParameterSe
|
||||
parset.addParam(new RichString(CubeMapPathParam(), cubemapDirPath,"",""));
|
||||
}
|
||||
|
||||
bool SampleMeshDecoratePlugin::startDecorate( QAction * /*mode*/, MeshDocument &/*m*/, RichParameterSet * parset, GLArea * /*parent*/ )
|
||||
bool SampleMeshDecoratePlugin::startDecorate( QAction * /*mode*/, MeshDocument &/*m*/, RichParameterSet * parset, GLArea * /*parent*/)
|
||||
{
|
||||
assert(parset->hasParameter(CubeMapPathParam()));
|
||||
basename = parset->getString(CubeMapPathParam());
|
||||
@ -80,7 +80,7 @@ bool SampleMeshDecoratePlugin::startDecorate( QAction * /*mode*/, MeshDocument &
|
||||
return true;
|
||||
}
|
||||
|
||||
void SampleMeshDecoratePlugin::decorate(QAction *a, MeshDocument &/*m*/, RichParameterSet * parset,GLArea *gla)
|
||||
void SampleMeshDecoratePlugin::decorate(QAction *a, MeshDocument &/*m*/, RichParameterSet * parset,GLArea *gla, QPainter * )
|
||||
{
|
||||
static QString lastname("unitialized");
|
||||
switch(ID(a))
|
||||
|
||||
@ -75,7 +75,7 @@ public:
|
||||
QString basename;
|
||||
|
||||
bool startDecorate(QAction * /*mode*/, MeshDocument &/*m*/, RichParameterSet * /*parent*/ par, GLArea * /*parent*/);
|
||||
void decorate(QAction *a, MeshDocument &md, RichParameterSet *, GLArea *gla);
|
||||
void decorate(QAction *a, MeshDocument &md, RichParameterSet *, GLArea *gla, QPainter *);
|
||||
void initGlobalParameterSet(QAction *, RichParameterSet &/*globalparam*/);
|
||||
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user