pvbrowser manual - Flussi liberi informatici
pvbrowser manual - Flussi liberi informatici
pvbrowser manual - Flussi liberi informatici
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
5.7. GRAFICA 71<br />
Figura 5.43: Disegno Autocad in <strong>pvbrowser</strong><br />
if(p == NULL || id == 0 || d == NULL || enter < -1000) return -1;<br />
if(id == OpenGL1)<br />
{<br />
if(enter) pvSetMouseShape(p, OpenHandCursor);<br />
else pvSetMouseShape(p, ArrowCursor);<br />
}<br />
return 0;<br />
}<br />
static int slotUserEvent(PARAM *p, int id, DATA *d, const char *text)<br />
{<br />
if(p == NULL || id == 0 || d == NULL || text == NULL) return -1;<br />
return 0;<br />
}<br />
5.7.6 VTK<br />
VTK è un potente visualizzatore 3D che è stato scritto in C++ ed è basato sulle OpenGL. In VTK si possono<br />
utilizzare script (sequenze di istruzioni per operazioni automatizzate) utilizzando il Tcl.<br />
Nal client <strong>pvbrowser</strong> c’è un widget VTK se il <strong>pvbrowser</strong> è stato compilato con il supporto a VTK. Un pvserver<br />
può ora inviare scripts Tcl al client <strong>pvbrowser</strong> come se lo inviasse ad un widget che può interpretali. In questo<br />
modo VTK può essere incorporato in una visualizzazione senza generare un carico eccessivo sulla CPU del<br />
pvserver. Il rendering della scena 3D viene comletamente eseguito dal client. Il pvserver invierà solamente<br />
alcuni comandi Tcl al client.