mirror of https://github.com/CGAL/cgal
Update all basic viewers to have the correct behavior when CGAL_USE_BASIC_VIEWER is not defined.
This commit is contained in:
parent
c7a4236281
commit
5d375eff74
|
|
@ -206,6 +206,15 @@ void draw(const Polyhedron& apoly,
|
||||||
app.exec();
|
app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class Polyhedron>
|
||||||
|
void draw(const Polyhedron& apoly,
|
||||||
|
const char* title="Polyhedron Viewer",
|
||||||
|
bool nofill=false)
|
||||||
|
{
|
||||||
|
return display<Polyhedron, DefaultColorFunctorPolyhedron>
|
||||||
|
(apoly, title, nofill);
|
||||||
|
}
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
||||||
#else // CGAL_USE_BASIC_VIEWER
|
#else // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
@ -223,20 +232,17 @@ void draw(const Polyhedron&,
|
||||||
<<std::endl;
|
<<std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class Polyhedron>
|
||||||
|
void draw(const Polyhedron&,
|
||||||
|
const char* ="Polyhedron Viewer",
|
||||||
|
bool=false)
|
||||||
|
{
|
||||||
|
std::cerr<<"Impossible to draw a Polyhedron_3 because CGAL_USE_BASIC_VIEWER is not defined."
|
||||||
|
<<std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_USE_BASIC_VIEWER
|
#endif // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
||||||
namespace CGAL
|
|
||||||
{
|
|
||||||
|
|
||||||
template<class Polyhedron>
|
|
||||||
void draw(const Polyhedron& apoly,
|
|
||||||
const char* title="Polyhedron Viewer",
|
|
||||||
bool nofill=false)
|
|
||||||
{ return display<Polyhedron, DefaultColorFunctorPolyhedron>
|
|
||||||
(apoly, title, nofill); }
|
|
||||||
|
|
||||||
} // End namespace CGAL
|
|
||||||
|
|
||||||
#endif // CGAL_POLYHEDRON_VIEWER_QT_H
|
#endif // CGAL_POLYHEDRON_VIEWER_QT_H
|
||||||
|
|
|
||||||
|
|
@ -198,6 +198,12 @@ void draw(const SM& amesh,
|
||||||
app.exec();
|
app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class SM>
|
||||||
|
void draw(const SM& amesh,
|
||||||
|
const char* title="Surface Mesh Viewer",
|
||||||
|
bool nofill=false)
|
||||||
|
{ return draw<SM, DefaultColorFunctorSM>(amesh, title, nofill); }
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
||||||
#else // CGAL_USE_BASIC_VIEWER
|
#else // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
@ -215,19 +221,17 @@ void draw(const SM&,
|
||||||
<<std::endl;
|
<<std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class SM>
|
||||||
|
void draw(const SM&,
|
||||||
|
const char* ="Surface Mesh Viewer",
|
||||||
|
bool=false)
|
||||||
|
{
|
||||||
|
std::cerr<<"Impossible to draw a Surface mesh because CGAL_USE_BASIC_VIEWER is not defined."
|
||||||
|
<<std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_USE_BASIC_VIEWER
|
#endif // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
||||||
namespace CGAL
|
|
||||||
{
|
|
||||||
|
|
||||||
template<class SM>
|
|
||||||
void draw(const SM& amesh,
|
|
||||||
const char* title="Surface Mesh Viewer",
|
|
||||||
bool nofill=false)
|
|
||||||
{ return draw<SM, DefaultColorFunctorSM>(amesh, title, nofill); }
|
|
||||||
|
|
||||||
} // End namespace CGAL
|
|
||||||
|
|
||||||
#endif // CGAL_SURFACE_MESH_VIEWER_QT_H
|
#endif // CGAL_SURFACE_MESH_VIEWER_QT_H
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,12 @@ void draw(const T2& at2,
|
||||||
app.exec();
|
app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T2>
|
||||||
|
void draw(const T2& at2,
|
||||||
|
const char* title="T2 Viewer",
|
||||||
|
bool nofill=false)
|
||||||
|
{ return display<T2, DefaultColorFunctorT2>(at2, title, nofill); }
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
||||||
#else // CGAL_USE_BASIC_VIEWER
|
#else // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
@ -164,19 +170,17 @@ void draw(const T2&,
|
||||||
<<std::endl;
|
<<std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T2>
|
||||||
|
void draw(const T2&,
|
||||||
|
const char* ="T2 Viewer",
|
||||||
|
bool=false)
|
||||||
|
{
|
||||||
|
std::cerr<<"Impossible to draw a Triangulation_2 because CGAL_USE_BASIC_VIEWER is not defined."
|
||||||
|
<<std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_USE_BASIC_VIEWER
|
#endif // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
||||||
namespace CGAL
|
|
||||||
{
|
|
||||||
|
|
||||||
template<class T2>
|
|
||||||
void draw(const T2& at2,
|
|
||||||
const char* title="T2 Viewer",
|
|
||||||
bool nofill=false)
|
|
||||||
{ return display<T2, DefaultColorFunctorT2>(at2, title, nofill); }
|
|
||||||
|
|
||||||
} // End namespace CGAL
|
|
||||||
|
|
||||||
#endif // CGAL_T2_VIEWER_QT_H
|
#endif // CGAL_T2_VIEWER_QT_H
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,12 @@ void draw(const T3& at3,
|
||||||
app.exec();
|
app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T3>
|
||||||
|
void draw(const T3& at3,
|
||||||
|
const char* title="t3_viewer",
|
||||||
|
bool nofill=false)
|
||||||
|
{ return display<T3, DefaultColorFunctor>(at3, title, nofill); }
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
||||||
#else // CGAL_USE_BASIC_VIEWER
|
#else // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
@ -168,19 +174,17 @@ void draw(const T3&,
|
||||||
<<std::endl;
|
<<std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T3>
|
||||||
|
void draw(const T3&,
|
||||||
|
const char* ="t3_viewer",
|
||||||
|
bool=false)
|
||||||
|
{
|
||||||
|
std::cerr<<"Impossible to draw a Triangulation_3 because CGAL_USE_BASIC_VIEWER is not defined."
|
||||||
|
<<std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
} // End namespace CGAL
|
} // End namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_USE_BASIC_VIEWER
|
#endif // CGAL_USE_BASIC_VIEWER
|
||||||
|
|
||||||
namespace CGAL
|
|
||||||
{
|
|
||||||
|
|
||||||
template<class T3>
|
|
||||||
void draw(const T3& at3,
|
|
||||||
const char* title="t3_viewer",
|
|
||||||
bool nofill=false)
|
|
||||||
{ return display<T3, DefaultColorFunctor>(at3, title, nofill); }
|
|
||||||
|
|
||||||
} // End namespace CGAL
|
|
||||||
|
|
||||||
#endif // CGAL_T3_VIEWER_QT_H
|
#endif // CGAL_T3_VIEWER_QT_H
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue