VTK  9.1.0
vtkArrayPrint.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkArrayPrint.h
5
6-------------------------------------------------------------------------
7 Copyright 2008 Sandia Corporation.
8 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 the U.S. Government retains certain rights in this software.
10-------------------------------------------------------------------------
11
12 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13 All rights reserved.
14 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notice for more information.
19
20=========================================================================*/
49#ifndef vtkArrayPrint_h
50#define vtkArrayPrint_h
51
52#include "vtkTypedArray.h"
53
58template <typename T>
59void vtkPrintCoordinateFormat(ostream& stream, vtkTypedArray<T>* array);
60
63template <typename T>
64void vtkPrintMatrixFormat(ostream& stream, vtkTypedArray<T>* matrix);
65
68template <typename T>
69void vtkPrintVectorFormat(ostream& stream, vtkTypedArray<T>* vector);
70
71#include "vtkArrayPrint.txx"
72
73#endif
74// VTK-HeaderTest-Exclude: vtkArrayPrint.h
void vtkPrintCoordinateFormat(ostream &stream, vtkTypedArray< T > *array)
Serializes the contents of an array to a stream as a series of coordinates.
void vtkPrintMatrixFormat(ostream &stream, vtkTypedArray< T > *matrix)
Serializes the contents of a matrix to a stream in human-readable form.
void vtkPrintVectorFormat(ostream &stream, vtkTypedArray< T > *vector)
Serializes the contents of a vector to a stream in human-readable form.
Provides a type-specific interface to N-way arrays.
Definition: vtkTypedArray.h:56