[vtk-developers] Streaming data from vtkMatrix4x4 and vtkMatrix3x3

Bob Obara bob.obara at kitware.com
Thu Sep 8 14:08:15 EDT 2016


Hi David,

Thanks - what is the reason these interfaces are being deprecated?

Bob

Robert M. O'Bara, MEng.
Assistant Director of Scientific Computing

Kitware Inc.
28 Corporate Drive
Suite 101
Clifton Park, NY 12065

Phone: (518) 881- 4931




> On Sep 8, 2016, at 1:59 PMEDT, David Gobbi <david.gobbi at gmail.com> wrote:
> 
> Hi Bob,
> 
> I use a DeepCopy to stream in both directions:
> 
> vtkNew<vtkMatrix4x4> matrix;
> double elements[16];
> // stream from matrix to POD pointer
> vtkMatrix4x4::DeepCopy(elements, matrix);
> // stream from POD pointer to matrix
> matrix->DeepCopy(elements);
> 
>  - David
> 
> On Thu, Sep 8, 2016 at 11:46 AM, Bob Obara <bob.obara at kitware.com <mailto:bob.obara at kitware.com>> wrote:
> Hi David,
> 
> I’ve been meaning to ask you about the depreciation of [] operator in both classes and and the comment not to use the public Element data member in the 4x4 class).  How are you suppose to be able to stream the data out of the matrix with these interfaces removed?  Obviously you can you the DeepCopy methods to “stream” data into them.
> 
> Thanks in advance for your time and help!
> 
> Bob
>  
> Robert M. O'Bara, MEng.
> Assistant Director of Scientific Computing
> 
> Kitware Inc.
> 28 Corporate Drive
> Suite 101
> Clifton Park, NY 12065
> 
> Phone: (518) 881- 4931 <tel:%28518%29%20881-%204931>
> 
> 
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160908/33436c95/attachment.html>


More information about the vtk-developers mailing list