mirror of https://github.com/CGAL/cgal
Fix a compilation error if VTK is not used, and a warning.
This commit is contained in:
parent
316356dd3f
commit
155d9cf95d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue