[vtkusers] a tricky c++ problem...
Steffen Oeltze
Steffen.Oeltze at Student.Uni-Magdeburg.DE
Fri Nov 1 06:39:44 EST 2002
Dear VTK-experts,
I have derived a class from vtkOpenGLActor, called myActor. I'd like
this class
to hold a private variable that is a pointer to a user-provided volume.
( To receive
a void pointer to the volume I use volume->GetScalarPointer() ) However,
since
the user selects a volume which can be of different data types I don't
know in
advance how to initialize the pointer in my class. I was told to use a
template class
but I'm not a c++ expert and I was wondering if there is an easier way ?
Thanks in advance,
Steffen
More information about the vtkusers
mailing list