[vtkusers] Problem on using vtkSetMacro

Glen Lehmann glehmann at imaging.robarts.ca
Thu May 20 12:41:56 EDT 2004


Hi Qi,

vtkSetMacro is used in the header files of vtk classes.  In this case 
it creates SetDimensionality(int);

so you should be calling:

gaussian->SetDimensionality(3);

Cheers,
Glen

On May 20, 2004, at 12:34 PM, Qi Wei wrote:

>
> Hi dear all,
>
> When I tried to use vtkSetMacro method in c++ as follows:
>
> 	vtkImageGaussianSmooth gaussian = vtkImageGaussianSmooth::New();
> 	gaussian.vtkSetMacro(Dimensionality, 3);
>
> I got error message "error: syntax error: identifier 
> "SetDimensionality".
> I've never succeeded to use either the get or set Macro method. I am
> wondering what's the correct way to do it..
>
>
> Thanks, Qi
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list