vtkArrowSource was intended to be used as the source for a glyph. The shaft base is always at (0,0,0). The arrow tip is always at (1,0,0). If “Invert” is true, then the ends are flipped i.e. tip is at (0,0,0) while base is at (1, 0, 0). The resolution of the cone and shaft can be set and default to 6. The radius of the cone and shaft can be set and default to 0.03 and 0.1. The length of the tip can also be set, and defaults to 0.35.
/** * Set the direction for the arrow. * @param {Number} x The x coordinate. * @param {Number} y The y coordinate. * @param {Number} z The z coordinate. */ setDirection(x: number, y: number, z: number): boolean;
/** * Set the direction for the arrow. * @param {Vector3} direction The direction coordinates. */ setDirection(direction: Vector3): boolean;
/** * Set the direction for the arrow. * @param {Vector3} direction The direction coordinates. */ setDirectionFrom(direction: Vector3): boolean;
/** * Inverts the arrow direction. * When set to true, base is at [1, 0, 0] while the tip is at [0, 0, 0]. * @param {Booolean} invert */ setInvert(invert: boolean): boolean;
/** * Set the radius of the shaft. * @param {Number} shaftRadius */ setShaftRadius(shaftRadius: number): boolean;
/** * Set the resolution of the shaft. * @param {Number} shaftResolution */ setShaftResolution(shaftResolution: number): boolean;
/** * Set the length of the tip. * @param {Number} tipLength */ setTipLength(tipLength: number): boolean;
/** * Set the radius of the tip. * @param {Number} tipRadius */ setTipRadius(tipRadius: number): boolean;
/** * Set the resolution of the tip. * @param {Number} tipResolution */ setTipResolution(tipResolution: number): boolean; }
/** * Method used to decorate a given object (publicAPI+model) with vtkArrowSource characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {IArrowSourceInitialValues} [initialValues] (default: {}) */ exportfunctionextend( publicAPI: object, model: object, initialValues?: IArrowSourceInitialValues ): void;
/** * Method used to create a new instance of vtkArrowSource. * @param {IArrowSourceInitialValues} [initialValues] for pre-setting some of its content */ exportfunctionnewInstance( initialValues?: IArrowSourceInitialValues ): vtkArrowSource;
/** * vtkArrowSource was intended to be used as the source for a glyph. * The shaft base is always at (0,0,0). The arrow tip is always at (1,0,0). * If "Invert" is true, then the ends are flipped i.e. tip is at (0,0,0) while base is at (1, 0, 0). * The resolution of the cone and shaft can be set and default to 6. * The radius of the cone and shaft can be set and default to 0.03 and 0.1. * The length of the tip can also be set, and defaults to 0.35. * * @example * ```js * import vtkArrowSource from '@kitware/vtk.js/Filters/Sources/ArrowSource'; * * const arrow = vtkArrowSource.newInstance({ * tipResolution: 6, * tipRadius: 0.1, * tipLength: 0.35, * shaftResolution: 6, * shaftRadius: 0.03, * invert: false, * direction: [1.0, 0.0, 0.0]}); * const polydata = arrow.getOutputData(); * ``` */ export declare constvtkArrowSource: { newInstance: typeof newInstance; extend: typeof extend; }; exportdefault vtkArrowSource;