[vtk-developers] VTK's #define policy?
Dean Inglis
dean.inglis at on.aibn.com
Tue Mar 18 11:08:24 EST 2003
Hi all,
I have been implementing a number of widgets lately
that rely on an external vtkPlaneSource to tag onto:
e.g., ruler widget, rectangular ROI widget, (vtkSplineWidget
is one in VTK). These make use of the (same) following #defines in
their respective headers:
#define VTK_PROJECTION_YZ 0
#define VTK_PROJECTION_XZ 1
#define VTK_PROJECTION_XY 2
#define VTK_PROJECTION_OBLIQUE 3
Should these be placed in a common shared location?
Furthermore, most widgets have something like:
//BTX - manage the state of the widget
int State;
enum WidgetState
{
Start=0,
Moving,
Scaling,
Spinning,
Outside
};
//ETX
Would it be advantageous/more efficient/cleaner to put one
enum ivar in vtk3DWidget.h ?
Dean
More information about the vtk-developers
mailing list