![]() |
#include <CGAL/IO/Qt_widget_layer.h>
|
| |
|
The default constructor. The parameters parent and name
are passed to the QObject constructor.
| |
|
|
| |
| This signal is emitted every time this layer is activated. | ||
|
|
| |
| This signal is emitted every time this layer is deactivated. | ||
#include <CGAL/IO/Qt_widget_layer.h>
namespace CGAL {
template <class T>
class Qt_layer_show_points : public Qt_widget_layer {
public:
typedef typename T::Point Point;
typedef typename T::Segment Segment;
typedef typename T::Vertex Vertex;
typedef typename T::Vertex_iterator Vertex_iterator;
Qt_layer_show_points(T &t) : tr(t){};
void draw()
{
Vertex_iterator it = tr.vertices_begin(),
beyond = tr.vertices_end();
*widget << CGAL::GREEN << CGAL::PointSize (3)
<< CGAL::PointStyle (CGAL::DISC);
while(it != beyond) {
*widget << (*it).point();
++it;
}
};
private:
T &tr;
};//end class
} // namespace CGAL