Skip to content

EllipseArcSource

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

js
import vtkEllipseArcSource from '@kitware/vtk.js/Filters/Sources/EllipseArcSource';

const arc = vtkEllipseArcSource.newInstance();
const polydata = arc.getOutputData();

Methods

extend

Method used to decorate a given object (publicAPI+model) with vtkEllipseArcSource characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIEllipseArcSourceInitialValuesNo(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.

ArgumentTypeRequiredDescription
initialValuesIEllipseArcSourceInitialValuesNofor pre-setting some of its content

requestData

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setCenter

Set the center of the arc.

ArgumentTypeRequiredDescription
centerVector3YesThe center's coordinates.

setCenterFrom

Set the center of the arc by reference.

ArgumentTypeRequiredDescription
centerVector3YesThe center's coordinates.

setClose

Set whether the arc is closed.

ArgumentTypeRequiredDescription
closeBooleanYesWhether the arc is closed.

setMajorRadiusVector

Set the major radius vector of the arc.

ArgumentTypeRequiredDescription
majorRadiusVectorVector3YesThe major radius vector's coordinates.

setMajorRadiusVectorFrom

Set the major radius vector of the arc by reference.

ArgumentTypeRequiredDescription
majorRadiusVectorVector3YesThe major radius vector's coordinates.

setNormal

Set the normal vector of the arc.

ArgumentTypeRequiredDescription
normalVector3YesThe normal vector's coordinates.

setNormalFrom

Set the normal vector of the arc by reference.

ArgumentTypeRequiredDescription
normalVector3YesThe normal vector's coordinates.

setOutputPointsPrecision

Set the output points precision.

ArgumentTypeRequiredDescription
precisionDesiredOutputPrecisionYesThe desired output precision.

setRatio

Set the ratio of the arc.

ArgumentTypeRequiredDescription
ratioNumberYesThe ratio of the arc.

setResolution

Set the resolution of the arc.

ArgumentTypeRequiredDescription
resolutionNumberYesThe number of points in the arc.

setSegmentAngle

Set the segment angle of the arc.

ArgumentTypeRequiredDescription
segmentAngleNumberYesThe segment angle in degrees.

setStartAngle

Set the start angle of the arc.

ArgumentTypeRequiredDescription
startAngleNumberYesThe start angle in degrees.