|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmain.Parameter
public class Parameter
A class managing all important parameters
Field Summary | |
---|---|
(package private) double |
a
Crystal lattice parameters |
(package private) double |
alpha
Crystal lattice angles |
(package private) int |
azimuth
Coordinates of the viewer |
(package private) double |
b
Crystal lattice parameters |
(package private) double |
beta
Crystal lattice angles |
(package private) double |
c
Crystal lattice parameters |
(package private) java.lang.String |
crystalID
String representing the chosen crystal. |
double |
default_a
Default parameters |
double |
default_alpha
|
double |
default_b
Default parameters |
double |
default_beta
|
double |
default_c
Default parameters |
double |
default_gamma
|
(package private) int |
elevation
Coordinates of the viewer |
(package private) double |
gamma
Crystal lattice angles |
(package private) boolean |
perspective
Perspective on/off |
(package private) int |
scalekrement
Amount of change of the scaling. |
(package private) int |
selectedlattice
Number of the selected lattice in the array allCrystals |
(package private) boolean |
showaxes
Showing the axes on/off |
(package private) boolean |
showbase
Showing the reciprocal base vectors on/off |
(package private) boolean |
showbasis
|
(package private) boolean |
showsym
Showing the symmetry points and edges on/off |
(package private) int |
userscale
Scaling factor, default is 100 |
(package private) boolean |
zoomable
|
Constructor Summary | |
---|---|
Parameter()
|
Method Summary | |
---|---|
void |
crystaldefault(double[] crystaldefault)
sets all default lattice parameters |
void |
crystalParameter(double a,
double b,
double c,
double alpha,
double beta,
double gamma)
sets all lattice parameters at the same time. |
double |
geta()
gets the lattice parameter a |
double |
getalpha()
gets the lattice parameter alpha |
int |
getAzimuth()
gets the azimuth value |
double |
getb()
gets the lattice parameter b |
double |
getbeta()
gets the lattice parameter beta |
double |
getc()
gets the lattice parameter c |
java.lang.String |
getCrystal()
gets the chosen crystalID |
int |
getElevation()
gets the elevation value |
double |
getgamma()
gets the lattice parameter gamma |
boolean |
getPerspective()
gets true if perspecitve is on, false otherwise |
int |
getScale()
gets the userscale |
int |
getSelectedLattice(int selecetd)
gets the number of the selected lattice in the allCrystals
-array |
boolean |
getshowAxes()
gets the visibility of axes |
boolean |
getshowBase()
gets the visibility of the reciprocal base vectors |
boolean |
getshowBasis()
|
boolean |
getshowSym()
gets the visibility of the symmetric points and axes |
boolean |
getZoom()
|
void |
seta(double value)
sets the lattice parameter a |
void |
setalpha(double value)
sets the lattice parameter alpha |
void |
setAzimuth(int value)
sets the azimuth value |
void |
setb(double value)
sets the lattice parameter b |
void |
setbeta(double value)
sets the lattice parameter beta |
void |
setc(double value)
sets the lattice parameter c |
void |
setCrystal(java.lang.String name)
sets the chosen crystalID |
void |
setcrystaldefault()
sets all lattice parameters to default author Poms |
void |
setElevation(int value)
sets the elevation value |
void |
setgamma(double value)
sets the lattice parameter gamma |
void |
setPerspective(boolean value)
sets the perspective on/off |
void |
setScale(int value)
sets the userscale to this value |
void |
setScaleHigher()
rises the userscale by scalekrement |
void |
setScaleLower()
lowers the userscale by scalekrement |
void |
setSelectedLattice(int selected)
sets the selected lattice by number |
void |
setshowAxes(boolean setting)
sets the visibility of axes on/off |
void |
setshowBase(boolean setting)
sets the visibility of the reciprocal base vectors on/off |
void |
setshowBasis(boolean setting)
sets the visibility of the basis vectors on/off |
void |
setshowSym(boolean setting)
sets the visibility of the symmetric points and axes on/off |
void |
setZoom(boolean setting)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String crystalID
AbstractCrystal.getCrystalID()
boolean perspective
boolean showaxes
boolean showbase
boolean showbasis
boolean showsym
boolean zoomable
int userscale
int scalekrement
setScaleHigher()
and
setScaleLower()
int azimuth
int elevation
double a
double b
double c
double alpha
double beta
double gamma
public double default_a
public double default_b
public double default_c
public double default_alpha
public double default_beta
public double default_gamma
int selectedlattice
allCrystals
Constructor Detail |
---|
public Parameter()
Method Detail |
---|
public void setCrystal(java.lang.String name)
public java.lang.String getCrystal()
public void setPerspective(boolean value)
public boolean getPerspective()
true
if perspecitve is on, false
otherwise
public void setScale(int value)
public void setScaleLower()
public void setScaleHigher()
public int getScale()
public void setAzimuth(int value)
public int getAzimuth()
public void setElevation(int value)
public int getElevation()
public void seta(double value)
public void setb(double value)
public void setc(double value)
public void setalpha(double value)
public void setbeta(double value)
public void setgamma(double value)
public double geta()
public double getb()
public double getc()
public double getalpha()
public double getbeta()
public double getgamma()
public void crystalParameter(double a, double b, double c, double alpha, double beta, double gamma)
a
- lattice base length ab
- lattice base length bc
- lattice base length calpha
- lattice angle alphabeta
- lattice angle betagamma
- lattice angle gammapublic void setSelectedLattice(int selected)
public int getSelectedLattice(int selecetd)
allCrystals
-array
public void setshowAxes(boolean setting)
public boolean getshowAxes()
public void setshowBase(boolean setting)
public boolean getshowBase()
public void setshowSym(boolean setting)
public boolean getshowSym()
public void crystaldefault(double[] crystaldefault)
crystaldefault
-
[0]:lattice base length a
[1]:lattice base length b
[2]:lattice base length c
[3]:lattice angle alpha
[4]:lattice angle beta
[5]:lattice angle gamma
author Poms
public void setcrystaldefault()
public void setshowBasis(boolean setting)
public boolean getshowBasis()
public void setZoom(boolean setting)
public boolean getZoom()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |