Keywords: shape kits, Open Inventor
I have a "strange" custom shape kit which requires access to its viewer.
I would like to disable SoNode::copy() and SoType::createInstance() with
this shape kit without disabling the normal method of creating nodes
Disabling copy is pretty easy (just make an empty one), but createInstance
is harder. I thought that once I've initialized the class, I could simply
call SoType::overrideType( MyKit::getClassTypeId(), NULL ).
SO_KIT_INIT_CLASS( MyKit, SoBaseKit, "BaseKit" );
(void)SoType::overrideType( MyKit::getClassTypeId(), NULL );
Am I close ?Quote:}