Class Segment
java.lang.Object
org.scilab.forge.scirenderer.implementation.g2d.motor.AbstractDrawable3DObject
org.scilab.forge.scirenderer.implementation.g2d.motor.ConvexObject
org.scilab.forge.scirenderer.implementation.g2d.motor.Segment
- All Implemented Interfaces:
Comparable<Segment>
- Author:
- Calixte DENIZET
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAbstract method Break this ConvexObject against the ConvexObject obreakObject(Vector3d p, Vector3d u, Vector3d n) Abstract method Break this ConvexObject against a planeintvoiddraw(Graphics2D g2d) Draw this object on a Graphics2D objectbooleandoublestatic doubleinthashCode()intCheck if o is behind this.booleanisIn2D()booleanvoidvoidreplaceSegment(List<Segment> segs) voidtoString()Methods inherited from class org.scilab.forge.scirenderer.implementation.g2d.motor.ConvexObject
addArea, areCoplanar, check, check2DIntersection, check2DTrueIntersection, drawAreasMethods inherited from class org.scilab.forge.scirenderer.implementation.g2d.motor.AbstractDrawable3DObject
getColorsBarycenter, getNormal, getPrecedence, getProjectedContour, getProjectedPolyLine, getProvidedNormal, is2D, isBehind, isBehind, isDegenerate, isEqual, isGreaterOrEqual, isLowerOrEqual, isMonochromatic, isNanOrInf, isNanOrInf, isNegativeOrNull, isNull, isPlanar, isPositiveOrNull, minmax2D, minmax3D, resetDefaultPrecedence, setNormal, setPrecedence
-
Field Details
-
stroke
-
segmentOn
-
-
Constructor Details
-
Segment
- Throws:
InvalidPolygonException
-
Segment
- Throws:
InvalidPolygonException
-
-
Method Details
-
setStroke
-
getLength
public double getLength() -
getLength
-
addConvexObject
-
removeConvexObject
-
replaceSegment
-
isIn2D
public boolean isIn2D() -
isInFront
public boolean isInFront() -
compareTo
- Specified by:
compareToin interfaceComparable<Segment>
-
equals
-
isBehind
Description copied from class:ConvexObjectCheck if o is behind this. Take care: the algorithms used are for convex objects (typically tri-tri, seg-seg or tri-seg)- Overrides:
isBehindin classConvexObject- Returns:
- true if o is behind this
-
breakObject
Description copied from class:ConvexObjectAbstract method Break this ConvexObject against the ConvexObject o- Specified by:
breakObjectin classConvexObject- Parameters:
o- a ConvexObject- Returns:
- a list of ConvexObject.
-
breakObject
Description copied from class:ConvexObjectAbstract method Break this ConvexObject against a plane- Specified by:
breakObjectin classConvexObject- Parameters:
v- plane definition- Returns:
- a list of ConvexObject.
-
breakObject
-
draw
Description copied from class:AbstractDrawable3DObjectDraw this object on a Graphics2D object- Specified by:
drawin classAbstractDrawable3DObject- Parameters:
g2d- the Graphics2d object where to draw
-
hashCode
public int hashCode() -
toString
-