61 #include "QtBaseViewer.hh" 62 #include "QtGLGraphicsScene.hh" 63 #include "QtGLGraphicsView.hh" 105 QDataStream out(&datagram, QIODevice::WriteOnly);
108 quint64 myId = (quint64) winId();
111 << m(0,0) << m(0,1) << m(0,2) << m(0,3)
112 << m(1,0) << m(1,1) << m(1,2) << m(1,3)
113 << m(2,0) << m(2,1) << m(2,2) << m(2,3)
114 << m(3,0) << m(3,1) << m(3,2) << m(3,3)
115 << p(0,0) << p(0,1) << p(0,2) << p(0,3)
116 << p(1,0) << p(1,1) << p(1,2) << p(1,3)
117 << p(2,0) << p(2,1) << p(2,2) << p(2,3)
118 << p(3,0) << p(3,1) << p(3,2) << p(3,3)
124 for (
int i=6666; i<6676; ++i)
125 if (i !=
socket_->localPort() || h != 0)
134 quint64 id, myId = (quint64) winId();
137 QByteArray datagram(
socket_->pendingDatagramSize(),
'x' );
138 socket_->readDatagram( datagram.data(), datagram.size() );
141 if (datagram.size() < 280)
144 QDataStream in( & datagram, QIODevice::ReadOnly);
152 in >> m(0,0) >> m(0,1) >> m(0,2) >> m(0,3)
153 >> m(1,0) >> m(1,1) >> m(1,2) >> m(1,3)
154 >> m(2,0) >> m(2,1) >> m(2,2) >> m(2,3)
155 >> m(3,0) >> m(3,1) >> m(3,2) >> m(3,3)
156 >> p(0,0) >> p(0,1) >> p(0,2) >> p(0,3)
157 >> p(1,0) >> p(1,1) >> p(1,2) >> p(1,3)
158 >> p(2,0) >> p(2,1) >> p(2,2) >> p(2,3)
159 >> p(3,0) >> p(3,1) >> p(3,2) >> p(3,3)
160 >> w >> h >> pMode >> orthoWidth_;
173 action_[
"PasteDropSize"]->isChecked() )
176 glView_->setFixedSize(w,h);
209 SIGNAL( readyRead() ),
228 if (adr.setAddress(_name))
237 QHostInfo hi = QHostInfo::fromName( _name );
238 QList<QHostAddress> list = hi.addresses();
void sync_send(const GLMatrixd &_modelview, const GLMatrixd &_inverse_modelview)
synchronized with different viewer?
ProjectionMode
projection mode
virtual void setSynchronization(bool _b)
toggle global synchronization
bool synchronized_
synchronized with different viewer?
unsigned int glHeight() const
get height of QGLWidget
unsigned int glWidth() const
get width of QGLWidget
ProjectionMode projectionMode() const
get current projection mode
void sync_disconnect(const QtBaseViewer *)
unsync two sync_connect()ed QtBaseViewer's
void sync_connect(const QtBaseViewer *)
virtual void updateGL()
Redraw scene. Triggers paint event for updating the view (cf. drawNow()).
void set_modelview(const GLMatrixd &_m)
set modelview
Namespace providing different geometric functions concerning angles.
void set_projection(const GLMatrixd &_m)
set projection
virtual void makeCurrent()
Makes this widget the current widget for OpenGL operations.
const GLMatrixd & projection() const
get projection matrix
std::vector< QHostAddress > sync_hosts_
List of hosts which should receive sync information.
void sync_receive()
synchronized with different viewer?
bool add_sync_host(const QString &_name)
add host to synchronize with, given by its name
const GLMatrixd & modelview() const
get modelview matrix
QUdpSocket * socket_
socket used for synchronization
virtual void setView(const GLMatrixd &_modelview, const GLMatrixd &_inverse_modelview)
set view, used for synchronizing
void signalSetView(const GLMatrixd &_modelview, const GLMatrixd &_inverse_modelview)
set view, used for synchronizing (cf. slotSetView())