[vtkusers] Re: help for translating tcl to c++
Amy Squillacote
amy.squillacote at kitware.com
Mon Jun 11 11:21:29 EDT 2007
Hi Quan,
Please keep the discussion on the vtkusers list rather than emailing me
directly. That way the discussion is archived and other people can
contribute to finding a solution to your problem.
The problem of not finding the data could be one of two things.
1) Did you download VTKData? You can get it from the VTK download web
page or from CVS: http://www.vtk.org/get-software.php.
2) Many of the Tcl scripts require you to pass "-D /path/to/VTKData" as
a command line argument when you are running the script. If you do not
pass one in, it will not know where to find VTKData on your machine. The
other option is to set VTK_DATA_ROOT to the path to VTKData on your machine.
If you have specific questions about converting a Tcl example to C++,
please ask your questions on the vtkusers list.
- Amy
qxue at jouy.inra.fr wrote:
> Hi, Amy:
>
> Thank you for your letter.
>
> I am a beginner to VTK but have some experience in ITK, and then I think
> SetInputConnection is the same as SetInput.
>
> In my computer, many tcl examples can not be used for lacking of data
> "ERROR: In C:\VTK\IO\vtkDEMReader.cxx, line 164
> vtkDEMReader (0x02F15C98): File
> C:\VTK\Wrapping\Tcl\vtkbase\..\..\..\..\VTKData/Data/SainteHelens.dem not
> found"
> Is the reason VTK4.4 instead of VTK5.0?
>
> I want to use the vtk to overlay two color images to see the compared result,
> so I want to use the vtkImageMask for it. Is it possible?
>
> I am familiar with the C++ so that I want to write VTK program in C++.
>
> I can use the examples in "VTK\Examples\Tutorial". They are good examples to
> learn VTK. But for image processing, in "VTK\Examples\ImageProcessing" there
> are not examples written in C++, then i rewrited one based on the tcl file.
>
> Until now, I failed to do so for vtkPolyData can not be transfered to
> vtkImageData.
>
> Would you help me to apply an example about image processing in C++?
>
> Best regards,
>
> Quan
>
>
> Selon Amy Squillacote <amy.squillacote at kitware.com>:
>
>
>> Hi Quan,
>>
>> If you're using VTK 4.4, you should use the SetInput/GetOutput methods.
>> The first VTK release using the SetInputConnection/GetOutputPort methods
>> was VTK 5.0.
>>
>> - Amy
>>
>> qxue at jouy.inra.fr wrote:
>>
>>> Hello, all:
>>> When I use the TCL examples by vtk.exe (VTK4.4+XP), there is always an
>>>
>> error
>>
>>> in startup script:
>>> "object named:imageGrid, could not find requested method:GetOutputPort or
>>>
>> the
>>
>>> method was called with incorrect arguments"
>>> What is wrong?
>>> Quan
>>>
>>>
>>> _______________________________________________
>>> This is the private VTK discussion list.
>>> Please keep messages on-topic. Check the FAQ at:
>>>
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>
>>>
>> --
>> Amy Squillacote
>> Kitware, Inc.
>> 28 Corporate Drive
>> Clifton Park, NY 12065
>> Phone: (518) 371-3971 x106
>>
>>
>>
>
>
>
>
--
Amy Squillacote
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
Phone: (518) 371-3971 x106
More information about the vtkusers
mailing list