[vtkusers] Re: Re: [vtkusers] problem of using vtkPLYReader
shuang
shuang112 at 163.com
Thu Apr 10 06:49:56 EDT 2003
Hi,
I installed the office release of VTK: VTK 4.2
I did try "vtkPLYReader *r = new vtkPLYReader;",but the make error message said that vtkPLYReader is protected.
Shuang
> Shuang,
> Ok thanks for providing these infos, anyway I still need to know the
> exact version of VTK. And do you use a build or installed version ?
> I am using VTK from a fresh CVS and everything went smoothly.
>
> To know the exact version you could just do:
>
> grep VERSION VTK/CMakeLists.txt
>
> ---
> as a try, you could try replacing:
>
> vtkPLYReader *r=vtkPLYReader::New();
> by
> vtkPLYReader *r= new vtkPLYReader;
>
> just to see if it works. (I know this is bad for parsing).
>
> ---
> Also if you have built the python/tcl binding you can try:
> $python
> > import vtk
> > r = vtk.vtkPLYReader()
>
>
> thanks,
> mathieu
>
> shuang wrote:
> > Dear all:
> >
> > I'm a newcomer of VTK.I have problem of using vtkPLYReader.
> > I write a program to read and view the PLY model,but there is something wrong with vtkPLYReader.when I make the project,there is a make error:
> >
> > undefined reference to 'vtkPLYReader::New()'
> >
> > I installed VTK 4 correctly under Redhat8.0;
> > I can complie and run the examples of VTK;
> > I use cmake generate the makefile;
> >
> > My code with vtkPLYReader is as follow:
> >
> > ...
> > #include "vtkPLYReader.h"
> > ...
> > int main( int argc, char *argv[] )
> > {
> > ...
> > vtkPLYReader *r=vtkPLYReader::New();
> > ...
> > }
> >
> > I can get the .o correctly.
> >
> > if I just define the pointer and dont allocate memory as follow:
> >
> > vtkPLYReader *r;
> >
> > and use other method of vtkPLYReader such as SetFileName(),there is no error message when I build it.
> >
> > Can you tell me the reason and how to solve it?
> >
> > Thanks in advance!
> >
> > Shuang
> >
> >
> >
> > =============================================================
> > ÕæÕýVIPÏíÊÜ£¬ÏëÔõô»¨£¬¾ÍÔõô»¨£¡ http://vip.163.com
> > Äê¶ÈÊ®¼ÑÅ®ÐÔÕ¾µãÆÀÑ¡¿ªÈüÁË£¡ http://www.nease.net
> > °Ù·Ö°ÙÅ®ÓÑ - ´º¼¾Ñ¡ÃÀ»î¶¯! http://love.163.com
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >
>
>
> --
> Mathieu Malaterre
> CREATIS
> 28 Avenue du Doyen LEPINE
> B.P. Lyon-Montchat
> 69394 Lyon Cedex 03
> http://www.creatis.insa-lyon.fr/~malaterre/
>
>
=============================================================
ÕæÕýVIPÏíÊÜ£¬ÏëÔõô»¨£¬¾ÍÔõô»¨£¡ http://vip.163.com
Äê¶ÈÊ®¼ÑÅ®ÐÔÕ¾µãÆÀÑ¡¿ªÈüÁË£¡ http://www.nease.net
°Ù·Ö°ÙÅ®ÓÑ - ´º¼¾Ñ¡ÃÀ»î¶¯! http://love.163.com
More information about the vtkusers
mailing list