@@ -7,6 +7,7 @@ import vtkProp3D from '../Prop3D';
77import vtkViewport , { IViewportInitialValues } from '../Viewport' ;
88import vtkVolume from '../Volume' ;
99import vtkTexture from '../Texture' ;
10+ import vtkActor from '../Actor' ;
1011
1112
1213export interface IRendererInitialValues extends IViewportInitialValues {
@@ -49,11 +50,11 @@ export interface vtkRenderer extends vtkViewport {
4950 *
5051 * @param actor
5152 */
52- addActor ( actor : vtkProp3D ) : boolean ;
53+ addActor ( actor : vtkActor ) : boolean ;
5354
5455 /**
5556 * Add a light to the list of lights.
56- * @param light
57+ * @param light The vtkLight instance.
5758 */
5859 addLight ( light : vtkLight ) : void ;
5960
@@ -63,8 +64,8 @@ export interface vtkRenderer extends vtkViewport {
6364 allocateTime ( ) : any ;
6465
6566 /**
66- *
67- * @param volume
67+ * Add a volume to the renderer..
68+ * @param volume The vtkVolume instance.
6869 */
6970 addVolume ( volume : vtkVolume ) : boolean ;
7071
@@ -92,13 +93,13 @@ export interface vtkRenderer extends vtkViewport {
9293 * Return any actors in this renderer.
9394 *
9495 */
95- getActors ( ) : vtkProp3D [ ] ;
96+ getActors ( ) : vtkActor [ ] ;
9697
9798 /**
9899 * Return any actors in this renderer.
99100 *
100101 */
101- getActorsByReference ( ) : vtkProp3D [ ] ;
102+ getActorsByReference ( ) : vtkActor [ ] ;
102103
103104 /**
104105 *
@@ -115,7 +116,7 @@ export interface vtkRenderer extends vtkViewport {
115116 *
116117 * @default null
117118 */
118- getBackgroundTexture ( ) : vtkTexture | null ;
119+ getBackgroundTexture ( ) : vtkTexture ;
119120
120121 /**
121122 *
@@ -472,9 +473,9 @@ export interface vtkRenderer extends vtkViewport {
472473
473474 /**
474475 *
475- * @param {vtkProp3D | null } actor
476+ * @param {vtkActor } actor
476477 */
477- removeActor ( actor : vtkProp3D | null ) : void ;
478+ removeActor ( actor : vtkActor ) : void ;
478479
479480 /**
480481 *
@@ -539,19 +540,23 @@ export interface vtkRenderer extends vtkViewport {
539540 viewToProjection ( x : number , y : number , z : number , aspect : number ) : number [ ] ;
540541
541542 /**
543+ * Automatically set up the camera based on the visible actors.
542544 *
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]
544549 */
545- resetCamera ( bounds ?: number [ ] ) : boolean ;
550+ resetCamera ( bounds ?: Bounds ) : boolean ;
546551
547552 /**
548- *
549- * @param {Number[] } [bounds]
553+ * Reset the camera clipping range based on a bounding box.
554+ * @param {Bounds } [bounds]
550555 */
551- resetCameraClippingRange ( bounds ?: number [ ] ) : boolean ;
556+ resetCameraClippingRange ( bounds ?: Bounds ) : boolean ;
552557
553558 /**
554- *
559+ * Get the number of visible actors.
555560 */
556561 visibleActorCount ( ) : void ;
557562
@@ -561,7 +566,7 @@ export interface vtkRenderer extends vtkViewport {
561566 updateGeometry ( ) : any ;
562567
563568 /**
564- *
569+ * Ask the active camera to do whatever it needs to do prior to rendering.
565570 */
566571 updateCamera ( ) : boolean ;
567572
@@ -573,7 +578,9 @@ export interface vtkRenderer extends vtkViewport {
573578 updateLightsGeometryToFollowCamera ( ) : void ;
574579
575580 /**
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).
577584 */
578585 updateLightGeometry ( ) : boolean ;
579586
0 commit comments