<div class="gmail_quote">On Sat, Aug 15, 2009 at 8:56 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="gmail_quote"><div class="gmail_quote">On Fri, Aug 14, 2009 at 11:38 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<div><br>
@Bill, I have no idea about wrapping - so if someone sees a problem can
you please take a look? Was there a reason that this const get method
was omited in the first place?</div></div></div></blockquote><div><br>As Bill already mentioned, VTK is not const correct. The library predates const support in all compilers, I think. <br><br>There are issues with wrapping (some wrapped languages have no notion of const). And VTK's wrapper is more arcane than ITK's swig based wrapper, its going to choke on it.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div class="gmail_quote"><div><br>
<br>
I am a bit confused about the ObjectMacros. In vtkSetGet.h, it says
vtkSetObjectMacro should be used in the h file and vtkCxxSetObjectMacro
shoulnd be used in the cxx file. But the comment for
vtkCxxSetObjectMacro says you have to actually put<br>
virtual void Set"name"("type" *);<br>
in the header file... so then what would be the use of vtkSetObjectMacro? and why is there no vtkCxxGetObjectMacro?</div></div></div></blockquote><div><br>virtual void Set#name(type*) in the header and vtkCxxSetObjectMacro in the implementation file is the preferred way. It avoids the necessity of including the "type.h" header from the class's header file. VTK uses forward declarations in header files to improve build times. <br>
<br>vtkSetObjectMacro is there for Backward compatibility reasons and for some unavoidable use cases.<br><br>--<br>karthik<br></div></div><br>