Commit fddbb764 authored by David Gobbi's avatar David Gobbi
Browse files

BUG: Add GetClassName to vtkCommand and subclasses.

parent 6270dbe5
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
class VTK_COMMON_EXPORT vtkCallbackCommand : public vtkCommand class VTK_COMMON_EXPORT vtkCallbackCommand : public vtkCommand
{ {
public: public:
vtkTypeMacro(vtkCallbackCommand,vtkCommand);
static vtkCallbackCommand *New() static vtkCallbackCommand *New()
{return new vtkCallbackCommand;}; {return new vtkCallbackCommand;};
......
...@@ -203,13 +203,14 @@ ...@@ -203,13 +203,14 @@
#define __vtkCommand_h #define __vtkCommand_h
#include "vtkObjectBase.h" #include "vtkObjectBase.h"
#include "vtkObject.h" // Need vtkTypeMacro
class vtkObject;
// The superclass that all commands should be subclasses of // The superclass that all commands should be subclasses of
class VTK_COMMON_EXPORT vtkCommand : public vtkObjectBase class VTK_COMMON_EXPORT vtkCommand : public vtkObjectBase
{ {
public: public:
vtkTypeMacro(vtkCommand,vtkObjectBase);
// Description: // Description:
// Decrease the reference count (release by another object). This has // Decrease the reference count (release by another object). This has
// the same effect as invoking Delete() (i.e., it reduces the reference // the same effect as invoking Delete() (i.e., it reduces the reference
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
class VTK_COMMON_EXPORT vtkEventForwarderCommand : public vtkCommand class VTK_COMMON_EXPORT vtkEventForwarderCommand : public vtkCommand
{ {
public: public:
vtkTypeMacro(vtkEventForwarderCommand,vtkCommand);
static vtkEventForwarderCommand *New() static vtkEventForwarderCommand *New()
{return new vtkEventForwarderCommand;}; {return new vtkEventForwarderCommand;};
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
class VTK_COMMON_EXPORT vtkOldStyleCallbackCommand : public vtkCommand class VTK_COMMON_EXPORT vtkOldStyleCallbackCommand : public vtkCommand
{ {
public: public:
vtkTypeMacro(vtkOldStyleCallbackCommand,vtkCommand);
static vtkOldStyleCallbackCommand *New() static vtkOldStyleCallbackCommand *New()
{return new vtkOldStyleCallbackCommand;}; {return new vtkOldStyleCallbackCommand;};
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
class VTK_COMMON_PYTHON_EXPORT vtkPythonCommand : public vtkCommand class VTK_COMMON_PYTHON_EXPORT vtkPythonCommand : public vtkCommand
{ {
public: public:
vtkTypeMacro(vtkPythonCommand,vtkCommand);
static vtkPythonCommand *New() { return new vtkPythonCommand; }; static vtkPythonCommand *New() { return new vtkPythonCommand; };
void SetObject(PyObject *o); void SetObject(PyObject *o);
......
Supports Markdown
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