<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Hans,</div><div><br></div><div>From what I understand, the purpose of the GetModifiable macro is to provide both non-const and const versions of the function in the case that the code author wants to provide read/write access to the ivar.</div><div><br></div><div>I believe that the PolyLineParametricPath class only wants to provide read-only access to the m_VertexList ivar as the comment says:</div><div><br></div><div>/** Return the container of Vertices as a const object. */</div><div><br></div><div>Regards,</div><div><br></div><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Ho Cheung</div><div>Research Assistant</div><div>Bio-Image Analytics Laboratory - University of Houston</div><div>(775) 388-2368</div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Mar 26, 2013, at 2:52 PM, "Johnson, Hans J" <<a href="mailto:hans-johnson@uiowa.edu">hans-johnson@uiowa.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<div style="word-wrap: break-word; font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Cheung,</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Regarding the doxygen generated code, I am not familiar with how to accomplish what you request. </div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223); ">
<span style="font-weight:bold">From: </span>Ho Cheung <<a href="mailto:hocheung20@gmail.com">hocheung20@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, March 26, 2013 2:46 PM<br>
<span style="font-weight:bold">To: </span>Hans Johnson <<a href="mailto:hans-johnson@uiowa.edu">hans-johnson@uiowa.edu</a>><br>
<span style="font-weight:bold">Subject: </span>08df6af - ENH: Get function accessible from const objects<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap:break-word">
<div>Hi Hans,</div>
<div><br>
</div>
<div>I was looking at the ITK nightly documentation and noticed that the GetVertexList() function is gone.</div>
<div><br>
</div>
<div>Here it is in the ITK4.3.0 documentation: <a href="http://www.itk.org/Doxygen43/html/classitk_1_1PolyLineParametricPath.html#acaed5e0ed9c07fb5cb464fb7c33a4383">http://www.itk.org/Doxygen43/html/classitk_1_1PolyLineParametricPath.html#acaed5e0ed9c07fb5cb464fb7c33a4383</a></div>
<div><br>
</div>
<div>This had me scratching my head for quite a while until I realized that the function is generated via a macro. </div>
<div><br>
</div>
<div>Here what happens to it in the nightly documentation:</div>
<div><br>
</div>
<div>Here it is in the ITK nightly documentation: <a href="http://www.itk.org/Doxygen/html/classitk_1_1PolyLineParametricPath.html#a288d6d3994677ffda85fb90fbe57ce51">http://www.itk.org/Doxygen/html/classitk_1_1PolyLineParametricPath.html#a288d6d3994677ffda85fb90fbe57ce51</a></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>With the power of gitk, I found commit 08df6af and noticed you introduced a series of changes to the macros, introducing the GetModifiableObjectMacro.</div>
<div><br>
</div>
<div>In particular I have 2 questions:</div>
<div><br>
</div>
<div>1. Why was GetVertexList changed from Const to Modifiable?</div>
<div>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.</div>
<div><br>
</div>
<div>Thanks for your time,</div>
<div><br>
</div>
<div>Ho Cheung</div>
<div>
<div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word; ">
<div>Research Assistant</div>
<div>Bio-Image Analytics Laboratory - University of Houston</div>
<div>(775) 388-2368</div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</div>
</span><br>
<br>
<hr>
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.
<hr>
</div>
</blockquote></div><br></body></html>