Introduction
/**
vtkCircleSource creates a circle.
Usage
import vtkCircleSource from '@kitware/vtk.js/Filters/Sources/CircleSource'; |
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkCircleSource 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 |
ICircleSourceInitialValues | No | (default: {}) |
getCenter
Get the center of the cone.
getCenterByReference
Get the center of the cone.
getDirection
Get the orientation vector of the cone.
getDirectionByReference
Get the orientation vector of the cone.
getFace
getLines
getRadius
Get the radius of the cylinder base.
getResolution
Get the number of facets used to define cylinder.
newInstance
Method used to create a new instance of vtkCircleSource.
Argument | Type | Required | Description |
---|---|---|---|
initialValues |
ICircleSourceInitialValues | No | for pre-setting some of its content |
requestData
Expose methods
Argument | Type | Required | Description |
---|---|---|---|
inData |
Yes | ||
outData |
Yes |
setCenter
Set the center of the circle.
Argument | Type | Required | Description |
---|---|---|---|
x |
Number | Yes | The x coordinate. |
y |
Number | Yes | The y coordinate. |
z |
Number | Yes | The z coordinate. |
setCenterFrom
Set the center of the circle.
Argument | Type | Required | Description |
---|---|---|---|
center |
Vector3 | Yes |
setDirection
Set the direction for the circle.
Argument | Type | Required | Description |
---|---|---|---|
direction |
Vector3 | Yes | The direction coordinates. |
setDirection
Set the direction for the circle.
Argument | Type | Required | Description |
---|---|---|---|
x |
Number | Yes | The x coordinate. |
y |
Number | Yes | The y coordinate. |
z |
Number | Yes | The z coordinate. |
setDirectionFrom
Set the direction for the circle.
Argument | Type | Required | Description |
---|---|---|---|
direction |
Vector3 | Yes | The direction coordinates. |
setFace
Argument | Type | Required | Description |
---|---|---|---|
face |
Boolean | Yes |
setLines
Argument | Type | Required | Description |
---|---|---|---|
lines |
Boolean | Yes |
setRadius
Set the radius of the circle.
Argument | Type | Required | Description |
---|---|---|---|
radius |
Number | Yes | The radius of the circle. |
setResolution
Set the resolution of the circle.
Argument | Type | Required | Description |
---|---|---|---|
resolution |
Number | Yes | The resolution of the circle. |
Source
import { vtkAlgorithm, vtkObject } from '../../../interfaces'; |
import macro from 'vtk.js/Sources/macros'; |