[vtkusers] Using vtkDenseArray as a member variable

David Doria daviddoria+vtk at gmail.com
Thu Nov 12 18:58:50 EST 2009


On Thu, Nov 12, 2009 at 2:15 PM, David Doria <daviddoria+vtk at gmail.com> wrote:
> In a VTK class, if I try to do:
> ...
> private:
>  vtkDenseArray<double> Test;
>
> if I forward declare vtkDenseArray:
> class vtkDenseArray;
>
> I get
> error: 'vtkDenseArray' is not a template
>
> and if I include it, I get:
>
> error: 'vtkDenseArray<T>::vtkDenseArray() [with T = double]' is protected
>
> Is there a reason that this shouldn't work?
>
> Thanks,
>
> David
>

Here is the smallest possible example:
http://www.rpi.edu/~doriad/VTK_List/DenseArrayMember/

Thanks,

David



More information about the vtkusers mailing list