|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfdubath.entrelacs.BackgroundGeometry
fdubath.entrelacs.tilling.TillingBackgroundGeometry
fdubath.entrelacs.tilling.TillingP4BackgroundGeometry
public class TillingP4BackgroundGeometry
This geometry has a fundamental zone which is a square. The first two border ((0,0)-(1,0)) and ((0,0)-(1,0)) are identified. the two other borders ((1,0)-(1,1) ((0,1)-(1,1)) are identified. 4 zones glued together by the first identified borders form an bigger square used to fill the plane.
Field Summary |
---|
Fields inherited from class fdubath.entrelacs.tilling.TillingBackgroundGeometry |
---|
drawer |
Fields inherited from class fdubath.entrelacs.BackgroundGeometry |
---|
verbose |
Constructor Summary | |
---|---|
TillingP4BackgroundGeometry()
|
Method Summary | |
---|---|
void |
draw(int[] origine,
int[] clipSize,
double geometryUnit)
Call to this method cause the computation of the intersections and segments and the drawing of the ropes. |
java.lang.String |
geometryName()
Get the name of the Geometry, use for the CustomFileReader in order to ensure it can extract the content of a file and assigne it to the geometry. |
double |
getIdentifiedBorderRotationAngle(Vertex vertex)
When a vertex is on a shared border, this methode allows to get the angle between the two identified border between the vertex/vertex' image positions. |
double[] |
getVertexImagePosition(int imageNumber,
Vertex vertex)
Compute the position of a vertex image. |
boolean |
hasIdentifiedBorder()
Define if the geometry has identified border - that is borders on which a Vertex has two image, causing the rope to jump from the first to the second image accross the geometry zone. |
boolean |
hasMirorBorder()
Define if the geometry has mirror border - that is border on which a Rope can end. |
boolean |
isInside(double[] position)
Compute if a given position is inside the geometry zone. |
int |
numberOfVertexImages(Vertex vertex)
Compute the number of image of a given vertex (1 in general 2 on a identified border). |
double[] |
placeInside(double[] position)
If a given position is inside the geometry zone. |
double[] |
placeOnIdentifiedBorder(double[] position)
Compute the closest position on an identified border of the zone |
Methods inherited from class fdubath.entrelacs.tilling.TillingBackgroundGeometry |
---|
computeSegments |
Methods inherited from class fdubath.entrelacs.BackgroundGeometry |
---|
addLoopRope, addRopeOnMirorBorder, addVertex, addVertexToRope, deleteRope, deleteVertex, getBorderTangentVector, getReadOnlyRopexList, getReadOnlyVertexList, moveVertex, placeOnMirorBorder, removeVertexfromRope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TillingP4BackgroundGeometry()
Method Detail |
---|
public java.lang.String geometryName()
BackgroundGeometry
geometryName
in class BackgroundGeometry
CustomFileReader
public double getIdentifiedBorderRotationAngle(Vertex vertex)
BackgroundGeometry
getIdentifiedBorderRotationAngle
in class BackgroundGeometry
vertex
- the Vertex determining two positions (the second one is the vertex' image position) on identified borders.
public double[] getVertexImagePosition(int imageNumber, Vertex vertex)
BackgroundGeometry
getVertexImagePosition
in class BackgroundGeometry
imageNumber
- identify the image: 0 is the curent vertex, 1 is its other image (if it exist).vertex
- the vertex for which one want to determine the images position
public int numberOfVertexImages(Vertex vertex)
BackgroundGeometry
numberOfVertexImages
in class BackgroundGeometry
vertex
- the vertex for which one want to determine the numberof image
public boolean hasMirorBorder()
BackgroundGeometry
hasMirorBorder
in class BackgroundGeometry
public boolean hasIdentifiedBorder()
BackgroundGeometry
hasIdentifiedBorder
in class BackgroundGeometry
public boolean isInside(double[] position)
BackgroundGeometry
isInside
in class BackgroundGeometry
public double[] placeInside(double[] position)
BackgroundGeometry
placeInside
in class BackgroundGeometry
public double[] placeOnIdentifiedBorder(double[] position)
BackgroundGeometry
placeOnIdentifiedBorder
in class BackgroundGeometry
public void draw(int[] origine, int[] clipSize, double geometryUnit)
TillingBackgroundGeometry
draw
in class TillingBackgroundGeometry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |