Gridarta Editor
Package Functions | Static Package Functions | Package Attributes | Static Package Attributes | List of all members
XYZChemModel Class Reference
Collaboration diagram for XYZChemModel:
Collaboration graph

Package Functions

int addVert (String name, float x, float y, float z)
 
void findBB ()
 
void paint (Graphics g)
 
void transform ()
 
 XYZChemModel ()
 
 XYZChemModel (InputStream is) throws Exception
 

Static Package Functions

 [static initializer]
 

Package Attributes

Atom atoms []
 
Matrix3D mat
 
int maxvert
 
int nvert
 
boolean transformed
 
int tvert []
 
float vert []
 
float xmax
 
float xmin
 
float ymax
 
float ymin
 
float zmax
 
float zmin
 
int ZsortMap []
 

Static Package Attributes

static final Map< String, AtomatomTable = new HashMap<String, Atom>()
 
static Atom defaultAtom
 

Detailed Description

The representation of a Chemical .xyz model

Definition at line 68 of file XYZApp.java.

Constructor & Destructor Documentation

◆ XYZChemModel() [1/2]

XYZChemModel.XYZChemModel ( )
package

Definition at line 92 of file XYZApp.java.

References mat, Matrix3D.xrot(), and Matrix3D.yrot().

Here is the call graph for this function:

◆ XYZChemModel() [2/2]

XYZChemModel.XYZChemModel ( InputStream  is) throws Exception
package

Create a Chemical model by parsing an input stream

Definition at line 99 of file XYZApp.java.

References addVert(), and name.

Here is the call graph for this function:

Member Function Documentation

◆ [static initializer]()

XYZChemModel.[static initializer]
staticpackage

◆ addVert()

int XYZChemModel.addVert ( String  name,
float  x,
float  y,
float  z 
)
package

Add a vertex to this model

Definition at line 151 of file XYZApp.java.

References a, atoms, atomTable, defaultAtom, maxvert, name, nvert, and vert.

Referenced by XYZChemModel().

Here is the caller graph for this function:

◆ findBB()

void XYZChemModel.findBB ( )
package

Find the bounding box of this model

Definition at line 254 of file XYZApp.java.

References nvert, and vert.

Referenced by XYZApp.run().

Here is the caller graph for this function:

◆ paint()

void XYZChemModel.paint ( Graphics  g)
package

Paint this model to a graphics context. It uses the matrix associated with this model to map from model space to screen space. The next version of the browser should have double buffering, which will make this much nicer

Definition at line 196 of file XYZApp.java.

References a, atoms, nvert, Atom.paint(), transform(), tvert, vert, and ZsortMap.

Referenced by XYZApp.paint().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ transform()

void XYZChemModel.transform ( )
package

Transform all the points in this model

Definition at line 181 of file XYZApp.java.

References mat, nvert, Matrix3D.transform(), transformed, tvert, and vert.

Referenced by paint().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ atoms

Atom XYZChemModel.atoms[]
package

Definition at line 71 of file XYZApp.java.

Referenced by addVert(), and paint().

◆ atomTable

final Map<String, Atom> XYZChemModel.atomTable = new HashMap<String, Atom>()
staticpackage

Definition at line 75 of file XYZApp.java.

Referenced by addVert().

◆ defaultAtom

Atom XYZChemModel.defaultAtom
staticpackage

Definition at line 76 of file XYZApp.java.

Referenced by addVert().

◆ mat

Matrix3D XYZChemModel.mat
package

Definition at line 89 of file XYZApp.java.

Referenced by XYZApp.paint(), transform(), and XYZChemModel().

◆ maxvert

int XYZChemModel.maxvert
package

Definition at line 74 of file XYZApp.java.

Referenced by addVert().

◆ nvert

int XYZChemModel.nvert
package

Definition at line 74 of file XYZApp.java.

Referenced by addVert(), findBB(), paint(), and transform().

◆ transformed

boolean XYZChemModel.transformed
package

Definition at line 88 of file XYZApp.java.

Referenced by XYZApp.paint(), and transform().

◆ tvert

int XYZChemModel.tvert[]
package

Definition at line 72 of file XYZApp.java.

Referenced by paint(), and transform().

◆ vert

float XYZChemModel.vert[]
package

Definition at line 70 of file XYZApp.java.

Referenced by addVert(), findBB(), paint(), and transform().

◆ xmax

float XYZChemModel.xmax
package

Definition at line 90 of file XYZApp.java.

Referenced by XYZApp.paint(), and XYZApp.run().

◆ xmin

float XYZChemModel.xmin
package

Definition at line 90 of file XYZApp.java.

Referenced by XYZApp.paint(), and XYZApp.run().

◆ ymax

float XYZChemModel.ymax
package

Definition at line 90 of file XYZApp.java.

Referenced by XYZApp.paint(), and XYZApp.run().

◆ ymin

float XYZChemModel.ymin
package

Definition at line 90 of file XYZApp.java.

Referenced by XYZApp.paint(), and XYZApp.run().

◆ zmax

float XYZChemModel.zmax
package

Definition at line 90 of file XYZApp.java.

Referenced by XYZApp.paint(), and XYZApp.run().

◆ zmin

float XYZChemModel.zmin
package

Definition at line 90 of file XYZApp.java.

Referenced by XYZApp.paint(), and XYZApp.run().

◆ ZsortMap

int XYZChemModel.ZsortMap[]
package

Definition at line 73 of file XYZApp.java.

Referenced by paint().


The documentation for this class was generated from the following file: