[vtk-developers] Const arrays in vtkSetVector*Macro ( Was: the hints file )
Andy Cedilnik
andy.cedilnik at kitware.com
Mon Nov 25 07:48:42 EST 2002
Hi All,
That said, could we modify all the
virtual void SetSomething(type*)
to
virtual void SetSomething(const type*)?
I added standard colors to Common/Testing/Cxx and the type had to be
static float color[3] instead of static const float color[3].
So, comments?
Andy
On Sun, 2002-11-24 at 13:44, John Biddiscombe wrote:
> In addition to what David wrote, here's ome more...
>
> ABCD
>
> D = 1 - float
> 2 - void
> 3 - char
> 4 - int
> 5 - short
> 6 - long
> 7 - double
> 8 - VTK instance
> 9 - other
>
> C = 1 - unsigned
> 0 - otherwise
>
> B = 0 - nothing
> 1 - &
> 2 - &&
> 3 - *
> 4 - &*
> 5 ... (usually only 0, 1 and 3 are used)
>
> A = 0 -nothing,
> 1 - const,
> 2 - static,
> 3 - static const,
> 5 - a user function (e.g. void SetStartMethod(void (*f)(void *), void
> *arg);)
>
> examples
>
> 302 void*
> 2308 static vtkObject*
> 303 char*
> 301 float*
> 1314 const unsigned int*
More information about the vtk-developers
mailing list