Line

Overview

Line is a class in Aspose.3D FOSS for Java. Inherits from: Curve.

A polyline is a path defined by a set of points with getControlPoints(), and connected by getSegments(), which means it can also be a set of connected line segments.

This class provides 32 methods for working with Line objects in Java programs. Available methods include: A3DObject, Curve, Entity, Line, SceneObject, findProperty, fromPoints, getBoundingBox, getColor, getControlPoints, getEntityRendererKey, getExcluded, and 16 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: boundingBox, color, controlPoints, entityRendererKey, excluded, name, and 6 more.

Properties

NameTypeAccessDescription
controlPointsList<Vector4>ReadGets all control points.
visiblebooleanRead/WriteGets if the geometry is visible.
segmentsList<int[]>ReadGets the segments of the line.
colorVector3Read/WriteGets or sets the color of the line, default value is white(1, 1, 1).
entityRendererKeyEntityRendererKeyReadGets the entity renderer key for this entity.
parentNodeNodeRead/WriteGets or sets the parent node.
parentNodesArrayList<Node>ReadGets the parent nodes.
excludedbooleanRead/WriteGets or sets the excluded.
boundingBoxBoundingBoxReadGets the bounding box.
sceneSceneReadGets the scene.
nameStringRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
getControlPoints() → List<Vector4>Gets all control points.
getVisible() → booleanGets if the geometry is visible.
setVisible(value: boolean)Sets the visible value.
getSegments() → List<int[]>Gets the segments of the line.
Line()Initializes a new instance of the Line class.
Line(name: String)Initializes a new instance of the Line class.
fromPoints(points: Vector3...) → LineConstruct a Line instance from a set of points.
makeDefaultIndices()Generate the sequence 0,1,2,3….getControlPoints().Length-1 to getSegments() so the ControlPoints can be used as a single line.
getColor() → Vector3Gets or sets the color of the line, default value is white(1, 1, 1).
setColor(color: Vector3)Sets the color value.
Curve()Constructor.
getEntityRendererKey() → EntityRendererKeyGets the entity renderer key for this entity.
Entity(name: String)Calls Entity(name) on this Line instance.
getParentNode() → NodeReturns the parent node.
setParentNode(value: Node)Sets the parent node value.
getParentNodes() → ArrayList<Node>Gets if the geometry is visible.
getExcluded() → booleanReturns the excluded.
setExcluded(value: boolean)Sets the excluded value.
getBoundingBox() → BoundingBoxReturns the bounding box.
SceneObject()Calls SceneObject on this Line instance.
SceneObject(name: String)Calls SceneObject(name) on this Line instance.
getScene() → SceneReturns the scene.
A3DObject()Calls A3DObject on this Line instance.
A3DObject(name: String)A polyline is a path defined by a set of points with getControlPoints(), and connected by getSegments(), which means it can also be a set of connected line segments. The line is usually a linear object, which means it cannot be used to represent a curve, in order to represent a curve, uses NurbsCurve.
getName() → StringReturns the name.
setName(name: String)Sets the name value.
getProperties() → PropertyCollectionReturns the properties.
findProperty(name: String) → PropertyCalls findProperty(name) on this Line instance.
getProperty(name: String) → ObjectCalls getProperty(name) on this Line instance.
setProperty(name: String, value: Object)Gets the segments of the line.
removeProperty(name: String) → booleanCalls removeProperty(name) on this Line instance.
removeProperty(property: Property) → booleanCalls removeProperty(property) on this Line instance.

See Also

 English