Commit ed83d8a1 authored by Mike Kremer's avatar Mike Kremer

Added addEmpty() and supportedType() functions to TypeInterface.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7840 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a6990e5a
......@@ -61,6 +61,22 @@ class TypeInterface {
virtual ~TypeInterface() {};
virtual bool registerType() = 0;
/** \brief Create an empty object
*
* When this slot is called you have to create an object of your supported type.
* @param _type Data type of object that will be created
* @return Id of the new Object
*/
virtual int addEmpty() = 0;
/** \brief Return your supported object type( e.g. DATA_TRIANGLE_MESH )
*
* If you support multiple datatypes you can use the bitwise or to combine them here.
* The function is used from addEmpty to check if your plugin can create an object of
* a given dataType.
*/
virtual DataType supportedType() = 0;
};
Q_DECLARE_INTERFACE(TypeInterface,"OpenFlipper.TypeInterface/1.0")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment