[Insight-users] itkSetMacro and itkGetMacro
Julien Jomier
julien.jomier at kitware.com
Tue Oct 17 04:14:23 EDT 2006
Hello Sonali,
The itkSet/GetMacro() works only with standard types (not pointers).
If you are using smart pointers to define the m_SpanningTree variable
then you can use the itkSet/GetObjectMacro().
Otherwise you will have to write your own Set/Get functions.
Let us know if you have any further problems,
Julien
Sonali Barua wrote:
> Hello,
>
> How should I use the itkGetMacro variables of a filter called lets say
> itkMST. I am writing a filter in which I have the private variable
> m_SpanningTree. I have a statement called
>
> ItkGetMacro(SpanningTree,ParentNodeType);
>
> In the .cxx file that I am using as an example I have written the statement:
> MST<ImageType,GraphType>
> ParentNodeType msp;
> msp= mst->GetSpanningTree();
>
> When I compile this it tells me that it can't recognise the
> operator=(ParentNodeType*).
>
> What exactly should I do to correct this?
>
> Sonali
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list