Commit 18c0fbb2 authored by Will Schroeder's avatar Will Schroeder
Browse files

ENH: Proper treatment of Set/Get/Free source pointer.

parent a00719d9
......@@ -30,12 +30,12 @@ class vlGlyph3D : public vlDataSetToPolyFilter
{
public:
vlGlyph3D();
~vlGlyph3D() {};
~vlGlyph3D();
char *GetClassName() {return "vlGlyph3D";};
void PrintSelf(ostream& os, vlIndent indent);
vlSetMacro(Source,vlPolyData*);
vlGetMacro(Source,vlPolyData*);
vlSetObjectMacro(Source,vlPolyData);
vlGetObjectMacro(Source,vlPolyData);
vlBooleanMacro(Scaling,int);
vlSetMacro(Scaling,int);
......
......@@ -27,6 +27,14 @@ vlGlyph3D::vlGlyph3D()
this->Range[0] = 1.0;
}
vlGlyph3D::~vlGlyph3D()
{
if (this->Source)
{
this->Source->UnRegister((void *)this);
}
}
void vlGlyph3D::PrintSelf(ostream& os, vlIndent indent)
{
......
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