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

Constructor Index

 o Camera(Repere, MonPoint3D, int, int, int)

Method Index

 o coordCamera(MonPoint3D)
Get the coordinates of the Camera
 o focale()
Get the focus of the Camera.
 o genereCodePovRay()
Generate the Pov Ray Code related to the Camera.
 o getAngleFocale()
Get the angle of the focus of the Camera.
 o setAngleFocale(double)
Set the angle of the focus of the Camera.
 o setCible(MonPoint3D)
Set the position where the Camera has to look.
 o setPosition(MonPoint3D)
Set the position of the Camera.

Constructors

 o Camera
public Camera(Repere rep,
              MonPoint3D pos,
               int largeur,
               int hauteur,
               int profondeur)

Methods

 o 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
 o focale
public double focale()
Get the focus of the Camera.

Returns:
double the focus of the Camera.
 o setAngleFocale
public void setAngleFocale(double rad)
Set the angle of the focus of the Camera.

Parameters:
double - the new angle
 o getAngleFocale
public double getAngleFocale()
Get the angle of the focus of the Camera.

Returns:
double the angle of the focus of the Camera.
 o setCible
public void setCible(MonPoint3D p)
Set the position where the Camera has to look.

Parameters:
MonPoint3D - the position.
 o coordCamera
public MonPoint3D coordCamera(MonPoint3D p)
Get the coordinates of the Camera

Returns:
MonPoint3D the position of the Camera
 o 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