11import { Wrap , Filter } from './Constants' ;
22import vtkOpenGLRenderWindow from '../RenderWindow' ;
3- import { Nullable } from '../../../types' ;
3+ import { Extent , Nullable } from '../../../types' ;
44import { VtkDataTypes } from '../../../Common/Core/DataArray' ;
55import { vtkViewNode } from '../../../Rendering/SceneGraph/ViewNode' ;
66import { vtkObject , vtkRange } from '../../../interfaces' ;
@@ -275,12 +275,16 @@ export interface vtkOpenGLTexture extends vtkViewNode {
275275
276276 /**
277277 * Creates a 3D texture from raw data.
278+ *
279+ * updatedExtents is currently incompatible with webgl1, since there's no extent scaling.
280+ *
278281 * @param width The width of the texture.
279282 * @param height The height of the texture.
280283 * @param depth The depth of the texture.
281284 * @param numComps The number of components in the texture.
282285 * @param dataType The data type of the texture.
283286 * @param data The raw data for the texture.
287+ * @param updatedExtents Only update the specified extents (default: [])
284288 * @returns {boolean } True if the texture was successfully created, false otherwise.
285289 */
286290 create3DFromRaw (
@@ -289,11 +293,15 @@ export interface vtkOpenGLTexture extends vtkViewNode {
289293 depth : number ,
290294 numComps : number ,
291295 dataType : VtkDataTypes ,
292- data : any
296+ data : any ,
297+ updatedExtents ?: Extent [ ]
293298 ) : boolean ;
294299
295300 /**
296301 * Creates a 3D filterable texture from raw data, with a preference for size over accuracy if necessary.
302+ *
303+ * updatedExtents is currently incompatible with webgl1, since there's no extent scaling.
304+ *
297305 * @param width The width of the texture.
298306 * @param height The height of the texture.
299307 * @param depth The depth of the texture.
@@ -302,6 +310,7 @@ export interface vtkOpenGLTexture extends vtkViewNode {
302310 * @param values The raw data for the texture.
303311 * @param preferSizeOverAccuracy Whether to prefer texture size over accuracy.
304312 * @param [ranges] The precomputed ranges of the data (optional). Provided to
313+ * @param updatedExtents Only update the specified extents (default: [])
305314 * prevent computation of the data ranges.
306315 * @returns {boolean } True if the texture was successfully created, false
307316 * otherwise.
@@ -314,24 +323,30 @@ export interface vtkOpenGLTexture extends vtkViewNode {
314323 dataType : VtkDataTypes ,
315324 values : any ,
316325 preferSizeOverAccuracy : boolean ,
317- ranges ?: vtkRange [ ]
326+ ranges ?: vtkRange [ ] ,
327+ updatedExtents ?: Extent [ ]
318328 ) : boolean ;
319329
320330 /**
321331 * Creates a 3D filterable texture from a data array, with a preference for size over accuracy if necessary.
332+ *
333+ * updatedExtents is currently incompatible with webgl1, since there's no extent scaling.
334+ *
322335 * @param width The width of the texture.
323336 * @param height The height of the texture.
324337 * @param depth The depth of the texture.
325338 * @param dataArray The data array to use for the texture.
326339 * @param preferSizeOverAccuracy Whether to prefer texture size over accuracy.
340+ * @param updatedExtents Only update the specified extents (default: [])
327341 * @returns {boolean } True if the texture was successfully created, false otherwise.
328342 */
329343 create3DFilterableFromDataArray (
330344 width : number ,
331345 height : number ,
332346 depth : number ,
333347 dataArray : any ,
334- preferSizeOverAccuracy : boolean
348+ preferSizeOverAccuracy : boolean ,
349+ updatedExtents ?: Extent [ ]
335350 ) : boolean ;
336351
337352 /**
0 commit comments