| 
 | 1 | +import { vtkAlgorithm, vtkObject } from '../../../interfaces';  | 
 | 2 | +import { Vector3 } from '../../../types';  | 
 | 3 | + | 
 | 4 | +export type IGenerateTCoords =  | 
 | 5 | +  | 'TCOORDS_OFF'  | 
 | 6 | +  | 'TCOORDS_FROM_SCALARS'  | 
 | 7 | +  | 'TCOORDS_FROM_LENGTH'  | 
 | 8 | +  | 'TCOORDS_FROM_NORMALIZED_LENGTH';  | 
 | 9 | + | 
 | 10 | +/**  | 
 | 11 | + *  | 
 | 12 | + */  | 
 | 13 | +export interface IRibbonFilterInitialValues {  | 
 | 14 | +  useDefaultNormal?: boolean;  | 
 | 15 | +  width?: number;  | 
 | 16 | +  varyWidth?: boolean;  | 
 | 17 | +  angle?: number;  | 
 | 18 | +  generateTCoords?: IGenerateTCoords;  | 
 | 19 | +  widthFactor?: number;  | 
 | 20 | +  textureLength?: number;  | 
 | 21 | +  defaultNormal?: Vector3;  | 
 | 22 | +}  | 
 | 23 | + | 
 | 24 | +type vtkRibbonFilterBase = vtkObject & vtkAlgorithm;  | 
 | 25 | + | 
 | 26 | +export interface vtkRibbonFilter extends vtkRibbonFilterBase {  | 
 | 27 | +  /**  | 
 | 28 | +   * Get the angle (in degrees) of rotation about the line tangent used to  | 
 | 29 | +   * orient the ribbon.  | 
 | 30 | +   */  | 
 | 31 | +  getAngle(): number;  | 
 | 32 | + | 
 | 33 | +  /**  | 
 | 34 | +   * Get the default normal used to orient the ribbon when no normals are  | 
 | 35 | +   * provided in the input.  | 
 | 36 | +   */  | 
 | 37 | +  getDefaultNormal(): Vector3;  | 
 | 38 | + | 
 | 39 | +  /**  | 
 | 40 | +   * Get the default normal used to orient the ribbon when no normals are  | 
 | 41 | +   * provided in the input.  | 
 | 42 | +   */  | 
 | 43 | +  getDefaultNormalByReference(): Vector3;  | 
 | 44 | + | 
 | 45 | +  /**  | 
 | 46 | +   * Get the method used to generate texture coordinates.  | 
 | 47 | +   */  | 
 | 48 | +  getGenerateTCoords(): IGenerateTCoords;  | 
 | 49 | + | 
 | 50 | +  /**  | 
 | 51 | +   * Get the method used to generate texture coordinates as a string.  | 
 | 52 | +   */  | 
 | 53 | +  getGenerateTCoordsAsString(): string;  | 
 | 54 | + | 
 | 55 | +  /**  | 
 | 56 | +   * Get the texture length, used when generating texture coordinates from  | 
 | 57 | +   * length.  | 
 | 58 | +   */  | 
 | 59 | +  getTextureLength(): number;  | 
 | 60 | + | 
 | 61 | +  /**  | 
 | 62 | +   * Get whether to use the default normal to orient the ribbon when no  | 
 | 63 | +   * normals are provided in the input.  | 
 | 64 | +   */  | 
 | 65 | +  getUseDefaultNormal(): boolean;  | 
 | 66 | + | 
 | 67 | +  /**  | 
 | 68 | +   * Get whether to vary the width of the ribbon using scalar data.  | 
 | 69 | +   */  | 
 | 70 | +  getVaryWidth(): boolean;  | 
 | 71 | + | 
 | 72 | +  /**  | 
 | 73 | +   * Get the width of the ribbon.  | 
 | 74 | +   */  | 
 | 75 | +  getWidth(): number;  | 
 | 76 | + | 
 | 77 | +  /**  | 
 | 78 | +   * Get the width factor, used to scale the width when varying the width.  | 
 | 79 | +   */  | 
 | 80 | +  getWidthFactor(): number;  | 
 | 81 | + | 
 | 82 | +  /**  | 
 | 83 | +   *  | 
 | 84 | +   * @param inData  | 
 | 85 | +   * @param outData  | 
 | 86 | +   */  | 
 | 87 | +  requestData(inData: any, outData: any): void;  | 
 | 88 | + | 
 | 89 | +  /**  | 
 | 90 | +   * Set the angle (in degrees) of rotation about the line tangent used to orient the ribbon.  | 
 | 91 | +   * Default is 0.0.  | 
 | 92 | +   * @param angle The angle in degrees.  | 
 | 93 | +   * @returns true if the angle is set successfully.  | 
 | 94 | +   */  | 
 | 95 | +  setAngle(angle: number): boolean;  | 
 | 96 | + | 
 | 97 | +  /**  | 
 | 98 | +   * Set the default normal used to orient the ribbon when no normals are provided in the input.  | 
 | 99 | +   * The default normal is a vector defined by three components (x,y,z). The  | 
 | 100 | +   * default is (0,0,1).  | 
 | 101 | +   * @param defaultNormal The default normal as an array of three numbers or a Vector3.  | 
 | 102 | +   * @returns true if the default normal is set successfully.  | 
 | 103 | +   */  | 
 | 104 | +  setDefaultNormal(defaultNormal: Vector3): boolean;  | 
 | 105 | + | 
 | 106 | +  /**  | 
 | 107 | +   * Set the default normal used to orient the ribbon when no normals are provided in the input.  | 
 | 108 | +   * The default normal is a vector defined by three components (x,y,z). The  | 
 | 109 | +   * default is (0,0,1).  | 
 | 110 | +   * @returns true if the default normal is set successfully.  | 
 | 111 | +   */  | 
 | 112 | +  setDefaultNormalFrom(defaultNormal: Vector3): boolean;  | 
 | 113 | + | 
 | 114 | +  /**  | 
 | 115 | +   * Set the method used to generate texture coordinates. By default, texture  | 
 | 116 | +   * coordinates are not generated.  | 
 | 117 | +   * @param generateTCoords The method to generate texture coordinates.  | 
 | 118 | +   * @returns true if the method is set successfully.  | 
 | 119 | +   */  | 
 | 120 | +  setGenerateTCoords(generateTCoords: IGenerateTCoords): boolean;  | 
 | 121 | + | 
 | 122 | +  /**  | 
 | 123 | +   * Set the texture length, used when generating texture coordinates from length.  | 
 | 124 | +   * The default is 1.0.  | 
 | 125 | +   * @param textureLength The texture length.  | 
 | 126 | +   * @returns true if the texture length is set successfully.  | 
 | 127 | +   */  | 
 | 128 | +  setTextureLength(textureLength: number): boolean;  | 
 | 129 | + | 
 | 130 | +  /**  | 
 | 131 | +   * Set whether to use the default normal to orient the ribbon when no normals are provided in the input.  | 
 | 132 | +   * The default is false.  | 
 | 133 | +   * @param useDefaultNormal Whether to use the default normal.  | 
 | 134 | +   * @returns true if the flag is set successfully.  | 
 | 135 | +   */  | 
 | 136 | +  setUseDefaultNormal(useDefaultNormal: boolean): boolean;  | 
 | 137 | + | 
 | 138 | +  /**  | 
 | 139 | +   * Set whether to vary the width of the ribbon using scalar data. By default,  | 
 | 140 | +   * the width of the ribbon is uniform.  | 
 | 141 | +   * @param varyWidth Whether to vary the width of the ribbon.  | 
 | 142 | +   * @returns true if the flag is set successfully.  | 
 | 143 | +   */  | 
 | 144 | +  setVaryWidth(varyWidth: boolean): boolean;  | 
 | 145 | + | 
 | 146 | +  /**  | 
 | 147 | +   * Set the width of the ribbon. The width is the total width of the ribbon;  | 
 | 148 | +   * the ribbon extends width/2 on either side of the line. The default is 0.5.  | 
 | 149 | +   * @param width The width of the ribbon.  | 
 | 150 | +   * @returns true if the width is set successfully.  | 
 | 151 | +   */  | 
 | 152 | +  setWidth(width: number): boolean;  | 
 | 153 | + | 
 | 154 | +  /**  | 
 | 155 | +   * Set the width factor, used to scale the width when varying the width.  | 
 | 156 | +   * The default is 1.0.  | 
 | 157 | +   * @param widthFactor The width factor.  | 
 | 158 | +   * @returns true if the width factor is set successfully.  | 
 | 159 | +   */  | 
 | 160 | +  setWidthFactor(widthFactor: number): boolean;  | 
 | 161 | +}  | 
 | 162 | + | 
 | 163 | +/**  | 
 | 164 | + * Method used to decorate a given object (publicAPI+model) with vtkRibbonFilter characteristics.  | 
 | 165 | + *  | 
 | 166 | + * @param publicAPI object on which methods will be bounds (public)  | 
 | 167 | + * @param model object on which data structure will be bounds (protected)  | 
 | 168 | + * @param {IRibbonFilterInitialValues} [initialValues] (default: {})  | 
 | 169 | + */  | 
 | 170 | +export function extend(  | 
 | 171 | +  publicAPI: object,  | 
 | 172 | +  model: object,  | 
 | 173 | +  initialValues?: IRibbonFilterInitialValues  | 
 | 174 | +): void;  | 
 | 175 | + | 
 | 176 | +/**  | 
 | 177 | + * Method used to create a new instance of vtkRibbonFilter  | 
 | 178 | + * @param {IRibbonFilterInitialValues} [initialValues] for pre-setting some of its content  | 
 | 179 | + */  | 
 | 180 | +export function newInstance(  | 
 | 181 | +  initialValues?: IRibbonFilterInitialValues  | 
 | 182 | +): vtkRibbonFilter;  | 
 | 183 | + | 
 | 184 | +/**  | 
 | 185 | + * vtkRibbonFilter is a filter to create oriented ribbons from lines defined in  | 
 | 186 | + * polygonal dataset. The orientation of the ribbon is along the line segments  | 
 | 187 | + * and perpendicular to "projected" line normals. Projected line normals are the  | 
 | 188 | + * original line normals projected to be perpendicular to the local line  | 
 | 189 | + * segment. An offset angle can be specified to rotate the ribbon with respect  | 
 | 190 | + * to the normal.  | 
 | 191 | + */  | 
 | 192 | +export declare const vtkRibbonFilter: {  | 
 | 193 | +  newInstance: typeof newInstance;  | 
 | 194 | +  extend: typeof extend;  | 
 | 195 | +};  | 
 | 196 | +export default vtkRibbonFilter;  | 
0 commit comments