Commit 2f61effa authored by Ken Martin's avatar Ken Martin
Browse files

added New methods to these classes

parent 94622988
......@@ -67,7 +67,7 @@ public:
int Allocate(const int sz, const int ext=1000) {return this->S->Allocate(2*sz,2*ext);};
void Initialize() {this->S->Initialize();};
vtkAGraymap *New() {return new vtkAGraymap;};
static vtkAGraymap *New() {return new vtkAGraymap;};
char *GetClassName() {return "vtkAGraymap";};
// vtkScalar interface
......
......@@ -63,7 +63,7 @@ public:
int Allocate(const int sz, const int ext=1000) {return this->S->Allocate(4*sz,4*ext);};
void Initialize() {this->S->Initialize();};
vtkAPixmap *New() {return new vtkAPixmap;};
static vtkAPixmap *New() {return new vtkAPixmap;};
char *GetClassName() {return "vtkAPixmap";};
// vtkScalar interface
......
......@@ -59,7 +59,7 @@ public:
vtkBitArray(const int sz, const int ext=1000);
vtkBitArray(const vtkBitArray& ia);
~vtkBitArray();
vtkBitArray *New() {return new vtkBitArray;};
static vtkBitArray *New() {return new vtkBitArray;};
virtual char *GetClassName() {return "vtkBitArray";};
void PrintSelf(ostream& os, vtkIndent indent);
......
......@@ -60,7 +60,7 @@ public:
int Allocate(const int sz, const int ext=1000) {return this->S->Allocate(sz,ext);};
void Initialize() {this->S->Initialize();};
vtkBitScalars *New() {return new vtkBitScalars;};
static vtkBitScalars *New() {return new vtkBitScalars;};
char *GetClassName() {return "vtkBitScalars";};
// vtkScalar interface
......
......@@ -64,7 +64,7 @@ public:
int Allocate(const int sz, const int ext=1000) {return this->S->Allocate(sz,ext);};
void Initialize() {this->S->Initialize();};
vtkBitmap *New() {return new vtkBitmap;};
static vtkBitmap *New() {return new vtkBitmap;};
char *GetClassName() {return "vtkBitmap";};
// vtkScalar interface
......
......@@ -71,7 +71,7 @@ public:
int Allocate(const int sz, const int ext=1000)
{return this->Ia->Allocate(sz,ext);};
void Initialize() {this->Ia->Initialize();};
vtkCellArray *New() {return new vtkCellArray;};
static vtkCellArray *New() {return new vtkCellArray;};
char *GetClassName() {return "vtkCellArray";};
int GetNumberOfCells();
......
......@@ -64,7 +64,7 @@ public:
vtkCellList() : Array(NULL),Size(0),MaxId(-1),Extend(1000) {};
vtkCellList(const int sz, const int ext);
~vtkCellList();
vtkCellList *New() {return new vtkCellList;};
static vtkCellList *New() {return new vtkCellList;};
char *GetClassName() {return "vtkCellList";};
_vtkCell_s &GetCell(const int id);
......
......@@ -58,7 +58,7 @@ public:
vtkCharArray(const int sz, const int ext=1000);
vtkCharArray(const vtkCharArray& ia);
~vtkCharArray();
vtkCharArray *New() {return new vtkCharArray;};
static vtkCharArray *New() {return new vtkCharArray;};
char *GetClassName() {return "vtkCharArray";};
void PrintSelf(ostream& os, vtkIndent indent);
......
......@@ -71,7 +71,7 @@ public:
vtkCollection();
virtual ~vtkCollection();
void PrintSelf(ostream& os, vtkIndent indent);
vtkCollection *New() {return new vtkCollection;};
static vtkCollection *New() {return new vtkCollection;};
char *GetClassName() {return "vtkCollection";};
void AddItem(vtkObject *);
......
......@@ -58,7 +58,7 @@ public:
vtkDoubleArray(const int sz, const int ext=1000);
vtkDoubleArray(const vtkDoubleArray& fa);
~vtkDoubleArray();
vtkDoubleArray *New() {return new vtkDoubleArray;};
static vtkDoubleArray *New() {return new vtkDoubleArray;};
char *GetClassName() {return "vtkDoubleArray";};
void PrintSelf(ostream& os, vtkIndent indent);
......
......@@ -55,7 +55,7 @@ class VTK_EXPORT vtkEdgeTable : public vtkObject
public:
vtkEdgeTable(int numPoints=1);
~vtkEdgeTable();
vtkEdgeTable *New() {return new vtkEdgeTable;};
static vtkEdgeTable *New() {return new vtkEdgeTable;};
char *GetClassName() {return "vtkEdgeTable";};
// Insert/check existence of edges
......
......@@ -53,7 +53,7 @@ class VTK_EXPORT vtkEmptyCell : public vtkCell
public:
vtkEmptyCell() {};
vtkEmptyCell(const vtkEmptyCell& p);
vtkEmptyCell *New() {return new vtkEmptyCell;};
static vtkEmptyCell *New() {return new vtkEmptyCell;};
char *GetClassName() {return "vtkEmptyCell";};
vtkCell *MakeObject() {return new vtkEmptyCell(*this);};
......
......@@ -58,7 +58,7 @@ public:
vtkFloatArray(const int sz, const int ext=1000);
vtkFloatArray(const vtkFloatArray& fa);
~vtkFloatArray();
vtkFloatArray *New() {return new vtkFloatArray;};
static vtkFloatArray *New() {return new vtkFloatArray;};
char *GetClassName() {return "vtkFloatArray";};
void PrintSelf(ostream& os, vtkIndent indent);
......
......@@ -59,7 +59,7 @@ public:
int Allocate(const int sz, const int ext=1000) {return this->N->Allocate(3*sz,3*ext);};
void Initialize() {this->N->Initialize();};
vtkFloatNormals *New() {return new vtkFloatNormals;};
static vtkFloatNormals *New() {return new vtkFloatNormals;};
char *GetClassName() {return "vtkFloatNormals";};
// vtkNormal interface
......
......@@ -59,7 +59,7 @@ public:
int Allocate(const int sz, const int ext=1000) {return this->P->Allocate(3*sz,3*ext);};
void Initialize() {this->P->Initialize();};
vtkFloatPoints *New() {return new vtkFloatPoints;};
static vtkFloatPoints *New() {return new vtkFloatPoints;};
char *GetClassName() {return "vtkFloatPoints";};
// vtkPoint interface
......
......@@ -59,7 +59,7 @@ public:
int Allocate(const int sz, const int ext=1000) {return this->S->Allocate(sz,ext);};
void Initialize() {this->S->Initialize();};
vtkFloatScalars *New() {return new vtkFloatScalars;};
static vtkFloatScalars *New() {return new vtkFloatScalars;};
char *GetClassName() {return "vtkFloatScalars";};
// vtkScalar interface
......
......@@ -59,7 +59,7 @@ public:
int Allocate(const int sz, const int dim=2, const int ext=1000) {return this->TC->Allocate(dim*sz,dim*ext);};
void Initialize() {this->TC->Initialize();};
vtkFloatTCoords *New() {return new vtkFloatTCoords;};
static vtkFloatTCoords *New() {return new vtkFloatTCoords;};
char *GetClassName() {return "vtkFloatTCoords";};
// vtkTCoords interface
......
......@@ -59,7 +59,7 @@ public:
int Allocate(const int sz, const int dim=3, const int ext=1000);
void Initialize() {this->T->Initialize();};
vtkFloatTensors *New() {return new vtkFloatTensors;};
static vtkFloatTensors *New() {return new vtkFloatTensors;};
char *GetClassName() {return "vtkFloatTensors";};
// vtkTensors interface
......
......@@ -59,7 +59,7 @@ public:
int Allocate(const int sz, const int ext=1000) {return this->V->Allocate(3*sz,3*ext);};
void Initialize() {this->V->Initialize();};
vtkFloatVectors *New() {return new vtkFloatVectors;};
static vtkFloatVectors *New() {return new vtkFloatVectors;};
char *GetClassName() {return "vtkFloatVectors";};
// vtkVector interface
......
......@@ -57,7 +57,7 @@ public:
vtkGraymap(const vtkGraymap& fs);
vtkGraymap(const int sz, const int ext=1000);
~vtkGraymap();
vtkGraymap *New() {return new vtkGraymap;};
static vtkGraymap *New() {return new vtkGraymap;};
char *GetClassName() {return "vtkGraymap";};
int Allocate(const int sz, const int ext=1000) {return this->S->Allocate(sz,ext);};
......
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