[vtk-developers] Another 'major' change in vtkSetGet
Andy Cedilnik
Andy.Cedilnik at kitware.com
Fri Feb 8 10:16:25 EST 2002
At 10:05 AM 2/8/2002 -0500, Lisa S. Avila wrote:
>Hi Andy,
>
>I think this is a good idea - but I don't like the names. I would think the
>"implementation" macro would go in the cxx file not the header. Also, why
>do we need any macro in the header file now - we would simply declare the
>method, right?
>of the vtkSetObjectMacro. I added macro vtkSetObjectImplementationMacro,
Hmm, this is what I said:
>>which solves that problem. The way it works is that you put the actual
>>prototype for the set method:
>>
>> void SetTransformMatrix(vtkMatrix4x4*);
>>
>>to header file and put the macro in the c++ file:
>>
>>vtkSetObjectImplementationMacro(vtkLight,TransformMatrix,vtkMatrix4x4);
There was a suggestion of changing the name to:
vtkSetObjectCxxMacro or vtkCxxSetObjectMacro
If you all agree, I will make the change.
Andy
More information about the vtk-developers
mailing list