<br><br><div><span class="gmail_quote">On 4/18/06, <b class="gmail_sendername">Marc Cotran</b> &lt;<a href="mailto:marc@cotran.ca">marc@cotran.ca</a>&gt; wrote:</span><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<br>I'm pretty sure you can't subclass vtkObjects like that. You need to<br>include some vtk implementation details like:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;vtkTypeRevisionMacro(MyActor,&nbsp;&nbsp;vtkActor);<br><br>Put the above line in your public section. Then in the implementation
<br>file put:<br><br>vtkCxxRevisionMacro(MyActor, &quot;1&quot;);<br>vtkStandardNewMacro(MyActor);<br><br>just after your headers. You may need to include vtkObjectFactory as well.<br><br>I think this will solve your problem.
<br><br>Marc</blockquote><div><br>
Hmmm.. I'd be flippin' burgers if it weren't for you Marc =-)<br>
<br>
anyway.. still no luck. I did realize I have no idea what I'm doing so I went and read some sources,<br>
and I've made my subclass as similar as vtkFollower (which is a working subclass of vtkActor), but I'm<br>
getting the same effect.<br>
<br>
The object is there but is invisible.. it does not get rendered. I've searched vtkuser-archives but have<br>
found nothing new.<br>
<br>
VTK is really very, very nice, but a bit steep I must say.<br>
I really appreciate all the help I'm getting here!<br>
</div></div><br>
<br>
/***&nbsp; vtkPigment.h ***/<br>
<br>
#ifndef __vtkPigment_h<br>
#define __vtkPigment_h<br>
#include &quot;vtkActor.h&quot;<br>
<br>
class VTK_RENDERING_EXPORT vtkPigment : public vtkActor<br>
{<br>
public:<br>
&nbsp;&nbsp; vtkTypeRevisionMacro(vtkPigment,vtkActor);<br>
&nbsp;&nbsp; static vtkPigment *New();<br>
protected:<br>
&nbsp;&nbsp; vtkPigment(){}<br>
&nbsp;&nbsp; ~vtkPigment(){}<br>
};<br>
<br>
#endif<br>
<br>
/*** vtkPigment.cpp ***/<br>
<br>
#include &quot;vtkPigment.h&quot;<br>
#include &quot;vtkObjectFactory.h&quot;<br>
<br>
vtkCxxRevisionMacro(vtkPigment, &quot;$Revision: 1.45 $&quot;);<br>
vtkStandardNewMacro(vtkPigment);<br>
<br>
/*************************/<br>
<br>
<br>
Cheers!!<br>-- <br><a href="mailto:stoptv@gmail.com">stoptv@gmail.com</a><br>
<br>