Build vtk classes - HELP !!!

Y

Yi-Yu Chou

Hi all python users,

I am trying t build my own vtk classes and use them in python but I
encounter some problems.
I tried to change the example a little bit in
VTK/Example/Build/vtkMy/Common/

// vtkBar.h
#ifndef __vtkBar_h
#define __vtkBar_h
#include "vtkObject.h"
#include "vtkmyCommonWin32Header.h"

class VTK_MY_COMMON_EXPORT vtkBar : public vtkObject
{
public:
static vtkBar *New();
vtkTypeRevisionMacro(vtkBar,vtkObject);
int inData;
int outData;
protected:
vtkBar() ;
~vtkBar() ;
private:
vtkBar(const vtkBar&); // Not implemented.
void operator=(const vtkBar&); // Not implemented.
};
#endif

// vtkBar.cxx
#include "vtkBar.h"
#include "vtkObjectFactory.h"

vtkCxxRevisionMacro(vtkBar, "$Revision: 1.3 $");
vtkStandardNewMacro(vtkBar);
vtkBar::vtkBar()
{
this->inData = 0;
this->outData = 0;
}

vtkBar::~vtkBar()
{
}
................................................................................................................................


Under /VTK/Example/Build/vtkMy
I ran : ccmake .
Press "c" twice, then press "g"
Enter : make
Go to /vtkMy/bin
Ran : pythonThen I got the following error message :
AttributeError: inData
What's wrong with my procedure.....??????
Please help me !!!
Thanks a lot !!

Best,
YY

_________________________________________________________________
·QÅÊ·R¡H¥æªB¤Í¡HMSN ½u¤W¥æ¤Í¡G¥Ñ Match.com ´£¨Ñ¡A¥þ¥@¬É³Ì¨üÅwªïªº½u¤W¥æ¤ÍªA
°È http://match.msn.com.tw
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top