@@ -7,6 +7,7 @@ import vtkProp3D from '../Prop3D';
7
7
import vtkViewport , { IViewportInitialValues } from '../Viewport' ;
8
8
import vtkVolume from '../Volume' ;
9
9
import vtkTexture from '../Texture' ;
10
+ import vtkActor from '../Actor' ;
10
11
11
12
12
13
export interface IRendererInitialValues extends IViewportInitialValues {
@@ -49,11 +50,11 @@ export interface vtkRenderer extends vtkViewport {
49
50
*
50
51
* @param actor
51
52
*/
52
- addActor ( actor : vtkProp3D ) : boolean ;
53
+ addActor ( actor : vtkActor ) : boolean ;
53
54
54
55
/**
55
56
* Add a light to the list of lights.
56
- * @param light
57
+ * @param light The vtkLight instance.
57
58
*/
58
59
addLight ( light : vtkLight ) : void ;
59
60
@@ -63,8 +64,8 @@ export interface vtkRenderer extends vtkViewport {
63
64
allocateTime ( ) : any ;
64
65
65
66
/**
66
- *
67
- * @param volume
67
+ * Add a volume to the renderer..
68
+ * @param volume The vtkVolume instance.
68
69
*/
69
70
addVolume ( volume : vtkVolume ) : boolean ;
70
71
@@ -92,13 +93,13 @@ export interface vtkRenderer extends vtkViewport {
92
93
* Return any actors in this renderer.
93
94
*
94
95
*/
95
- getActors ( ) : vtkProp3D [ ] ;
96
+ getActors ( ) : vtkActor [ ] ;
96
97
97
98
/**
98
99
* Return any actors in this renderer.
99
100
*
100
101
*/
101
- getActorsByReference ( ) : vtkProp3D [ ] ;
102
+ getActorsByReference ( ) : vtkActor [ ] ;
102
103
103
104
/**
104
105
*
@@ -115,7 +116,7 @@ export interface vtkRenderer extends vtkViewport {
115
116
*
116
117
* @default null
117
118
*/
118
- getBackgroundTexture ( ) : vtkTexture | null ;
119
+ getBackgroundTexture ( ) : vtkTexture ;
119
120
120
121
/**
121
122
*
@@ -472,9 +473,9 @@ export interface vtkRenderer extends vtkViewport {
472
473
473
474
/**
474
475
*
475
- * @param {vtkProp3D | null } actor
476
+ * @param {vtkActor } actor
476
477
*/
477
- removeActor ( actor : vtkProp3D | null ) : void ;
478
+ removeActor ( actor : vtkActor ) : void ;
478
479
479
480
/**
480
481
*
@@ -539,19 +540,23 @@ export interface vtkRenderer extends vtkViewport {
539
540
viewToProjection ( x : number , y : number , z : number , aspect : number ) : number [ ] ;
540
541
541
542
/**
543
+ * Automatically set up the camera based on the visible actors.
542
544
*
543
- * @param {Number[] } [bounds]
545
+ * The camera will reposition itself to view the center point of the actors,
546
+ * and move along its initial view plane normal (i.e., vector defined from
547
+ * camera position to focal point) so that all of the actors can be seen.
548
+ * @param {Bounds } [bounds]
544
549
*/
545
- resetCamera ( bounds ?: number [ ] ) : boolean ;
550
+ resetCamera ( bounds ?: Bounds ) : boolean ;
546
551
547
552
/**
548
- *
549
- * @param {Number[] } [bounds]
553
+ * Reset the camera clipping range based on a bounding box.
554
+ * @param {Bounds } [bounds]
550
555
*/
551
- resetCameraClippingRange ( bounds ?: number [ ] ) : boolean ;
556
+ resetCameraClippingRange ( bounds ?: Bounds ) : boolean ;
552
557
553
558
/**
554
- *
559
+ * Get the number of visible actors.
555
560
*/
556
561
visibleActorCount ( ) : void ;
557
562
@@ -561,7 +566,7 @@ export interface vtkRenderer extends vtkViewport {
561
566
updateGeometry ( ) : any ;
562
567
563
568
/**
564
- *
569
+ * Ask the active camera to do whatever it needs to do prior to rendering.
565
570
*/
566
571
updateCamera ( ) : boolean ;
567
572
@@ -573,7 +578,9 @@ export interface vtkRenderer extends vtkViewport {
573
578
updateLightsGeometryToFollowCamera ( ) : void ;
574
579
575
580
/**
576
- *
581
+ * Update the geometry of the lights in the scene that are not in world
582
+ * space (for instance, Headlights or CameraLights that are attached to the
583
+ * camera).
577
584
*/
578
585
updateLightGeometry ( ) : boolean ;
579
586
0 commit comments