26 #include <Inventor/C/errors/debugerror.h>
27 #include "Inventor/Qt/SoQtRenderArea.h"
28 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
29 #include "Inventor/nodes/SoNode.h"
30 #include <Inventor/actions/SoLineHighlightRenderAction.h>
60 ra->setAutoRedraw(
false);
66 SoLineHighlightRenderAction * trick =
new SoLineHighlightRenderAction();
67 SoLineHighlightRenderAction * trick2 =
new SoLineHighlightRenderAction();
68 ra->setGLRenderAction(trick);
69 ra->setOverlayGLRenderAction(trick2);
87 (*(
m_d->
it))->setAutoRedraw(enable);
89 IVP1ChannelWidget::setUpdatesEnabled(enable);
97 message(
"Error - tried to register NULL render area!");
109 if (ra->getParentWidget()&&ra->getWidget())
110 ra->getParentWidget()->setFocusProxy(ra->getWidget());
120 if (ra->getTypeId().isDerivedFrom(SoQtViewer::getClassTypeId())) {
122 if (ra->getTypeId().isDerivedFrom(SoQtExaminerViewer::getClassTypeId())) {
123 if (
static_cast<SoQtExaminerViewer*
>(ra)->isAnimating())
124 static_cast<SoQtExaminerViewer*
>(ra)->stopAnimating();
158 painter.drawPixmap(0,0,this->grab ( ));
163 QWidget * ra_w = ra->getNormalWidget();
166 message(
"Error rendering scene to QPixmap!");
169 QPoint
pos = ra_w->mapTo(
this, QPoint(0,0) );
171 painter.drawPixmap(
pos.x(),
pos.y(),pmra);
183 QByteArray byteArray;
184 QBuffer
buffer(&byteArray);
185 buffer.open(QIODevice::WriteOnly);
197 QList<int> transptypes;
218 buffer.open(QIODevice::ReadOnly);
224 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
228 QByteArray basestate;
238 QList<int> transptypes;
239 state >> transptypes;
240 if (transptypes.count()!=
static_cast<int>(
m_d->
renderareas.size())) {
241 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");