THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/03/2011 at 06:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ; Mac ;
Language(s) : C++ ;
---------
I need to create an abstract plugin derived from ObjectData.
I am not sure how to declare the abstract plugin from which to derive all others plugins (think something like EffectorData).
I am not clear if the basic plugin should be registered (have its own ID). It Will only have virtual methods, and in any case shall be used directly.
Then I did several tests but in no way I can derive a plugin from my base type. Someone can give me an example of such a thing:
//Base plugin in BasePlugin.h file
class MyBasePlugin : public ObjectData
{
public:
virtual Bool Init(GeListNode *node);
.
.
//new abstract methods
virtual Bool makethis(void);
virtual Bool makethat(void);
}
//Derived plugin in DerivedPlugin.cpp file
class MyDerivedPlugin : public MyBasePlugin
{
public:
virtual Bool Init(GeListNode *node);
.
.
//new abstract methods
virtual Bool makethis(void);
virtual Bool makethat(void);
}
thank's
Lorenzo