Fix a compilation error if VTK is not used, and a warning.

This commit is contained in:
Laurent Rineau 2008-11-02 22:41:07 +00:00
parent 316356dd3f
commit 155d9cf95d
1 changed files with 9 additions and 9 deletions

View File

@ -311,6 +311,14 @@ void Volume::set_show_bbox(const bool b) {
emit changed();
}
void Volume::only_in()
{
mw->show_only("volume");
#ifndef CGAL_SURFACE_MESH_DEMO_USE_MARCHING_CUBE
mw->actionMarching_cubes->setVisible(false);
#endif
}
#ifdef CGAL_USE_VTK
#include <vtkImageData.h>
#include <vtkDICOMImageReader.h>
@ -358,14 +366,6 @@ bool Volume::opendir(const QString& dirname)
return result;
}
void Volume::only_in()
{
mw->show_only("volume");
#ifndef CGAL_SURFACE_MESH_DEMO_USE_MARCHING_CUBE
mw->actionMarching_cubes->setVisible(false);
#endif
}
bool Volume::open_vtk(const QString& filename)
{
only_in();
@ -1051,7 +1051,7 @@ void Volume::draw()
gl_draw_surface_mc();
}
}
#endif CGAL_SURFACE_MESH_DEMO_USE_MARCHING_CUBE
#endif // CGAL_SURFACE_MESH_DEMO_USE_MARCHING_CUBE
if(show_bbox) {
::glDisable(GL_LIGHTING);