2.3.18. swVTKConverter

Defined in swCore/swCore.h

class swVTKConverter : public QObject

The swVTKConverter class convert the swMesh object to the vtk grid using the vtk pointer.

Public Functions

swVTKConverter(swData *data, swMesh *mesh)

Constructor a empty data.

~swVTKConverter(void)

Destructor.

void setFilename(const QString &filename)
const QString &filename(void)
void intializeFrameCount()
QHash<int, vtkSmartPointer<vtkPolyData>> allLayersCellData()
vtkSmartPointer<vtkPolyData> cellData(int layer) const

Returns the vtk polydata

vtkSmartPointer<vtkPolyData> interData(int layer) const

Returns the vtk polydata of interfaces edges.

void writeNextFrame()

Update the vtk grid.

Public Static Functions

static QString filename(const QString &filename, const QString &extension, int step, int layer = 0)

Private Members

class swVTKConverterPrivate *d

Private Slots

void setCellDataScalarDataFields(const QString &field, int layer)