<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<br>I needed to use an id with each actor in my app, so I did something
<br>like
<p>class myActor : public vtkActor
<br>{
<br> public:
<p> int id;
<p> myActor()
<br> {
<br>
id = 0;
<br> }
<p>};
<p>I tried the above with the Cone3 example; for some reason the cone doesnt
get
<br>rendered at all. I can tell the actor object is getting created
via the debugger.
<br>I did use the C++ new operator to create an instance of myActor
(I have subclassed
<br>other vtk objects like the vtkXRenderWindowInteractor in the past without
<br>any problems). Does someone have an idea what could be the problem?
<p> -- krs
<pre>--
K.R.Subramanian Phone: (704) 547-4872
Department of Computer Science FAX: (704) 547-3516
UNC Charlotte, 228A Kennedy
9201 Univ. City Blvd. Email: krs@cs.uncc.edu
Charlotte, NC 28223-0001 WWW: <A HREF="http://www.cs.uncc.edu/~krs">http://www.cs.uncc.edu/~krs</A></pre>
</html>