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

David Cole david.cole at kitware.com
Tue Mar 6 10:33:40 EST 2007


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