MercuryDPM
Beta
|
#include <VTKData.h>
Public Member Functions | |
VTKUnstructuredGrid (std::string filename, const VTKPointDescriptor< T > *descr) | |
operator bool () const | |
template<typename C > | |
void | write (const C &container) |
Private Attributes | |
const VTKPointDescriptor< T > * | descriptor_ |
std::ofstream | outFile_ |
This function writes single output frames. this requires an filename and a descriptor. To actually write it, we need a collection.
|
inline |
Create a new VTK Unstructured grid file.
filename | The name of the output file |
descr | The typedescriptor for T |
Definition at line 303 of file VTKData.h.
|
inline |
Returns true if this VTK output file is valid and has no errorbits set
Definition at line 309 of file VTKData.h.
References VTKUnstructuredGrid< T >::outFile_.
|
inline |
Writes out the container C containing T's, which all get written using the information in the descriptor. C should contain the forward iterable traits, as well as a method size() to give the number of elements stored in this container. All STL containers have this property. Yours should too.
Definition at line 320 of file VTKData.h.
References VTKUnstructuredGrid< T >::descriptor_, Detail::VTKPointDescriptorEntry< T >::emit(), Detail::VTKPointDescriptorEntry< T >::getName(), Detail::VTKPointDescriptorEntry< T >::getNumberOfComponents(), Detail::VTKPointDescriptorEntry< T >::getTypeName(), and VTKUnstructuredGrid< T >::outFile_.
|
private |
Definition at line 296 of file VTKData.h.
Referenced by VTKUnstructuredGrid< T >::write().
|
private |
Definition at line 297 of file VTKData.h.
Referenced by VTKUnstructuredGrid< T >::operator bool(), and VTKUnstructuredGrid< T >::write().