Skip to content

Commit 2da9e2b

Browse files
committed
docs(renderer,ctf): fix typescript inheritance
1 parent ffe12a4 commit 2da9e2b

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

Sources/Rendering/Core/ColorTransferFunction/index.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,6 @@ export interface vtkColorTransferFunction extends vtkScalarsToColors {
269269
*/
270270
fillFromDataPointer(nb: number, ptr: any): void;
271271

272-
/**
273-
* Set the range of scalars being mapped.
274-
* @param {Number} min
275-
* @param {Number} max
276-
*/
277-
setMappingRange(min: number, max: number): void;
278-
279272
/**
280273
* Remove all points out of the new range, and make sure there is a point at
281274
* each end of that range.

Sources/Rendering/Core/Renderer/index.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,32 @@ export interface vtkRenderer extends vtkViewport {
628628
* Not Implemented yet
629629
*/
630630
visibleVolumeCount(): any;
631+
632+
/**
633+
* Set the viewport background.
634+
*
635+
* @param {Number} r Defines the red component (between 0 and 1).
636+
* @param {Number} g Defines the green component (between 0 and 1).
637+
* @param {Number} b Defines the blue component (between 0 and 1).
638+
* @param {Number} b Defines the alpha component (between 0 and 1).
639+
*/
640+
setBackground(r: number, g: number, b: number, a: number): boolean;
641+
642+
/**
643+
* Set the viewport background.
644+
*
645+
* @param {Number} r Defines the red component (between 0 and 1).
646+
* @param {Number} g Defines the green component (between 0 and 1).
647+
* @param {Number} b Defines the blue component (between 0 and 1).
648+
*/
649+
setBackground(r: number, g: number, b: number): boolean;
650+
651+
/**
652+
* Set the viewport background.
653+
*
654+
* @param {Number[]} background The RGB color array.
655+
*/
656+
setBackground(background: number[]): boolean;
631657
}
632658

633659
/**

0 commit comments

Comments
 (0)