Hi,
currently it is not supported to handle multiple types in one type plugin.
Basically the current supportedType() function of the TypeInterface returns the datatype which could be combined by an | . Only the addEmpty function would require a modification. So it would be possible to extend the interface.
But I'm not sure if that's a good idea as the plugin structure is not that clean anymore when multiple types are handled by one type plugin.
Regards, Jan
On 29.03.2012 19:03, Bengt Rosenberger wrote:
Hi!
I'm using a custom object type in my OpenFlipper plugin and I wondered if there is a way to have a single type plugin handle multiple object types?
If not it would be very helpful to add this, as it's a pain to write a small plugin for each new object type.
Using something like this it should be possible to enhanche TypeInterface without breaking old code: virtual bool TypeInterface::supportsType(DataType type) { return this->supportedType() == type; }
virtual int TypeInterface::addEmpty(DataType type) { return this->addEmpty(); }
Thanks for OpenFlipper and OpenMesh!
Regards, Bengt _______________________________________________ Openflipper mailing list Openflipper@lists.rwth-aachen.de http://mailman.rwth-aachen.de/mailman/listinfo/openflipper