08.04.2015 Views

The rgl Package - NexTag Supports Open Source Initiatives

The rgl Package - NexTag Supports Open Source Initiatives

The rgl Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

36 <strong>rgl</strong>-package<br />

Details<br />

<strong>rgl</strong>.enum.nodetype(type)<br />

<strong>rgl</strong>.enum.pixfmt(fmt)<br />

<strong>rgl</strong>.enum.polymode(mode)<br />

<strong>rgl</strong>.enum.textype(textype)<br />

<strong>rgl</strong>.enum.fogtype(fogtype)<br />

<strong>rgl</strong>.enum.primtype(primtype)<br />

<strong>rgl</strong>.enum.halign(halign)<br />

<strong>rgl</strong>.enum.texmagfilter(magfiltertype)<br />

<strong>rgl</strong>.enum.texminfilter(minfiltertype)<br />

<strong>rgl</strong>.select(button = c("left", "middle", "right"))<br />

<strong>rgl</strong>.selectstate()<br />

<strong>rgl</strong>.setselectstate(state)<br />

edgemap(size)<br />

edgeindex(from,to,size,row,col)<br />

<strong>The</strong>se are not to be called by the user.<br />

<strong>rgl</strong>-package<br />

3D visualization device system<br />

Description<br />

3D real-time rendering system.<br />

Usage<br />

# Low level <strong>rgl</strong>.* interface<br />

<strong>rgl</strong>.open() # open new device<br />

<strong>rgl</strong>.close() # close current device<br />

<strong>rgl</strong>.cur() # returns active device ID<br />

<strong>rgl</strong>.set(which) # set device as active<br />

<strong>rgl</strong>.quit() # shutdown <strong>rgl</strong> device system<br />

<strong>rgl</strong>.init(initValue=0) # re-initialize <strong>rgl</strong><br />

Arguments<br />

which<br />

initValue<br />

device ID<br />

value for internal use only<br />

Details<br />

RGL is a 3D real-time rendering device driver system for R. Multiple devices are managed at a time,<br />

where one has the current focus that receives instructions from the R command-line. <strong>The</strong> device<br />

design is oriented towards the R device metaphor. If you send scene management instructions,<br />

and there’s no device open, it will be opened automatically. <strong>Open</strong>ed devices automatically get the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!