1
/****************************************************************************
3
* A versatile mesh processing toolbox o o *
5
* Copyright(C) 2005 \/)\/ *
6
* Visual Computing Lab /\/| *
7
* ISTI - Italian National Research Council | *
9
* All rights reserved. *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
* This program is distributed in the hope that it will be useful, *
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt) *
22
****************************************************************************/
24
#ifndef SPLATRENDERERPLUGIN_H
25
#define SPLATRENDERERPLUGIN_H
28
#include <common//interfaces.h>
29
#include <wrap/gl/splatting_apss/splatrenderer.h>
31
class QGLFramebufferObject;
33
class SplatRendererPlugin : public QObject, public MeshRenderInterface
36
Q_INTERFACES(MeshRenderInterface)
38
SplatRenderer<CMeshO> splat_renderer;
40
QList <QAction *> actionList;
44
SplatRendererPlugin();
46
QList<QAction *> actions ()
48
if(actionList.isEmpty()) initActionList();
52
void initActionList();
54
bool isSupported() {return splat_renderer.isSupported();}
55
void Init(QAction *a, MeshDocument &m, RenderMode &rm, QGLWidget *gla);
56
void Render(QAction *a, MeshDocument &m, RenderMode &rm, QGLWidget *gla);
57
void Finalize(QAction * /*mode*/, MeshDocument &/*m*/, GLArea * /*parent*/) ;