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
couleur_affichage-
estSelectionne-
hauteur-
largeur-
position-
profondeur-
BasePov(Repere)
-
BasePov(Repere, MonPoint3D)
-
BasePov(Repere, MonPoint3D, int, int, int)
-
affiche(int, Graphics)
- Display the object in the zone int
affiche3D(Camera, Graphics)
- Display the object in the 3D zone
genereCodePovRay()
- Generate the PovRay Code of the object.
getHauteur()
- Get the height of the object
getIsSelected()
- Get if the object is currently selected.
getLargeur()
- Get the width of the object
getPosition()
- Get the position in MonPoint3D coordinates
getProfondeur()
- Get the depth of the object
isSelected(int, Point)
- Tell whether the object is selected or not in the zone number int.
setCouleurAffichage(Color)
- Set the color of the object displayed in the different zones.
setHauteur(int)
- Set the height of the object
setIsSelected(boolean)
- Set the object as selected
setLargeur(int)
- Set the width of the object
setPosition(MonPoint3D)
- Set the position in MonPoint3D coordinates
setProfondeur(int)
- Set the depth of the object
setRepere(Repere)
- Set the repere of the environment.
position
protected MonPoint3D position
largeur
protected int largeur
hauteur
protected int hauteur
profondeur
protected int profondeur
estSelectionne
protected boolean estSelectionne
couleur_affichage
protected Color couleur_affichage
BasePov
public BasePov(Repere rep)
BasePov
public BasePov(Repere rep,
MonPoint3D pos)
BasePov
public BasePov(Repere rep,
MonPoint3D pos,
int largeur,
int hauteur,
int profondeur)
setRepere
public void setRepere(Repere rep)
- Set the repere of the environment.
- Parameters:
- Repere - the repere
setCouleurAffichage
public void setCouleurAffichage(Color c)
- Set the color of the object displayed in the different zones.
- Parameters:
- Color - the color wanted
getPosition
public MonPoint3D getPosition()
- Get the position in MonPoint3D coordinates
setPosition
public void setPosition(MonPoint3D position)
- Set the position in MonPoint3D coordinates
- Parameters:
- MonPoint3D - the new position.
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.
getIsSelected
public boolean getIsSelected()
- Get if the object is currently selected.
- Returns:
- true if the object is selected,
false if not.
setIsSelected
public void setIsSelected(boolean ok)
- Set the object as selected
- Parameters:
- boolean - true if set as selected,
false if not
getHauteur
public int getHauteur()
- Get the height of the object
- Returns:
- the height of the object
setHauteur
public void setHauteur( int hauteur)
- Set the height of the object
- Parameters:
- int - the new height
getLargeur
public int getLargeur()
- Get the width of the object
- Returns:
- the width of the object
setLargeur
public void setLargeur( int largeur)
- Set the width of the object
- Parameters:
- int - the new width
getProfondeur
public int getProfondeur()
- Get the depth of the object
- Returns:
- the depth of the object
setProfondeur
public void setProfondeur( int profondeur)
- Set the depth of the object
- Parameters:
- int - the new depth
affiche3D
public void affiche3D(Camera c,
Graphics g)
- Display the object in the 3D zone
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.
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