[vtkusers] Removing properties from an actor.
Andrew J. P. Maclean
a.maclean at acfr.usyd.edu.au
Mon Aug 26 02:45:56 EDT 2002
Is there a method to reset the property of an actor to its default?
Currently I create a vtkProperty object and do something like this.
singleActor->Delete();
singleActor = vtkActor::New();
if ( Property.active )
singleActor->SetProperty(property);
If Property.active is false I want it to revert to the default property
for the actor.
Is there a better way than this? I am uneasy about continually deleting
and recreating the actor.
Thanks
Andrew
___________________________________________
Andrew J. P. Maclean
Postal:
Australian Centre for Field Robotics
The Rose Street Building J04
The University of Sydney 2006 NSW
AUSTRALIA
Room: 106
Phone: +61 2 9351 3283
Fax: +61 2 9351 7474
http://www.acfr.usyd.edu.au/
___________________________________________
More information about the vtkusers
mailing list