Class Index | File Index

Classes


Class JXG.Intersection

This is the Intersection class. It manages all properties and actiones required to cut circles and lines with each other and draws the intersection points.
Defined in: Intersection.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JXG.Intersection(board, coordinates, id, name, show, InterId2, InterName1, InterName2)
Constructs a new Intersection object.
Field Summary
Field Attributes Field Name and Description
 
Reference to board where the intersected elements are drawn.
 
id
Unique identifier for the element.
 
Geometry element that is intersected with intersect2.
 
Geometry element that is intersected with intersect1.
 
Stores all Intersection Objects which in this moment are not real and hide this element.
 
True when the intersection points have real coordinates, false otherwise.
 
True when this object is visible, false otherwise.
Method Summary
Method Attributes Method Name and Description
 
hasPoint(x, y)
Checks whether (x,y) is near the point.
 
hideChild(id)
 
hideElement()
 
Remove intersection points from drawing.
 
showChild(id)
 
showElement()
 
update()
 
Dummy method
Class Detail
JXG.Intersection(board, coordinates, id, name, show, InterId2, InterName1, InterName2)
Constructs a new Intersection object.
Parameters:
{String|Board} board
The board the new point is drawn on.
{Array} coordinates
An array with the affine user coordinates of the point.
{String} id
Unique identifier for the point. If null or an empty string is given, an unique id will be generated by Board
{String} name
Not necessarily unique name for the point. If null or an empty string is given, an unique name will be generated
{bool} show
False if the point is invisible, True otherwise
InterId2
InterName1
InterName2
See:
JXG.Board#addPoint
JXG.Board#generateName
Field Detail
{JXG.Board} board
Reference to board where the intersected elements are drawn.
See:
JXG.Board

{String} id
Unique identifier for the element. Equivalent to id-attribute of renderer element.

{JXG.GeometryElement} intersect1
Geometry element that is intersected with intersect2.
See:
#intersect2

{JXG.GeometryElement} intersect2
Geometry element that is intersected with intersect1.
See:
#intersect1

notExistingParents
Stores all Intersection Objects which in this moment are not real and hide this element.

{bool} real
True when the intersection points have real coordinates, false otherwise.

{bool} visProp
True when this object is visible, false otherwise.
Method Detail
{bool} hasPoint(x, y)
Checks whether (x,y) is near the point.
Parameters:
{int} x
Coordinate in x direction, screen coordinates.
{int} y
Coordinate in y direction, screen coordinates.
Returns:
{bool} Always returns false

hideChild(id)
Parameters:
id

hideElement()

remove()
Remove intersection points from drawing.

showChild(id)
Parameters:
id

showElement()

update()

updateRenderer()
Dummy method

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Feb 26 2013 18:47:43 GMT+0100 (CET)