# about RequestData

**URL:** https://discourse.vtk.org/t/about-requestdata/5925
**Category:** Support
**Created:** [June 3, 2021, 8:51am UTC](https://discourse.vtk.org/t/about-requestdata/5925 "2021-06-03T08:51:59Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Hyunwoo\_Kim](https://discourse.vtk.org/user_avatar/discourse.vtk.org/hyunwoo_kim/32/3465_2.png) [@Hyunwoo\_Kim](https://discourse.vtk.org/u/Hyunwoo_Kim)
#### Post date: [June 4, 2021, 7:23pm UTC](https://discourse.vtk.org/t/about-requestdata/5925/7 "2021-06-04T19:23:53Z")

</div>

Thanks, LineSource works correctly!  
I added this-\>SetNumberOfInputPorts(0); code in the class.

In addition, while converting my project, there are some errors(2 or 3 errors maybe?).

// 3dWndData performs the main process for rendering objects.  
// ActorVOI override Actor class, and Actor class custom class has inputDataConnection for the mapper

1. m\_actorPlaneAxial does not render as well. I changed the  
code dataAxial-\>SetScalarTypeToShort();  
to  
dataAxial-\>SetScalarType(VTK\_SHORT, dataAxial-\>GetInformation());

2. ActorVOI()-\>SetVOI() function did not render in 3D view

[2DImage&3DPolydata.zip](https://discourse.vtk.org/uploads/short-url/1utefGgFELFHGaAc6w5jXiWXYMU.zip) (9.6 KB)

===================================================================

// After rendering actorPlanalAxial, coronal, sagittal,  
// ActorVOI is rendered (if they work correctly)

this is debugging message before rendering actorPlanal Axial.  
is that reason why actorPlanalAxial does not render on the window?

 ![image](https://discourse.vtk.org/uploads/default/original/2X/5/5d22e5eaaf9b2faf63945f6b9da23480e02c240f.png)

And this is another debugging message before rendering ActorVOI()-\>SetVOI(3D polydata)  
Is that related to the migration of the VTK? or am I missing something?

 ![image](https://discourse.vtk.org/uploads/default/original/2X/b/be0a46e3cabe3308df113a244d92d3c82772d23c.png)

Additionally, I put the vtkImagedata\* to vtkContourFilter as a inputdata, but why it occurs a building error?

 ![image](https://discourse.vtk.org/uploads/default/original/2X/c/c6f32a81d335a11574c2778126a16f646e6d445d.png)  
First error message says It cannot conver from vtkImageData\* to vtkDataObject \*  
Second error message says there is no Instunsce which matchs to the parameter lists in the overrided function vtkContourFilter::SetInputData

===================================================================

Thank you for your support, and I look forward to hearing from you, sir!.

---

_[View the full topic](https://discourse.vtk.org/t/about-requestdata/5925)._
