~ubuntu-branches/ubuntu/vivid/meshlab/vivid

« back to all changes in this revision

Viewing changes to meshlab/src/sampleplugins/sampledecoration/sampledecorate.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-10-08 16:40:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091008164041-0c2ealqv8b8uc20c
Tags: 1.2.2-1
* New upstream version
* Do not build filter_isoparametrization because liblevmar dependency
  is not (yet) in Debian
* Fix compilation with gcc-4.4, thanks to Jonathan Liu for the patch
  (closes: #539544)
* rules: Add compiler variables to the qmake call (for testing with new
  GCC versions)
* io_3ds.pro: Make LIBS and INCLUDEPATH point to Debian version of lib3ds
* io_epoch.pro: Make LIBS point to Debian version of libbz2
* control:
  - Move Homepage URL to the source package section
  - Update to standards-version 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
  return QString();
54
54
 }
55
55
 
56
 
void SampleMeshDecoratePlugin::initGlobalParameterSet(QAction *, FilterParameterSet *parset) 
 
56
void SampleMeshDecoratePlugin::initGlobalParameterSet(QAction *, RichParameterSet *parset) 
57
57
{
58
58
        if(parset->findParameter("CubeMapPath")!= NULL) 
59
59
        {
63
63
        QString cubemapDirPath = MainWindowInterface::getBaseDirPath() + QString("/textures/cubemaps/uffizi.jpg");
64
64
        
65
65
        //parset->addString("CubeMapPath", "/Users/cignoni/devel/meshlab/src/meshlab/textures/cubemaps/uffizi.jpg");
66
 
        parset->addString("CubeMapPath", cubemapDirPath);
 
66
        parset->addParam(new RichString("CubeMapPath", cubemapDirPath));
67
67
        
68
68
}               
69
69
                
77
77
  return QString("error!");
78
78
}
79
79
 
80
 
void SampleMeshDecoratePlugin::Decorate(QAction *a, MeshModel &m, FilterParameterSet *par, GLArea *gla, QFont /*qf*/)
 
80
void SampleMeshDecoratePlugin::Decorate(QAction *a, MeshModel &m, RichParameterSet *par, GLArea *gla, QFont /*qf*/)
81
81
{
82
82
 assert(par);
83
83
        static QString lastname("unitialized");