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