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=========================================================================*/
30#ifndef vtkArrayPrint_h
31#define vtkArrayPrint_h
32
33#include "vtkTypedArray.h"
34
39template <typename T>
40void vtkPrintCoordinateFormat(ostream& stream, vtkTypedArray<T>* array);
41
44template <typename T>
45void vtkPrintMatrixFormat(ostream& stream, vtkTypedArray<T>* matrix);
46
49template <typename T>
50void vtkPrintVectorFormat(ostream& stream, vtkTypedArray<T>* vector);
51
52#include "vtkArrayPrint.txx"
53
54#endif
55// 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