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
| Name | Type | Access | Description |
|---|---|---|---|
controlPoints | List<Vector4> | Read | Gets all control points. |
visible | boolean | Read | Gets if the geometry is visible. |
segments | List<int[]> | Read | Gets the segments of the line. |
color | Vector3 | Read | Gets or sets the color of the line, default value is white(1, 1, 1). |
entityRendererKey | EntityRendererKey | Read | Gets the entity renderer key for this entity. |
parentNode | Node | Read | Gets the parent node. |
parentNodes | ArrayList<Node> | Read | Gets the parent nodes. |
excluded | boolean | Read | Gets the excluded. |
boundingBox | BoundingBox | Read | Gets the bounding box. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Methods
| Signature | Description |
|---|---|
getControlPoints() → List<Vector4> | Gets all control points. |
getVisible() → boolean | Gets 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() → Line | Construct 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() → Vector3 | Gets or sets the color of the line, default value is white(1, 1, 1). |
setColor(color: Vector3) | Sets the color value. |
Curve() | Constructor. |
getEntityRendererKey() → EntityRendererKey | Gets the entity renderer key for this entity. |
Entity(name: String) | Calls Entity(name) on this Line instance. |
getParentNode() → Node | Returns the parent node. |
setParentNode(value: Node) | Sets the parent node value. |
getParentNodes() → ArrayList<Node> | Gets if the geometry is visible. |
getExcluded() → boolean | Returns the excluded. |
setExcluded(value: boolean) | Sets the excluded value. |
getBoundingBox() → BoundingBox | Returns the bounding box. |
SceneObject() | Calls SceneObject on this Line instance. |
SceneObject(name: String) | Calls SceneObject(name) on this Line instance. |
getScene() → Scene | Returns 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() → String | Returns the name. |
setName(name: String) | Sets the name value. |
getProperties() → PropertyCollection | Returns the properties. |
findProperty(name: String) → Property | Calls findProperty(name) on this Line instance. |
getProperty(name: String) → Object | Calls getProperty(name) on this Line instance. |
setProperty(name: String, value: Object) | Gets the segments of the line. |
removeProperty(name: String) → boolean | Calls removeProperty(name) on this Line instance. |
removeProperty(property: Property) → boolean | Calls removeProperty(property) on this Line instance. |