[vtk-developers] Added new helper class (vtkDataObjectTypes)

Mathieu Coursolle mcoursolle at rogue-research.com
Tue Mar 6 10:49:10 EST 2007


The update errors on Rogue's dashboard are something else.
A change in the CMakeFiles.txt conflicted with the CVS version.
 
However, I created an empty folder to check out the current CVS version
of VTK than build it. The error is something like this:

/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/
vtkDemandDrivenPipeline.cxx: In member function 'int
vtkDemandDrivenPipeline::ArrayIsValid(vtkDataArray*, vtkInformation*)':
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.cxx:
948: error: invalid use of undefined type 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.h:
26: error: forward declaration of 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.cxx:
948: error: invalid use of undefined type 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.h:
26: error: forward declaration of 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.cxx:
958: error: invalid use of undefined type 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.h:
26: error: forward declaration of 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.cxx:
969: error: invalid use of undefined type 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.h:
26: error: forward declaration of 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.cxx:
980: error: invalid use of undefined type 'struct vtkDataArray'
/Volumes/Extra/VTK/VTK20070305/VTK/Filtering/vtkDemandDrivenPipeline.h:
26: error: forward declaration of 'struct vtkDataArray'
make[2]: *** [Filtering/CMakeFiles/vtkFiltering.dir/
vtkDemandDrivenPipeline.o] Error 1
make[1]: *** [Filtering/CMakeFiles/vtkFiltering.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Mathieu

>I take that back... It's not only affecting you. It also shows up on
>several dashboards this morning.
>
>:-(
>
>Looks like those machines all belong to Rogue and there was some sort
>of CVS update issue.
>You guys have network issues yesterday / early this morning?
>
>
>D
>
>On 3/6/07, David Cole <david.cole at kitware.com> wrote:
>> What is the text of the actual compile error...? (If it is only
>> affecting  you, then it is probably an "incremental rebuild didn't
>> rebuild everything it should have" sort of problem...)
>>
>>
>> On 3/6/07, Mathieu Coursolle <mcoursolle at rogue-research.com> wrote:
>> > Hi,
>> >
>> > I just updated VTK from CVS, and I can't compile vtkDemandDrivenPipeline
>> > anymore. The error is that there is a foward declaration of vtkDataArray
>> > in the
>> > header file, but it is not include in the source file.
>> >
>> > According to the history, some include files were removed as
>> > vtkDataObjectTypes
>> > helper class was added to vtkDemandDrivenPipeline.cxx.
>> >
>> > Is it possible that one of those include files was including
vtkDataArray?
>> >
>> > According to the dashboard, it does not seem to affect other build
>machines.
>> > Does anybody has that same problem?
>> >
>> > Any restriction to commit #include "vtkDataArray.h" in
>> > vtkDemandDrivenPipeline?
>> >
>> > Thanks.
>> >
>> > Mathieu
>> >
>> > --
>> > ____________________________________________________________
>> > Mathieu Coursolle                   mcoursolle at rogue-research.com
>> > Rogue Research                      www.rogue-research.com
>> > Montréal, Québec, Canada
>> >
>> > >Hi Folks,
>> > >
>> > >I added a new helper class to cvs vtk called vtkDataObjectTypes. This
>> > >class makes it easy to convert between data object class names and
>> > >type ids (as defined in vtkType.h, for example VTK_POLY_DATA). It also
>> > >provides methods to instantiate data objects given a class name or a
>> > >type id. The API looks like this:
>> > >
>> > >  // Description:
>> > >  // Given an int (as defined in vtkType.h) identifier for a class
>> > >  // return it's classname.
>> > >  static const char* GetClassNameFromTypeId(int typeId);
>> > >
>> > >  // Description:
>> > >  // Given a data object classname, return it's int identified (as
>> > >  // defined in vtkType.h)
>> > >  static int GetTypeIdFromClassName(const char* classname);
>> > >
>> > >  // Description:
>> > >  // Create (New) and return a data object of the given classname.
>> > >  static vtkDataObject* NewDataObject(const char* classname);
>> > >
>> > >  // Description:
>> > >  // Create (New) and return a data object of the given type id.
>> > >  static vtkDataObject* NewDataObject(int typeId);
>> > >
>> > >Please keep in mind that this class has to be updated whenever a new
>> > >data type is added to vtkType.h.
>> > >
>> > >This functionality was duplicated in bunch of classes. I changed
>> > >whatever I could find to use vtkDataObjectTypes. Please update any
>> > >classes I missed.
>> > >
>> > >--
>> > > Berk Geveci
>> > > Kitware Inc.
>> > > 28 Corporate Drive
>> > > Clifton Park, NY, 12065
>> > >_______________________________________________
>> > >vtk-developers mailing list
>> > >vtk-developers at vtk.org
>> > >http://www.vtk.org/mailman/listinfo/vtk-developers
>> > >
>> >
>> >
>> >
>> > _______________________________________________
>> > vtk-developers mailing list
>> > vtk-developers at vtk.org
>> > http://www.vtk.org/mailman/listinfo/vtk-developers
>> >
>>
>





More information about the vtk-developers mailing list