[vtkusers] vtkPolyDataMapper error with VTK 6.1

Freddy Martinez Garcia freddy311082 at gmail.com
Sun Dec 8 21:26:43 EST 2013


hi

I'm new with VTK and I'm studing VTK rignt now using the VTK Visualization
Toolkit 4th Edition book for that. I'm running this simple example:

#include <vtkConeSource.h>

#include <vtkPolyDataMapper.h>

#include <vtkActor.h>

#include <vtkRenderer.h>

#include <vtkRenderWindow.h>

#include <vtkCamera.h>


int main(int argc, char *argv[])

{

    vtkConeSource* coneSource = vtkConeSource::New();

    coneSource->SetHeight(3.0);

    coneSource->SetRadius(1.0);

    coneSource->SetResolution(10);


    vtkPolyDataMapper* coneMapper = vtkPolyDataMapper::New();

    coneMapper->SetInputConnection(coneSource->GetOutputPort());


    vtkActor* coneActor = vtkActor::New();

    coneActor->SetMapper(coneMapper);


    vtkRenderer* render = vtkRenderer::New();

    render->AddActor(coneActor);

    render->SetBackground(1,1,1);


    vtkRenderWindow* renderWindow = vtkRenderWindow::New();

    renderWindow->AddRenderer(render);

    renderWindow->SetSize(400,400);


    for (int i = 0; i < 360; i++)

    {

        render->Render();

        render->GetActiveCamera()->Azimuth(1);

    }


    coneSource->Delete();

    coneMapper->Delete();

    coneActor->Delete();

    render->Delete();

    renderWindow->Delete();


    return 0;

}


and I have the followin error:

Generic Warning: In
/home/freddy/installs/libs/version-control/vtk-git/VTK/Rendering/Core/vtkPolyDataMapper.cxx,
line 27

Error: no override found for 'vtkPolyDataMapper'.

The program has unexpectedly finished.


someone know about it ??


best regard


freddy







*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131209/cf21687a/attachment.htm>


More information about the vtkusers mailing list