Commit 8b102fe5 authored by Jan Möbius's avatar Jan Möbius
Browse files

Added debug code

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9185 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c57ed4af
......@@ -67,6 +67,7 @@ void
QtWidgetNode::
boundingBox(Vec3d& _bbMin, Vec3d& _bbMax)
{
std::cerr << "QtWidgetNode Got boundingbox call " << std::endl;
// ConstPointIter p_it=points_.begin(), p_end=points_.end();
// for (; p_it!=p_end; ++p_it) {
// _bbMin.minimize(*p_it);
......@@ -91,9 +92,33 @@ availableDrawModes() const
void
QtWidgetNode::
draw(GLState& /* _state */ , DrawModes::DrawMode _drawMode)
draw(GLState& _state , DrawModes::DrawMode _drawMode)
{
QPixmap pixmap = QPixmap::grabWidget(widget_);
std::cerr << "QtWidgetNode Got draw call " << std::endl;
}
void
QtWidgetNode::mouseEvent(GLState& _state, QMouseEvent* _event)
{
Vec2i newPoint2D(_event->pos().x(), _event->pos().y());
// if ( _event == QEvent::MouseButtonPress ) {
//
// } else if ( _event == QEvent::MouseButtonDblClick ) {
//
// } else if ( _event == QEvent::MouseButtonRelease ) {
//
// } else if ( _event == QEvent::MouseMove ) {
// widget_->mouse
// }
std::cerr << "QtWidgetNode Got Mouse Event " << newPoint2D << std::endl;
// Vec3d newPoint3D;
}
......
......@@ -101,6 +101,9 @@ public:
/// draw points and normals
void draw(GLState& _state, DrawModes::DrawMode _drawMode);
/// get mouse events
virtual void mouseEvent(GLState& _state, QMouseEvent* _event);
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment