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 TypeMethodDescriptionvoid
Abstract method Break this ConvexObject against the ConvexObject obreakObject
(Vector3d p, Vector3d u, Vector3d n) Abstract method Break this ConvexObject against a planeint
void
draw
(Graphics2D g2d) Draw this object on a Graphics2D objectboolean
double
static double
int
hashCode()
int
Check if o is behind this.boolean
isIn2D()
boolean
void
void
replaceSegment
(List<Segment> segs) void
toString()
Methods inherited from class org.scilab.forge.scirenderer.implementation.g2d.motor.ConvexObject
addArea, areCoplanar, check, check2DIntersection, check2DTrueIntersection, drawAreas
Methods 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:
compareTo
in interfaceComparable<Segment>
-
equals
-
isBehind
Description copied from class:ConvexObject
Check if o is behind this. Take care: the algorithms used are for convex objects (typically tri-tri, seg-seg or tri-seg)- Overrides:
isBehind
in classConvexObject
- Returns:
- true if o is behind this
-
breakObject
Description copied from class:ConvexObject
Abstract method Break this ConvexObject against the ConvexObject o- Specified by:
breakObject
in classConvexObject
- Parameters:
o
- a ConvexObject- Returns:
- a list of ConvexObject.
-
breakObject
Description copied from class:ConvexObject
Abstract method Break this ConvexObject against a plane- Specified by:
breakObject
in classConvexObject
- Parameters:
v
- plane definition- Returns:
- a list of ConvexObject.
-
breakObject
-
draw
Description copied from class:AbstractDrawable3DObject
Draw this object on a Graphics2D object- Specified by:
draw
in classAbstractDrawable3DObject
- Parameters:
g2d
- the Graphics2d object where to draw
-
hashCode
public int hashCode() -
toString
-