00001 #ifndef X3DTK_X3DACTOR_H 00002 #define X3DTK_X3DACTOR_H 00003 00004 #include "X3DTypes.h" 00005 00006 namespace X3DTK { 00007 00008 class Type; 00009 00015 class X3DActor 00016 { 00017 public: 00019 X3DActor(); 00021 virtual ~X3DActor() = 0; 00022 // Deletes the components when the actor is deleted. 00023 void setAutoDeleteComponents(bool value); 00026 virtual void reset() = 0; 00027 00028 protected: 00030 virtual void addType(const SFType *type) = 0; 00031 00034 bool autoDelete; 00035 00036 friend class SFType; 00037 }; 00038 00039 } 00040 00041 #endif