31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

#include < <strong>LEDA</strong>/graphics/d3 window.h ><br />

2. Creation<br />

d3 window<br />

D(window& W, const graph& G);<br />

creates an instance D of the data type d3 window.<br />

window of D is W . <strong>The</strong> visualized graph is G.<br />

<strong>The</strong> output<br />

d3 window<br />

D(window& W, const graph& G, const node array& pos);<br />

creates an instance D of the data type d3 window. <strong>The</strong> output<br />

window of D is W . <strong>The</strong> visualized graph is G. <strong>The</strong> positions of<br />

the nodes are given in pos. Precondition: the vectors in pos are<br />

three-dimensional.<br />

d3 window<br />

D(window& W, const graph& G, const node array& pos);<br />

creates an instance D of the data type d3 window. <strong>The</strong> output<br />

window of D is W . <strong>The</strong> visualized graph is G. <strong>The</strong> positions of<br />

the nodes are given in pos. Precondition: the vectors in pos are<br />

three-dimensional.<br />

3. Operations<br />

void<br />

void<br />

void<br />

D.init(const node array& pos)<br />

D.init(const node array& pos)<br />

initializes D by setting the node positions of<br />

the visualized graph to the positions given in<br />

pos. Precondition: the vectors in pos are threedimensional.<br />

initializes D by setting the node positions of<br />

the visualized graph to the positions given in<br />

pos. Precondition: the vectors in pos are threedimensional.<br />

D.init(const graph& G, const node array& pos)<br />

initializes D by setting the visualized graph to G<br />

and the node positions of the visualized graph to<br />

the positions given in pos. Precondition: the vectors<br />

in pos are three-dimensional.<br />

void D.draw( ) draws the contents of D (see also Definition).

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

Saved successfully!

Ooh no, something went wrong!