[vtk-developers] Proposed style changes
francois.bertel at kitware.com
Tue Oct 10 22:23:39 EDT 2006
1. vtkgl.h is a file generated in the build tree from
VTK/Utilities/ParseOGLExt/ParseOGLExt.cxx. It is not even in the source
tree (except if you built VTK in the source tree itself) and does not
define any class. So ParseOGLExt.cxx has to be changed instead (lines
611,612 and 696).
2. vtkCocoaGLView.h is an objective C header file.
#import "a.h" is equivalent to
# define __A_H
# include "a.h"
I think that's why there is no such #ifndef statement (and also there is
"@interface vtkCocoaGLView" instead of "class vtkCocoaGLView").
I have no objection for the other header files.
Glen Lehmann wrote :
> Hi All,
> This may seem a little on the nit-picky side but I would like to
> propose a few style changes to some of the vtk header files. I have
> an Xcode project that would be greatly simplified if all of the vtk
> header files stuck to the following convention:
> #ifndef __[vtkClassName]_h
> #define __[vtkClassName]_h
> class ...
> The following is a list of header files that deviate from this
> If there are no objections to these changes, I will commit the fixes
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
More information about the vtk-developers