Commit e9dceb09 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ERR: Link to rendering

parent d02a13ae
......@@ -35,20 +35,20 @@ IF (VTK_FOUND)
SET(LIBTYPE STATIC)
ENDIF(VTK_BUILD_SHARED_LIBS)
ADD_LIBRARY(vtkXdmf ${LIBTYPE} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtkXdmf vtkIO Xdmf)
TARGET_LINK_LIBRARIES(vtkXdmf vtkIO Xdmf vtkRendering)
# Create Tcl wrappers if VTK is wrapped in Tcl.
IF(VTK_WRAP_TCL)
VTK_WRAP_TCL(vtk${PROJECT_NAME}TCL XdmfTCL_SRCS ${Xdmf_SRCS})
ADD_LIBRARY(vtk${PROJECT_NAME}TCL ${LIBTYPE} ${XdmfTCL_SRCS} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}TCL vtkIOTCL Xdmf)
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}TCL vtkIOTCL vtkRenderingTCL Xdmf)
ENDIF(VTK_WRAP_TCL)
# Create Python wrappers if VTK is wrapped in Python.
IF(VTK_WRAP_PYTHON)
VTK_WRAP_PYTHON(vtk${PROJECT_NAME}Python XdmfPython_SRCS ${Xdmf_SRCS})
ADD_LIBRARY(vtk${PROJECT_NAME}Python SHARED ${XdmfPython_SRCS} ${Xdmf_SRCS})
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}Python vtkIOPython Xdmf)
TARGET_LINK_LIBRARIES(vtk${PROJECT_NAME}Python vtkIOPython vtkRenderingPython Xdmf)
ENDIF(VTK_WRAP_PYTHON)
IF(XDMF_BUILD_TESTING)
SUBDIRS(Testing)
......
......@@ -14,6 +14,34 @@ int main(int argc, char* argv[])
}
vtkXdmfReader* vr = vtkXdmfReader::New();
vr->SetFileName(argv[1]);
//vr->UpdateInformation();
//vtkDataArraySelection* ds = vr->GetCellDataArraySelection();
//ds->DisableAllArrays();
//ds->EnableArray(ds->GetArrayName(0));
// vr->GetOutput()->Update();
/*
int *ue = vr->GetOutput()->GetUpdateExtent();
cout << "Update extent: "
<< ue[0] << " " << ue[1] << " " << ue[2] << " "
<< ue[3] << " " << ue[4] << " " << ue[5] << endl;
vr->GetOutput()->SetUpdateExtent(75, 75, 0, 64, 0, 64);
vr->GetOutput()->Update();
ue = vr->GetOutput()->GetUpdateExtent();
cout << "Update extent: "
<< ue[0] << " " << ue[1] << " " << ue[2] << " "
<< ue[3] << " " << ue[4] << " " << ue[5] << endl;
vr->GetOutput()->SetUpdateExtent(0, -1, 0, -1, 0, -1);
vr->GetOutput()->Update();
ue = vr->GetOutput()->GetUpdateExtent();
cout << "Update extent: "
<< ue[0] << " " << ue[1] << " " << ue[2] << " "
<< ue[3] << " " << ue[4] << " " << ue[5] << endl;
*/
vr->GetOutput()->SetUpdateExtent(75, 75, 0, 64, 0, 64);
vr->GetOutput()->Update();
/*
cout << "------------- UpdateInformation --------" << endl;
vr->UpdateInformation();
......@@ -39,6 +67,8 @@ int main(int argc, char* argv[])
cout << "Number of X coords: " << rg->GetXCoordinates()->GetNumberOfTuples() << endl;
cout << "Number of y coords: " << rg->GetYCoordinates()->GetNumberOfTuples() << endl;
cout << "Number of z coords: " << rg->GetZCoordinates()->GetNumberOfTuples() << endl;
}
cout << "------------- Delete ------------------" << endl;
}
......@@ -46,6 +76,7 @@ int main(int argc, char* argv[])
{
vr->Print(cout);
}
*/
vr->Delete();
return 0;
}
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