[vtkusers] help Request Data is not compiling

Cory Quammen cory.quammen at kitware.com
Mon Apr 27 16:22:01 EDT 2015


Hi Julia,

You are more likely to get help if you post the compiler error you are
getting.

Best,
Cory

On Mon, Apr 27, 2015 at 4:15 PM, Julia Fischer <julia.ute.fischer at gmail.com>
wrote:

> Somehow  I cant make work this piece of code , apparently the problem is
> in RequestData
>
>
>
>
>
> int Reader::RequestData(vtkInformation *vtkNotUsed(request),
>         vtkInformationVector **vtkNotUsed(inputVector),
>         vtkInformationVector  outputVector) {
>
>     // get the info object
>     vtkInformation *outInfo = outputVector->GetInformationObject(0);
>
>     // get the ouptut
>     vtkUnstructuredGrid *output = vtkUnstructuredGrid::SafeDownCast(
>             outInfo->Get(vtkDataObject::DATA_OBJECT()));
>
>     if (!this->FileName) {
>         vtkErrorMacro("No filename specified");
>         return 0;
>     }
>
>
>     vtkSmartPointer < vtkUnstructuredGrid   > grid =vtkSmartPointer<
> vtkUnstructuredGrid>::New();
>
>     ......
>
>     vtkSmartPointer <vtkUnstructuredGrid>
>
> outUG=vtkUnstructuredGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
>
>
>     vtkSmartPointer<vtkPoints> pts2=vtkSmartPointer<vtkPoints>:: New();
>
>     cout<<"gg"<<grid->GetNumberOfPoints()<<endl;
>
>     outUG->ShallowCopy(grid);
>
>
>
>
>
>
>     return 1;
>
> }
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>


-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150427/21494121/attachment.html>


More information about the vtkusers mailing list