vtk

VTK swap out rendering codeblock?

Hi, since some days I'm working with the VTK and I need some help. Is it possible to swap out the rendering codeblock?Like this: void display(XXXXXX) { vtkActor actor = new vtkActor(); actor.SetMapper(XXXXXXX); vtkRenderer ren2 = new vtkRenderer(); ren2.AddActor(actor); vtkRenderWindow ren...

How can I implement a color table with VTK / TK in python

hi, I'm developing an application in VTK / TK and I was wondering what's the best way to provide the user with a table which lists items and allow the user to pick the color for each item: item1 | color item2 | color item3 | color thanks ...

itk filereader causes access violation exception

I have a problem with an Access Violation Exception. I am using itk and read a File with it's file reader. ThreeDImageFloatType* MyClass::loadImage(std::string filename){ const char* cfilename = filename.c_str(); fileReader = ImageFileReaderType::New(); fileReader->SetFileName(cfilename); try{ fileReader->Update(); }catch( ... ) ...