|
|||||||||
| Home >> All >> org >> fudaa >> ebli >> [ geometrie overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.fudaa.ebli.geometrie
Class GrPolygone

java.lang.Objectorg.fudaa.ebli.geometrie.GrObjet
org.fudaa.ebli.geometrie.GrPolygone
- All Implemented Interfaces:
- GrContour, java.io.Serializable
- Direct Known Subclasses:
- GrTriangle
Un polygone 3D
- Version:
- $Id: GrPolygone.java,v 1.11 2003/01/17 11:12:24 deniger Exp $
| Field Summary | |
VecteurGrPoint |
sommets
|
| Fields inherited from class org.fudaa.ebli.geometrie.GrObjet |
|
| Constructor Summary | |
GrPolygone()
|
|
| Method Summary | |
double |
angle(int i)
|
GrPolygone |
applique(GrMorphisme t)
|
GrVecteur |
arete(int i)
|
void |
autoApplique(GrMorphisme t)
|
GrPoint |
barycentre()
|
GrBoite |
boite()
Implémentation GrObjet. |
GrBoite |
boite(GrBoite _b)
|
GrPoint |
centre()
|
boolean |
comparaison(GrPolygone p)
|
boolean |
contientXY(double _x,
double _y)
Teste, en XY, si le point (_x,_y) est contenu dans ce polygone. |
boolean |
contientXY(GrPoint _p)
Teste, en XY, si le point _p est contenu dans ce polygone. |
GrPoint[] |
contour()
Methode retournant les points du contour de l'objet. |
void |
copieCote(GrSegment _s,
int i)
|
boolean |
copieSommet(GrPoint _p,
int i)
|
GrSegment |
cote(int i)
|
static GrPolygone |
creeCarre()
|
double |
diametreXY()
|
double |
distanceXY(GrPoint p)
Renvoie la distance minimale entre p et ce polygone. |
boolean |
estConvexe()
|
boolean |
estCorrect()
|
boolean |
estSelectionne(GrMorphisme _ecran,
int _dist,
GrPoint _pt)
|
boolean |
estSelectionne(GrMorphisme _ecran,
int _dist,
java.awt.Point _pt)
Indique si l'objet est sélectionné pour un point donné. |
static boolean |
estSelectionne(GrPolygone _poly,
GrPolygone _polyolyRef)
Renvoie true si _p est ENTIEREMENT
dans le polygone de ref _polyRef. |
static boolean |
estSelectionne(GrPolygone _p,
int _dist,
GrPoint _pt)
|
boolean |
estSimple()
|
GrPolygone |
fragmente(double ds)
|
GrPoint |
intersectionXY(GrSegment s)
Calcule l'intersection en XY du Segment s
avec cette boite. |
int |
nombre()
|
GrVecteur |
normale()
|
double |
perimetreXY()
|
static javax.swing.DefaultListSelectionModel |
pointsSelectionnes(GrPolygone _poly,
GrPolygone _polyolyRef)
Renvoie la liste de points de _p contenus dans le polygone
_polyRef. |
java.awt.Polygon |
polygon()
Retourne un polygone AWT. |
GrPoint |
sommet(int i)
|
GrPolyligne |
toGrPolyligne()
Retourne un objet GrPolyligne équivalent. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class org.fudaa.ebli.geometrie.GrObjet |
data, data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
sommets
public VecteurGrPoint sommets
| Constructor Detail |
GrPolygone
public GrPolygone()
| Method Detail |
nombre
public int nombre()
sommet
public final GrPoint sommet(int i)
copieSommet
public final boolean copieSommet(GrPoint _p, int i)
arete
public final GrVecteur arete(int i)
cote
public final GrSegment cote(int i)
copieCote
public final void copieCote(GrSegment _s, int i)
angle
public final double angle(int i)
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
boite
public final GrBoite boite()
boite
public final GrBoite boite(GrBoite _b)
normale
public final GrVecteur normale()
barycentre
public final GrPoint barycentre()
centre
public final GrPoint centre()
estConvexe
public boolean estConvexe()
estSimple
public boolean estSimple()
estCorrect
public boolean estCorrect()
perimetreXY
public final double perimetreXY()
diametreXY
public final double diametreXY()
comparaison
public final boolean comparaison(GrPolygone p)
applique
public GrPolygone applique(GrMorphisme t)
autoApplique
public void autoApplique(GrMorphisme t)
- Overrides:
autoAppliquein classGrObjet
fragmente
public final GrPolygone fragmente(double ds)
intersectionXY
public final GrPoint intersectionXY(GrSegment s)
- Calcule l'intersection en XY du Segment
savec cette boite.
polygon
public final java.awt.Polygon polygon()
- Retourne un polygone AWT.
toGrPolyligne
public final GrPolyligne toGrPolyligne()
- Retourne un objet GrPolyligne équivalent.
contour
public final GrPoint[] contour()
- Description copied from interface:
GrContour - Methode retournant les points du contour de l'objet.
Par exemple, pour un GrElement, ces points sont les noeuds du GrElement. Ces points servent a determiner si un objet est dans la selection pour une sélection par rectangle ou polygone (tous ses points sont dans la sélection) ou non.
Ils servent également à afficher les poignées si l'objet sélectionné.
estSelectionne
public final boolean estSelectionne(GrMorphisme _ecran, int _dist, java.awt.Point _pt)
- Indique si l'objet est sélectionné pour un point donné.
Remarque : La distance de tolérance n'est pas prise en compte en testant sur la polyligne équivalente au polygone si le point trouvé en dehors du polygone.
- Specified by:
estSelectionnein interfaceGrContour
estSelectionne
public final boolean estSelectionne(GrMorphisme _ecran, int _dist, GrPoint _pt)
estSelectionne
public static final boolean estSelectionne(GrPolygone _p, int _dist, GrPoint _pt)
estSelectionne
public static final boolean estSelectionne(GrPolygone _poly, GrPolygone _polyolyRef)
- Renvoie true si
_pest ENTIEREMENT dans le polygone de ref_polyRef.
pointsSelectionnes
public static final javax.swing.DefaultListSelectionModel pointsSelectionnes(GrPolygone _poly, GrPolygone _polyolyRef)
- Renvoie la liste de points de
_pcontenus dans le polygone_polyRef.
creeCarre
public static final GrPolygone creeCarre()
contientXY
public boolean contientXY(GrPoint _p)
- Teste, en XY, si le point
_pest contenu dans ce polygone.
distanceXY
public double distanceXY(GrPoint p)
- Renvoie la distance minimale entre
pet ce polygone.
contientXY
public boolean contientXY(double _x,
double _y)
- Teste, en XY, si le point
(_x,_y)est contenu dans ce polygone.
|
|||||||||
| Home >> All >> org >> fudaa >> ebli >> [ geometrie overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC