VTKFIG
0.25.0
Easy VTK based in situ visualization
|
Go to the source code of this file.
Typedefs | |
typedef struct vtkfigFrame_struct | vtkfigFrame |
Provide a framework wrapping window+interactor+renderers from vtk. More... | |
typedef struct vtkfigDataSet_struct | vtkfigDataSet |
Class to collect all data given on one grid. More... | |
typedef struct vtkfigScalarView_struct | vtkfigScalarView |
Surface and contour plot of 2/3D scalar data. More... | |
typedef struct vtkfigVectorView_struct | vtkfigVectorView |
Quiver plots + streamlines for vector fields. More... | |
typedef struct vtkfigGridView_struct | vtkfigGridView |
Grid visualization. More... | |
typedef struct vtkfigXYPlot_struct | vtkfigXYPlot |
XY Function plot. More... | |
Functions | |
void | vtkfigPrintOpenGLInfo () |
vtkfigFrame * | vtkfigCreateFrame (void) |
void | vtkfigDestroyFrame (vtkfigFrame *frame) |
void | vtkfigUnmapFrame (vtkfigFrame *frame) |
Unmap frame from screen. More... | |
vtkfigDataSet * | vtkfigCreateDataSet (void) |
void | vtkfigDestroyDataSet (vtkfigDataSet *dataset) |
vtkfigScalarView * | vtkfigCreateScalarView (void) |
void | vtkfigDestroyScalarView (vtkfigScalarView *scalarview) |
vtkfigVectorView * | vtkfigCreateVectorView (void) |
void | vtkfigDestroyVectorView (vtkfigVectorView *vectorview) |
vtkfigGridView * | vtkfigCreateGridView (void) |
void | vtkfigDestroyGridView (vtkfigGridView *gridview) |
vtkfigXYPlot * | vtkfigCreateXYPlot (void) |
void | vtkfigDestroyXYPlot (vtkfigXYPlot *xyplot) |
void | vtkfigSetRectilinearGrid2D (vtkfigDataSet *dataset, double *x, int nx, double *y, int ny) |
Enter data of a 2D rectilinear grid. More... | |
void | vtkfigSetRectilinearGrid3D (vtkfigDataSet *dataset, double *x, int nx, double *y, int ny, double *z, int nz) |
Set data of a scalar function defined on the points of the grid. More... | |
void | vtkfigSetSimplexGrid (vtkfigDataSet *dataset, int index_offset, int dim, double *points, int npoints, int *cells, int ncells) |
Enter data of a simplex grid. More... | |
void | vtkfigSetCellRegions (vtkfigDataSet *dataset, int *cr, int n) |
Set cell region data (for multiregion grids) More... | |
void | vtkfigSetBoundaryCellRegions (vtkfigDataSet *dataset, int *cr, int n) |
Set boundary cell region data (for multiregion grids) More... | |
void | vtkfigSetSimplexGridBoundaryCells (vtkfigDataSet *dataset, int index_offset, int dim, int *bc, int n) |
void | vtkfigSetPointScalar (vtkfigDataSet *dataset, double *x, int nx, char *name) |
void | vtkfigSetPointVector (vtkfigDataSet *dataset, double *uvw, int npoints, int dim, char *name) |
void | vtkfigSetGridViewData (vtkfigGridView *gridview, vtkfigDataSet *dataset) |
Add Dataset to figure. More... | |
void | vtkfigSetScalarViewData (vtkfigScalarView *scalarview, vtkfigDataSet *dataset, char *name) |
Add Dataset to figure. More... | |
void | vtkfigSetVectorViewData (vtkfigVectorView *vectorview, vtkfigDataSet *dataset, char *name) |
Add Dataset to figure. More... | |
void | vtkfigShow (vtkfigFrame *frame) |
Show frame content and continue. More... | |
void | vtkfigInteract (vtkfigFrame *frame) |
Show frame content and wait for interaction. More... | |
void | vtkfigClearFrame (vtkfigFrame *frame) |
Remove all figures. More... | |
void | vtkfigAddScalarView (vtkfigFrame *frame, vtkfigScalarView *figure) |
Add figure at position (0) More... | |
void | vtkfigAddVectorView (vtkfigFrame *frame, vtkfigVectorView *figure) |
Add figure at position (0) More... | |
void | vtkfigAddGridView (vtkfigFrame *frame, vtkfigGridView *figure) |
Add figure at position (0) More... | |
void | vtkfigAddXYPlot (vtkfigFrame *frame, vtkfigXYPlot *figure) |
Add figure at position (0) More... | |
void | vtkfigAddScalarViewAt (vtkfigFrame *frame, vtkfigScalarView *figure, int ipos) |
Add figure at position (0) More... | |
void | vtkfigAddVectorViewAt (vtkfigFrame *frame, vtkfigVectorView *figure, int ipos) |
Add figure at position (0) More... | |
void | vtkfigAddGridViewAt (vtkfigFrame *frame, vtkfigGridView *figure, int ipos) |
Add figure at position (0) More... | |
void | vtkfigAddXYPlotAt (vtkfigFrame *frame, vtkfigXYPlot *figure, int ipos) |
Add figure at position (0) More... | |
void | vtkfigRemoveScalarView (vtkfigFrame *frame, vtkfigScalarView *figure) |
Remove figure. More... | |
void | vtkfigRemoveVectorView (vtkfigFrame *frame, vtkfigVectorView *figure) |
Remove figure. More... | |
void | vtkfigRemoveGridView (vtkfigFrame *frame, vtkfigGridView *figure) |
Remove figure. More... | |
void | vtkfigRemoveXYPlot (vtkfigFrame *frame, vtkfigXYPlot *figure) |
Remove figure. More... | |
void | vtkfigWritePNG (vtkfigFrame *frame, char *fname) |
Write png image of frame content. More... | |
void | vtkfigStartVideo (vtkfigFrame *frame, char *fname) |
Start video recording. More... | |
void | vtkfigStopVideo (vtkfigFrame *frame) |
Stop video recording. More... | |
void | vtkfigSetSize (vtkfigFrame *frame, int x, int y) |
Set frame size in pixels. More... | |
void | vtkfigSetLayout (vtkfigFrame *frame, int x, int y) |
Set layout of subframe grid. More... | |
void | vtkfigSetWindowTitle (vtkfigFrame *frame, char *title) |
Set window title. More... | |
void | vtkfigSetFrameTitle (vtkfigFrame *frame, char *title) |
Set Frame title. More... | |
void | vtkfigSetPosition (vtkfigFrame *frame, int x, int y) |
Set frame position on screen. More... | |
void | vtkfigWriteVTK (vtkfigDataSet *dataset, char *filename, char *filetype) |
Write dataset to disk in VTK format. More... | |
void | vtkfigSetIsolevels (vtkfigScalarView *scalarview, double *v, int nv) |
void | vtkfigShowIsosurfaces (vtkfigScalarView *scalarview, int show) |
void | vtkfigSetQuiverGrid2D (vtkfigVectorView *vectorview, int nx, int ny) |
Set quiver points on grid in domain bounding box (2D) More... | |
void | vtkfigSetQuiverGrid3D (vtkfigVectorView *vectorview, int nx, int ny, int nz) |
Set quiver points on grid in domain bounding box (2D) More... | |
void | vtfigAddPlot (vtkfigXYPlot *xyplot, double *x, int nx, double *y, int ny) |
Add a pair of x/y data to the figure. More... | |
void | vtkfigSetTitle (vtkfigXYPlot *xyplot, char *t) |
Set the title of the plot. More... | |
void | vtkfigShowLegend (vtkfigXYPlot *xyplot, int b) |
Show a legend box ? More... | |
void | vtkfigShowGrid (vtkfigXYPlot *xyplot, int b) |
Show grid lines in the plot ? More... | |
void | vtkfigAdjustLabels (vtkfigXYPlot *xyplot, int b) |
Adjust labels to "nice values" ? More... | |
void | vtkfigSetLegendPosition (vtkfigXYPlot *xyplot, double x, double y) |
Set the position of the legend box. More... | |
void | vtkfigSetLegendSize (vtkfigXYPlot *xyplot, double w, double h) |
Set the size of the legend box. More... | |
void | vtkfigClear (vtkfigXYPlot *xyplot) |
Remove all data from plot. More... | |
void | vtkfigSetPlotLineType (vtkfigXYPlot *xyplot, char *t) |
Set the line type of the next plot. More... | |
void | vtkfigSetPlotMarkerType (vtkfigXYPlot *xyplot, char *t) |
Set marker type. More... | |
void | vtkfigSetPlotColor (vtkfigXYPlot *xyplot, double r, double g, double b) |
Set the color of the next plot. More... | |
void | vtkfigSetPlotLegend (vtkfigXYPlot *xyplot, char *t) |
Set the information for the legend entry for the next plot. More... | |
void | vtkfigSetGridColor (vtkfigXYPlot *xyplot, double r, double g, double b) |
Set the color of the grid lines. More... | |
void | vtkfigSetAxesColor (vtkfigXYPlot *xyplot, double r, double g, double b) |
Set the color of the axes. More... | |
void | vtkfigSetXTitle (vtkfigXYPlot *xyplot, char *t) |
Set the title of the x axis. More... | |
void | vtkfigSetYTitle (vtkfigXYPlot *xyplot, char *t) |
Set the title of the y axis. More... | |
void | vtkfigSetLineWidth (vtkfigXYPlot *xyplot, double w) |
Set the width of all lines in the plot. More... | |
void | vtkfigSetMarkerSize (vtkfigXYPlot *xyplot, double s) |
Set the size of all markers in the plot. More... | |
void | vtkfigSetXRange (vtkfigXYPlot *xyplot, double x0, double x1) |
Set the range of the x values. More... | |
void | vtkfigSetYRange (vtkfigXYPlot *xyplot, double y0, double y1) |
Set the range of the y values. More... | |
void | vtkfigSetNumberOfXLabels (vtkfigXYPlot *xyplot, int n) |
Set the number of x axis labels. More... | |
void | vtkfigSetNumberOfYLabels (vtkfigXYPlot *xyplot, int n) |
Set the number of y axis labels. More... | |
C Language API for vtkfig.
This API is intended for the use of vtkfig from C and Julia. It defines C structs as wrappers for the C++ classes of vtkfig and C functions wrapping their methods.
typedef struct vtkfigFrame_struct vtkfigFrame |
Provide a framework wrapping window+interactor+renderers from vtk.
typedef struct vtkfigDataSet_struct vtkfigDataSet |
Class to collect all data given on one grid.
typedef struct vtkfigScalarView_struct vtkfigScalarView |
Surface and contour plot of 2/3D scalar data.
typedef struct vtkfigVectorView_struct vtkfigVectorView |
Quiver plots + streamlines for vector fields.
typedef struct vtkfigGridView_struct vtkfigGridView |
Grid visualization.
typedef struct vtkfigXYPlot_struct vtkfigXYPlot |
XY Function plot.
void vtkfigPrintOpenGLInfo | ( | ) |
vtkfigFrame* vtkfigCreateFrame | ( | void | ) |
void vtkfigDestroyFrame | ( | vtkfigFrame * | frame | ) |
void vtkfigUnmapFrame | ( | vtkfigFrame * | frame | ) |
Unmap frame from screen.
vtkfigDataSet* vtkfigCreateDataSet | ( | void | ) |
void vtkfigDestroyDataSet | ( | vtkfigDataSet * | dataset | ) |
vtkfigScalarView* vtkfigCreateScalarView | ( | void | ) |
void vtkfigDestroyScalarView | ( | vtkfigScalarView * | scalarview | ) |
vtkfigVectorView* vtkfigCreateVectorView | ( | void | ) |
void vtkfigDestroyVectorView | ( | vtkfigVectorView * | vectorview | ) |
vtkfigGridView* vtkfigCreateGridView | ( | void | ) |
void vtkfigDestroyGridView | ( | vtkfigGridView * | gridview | ) |
vtkfigXYPlot* vtkfigCreateXYPlot | ( | void | ) |
void vtkfigDestroyXYPlot | ( | vtkfigXYPlot * | xyplot | ) |
void vtkfigSetRectilinearGrid2D | ( | vtkfigDataSet * | dataset, |
double * | x, | ||
int | nx, | ||
double * | y, | ||
int | ny | ||
) |
Enter data of a 2D rectilinear grid.
void vtkfigSetRectilinearGrid3D | ( | vtkfigDataSet * | dataset, |
double * | x, | ||
int | nx, | ||
double * | y, | ||
int | ny, | ||
double * | z, | ||
int | nz | ||
) |
Set data of a scalar function defined on the points of the grid.
void vtkfigSetSimplexGrid | ( | vtkfigDataSet * | dataset, |
int | index_offset, | ||
int | dim, | ||
double * | points, | ||
int | npoints, | ||
int * | cells, | ||
int | ncells | ||
) |
Enter data of a simplex grid.
void vtkfigSetCellRegions | ( | vtkfigDataSet * | dataset, |
int * | cr, | ||
int | n | ||
) |
Set cell region data (for multiregion grids)
void vtkfigSetBoundaryCellRegions | ( | vtkfigDataSet * | dataset, |
int * | cr, | ||
int | n | ||
) |
Set boundary cell region data (for multiregion grids)
void vtkfigSetSimplexGridBoundaryCells | ( | vtkfigDataSet * | dataset, |
int | index_offset, | ||
int | dim, | ||
int * | bc, | ||
int | n | ||
) |
void vtkfigSetPointScalar | ( | vtkfigDataSet * | dataset, |
double * | x, | ||
int | nx, | ||
char * | name | ||
) |
void vtkfigSetPointVector | ( | vtkfigDataSet * | dataset, |
double * | uvw, | ||
int | npoints, | ||
int | dim, | ||
char * | name | ||
) |
void vtkfigSetGridViewData | ( | vtkfigGridView * | gridview, |
vtkfigDataSet * | dataset | ||
) |
Add Dataset to figure.
void vtkfigSetScalarViewData | ( | vtkfigScalarView * | scalarview, |
vtkfigDataSet * | dataset, | ||
char * | name | ||
) |
Add Dataset to figure.
void vtkfigSetVectorViewData | ( | vtkfigVectorView * | vectorview, |
vtkfigDataSet * | dataset, | ||
char * | name | ||
) |
Add Dataset to figure.
void vtkfigShow | ( | vtkfigFrame * | frame | ) |
Show frame content and continue.
void vtkfigInteract | ( | vtkfigFrame * | frame | ) |
Show frame content and wait for interaction.
void vtkfigClearFrame | ( | vtkfigFrame * | frame | ) |
Remove all figures.
void vtkfigAddScalarView | ( | vtkfigFrame * | frame, |
vtkfigScalarView * | figure | ||
) |
Add figure at position (0)
void vtkfigAddVectorView | ( | vtkfigFrame * | frame, |
vtkfigVectorView * | figure | ||
) |
Add figure at position (0)
void vtkfigAddGridView | ( | vtkfigFrame * | frame, |
vtkfigGridView * | figure | ||
) |
Add figure at position (0)
void vtkfigAddXYPlot | ( | vtkfigFrame * | frame, |
vtkfigXYPlot * | figure | ||
) |
Add figure at position (0)
void vtkfigAddScalarViewAt | ( | vtkfigFrame * | frame, |
vtkfigScalarView * | figure, | ||
int | ipos | ||
) |
Add figure at position (0)
void vtkfigAddVectorViewAt | ( | vtkfigFrame * | frame, |
vtkfigVectorView * | figure, | ||
int | ipos | ||
) |
Add figure at position (0)
void vtkfigAddGridViewAt | ( | vtkfigFrame * | frame, |
vtkfigGridView * | figure, | ||
int | ipos | ||
) |
Add figure at position (0)
void vtkfigAddXYPlotAt | ( | vtkfigFrame * | frame, |
vtkfigXYPlot * | figure, | ||
int | ipos | ||
) |
Add figure at position (0)
void vtkfigRemoveScalarView | ( | vtkfigFrame * | frame, |
vtkfigScalarView * | figure | ||
) |
Remove figure.
void vtkfigRemoveVectorView | ( | vtkfigFrame * | frame, |
vtkfigVectorView * | figure | ||
) |
Remove figure.
void vtkfigRemoveGridView | ( | vtkfigFrame * | frame, |
vtkfigGridView * | figure | ||
) |
Remove figure.
void vtkfigRemoveXYPlot | ( | vtkfigFrame * | frame, |
vtkfigXYPlot * | figure | ||
) |
Remove figure.
void vtkfigWritePNG | ( | vtkfigFrame * | frame, |
char * | fname | ||
) |
Write png image of frame content.
void vtkfigStartVideo | ( | vtkfigFrame * | frame, |
char * | fname | ||
) |
Start video recording.
void vtkfigStopVideo | ( | vtkfigFrame * | frame | ) |
Stop video recording.
void vtkfigSetSize | ( | vtkfigFrame * | frame, |
int | x, | ||
int | y | ||
) |
Set frame size in pixels.
void vtkfigSetLayout | ( | vtkfigFrame * | frame, |
int | x, | ||
int | y | ||
) |
Set layout of subframe grid.
void vtkfigSetWindowTitle | ( | vtkfigFrame * | frame, |
char * | title | ||
) |
Set window title.
void vtkfigSetFrameTitle | ( | vtkfigFrame * | frame, |
char * | title | ||
) |
Set Frame title.
void vtkfigSetPosition | ( | vtkfigFrame * | frame, |
int | x, | ||
int | y | ||
) |
Set frame position on screen.
void vtkfigWriteVTK | ( | vtkfigDataSet * | dataset, |
char * | filename, | ||
char * | filetype | ||
) |
Write dataset to disk in VTK format.
void vtkfigSetIsolevels | ( | vtkfigScalarView * | scalarview, |
double * | v, | ||
int | nv | ||
) |
void vtkfigShowIsosurfaces | ( | vtkfigScalarView * | scalarview, |
int | show | ||
) |
void vtkfigSetQuiverGrid2D | ( | vtkfigVectorView * | vectorview, |
int | nx, | ||
int | ny | ||
) |
Set quiver points on grid in domain bounding box (2D)
void vtkfigSetQuiverGrid3D | ( | vtkfigVectorView * | vectorview, |
int | nx, | ||
int | ny, | ||
int | nz | ||
) |
Set quiver points on grid in domain bounding box (2D)
void vtfigAddPlot | ( | vtkfigXYPlot * | xyplot, |
double * | x, | ||
int | nx, | ||
double * | y, | ||
int | ny | ||
) |
Add a pair of x/y data to the figure.
void vtkfigSetTitle | ( | vtkfigXYPlot * | xyplot, |
char * | t | ||
) |
Set the title of the plot.
void vtkfigShowLegend | ( | vtkfigXYPlot * | xyplot, |
int | b | ||
) |
Show a legend box ?
void vtkfigShowGrid | ( | vtkfigXYPlot * | xyplot, |
int | b | ||
) |
Show grid lines in the plot ?
void vtkfigAdjustLabels | ( | vtkfigXYPlot * | xyplot, |
int | b | ||
) |
Adjust labels to "nice values" ?
void vtkfigSetLegendPosition | ( | vtkfigXYPlot * | xyplot, |
double | x, | ||
double | y | ||
) |
Set the position of the legend box.
void vtkfigSetLegendSize | ( | vtkfigXYPlot * | xyplot, |
double | w, | ||
double | h | ||
) |
Set the size of the legend box.
void vtkfigClear | ( | vtkfigXYPlot * | xyplot | ) |
Remove all data from plot.
void vtkfigSetPlotLineType | ( | vtkfigXYPlot * | xyplot, |
char * | t | ||
) |
Set the line type of the next plot.
void vtkfigSetPlotMarkerType | ( | vtkfigXYPlot * | xyplot, |
char * | t | ||
) |
Set marker type.
void vtkfigSetPlotColor | ( | vtkfigXYPlot * | xyplot, |
double | r, | ||
double | g, | ||
double | b | ||
) |
Set the color of the next plot.
void vtkfigSetPlotLegend | ( | vtkfigXYPlot * | xyplot, |
char * | t | ||
) |
Set the information for the legend entry for the next plot.
void vtkfigSetGridColor | ( | vtkfigXYPlot * | xyplot, |
double | r, | ||
double | g, | ||
double | b | ||
) |
Set the color of the grid lines.
void vtkfigSetAxesColor | ( | vtkfigXYPlot * | xyplot, |
double | r, | ||
double | g, | ||
double | b | ||
) |
Set the color of the axes.
void vtkfigSetXTitle | ( | vtkfigXYPlot * | xyplot, |
char * | t | ||
) |
Set the title of the x axis.
void vtkfigSetYTitle | ( | vtkfigXYPlot * | xyplot, |
char * | t | ||
) |
Set the title of the y axis.
void vtkfigSetLineWidth | ( | vtkfigXYPlot * | xyplot, |
double | w | ||
) |
Set the width of all lines in the plot.
void vtkfigSetMarkerSize | ( | vtkfigXYPlot * | xyplot, |
double | s | ||
) |
Set the size of all markers in the plot.
void vtkfigSetXRange | ( | vtkfigXYPlot * | xyplot, |
double | x0, | ||
double | x1 | ||
) |
Set the range of the x values.
void vtkfigSetYRange | ( | vtkfigXYPlot * | xyplot, |
double | y0, | ||
double | y1 | ||
) |
Set the range of the y values.
void vtkfigSetNumberOfXLabels | ( | vtkfigXYPlot * | xyplot, |
int | n | ||
) |
Set the number of x axis labels.
void vtkfigSetNumberOfYLabels | ( | vtkfigXYPlot * | xyplot, |
int | n | ||
) |
Set the number of y axis labels.