public class SSphericalCapGeometry extends SDiskGeometry
Une calotte sphérique étant défini à l'aide d'un rayon de courbure respecte la convension de signe des dioptres sphériques suivante :
BTRIANGLE_CODE, CONE_CODE, CUBE_CODE, CYLINDER_CODE, DISK_CODE, LENS_CODE, PLANE_CODE, SPHERE_CODE, SPHERICAL_CAP_CODE, TRANSFORMABLE_CODE, TRIANGLE_CODE, TUBE_CODE
Constructor and Description |
---|
SSphericalCapGeometry(SBufferedReader sbr,
SPrimitive parent)
...
|
SSphericalCapGeometry(SVector3d position,
SVector3d normal,
double R,
double radius_of_curvature)
...
|
SSphericalCapGeometry(SVector3d position,
SVector3d normal,
double R,
double radius_of_curvature,
SPrimitive parent)
...
|
Modifier and Type | Method and Description |
---|---|
double |
capSize()
Méthode pour avoir l'épaisseur de la calotte sphérique.
|
int |
getCodeName()
Méthode pour obtenir le numéro correspondant au nom de la géométrie.
|
java.lang.String |
getReadableName()
Méthode pour obtenir le nom de l'objet implémentant l'interface SReadable.
|
java.lang.String[] |
getReadableParameterName()
Méthode pour obtenir un tableau des mots clés permettant de définir les paramètres de l'objet implémentant l'interface SReadable lors de sa lecture.
|
SVector3d |
getRelativeSpherePosition()
Méthode pour obtenir la position relative à cette calotte sphérique.
|
SRay |
intersection(SRay ray)
Méthode permettant d'effectuer le calcul de l'intersection (s'il y a) entre un rayon et une géométrie.
|
void |
write(java.io.BufferedWriter bw)
Méthode pour écrire un objet SWriteable dans un fichier txt en utilisant un BufferedWriter.
|
getRay, isClosedGeometry, isInside
getNormal, getPosition
equals, getID, getPrimitiveParent, hashCode, isTransparent, setPrimitiveParent, toString
write
read
public SSphericalCapGeometry(SVector3d position, SVector3d normal, double R, double radius_of_curvature) throws SConstructorException
position
- normal
- R
- radius_of_curvature
- SConstructorException
public SSphericalCapGeometry(SVector3d position, SVector3d normal, double R, double radius_of_curvature, SPrimitive parent) throws SConstructorException
position
- normal
- R
- parent
- SConstructorException
public SSphericalCapGeometry(SBufferedReader sbr, SPrimitive parent) throws java.io.IOException, SConstructorException
sbr
- parent
- java.io.IOException
SConstructorException
public int getCodeName()
SGeometry
getCodeName
in interface SGeometry
getCodeName
in class SDiskGeometry
public SVector3d getRelativeSpherePosition()
public double capSize()
public SRay intersection(SRay ray) throws SRuntimeException
SGeometry
intersection
in interface SGeometry
intersection
in class SDiskGeometry
ray
- - Le rayon à intersecter avec la géométrie.SRuntimeException
- S'il y a déjà eu intersection avec ce rayon.public void write(java.io.BufferedWriter bw) throws java.io.IOException
SWriteable
write
in interface SWriteable
write
in class SDiskGeometry
bw
- - Le buffer pour l'écriture.java.io.IOException
- Si une erreur de type I/O a été lancée par l'objet BufferedWriter.BufferedWriter
public java.lang.String getReadableName()
SReadable
getReadableName
in interface SReadable
getReadableName
in class SDiskGeometry
public java.lang.String[] getReadableParameterName()
SReadable
getReadableParameterName
in interface SReadable
getReadableParameterName
in class SDiskGeometry