All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class Texte3D.BasePov

java.lang.Object
    |
    +----Texte3D.BasePov

public abstract class BasePov
extends Object
A class which represents the base for the manipulated objects.

Author:
Laure Ottavj, Sylvain Leterreur

Variable Index

 o couleur_affichage
 o estSelectionne
 o hauteur
 o largeur
 o position
 o profondeur

Constructor Index

 o BasePov(Repere)
 o BasePov(Repere, MonPoint3D)
 o BasePov(Repere, MonPoint3D, int, int, int)

Method Index

 o affiche(int, Graphics)
Display the object in the zone int
 o affiche3D(Camera, Graphics)
Display the object in the 3D zone
 o genereCodePovRay()
Generate the PovRay Code of the object.
 o getHauteur()
Get the height of the object
 o getIsSelected()
Get if the object is currently selected.
 o getLargeur()
Get the width of the object
 o getPosition()
Get the position in MonPoint3D coordinates
 o getProfondeur()
Get the depth of the object
 o isSelected(int, Point)
Tell whether the object is selected or not in the zone number int.
 o setCouleurAffichage(Color)
Set the color of the object displayed in the different zones.
 o setHauteur(int)
Set the height of the object
 o setIsSelected(boolean)
Set the object as selected
 o setLargeur(int)
Set the width of the object
 o setPosition(MonPoint3D)
Set the position in MonPoint3D coordinates
 o setProfondeur(int)
Set the depth of the object
 o setRepere(Repere)
Set the repere of the environment.

Variables

 o position
protected MonPoint3D position
 o largeur
protected  int largeur
 o hauteur
protected  int hauteur
 o profondeur
protected  int profondeur
 o estSelectionne
protected boolean estSelectionne
 o couleur_affichage
protected Color couleur_affichage

Constructors

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

Methods

 o setRepere
public void setRepere(Repere rep)
Set the repere of the environment.

Parameters:
Repere - the repere
 o setCouleurAffichage
public void setCouleurAffichage(Color c)
Set the color of the object displayed in the different zones.

Parameters:
Color - the color wanted
 o getPosition
public MonPoint3D getPosition()
Get the position in MonPoint3D coordinates

 o setPosition
public void setPosition(MonPoint3D position)
Set the position in MonPoint3D coordinates

Parameters:
MonPoint3D - the new position.
 o isSelected
public boolean isSelected( int numPlan,
                          Point pos)
Tell whether the object is selected or not in the zone number int.

Parameters:
int - the number of the zone : 1 if plan X-Y, 2 if plan X - Z, 3 if plan Z - Y
Point - the position of the object in the zone
Returns:
true if the object is in the position Point, false if not.
 o getIsSelected
public boolean getIsSelected()
Get if the object is currently selected.

Returns:
true if the object is selected, false if not.
 o setIsSelected
public void setIsSelected(boolean ok)
Set the object as selected

Parameters:
boolean - true if set as selected, false if not
 o getHauteur
public  int getHauteur()
Get the height of the object

Returns:
the height of the object
 o setHauteur
public void setHauteur( int hauteur)
Set the height of the object

Parameters:
int - the new height
 o getLargeur
public  int getLargeur()
Get the width of the object

Returns:
the width of the object
 o setLargeur
public void setLargeur( int largeur)
Set the width of the object

Parameters:
int - the new width
 o getProfondeur
public  int getProfondeur()
Get the depth of the object

Returns:
the depth of the object
 o setProfondeur
public void setProfondeur( int profondeur)
Set the depth of the object

Parameters:
int - the new depth
 o affiche3D
public void affiche3D(Camera c,
                      Graphics g)
Display the object in the 3D zone

 o affiche
public void affiche( int numPlan,
                    Graphics g)
Display the object in the zone int

Parameters:
int - the number of the zone : 1 if plan X - Y, 2 if plan X - Z, 3 if plan Z - Y.
Graphics - the graphics related to the object.
 o genereCodePovRay
public abstract String genereCodePovRay()
Generate the PovRay Code of the object.

Returns:
String the string corresponding to the generated code

All Packages  Class Hierarchy  This Package  Previous  Next  Index