<div>Hi vtk users,</div><div>   I want to add a vtkImageActor and a 3d volume to a single renderer. When I simply add both into a renderer, the image actor gets sized to occupy most of the region in window and the 3d actor is getting very small. </div>
<div>I guess I should define a space for both the actors in the window and add accordingly. </div><div>How it can be done and also if both actors are placing in predefined area, how the image will be resized? Will it be resized to fit in the space provided? </div>
<div>Code snippet is given below</div><div><br></div><div><div>        vtkSmartPointer&lt;vtkJPEGReader&gt; jPEGReader = vtkSmartPointer&lt;vtkJPEGReader&gt;::New();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>jPEGReader-&gt;SetFileName(&quot;D:\\test1.jpg&quot;);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>jPEGReader-&gt;Update();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>// Create an actor</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkSmartPointer&lt;vtkImageActor&gt; actor =  vtkSmartPointer&lt;vtkImageActor&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>actor-&gt;SetInput(jPEGReader-&gt;GetOutput());</div></div><div><br></div><div>        vtkSmartPointer&lt;vtkSphereSource&gt; sphereSource1 = vtkSmartPointer&lt;vtkSphereSource&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>sphereSource1-&gt;SetCenter(0.0, 0.0, 0.0);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>sphereSource1-&gt;SetRadius(4.0);</div><div>
<span class="Apple-tab-span" style="white-space:pre">        </span>sphereSource1-&gt;Update();</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkSmartPointer&lt;vtkPolyDataMapper&gt; mapper1 = vtkSmartPointer&lt;vtkPolyDataMapper&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>mapper1-&gt;SetInput(sphereSource1-&gt;GetOutput());</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkSmartPointer&lt;vtkActor&gt; actor1 = vtkSmartPointer&lt;vtkActor&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>actor1-&gt;SetMapper(mapper1);</div><div><br></div><div>        vtkSmartPointer&lt;vtkRenderer&gt; renderer = vtkSmartPointer&lt;vtkRenderer&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow = vtkSmartPointer&lt;vtkRenderWindow&gt;::New();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>renderWindow-&gt;AddRenderer(renderer);</div>
<div>  </div><div>        renderer-&gt;AddActor(actor1);</div><div>        renderer-&gt;AddActor(actor);</div><div><br></div><div><br></div><div>Please help...Thanks in advance..</div><div>    Hari</div>