All Packages Class Hierarchy This Package Previous Next Index
Class Texte3D.Camera
java.lang.Object
|
+----Texte3D.BasePov
|
+----Texte3D.Camera
- public class Camera
- extends BasePov
A class which represents the base for the manipulated objects.
- Author:
- Laure Ottavj, Sylvain Leterreur
Camera(Repere, MonPoint3D, int, int, int)
-
coordCamera(MonPoint3D)
- Get the coordinates of the Camera
focale()
- Get the focus of the Camera.
genereCodePovRay()
- Generate the Pov Ray Code related to the Camera.
getAngleFocale()
- Get the angle of the focus of the Camera.
setAngleFocale(double)
- Set the angle of the focus of the Camera.
setCible(MonPoint3D)
- Set the position where the Camera has to look.
setPosition(MonPoint3D)
- Set the position of the Camera.
Camera
public Camera(Repere rep,
MonPoint3D pos,
int largeur,
int hauteur,
int profondeur)
setPosition
public void setPosition(MonPoint3D position)
- Set the position of the Camera.
- Parameters:
- MonPoint3D - the new position of the Camera
- Overrides:
- setPosition in class BasePov
focale
public double focale()
- Get the focus of the Camera.
- Returns:
- double the focus of the Camera.
setAngleFocale
public void setAngleFocale(double rad)
- Set the angle of the focus of the Camera.
- Parameters:
- double - the new angle
getAngleFocale
public double getAngleFocale()
- Get the angle of the focus of the Camera.
- Returns:
- double the angle of the focus of the Camera.
setCible
public void setCible(MonPoint3D p)
- Set the position where the Camera has to look.
- Parameters:
- MonPoint3D - the position.
coordCamera
public MonPoint3D coordCamera(MonPoint3D p)
- Get the coordinates of the Camera
- Returns:
- MonPoint3D the position of the Camera
genereCodePovRay
public String genereCodePovRay()
- Generate the Pov Ray Code related to the Camera.
- Returns:
- String the string corresponding to the generated code.
- Overrides:
- genereCodePovRay in class BasePov
All Packages Class Hierarchy This Package Previous Next Index