Hello List,
I'm generating a mitkUnstructuredGrid within my application (a plugin
generating a vtkUstructuredGrid) and I'm having issues when adding it to
the DataStorage
Here's my code snippet:
m_Node = DataNode::New();
m_Node->SetData( m_Grid );
m_Node->SetName("ugrid");
this->InsertBelowGroupNode(m_Node);
the data in m_Grid is ok (if I write it to disk I can retrieve it).
Here's the problem:
The constructor in UnstructuredGridVtkMapper2D is first called and
following, UnstructuredGridVtkMapper2D::Paint() is called directly,
before UnstructuredGridVtkMapper2D::GenerateData() is being called.
However, if I load a vtk unstructured grid from disk (e.g. the one I
just saved for debug), UnstructuredGridVtkMapper2D::GenerateData() is
indeed called after UnstructuredGridVtkMapper2D's constructor and before
UnstructuredGridVtkMapper2D::Paint()
Any hint on what's going wrong here?
Unfortunately, I could not find any example of generating a
mitkUnstructuredGrid within MITK, other than loading one from disk
thanks
sebastian
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users