<br><br><div><span class="gmail_quote">On 4/18/06, <b class="gmail_sendername">Marc Cotran</b> <<a href="mailto:marc@cotran.ca">marc@cotran.ca</a>> 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> vtkTypeRevisionMacro(MyActor, vtkActor);<br><br>Put the above line in your public section. Then in the implementation
<br>file put:<br><br>vtkCxxRevisionMacro(MyActor, "1");<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>
/*** vtkPigment.h ***/<br>
<br>
#ifndef __vtkPigment_h<br>
#define __vtkPigment_h<br>
#include "vtkActor.h"<br>
<br>
class VTK_RENDERING_EXPORT vtkPigment : public vtkActor<br>
{<br>
public:<br>
vtkTypeRevisionMacro(vtkPigment,vtkActor);<br>
static vtkPigment *New();<br>
protected:<br>
vtkPigment(){}<br>
~vtkPigment(){}<br>
};<br>
<br>
#endif<br>
<br>
/*** vtkPigment.cpp ***/<br>
<br>
#include "vtkPigment.h"<br>
#include "vtkObjectFactory.h"<br>
<br>
vtkCxxRevisionMacro(vtkPigment, "$Revision: 1.45 $");<br>
vtkStandardNewMacro(vtkPigment);<br>
<br>
/*************************/<br>
<br>
<br>
Cheers!!<br>-- <br><a href="mailto:stoptv@gmail.com">stoptv@gmail.com</a><br>
<br>