VTK/Tutorials/MemberVariables: Difference between revisions

From KitwarePublic
< VTK‎ | Tutorials
Jump to navigationJump to search
(New page: Here are some common errors when trying to use a templated VTK class as a member variable. We will use vtkDenseArray as an example. ==error: 'vtkDenseArray' is not a template== You have f...)
(No difference)

Revision as of 13:49, 13 November 2009

Here are some common errors when trying to use a templated VTK class as a member variable. We will use vtkDenseArray as an example.

error: 'vtkDenseArray' is not a template

You have forward declared the class in your header: <source lang="cpp"> class vtkDenseArray; </source>

but forgotten to actually include the header in your implementation file:

<source lang="cpp">

  1. include "vtkDenseArray.h";

</source>

==