Introduction
vtkEllipseArcSource is a source object that creates an elliptical arc defined
by a normal, a center and the major radius vector. You can define an angle to
draw only a section of the ellipse. The number of segments composing the
polyline is controlled by setting the object resolution.
Usage
import vtkEllipseArcSource from '@kitware/vtk.js/Filters/Sources/EllipseArcSource'; |
Methods
extend
Method used to decorate a given object (publicAPI+model) with
vtkEllipseArcSource characteristics.
Argument | Type | Required | Description |
---|---|---|---|
publicAPI |
Yes | object on which methods will be bounds (public) | |
model |
Yes | object on which data structure will be bounds (protected) | |
initialValues |
IEllipseArcSourceInitialValues | No | (default: {}) |
getCenter
Get the center of the arc.
getCenterByReference
Get the center of the arc by reference.
getClose
Get whether the arc is closed.
getMajorRadiusVector
Get the major radius vector of the arc.
getMajorRadiusVectorByReference
Get the major radius vector of the arc by reference.
getNormal
Get the normal vector of the arc.
getNormalByReference
Get the normal vector of the arc by reference.
getOutputPointsPrecision
Get the output points precision.
getRatio
Get the ratio of the arc.
getResolution
Get the resolution of the arc.
getSegmentAngle
Get the segment angle of the arc.
getStartAngle
Get the start angle of the arc.
newInstance
Method used to create a new instance of vtkEllipseArcSource.
Argument | Type | Required | Description |
---|---|---|---|
initialValues |
IEllipseArcSourceInitialValues | No | for pre-setting some of its content |
requestData
Argument | Type | Required | Description |
---|---|---|---|
inData |
Yes | ||
outData |
Yes |
setCenter
Set the center of the arc.
Argument | Type | Required | Description |
---|---|---|---|
center |
Vector3 | Yes | The center’s coordinates. |
setCenterFrom
Set the center of the arc by reference.
Argument | Type | Required | Description |
---|---|---|---|
center |
Vector3 | Yes | The center’s coordinates. |
setClose
Set whether the arc is closed.
Argument | Type | Required | Description |
---|---|---|---|
close |
Boolean | Yes | Whether the arc is closed. |
setMajorRadiusVector
Set the major radius vector of the arc.
Argument | Type | Required | Description |
---|---|---|---|
majorRadiusVector |
Vector3 | Yes | The major radius vector’s coordinates. |
setMajorRadiusVectorFrom
Set the major radius vector of the arc by reference.
Argument | Type | Required | Description |
---|---|---|---|
majorRadiusVector |
Vector3 | Yes | The major radius vector’s coordinates. |
setNormal
Set the normal vector of the arc.
Argument | Type | Required | Description |
---|---|---|---|
normal |
Vector3 | Yes | The normal vector’s coordinates. |
setNormalFrom
Set the normal vector of the arc by reference.
Argument | Type | Required | Description |
---|---|---|---|
normal |
Vector3 | Yes | The normal vector’s coordinates. |
setOutputPointsPrecision
Set the output points precision.
Argument | Type | Required | Description |
---|---|---|---|
precision |
DesiredOutputPrecision | Yes | The desired output precision. |
setRatio
Set the ratio of the arc.
Argument | Type | Required | Description |
---|---|---|---|
ratio |
Number | Yes | The ratio of the arc. |
setResolution
Set the resolution of the arc.
Argument | Type | Required | Description |
---|---|---|---|
resolution |
Number | Yes | The number of points in the arc. |
setSegmentAngle
Set the segment angle of the arc.
Argument | Type | Required | Description |
---|---|---|---|
segmentAngle |
Number | Yes | The segment angle in degrees. |
setStartAngle
Set the start angle of the arc.
Argument | Type | Required | Description |
---|---|---|---|
startAngle |
Number | Yes | The start angle in degrees. |
Source
import { DesiredOutputPrecision } from '../../../Common/DataModel/DataSetAttributes'; |
import macro from 'vtk.js/Sources/macros'; |