[Paraview] vtkUniformGrid::SetDimensions(int[3])

Berk Geveci berk.geveci at gmail.com
Mon Jul 11 11:57:17 EDT 2005


This is weird. vtkUniformGrid is now a subclass of vtkImageData and it
should inherit SetDimensions() from superclass. Am I missing something
here?

On 7/11/05, Randy Hudson <hudson at mcs.anl.gov> wrote:
> 
> 
> In the 07/07/2005 CVS distribution of paraview, SetDimensions is no longer
> defined in vtkUniformGrid, but it still is in vtkImageData.
> 
> Though it should not be a problem, I'm getting an undefined reference (see the
> error statement, below) for it in a statement in which I call it as
> uniform_grid_pointer->SetDimensions.  The library that includes the call is
> "libFlashVTKComponents.so".  Here's the block where it's called:
>    func(vtkUniformGrid* ug){
>    int celldims[3];
>    if (dataset.GetDataLocation() == LocPoint) {
>       ug->SetDimensions(celldims);
>    } else if (dataset.GetDataLocation() == LocCell) {
>       for (int i=0; i<3; i++) {
>       celldims[i]++;
>    }
>       ug->SetDimensions(celldims);
>    }
>    }
> 
> I'm calling it with the correct argument.
> 
> And, the libraries appear in the link statement in the correct order for
> resolving this (see the link statement below).
> 
> Should the function still be defined in vtkUniformGrid?
> 
> Thanks.
> 
> Randy Hudson.
> 
> 
> 
> 
> 
> 
> Building executable
> /home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/bin/paraview...
> g++       -Wno-deprecated -fPIC  ParaView.o    -o
> /home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/bin/paraview
> -rdynamic
> -L/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/bin
> -L/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/Utilities/TclTk/tcl8.4.5/unix
> -L/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/Utilities/TclTk/tk8.4.5/unix
> -L/home/hudson/Projects/PV2.0.0_FlashReader/FlashHDF5/lib
> -L/home/hudson/Projects/PV2.0.0_FlashReader/FlashVTKComponents/lib
> -L/soft/mpich-gm-1.2.5..10-gcc-r1a/lib -L/opt/gm/lib -L/usr/X11R6/lib
> -lvtkKWParaViewCS -lvtkClientServer -lvtkKWParaView -lKWWidgets
> -lvtkPVServerManagerTCL -lvtkPVServerManager -lvtkPVServerCommonTCL
> -lvtkCommonTCL -ltcl8.4 -ltk8.4 -lvtkPVFiltersCS -lvtkPVFilters
> -lvtkXdmfCS -lvtkXdmf -lXdmf -lvtkWidgetsCS -lvtkWidgets -lSPCTH
> -lFlashHDF5 -lFlashVTKComponents -licet_mpi -licet_strategies -licet -lGLU
> -lvtkVolumeRenderingCS -lvtkVolumeRendering -lvtkPVCommonCS -lvtkPVCommon
> -lKWCommon -lvtkMPEG2Encode -lvtksys -lvtkhdf5 -lm -ldl -lvtkParallelCS
> -lvtkParallel -lmpich -lgm -lvtkHybridCS -lvtkHybrid -lvtkRenderingCS
> -lvtkRendering -lvtkftgl -lvtkfreetype -lGL -lXt -lSM -lICE -lSM -lICE
> -lSM -lICE -lX11 -lXext -lX11 -lXext -lX11 -lXext -lvtkGenericFilteringCS
> -lvtkGenericFiltering -lvtkGraphicsCS -lvtkGraphics -lvtkImagingCS
> -lvtkImaging -lvtkIOCS -lvtkIO -lvtkDICOMParser -lvtkpng -lvtktiff
> -lvtkzlib -lvtkjpeg -lvtkexpat -lvtkFilteringCS -lvtkFiltering
> -lvtkCommonCS -lvtkClientServer -lvtkCommon -lpthread -ldl -lm
> -Wl,-rpath,/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/bin:/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/Utilities/TclTk/tcl8.4.5/unix:/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/Utilities/TclTk/tk8.4.5/unix:/home/hudson/Projects/PV2.0.0_FlashReader/FlashHDF5/lib:/home/hudson/Projects/PV2.0.0_FlashReader/FlashVTKComponents/lib:/soft/mpich-gm-1.2.5..10-gcc-r1a/lib:/opt/gm/lib:/usr/X11R6/lib
> /home/hudson/Projects/PV2.0.0_FlashReader/FlashVTKComponents/lib/libFlashVTKComponents.so:
> undefined reference to `vtkUniformGrid::SetDimensions(int*)'
> collect2: ld returned 1 exit status
> make[5]: ***
> [/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/bin/paraview]
> Error 1
> make[5]: Leaving directory
> `/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/GUI/Client'
> make[4]: *** [default_target] Error 2
> make[4]: Leaving directory
> `/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/GUI/Client'
> make[3]: *** [default_target_Client] Error 2
> make[3]: Leaving directory
> `/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/GUI'
> make[2]: *** [default_target] Error 2
> make[2]: Leaving directory
> `/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm/GUI'
> make[1]: *** [default_target_GUI] Error 2
> make[1]: Leaving directory
> `/home/hudson/Software/ParaView_CVS_07072005/build_flashreader_gm'
> make: *** [default_target] Error 2
> 
> 
> 
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list