VTKFIG
0.25.0
Easy VTK based in situ visualization
|
Go to the documentation of this file.
7 #ifndef VTKFIG_SCALARVIEW_H
8 #define VTKFIG_SCALARVIEW_H
10 #include <vtkRenderer.h>
11 #include <vtkCommand.h>
12 #include <vtkDataSetAttributes.h>
13 #include <vtkGeometryFilter.h>
14 #include <vtkRectilinearGridGeometryFilter.h>
34 static std::shared_ptr<ScalarView>
New();
36 virtual std::string
SubClassName() override final {
return std::string(
"ScalarView");}
99 void RTBuildVTKPipeline() override final;
102 void ServerMPSend(vtkSmartPointer<internals::Communicator> communicator) override final;
103 void ClientMPReceive(vtkSmartPointer<internals::Communicator> communicator) override final;
106 template <class GRIDFUNC, class FILTER>
107 void RTBuildVTKPipeline2D();
109 template <class GRIDFUNC, class FILTER>
110 void RTBuildVTKPipeline3D();
122 rgbtab.resize(tab.size()/4);
123 for (
int i=0,j=0; i<tab.size(); i+=4,j++)
125 rgbtab[j].x=tab[i+0];
126 rgbtab[j].r=tab[i+1];
127 rgbtab[j].g=tab[i+2];
128 rgbtab[j].b=tab[i+3];
void ShowElevation(bool b)
Toggle elevation view (yet to be implemented)
Definition: vtkfigScalarView.h:57
Surface and contour plot of 2/3D scalar data.
Definition: vtkfigScalarView.h:28
void ShowSurfaceColorbar(bool b)
Toggle colorbar visualization.
Definition: vtkfigScalarView.h:48
virtual std::string SubClassName() override final
Get subclass name (for s-c communication, should be replaced by tag.
Definition: vtkfigScalarView.h:36
void SetSurfaceRGBTable(const V &tab, int lutsize)
Set Surface RGB table from vector.
Definition: vtkfigScalarView.h:119
void SetElevationZShift(double val)
Change zshift for elevation plot.
void SetSurfaceColorbarNumberOfLabels(int n)
Set number of labels in colorbar.
Definition: vtkfigScalarView.h:54
void SetIsolineWidth(double w)
Set width of isolines.
Definition: vtkfigScalarView.h:63
static std::shared_ptr< ScalarView > New()
Create smart pointer to ScalarView instance.
void ShowSurface(bool b)
Toggle surface plot on plane.
Definition: vtkfigScalarView.h:39
void SetNumberOfIsocontours(int n)
Set number of isocontours to show.
Definition: vtkfigScalarView.h:60
void SetSurfaceColorbarLabelFormat(std::string fmt)
Set label format for colorbar.
Definition: vtkfigScalarView.h:51
void ShowIsolines(bool b)
Toggle isoline rendering.
Definition: vtkfigScalarView.h:42
void ShowIsosurfaces(bool b)
Toggle isosurface rendering.
Definition: vtkfigScalarView.h:45
void SetElevationScale(double val)
Change scale for elevation plot.