[vtkusers] how to add additional member- variables to a filter
    Joseph McCoy 
    j.mccoy at gmx.de
       
    Wed Jan 26 09:43:33 EST 2005
    
    
  
hi all,
i intented to enhance some vtkFilter- objects (e.g.
vtkDataSetToPolyDataFilter) with additional variables, for example an
integer. first, i tried:
///////////////
public:
  ...
  vtkSetMacro(TestInt, int);
protected:
  ...
  int iTest;
////////////////
compilation works, but when i call
  int i = ... ;
  myFilter->SetTestInt(i);
the app crashes.
i also tried it without macro:
///////////////
public:
  ...
  void SetTestInt(int i);
protected:
  ...
  int iTest;
---
void myFilter::SetTestInt(int i) {
  this->iTest = i;
}
////////////////
again compilation works, but again the app crashed when i called SetTestInt.
does anybody know what i'm missing? i'm on windows xp with vc++7 .net 2003
and vtk 4.4. many thanks in advance...
Joseph
-- 
GMX im TV ... Die Gedanken sind frei ... Schon gesehen?
Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot
    
    
More information about the vtkusers
mailing list