Are there const get macros? (I didn't see any in vtkSetGet.h)<br><br>I have done this:<br>class vtkRay<br>{<br>vtkGetVector3Macro(Origin,double);<br>}<br><br>and later accessed it with;<br>void MyFunc(const vtkRay* R)<br>
{<br>const double Ray1P1[3] = R->GetOrigin();<br>}<br><br>and it is saying that I can't call GetOrigin on R because R is const and GetOrigin() is not a const function.<br><br>Should I just define my own Get functions when they need to be const?<br>
<br clear="all">Thanks,<br><br>David<br>