File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Sources/Rendering/OpenGL/Texture Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,10 @@ export interface vtkOpenGLTexture extends vtkViewNode {
301
301
* @param dataType The data type of the texture.
302
302
* @param values The raw data for the texture.
303
303
* @param preferSizeOverAccuracy Whether to prefer texture size over accuracy.
304
- * @returns {boolean } True if the texture was successfully created, false otherwise.
304
+ * @param [ranges] The precomputed ranges of the data (optional). Provided to
305
+ * prevent computation of the data ranges.
306
+ * @returns {boolean } True if the texture was successfully created, false
307
+ * otherwise.
305
308
*/
306
309
create3DFilterableFromRaw (
307
310
width : number ,
@@ -310,7 +313,8 @@ export interface vtkOpenGLTexture extends vtkViewNode {
310
313
numComps : number ,
311
314
dataType : VtkDataTypes ,
312
315
values : any ,
313
- preferSizeOverAccuracy : boolean
316
+ preferSizeOverAccuracy : boolean ,
317
+ ranges ?: vtkRange [ ]
314
318
) : boolean ;
315
319
316
320
/**
Original file line number Diff line number Diff line change @@ -1598,7 +1598,8 @@ function vtkOpenGLTexture(publicAPI, model) {
1598
1598
numberOfComponents ,
1599
1599
dataType ,
1600
1600
values ,
1601
- preferSizeOverAccuracy = false
1601
+ preferSizeOverAccuracy = false ,
1602
+ ranges = undefined
1602
1603
) =>
1603
1604
publicAPI . create3DFilterableFromDataArray (
1604
1605
width ,
@@ -1608,6 +1609,7 @@ function vtkOpenGLTexture(publicAPI, model) {
1608
1609
numberOfComponents,
1609
1610
dataType,
1610
1611
values,
1612
+ ranges,
1611
1613
} ) ,
1612
1614
preferSizeOverAccuracy
1613
1615
) ;
You can’t perform that action at this time.
0 commit comments