Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members
Povray Class Reference
Generate a Povray (*.pov) file to visualize a NN.
More...
#include <amygdala/povray.h>
List of all members.
Detailed Description
Generate a Povray (*.pov) file to visualize a NN.
This file can then be used with Povray to render an image in the bitmap formats supported by Povray. See http://www.povray.org for more information about Povray.
A good command line to generate a high quality image is:
x-povray +Iid-123.pov +Oamygdala.tga +W1600 +H1200 +V +D +X +FT +Q9 +QR +A0.9
Note: A Povray object should be destroyed as fast as possible to close the file!
Note: MP support is not yet implemented!
-
Author:
-
Rudiger Koch <rkoch@rkoch.org>
Constructor & Destructor Documentation
Povray::Povray |
( |
int |
ID, |
|
|
string |
headline, |
|
|
string |
dir = "" |
|
) |
|
|
|
Use this constructor if you want a complete network -
Parameters:
-
an |
ID, for instance a genome ID |
headline |
a string that will appear as headline on the image |
dir |
the directory the povray file will be written to |
|
Povray::Povray |
( |
Network * |
net, |
|
|
int |
ID, |
|
|
string |
headline, |
|
|
string |
dir |
|
) |
|
|
|
Make a Povray file of a network instance -
Parameters:
-
net |
A reference to the Network object we're going to work on |
ID |
an ID, for instance a genome ID |
headline |
a string that will appear as headline on the image |
dir |
the directory the povray file will be written to |
|
Member Function Documentation
void Povray::mkPovHeader |
( |
int |
Id |
) |
[protected] |
|
|
Create a header for Povray -
Parameters:
-
id |
the ID of the network. This could be the geneID of a genome |
|
void Povray::WriteNetwork |
( |
|
) |
|
|
|
Writes the whole network to a file. |
void Povray::WriteNeuron |
( |
Neuron * |
theNeuron |
) |
[protected] |
|
|
Write one neuron to the current Povray file -
Parameters:
-
theNeuron |
the neuron to write |
|
void Povray::WriteSynapse |
( |
Neuron * |
pre, |
|
|
Neuron * |
post |
|
) |
[protected] |
|
|
Write a synapse between 2 neurons. -
Parameters:
-
pre |
a pointer to the presynaptic neuron |
post |
a pointer to the postsynaptic neuron |
|
void Povray::WriteTree |
( |
Neuron * |
rootNeuron, |
|
|
int |
depth |
|
) |
|
|
|
Write the current neuron, and recurse through the tree starting from it, writing all neurons and synapses. -
Parameters:
-
currentNeuron |
the root neuron |
depth |
the recursion depth |
|
The documentation for this class was generated from the following file:
Generated on Wed Sep 4 02:30:37 2002 for Amygdala by
1.2.14 written by Dimitri van Heesch,
© 1997-2002