cct.povray
Class Povray

java.lang.Object
  extended by cct.povray.Povray
Direct Known Subclasses:
PovrayJava3d

public class Povray
extends java.lang.Object

Title:

Description:

Copyright: Copyright (c) 2007

Company: ANU


Field Summary
(package private)  float[] backgroundColor
           
(package private)  float[] cameraLocation
           
(package private)  javax.swing.JFileChooser chooser
           
(package private)  java.io.File currentWorkingDirectory
           
(package private)  float defaultAtomicRadius
           
(package private)  float fieldOfView
           
(package private)  FileFilterImpl filter
           
(package private)  java.util.ArrayList<MeshObject> meshObjects
           
(package private)  MoleculeInterface molecule
           
static int PARALLEL_PROJECTION
           
static int PERSPECTIVE_PROJECTION
           
(package private)  java.util.prefs.Preferences prefs
           
(package private)  int projectionPolicy
           
static double RADIANS_TO_DEGREES
           
(package private)  float[] transformMatrix
           
 
Constructor Summary
Povray()
           
 
Method Summary
 void addMeshObject(MeshObject mesh)
           
(package private)  java.lang.Integer getColorHash(float red, float green, float blue)
           
(package private)  java.lang.Integer getColorHash(java.lang.Float red, java.lang.Float green, java.lang.Float blue)
           
(package private)  java.lang.Integer getColorHash(java.lang.Integer red, java.lang.Integer green, java.lang.Integer blue)
           
(package private)  java.lang.Integer getColorHash(int red, int green, int blue)
           
static void main(java.lang.String[] args)
           
 void savePovrayFile()
           
 void savePovrayFile(java.lang.String filename)
           
 void setBackgroundColor(float red, float green, float blue)
           
 void setCameraLocation(float x, float y, float z)
           
 void setFieldOfView(float angle)
           
 void setMolecule(MoleculeInterface mol)
           
 void setProjectionPolicy(int policy)
           
 void settransformMatrix(float[] matrix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARALLEL_PROJECTION

public static final int PARALLEL_PROJECTION
See Also:
Constant Field Values

PERSPECTIVE_PROJECTION

public static final int PERSPECTIVE_PROJECTION
See Also:
Constant Field Values

RADIANS_TO_DEGREES

public static final double RADIANS_TO_DEGREES
See Also:
Constant Field Values

defaultAtomicRadius

float defaultAtomicRadius

projectionPolicy

int projectionPolicy

fieldOfView

float fieldOfView

cameraLocation

float[] cameraLocation

transformMatrix

float[] transformMatrix

molecule

MoleculeInterface molecule

backgroundColor

float[] backgroundColor

prefs

java.util.prefs.Preferences prefs

currentWorkingDirectory

java.io.File currentWorkingDirectory

chooser

javax.swing.JFileChooser chooser

filter

FileFilterImpl filter

meshObjects

java.util.ArrayList<MeshObject> meshObjects
Constructor Detail

Povray

public Povray()
Method Detail

settransformMatrix

public void settransformMatrix(float[] matrix)

setCameraLocation

public void setCameraLocation(float x,
                              float y,
                              float z)

setMolecule

public void setMolecule(MoleculeInterface mol)

setFieldOfView

public void setFieldOfView(float angle)

setProjectionPolicy

public void setProjectionPolicy(int policy)

main

public static void main(java.lang.String[] args)

savePovrayFile

public void savePovrayFile()
                    throws java.lang.Exception
Throws:
java.lang.Exception

setBackgroundColor

public void setBackgroundColor(float red,
                               float green,
                               float blue)

savePovrayFile

public void savePovrayFile(java.lang.String filename)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getColorHash

java.lang.Integer getColorHash(java.lang.Integer red,
                               java.lang.Integer green,
                               java.lang.Integer blue)

getColorHash

java.lang.Integer getColorHash(int red,
                               int green,
                               int blue)

getColorHash

java.lang.Integer getColorHash(float red,
                               float green,
                               float blue)

getColorHash

java.lang.Integer getColorHash(java.lang.Float red,
                               java.lang.Float green,
                               java.lang.Float blue)

addMeshObject

public void addMeshObject(MeshObject mesh)