Commit 73ecf2ed authored by Will Schroeder's avatar Will Schroeder
Browse files

*** empty log message ***

parent 85ae15ad
......@@ -29,7 +29,7 @@ class vlAppendFilter : public vlUnstructuredGrid, public vlFilter
{
public:
vlAppendFilter();
~vlAppendFilter() {};
~vlAppendFilter();
char *GetClassName() {return "vlAppendFilter";};
void PrintSelf(ostream& os, vlIndent indent);
......
......@@ -34,7 +34,7 @@ public:
vlSetClampMacro(Radius,float,0,LARGE_FLOAT);
vlGetMacro(Radius,float);
vlSetClampMacro(Angle,float,0,180);
vlSetClampMacro(Angle,float,0,360);
vlGetMacro(Angle,float);
protected:
......
......@@ -22,11 +22,23 @@ vlAppendFilter::vlAppendFilter()
}
vlAppendFilter::~vlAppendFilter()
{
vlDataSet *ds;
for ( int i=0; i < this->Input.GetNumberOfItems(); i++ )
{
ds = this->Input.GetItem(i+1);
ds->UnRegister(this);
}
}
void vlAppendFilter::AddInput(vlDataSet *ds)
{
if ( ! this->Input.IsItemPresent(ds) )
{
this->Modified();
ds->Register(this);
this->Input.AddItem(ds);
}
}
......@@ -36,6 +48,7 @@ void vlAppendFilter::RemoveInput(vlDataSet *ds)
if ( this->Input.IsItemPresent(ds) )
{
this->Modified();
ds->UnRegister(this);
this->Input.RemoveItem(ds);
}
}
......
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