[Insight-developers] 08df6af - ENH: Get function accessible from const objects

Matt McCormick matt.mccormick at kitware.com
Tue Mar 26 16:00:02 EDT 2013


I agree.  Here is an unverified patch:

  http://review.source.kitware.com/#/c/10465/

Thanks,
Matt

On Tue, Mar 26, 2013 at 7:56 PM, Bradley Lowekamp
<blowekamp at mail.nih.gov> wrote:
> Hello,
>
> I think the macro just needs to be added here:
>
> https://github.com/Kitware/ITK/blob/master/Utilities/Doxygen/doxygen.config.in#L1621
>
> Brad
>
> On Mar 26, 2013, at 3:52 PM, "Johnson, Hans J" <hans-johnson at uiowa.edu>
> wrote:
>
> Cheung,
>
> The macro for Modifiable provides both the const and the non-const version
> of the Get function for more complete API consistency across the toolkit.
>
> Regarding the doxygen generated code,  I am not familiar with how to
> accomplish what you request.
>
> From: Ho Cheung <hocheung20 at gmail.com>
> Date: Tuesday, March 26, 2013 2:46 PM
> To: Hans Johnson <hans-johnson at uiowa.edu>
> Subject: 08df6af - ENH: Get function accessible from const objects
>
> Hi Hans,
>
> I was looking at the ITK nightly documentation and noticed that the
> GetVertexList() function is gone.
>
> Here it is in the ITK4.3.0 documentation:
> http://www.itk.org/Doxygen43/html/classitk_1_1PolyLineParametricPath.html#acaed5e0ed9c07fb5cb464fb7c33a4383
>
> This had me scratching my head for quite a while until I realized that the
> function is generated via a macro.
>
> Here what happens to it in the nightly documentation:
>
> Here it is in the ITK nightly documentation:
> http://www.itk.org/Doxygen/html/classitk_1_1PolyLineParametricPath.html#a288d6d3994677ffda85fb90fbe57ce51
>
>
>
> With the power of gitk, I found commit 08df6af and noticed you introduced a
> series of changes to the macros, introducing the GetModifiableObjectMacro.
>
> In particular I have 2 questions:
>
> 1. Why was GetVertexList changed from Const to Modifiable?
> 2. The documentation now shows the macro as the definition instead of the
> function generated by the macro. Can this be fixed in the
> doxygen.configure.in? I'm not quite familiar with that part of ITK.
>
> Thanks for your time,
>
> Ho Cheung
> Research Assistant
> Bio-Image Analytics Laboratory - University of Houston
> (775) 388-2368
>
>
>
>
>
>
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by the
> Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential
> and may be legally privileged.  If you are not the intended recipient, you
> are hereby notified that any retention, dissemination, distribution, or
> copying of this communication is strictly prohibited.  Please reply to the
> sender that you have received the message in error, then delete it.  Thank
> you.
> ________________________________
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list