VTKFIG  0.20.20181114
Easy VTK based in situ visualization
Public Member Functions | Static Public Member Functions | List of all members
myplot0 Class Reference
+ Inheritance diagram for myplot0:
+ Collaboration diagram for myplot0:

Public Member Functions

 myplot0 ()
 
virtual std::string SubClassName ()
 Get subclass name (for s-c communication, should be replaced by tag. More...
 
void RTBuildAllVTKPipelines (vtkSmartPointer< vtkRenderer > renderer)
 Default implementation for 2D/3d datasets. More...
 
- Public Member Functions inherited from vtkfig::Figure
 Figure ()
 Construct empty figure. More...
 
 ~Figure ()
 
void SetBackground (double r, double g, double b)
 Set background color;. More...
 
template<class V >
void SetIsoLevels (V &v)
 
void SetData (std::shared_ptr< DataSet > data, const std::string name="")
 Add Dataset to figure. More...
 
void SetMaskedData (std::shared_ptr< DataSet > data, const std::string name, const std::string maskname)
 Add Dataset with mask to figure. More...
 
void SetData (DataSet &data, const std::string name="")
 Add Dataset to figure. More...
 
void SetMaskedData (DataSet &data, const std::string name, const std::string maskname)
 Add Dataset with mask to figure. More...
 
void SetContourRGBTable (RGBTable &tab, int lutsize)
 Set contour RGB table from RGBtable. More...
 
void SetTitle (std::string xtitle)
 Set figure title. More...
 
void SetViewVolume (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
 Set view volume (e.g. to zoom in to a part) More...
 
void SetViewVolumeToDataSetBounds ()
 Set view volume to dataset bounds (to overview the full dataset) More...
 
void SetValueRange (double vmin, double vmax)
 Set Range of values. More...
 
void SetAccumulateRange (bool b)
 Accumulate value ranges during run. More...
 
void SetXYAspect (double a)
 Set fixed xy aspect ratio. More...
 
void KeepXYAspect (bool b)
 Keep aspect ratio. More...
 
void ShowDomainAxes (bool b)
 Toggle rendering of domain axes. More...
 
void ShowDomainBox (bool b)
 Toggle rendering of domain bounding box. More...
 
void ShowDomainBoundary (bool b)
 Toggle rendering of domain boundary as transparent surface. More...
 
void RTAddContextActor (vtkSmartPointer< vtkContextActor > prop)
 Add vtk Actor to renderer showing figure. More...
 
void RTAddActor (vtkSmartPointer< vtkActor > prop)
 Add vtk Actor to renderer showing figure. More...
 
void RTAddActor2D (vtkSmartPointer< vtkActor2D > prop)
 Add vtk Actor to renderer showing figure. More...
 
void RTMessage (std::string msg)
 Show string in message field. More...
 
void RTAddAnnotations ()
 Add annotations. More...
 
void RTInitAnnotations ()
 Init annotations. More...
 

Static Public Member Functions

static std::shared_ptr< myplot0New ()
 
- Static Public Member Functions inherited from vtkfig::Figure
static std::shared_ptr< FigureNew ()
 Construct smartpointer to empty figure. More...
 

Additional Inherited Members

- Protected Member Functions inherited from vtkfig::Figure
void RTCalcTransform ()
 Calculate transformation to unit cube This shall be applied to all data. More...
 
void SetVMinMax ()
 Set minmax values from data. More...
 
void GenIsolevels ()
 Generate isolevels after minmax data known. More...
 
virtual void RTBuildVTKPipeline ()
 All functions prefixed with "RT" shall be called only from render thread. More...
 
void RTBuildDomainPipeline (vtkSmartPointer< vtkRenderer > renderer)
 Build domain pipeline for 2D/3D figures (outline, suface, axes) More...
 
template<class DATA >
void RTBuildDomainPipeline0 (vtkSmartPointer< vtkRenderer > renderer)
 Duck typing interface allowing to handle different VTK datatypes with the same code. More...
 
virtual void RTPreRender ()
 Pre-Render actions. More...
 
virtual void ServerRTSend (vtkSmartPointer< internals::Communicator > communicator)
 Send data to client. More...
 
virtual void ClientMTReceive (vtkSmartPointer< internals::Communicator > communicator)
 Receive data from server. More...
 
void ServerRTSendData (vtkSmartPointer< internals::Communicator > communicator)
 
void ClientMTReceiveData (vtkSmartPointer< internals::Communicator > communicator)
 
virtual void RTProcessKey (const std::string key)
 Process keyboard and mouse move events. More...
 
virtual void RTProcessMove (int dx, int dy)
 
int RTProcessPlaneKey (const std::string plane, int idim, const std::string key, bool &edit, vtkSmartPointer< vtkCutter > planecut)
 Process keyboard and mouse move events for plane section editing. More...
 
int RTProcessPlaneMove (const std::string plane, int idim, int dx, int dy, bool &edit, vtkSmartPointer< vtkCutter > planecut)
 
void RTShowPlanePos (vtkSmartPointer< vtkCutter > planecut, const std::string plane, int idim)
 
int RTProcessIsoKey (const std::string key, bool &edit)
 Process keyboard and mouse move events for isolevel editing. More...
 
int RTProcessIsoMove (int dx, int dy, bool &edit)
 
void RTShowIsolevel ()
 
void RTUpdateIsoSurfaceFilter ()
 
int RTProcessArrowKey (const std::string key, bool &edit)
 Process keyboard events for quiver arrow editing etc. More...
 
int RTProcessArrowMove (int dx, int dy, bool &edit)
 Process mouse move events for quiver arrow editing etc. More...
 
void RTShowArrowScale ()
 Show arrow scale informtion. More...
 
void RTShowActive ()
 Show figure is active [x]. More...
 
void RTShowInActive ()
 Show figure is inactive [ ]. More...
 
bool IsEmpty ()
 Check if figure is empty (== no actors added) More...
 
void RTUpdateActors ()
 Update all actors belonging to figure. More...
 
void SetRange ()
 Obtain the data range from the relevant dataset. More...
 
- Static Protected Member Functions inherited from vtkfig::Figure
static void SendRGBTable (vtkSmartPointer< internals::Communicator > communicator, RGBTable &rgbtab)
 Send rgb table to client. More...
 
static void ReceiveRGBTable (vtkSmartPointer< internals::Communicator > communicator, RGBTable &rgbtab)
 Receive rgb table from client. More...
 
- Protected Attributes inherited from vtkfig::Figure
vtkSmartPointer< vtkCornerAnnotation > annot
 The following items are declared in the base class in order to allow easy coding of interaction. More...
 
vtkSmartPointer< vtkTransform > transform =0
 
vtkSmartPointer< vtkCutter > planecutX
 Cutters for plane sections. More...
 
vtkSmartPointer< vtkCutter > planecutY
 
vtkSmartPointer< vtkCutter > planecutZ
 
vtkSmartPointer< vtkPlane > planeX
 Plane equations for plane sections. More...
 
vtkSmartPointer< vtkPlane > planeY
 
vtkSmartPointer< vtkPlane > planeZ
 
vtkSmartPointer< vtkGlyphSource2D > arrow2d
 Arrow glyph source. More...
 
vtkSmartPointer< vtkTransformPolyDataFilter > arrow3d
 
vtkSmartPointer< vtkTransform > arrow3dt
 
vtkSmartPointer< vtkArrowSource > arrow3ds
 
vtkSmartPointer< vtkActor > isosurface_plot
 Items for isosurface plot. More...
 
vtkSmartPointer< vtkContourFilter > isosurface_filter
 
vtkSmartPointer< vtkActor > isoline_plot
 Items for isoline plot. More...
 
vtkSmartPointer< vtkContourFilter > isoline_filter
 
vtkSmartPointer< vtkActor > elevation_plot
 Items for elevation plot. More...
 
vtkSmartPointer< vtkActor > surface_plot
 Items for surface plot. More...
 
vtkSmartPointer< vtkTransform > warp_transform
 Items for elevation plot. More...
 
vtkSmartPointer< vtkCubeAxesActor2D > axes
 
vtkSmartPointer< vtkActor > outline
 
vtkSmartPointer< vtkActor > splot
 
vtkSmartPointer< vtkTrivialProducer > data_producer =NULL
 Data producer for grid dataset. More...
 
vtkSmartPointer< vtkTrivialProducer > boundary_data_producer =NULL
 Data producer for boundary grid dataset. More...
 
double coordinate_scale_factor
 coordinate scale More...
 
std::string dataname
 Name of data item in data set. More...
 
vtkSmartPointer< vtkIdList > celllist =0
 Cell mask. More...
 
std::string title
 Title of figure. More...
 
vtkSmartPointer< vtkLookupTable > surface_lut
 Color lookup table for surface plots. More...
 
RGBTable surface_rgbtab {{0,0,0,1},{1,1,0,0}}
 
vtkSmartPointer< vtkLookupTable > quiver_lut
 
RGBTable quiver_rgbtab {{0,0,0,0},{1,0,0,0}}
 
vtkSmartPointer< vtkLookupTable > stream_lut
 
RGBTable stream_rgbtab {{0,0,0,1},{1,1,0,0}}
 
vtkSmartPointer< vtkLookupTable > cell_lut
 
vtkSmartPointer< vtkLookupTable > bface_lut
 
RGBTable cell_rgbtab
 
int cell_rgbtab_size =65
 
RGBTable bface_rgbtab
 
int bface_rgbtab_size =65
 
vtkSmartPointer< vtkScalarBarActor > cbar =NULL
 
vtkSmartPointer< vtkScalarBarActor > bcbar =NULL
 
vtkSmartPointer< vtkLookupTable > elevation_lut
 Color lookup table for contour plots vtkSmartPointer<vtkLookupTable> contour_lut; RGBTable contour_rgbtab{{0,0,0,0},{1,0,0,0}};. More...
 
RGBTable elevation_rgbtab {{0.0,0.9,0.9,0.9},{1.0,0.9,0.9,0.9}}
 
struct {
   double   vmin_set =1.0e100
 min/max set through api More...
 
   double   vmax_set =-1.0e100
 
   double   real_vmin =0
 min/max generated from api and data More...
 
   double   real_vmax =1
 
   double   data_vmin =0
 min/max calculated from data More...
 
   double   data_vmax =1
 
   double   xmin =1.0
 View volume data. More...
 
   double   xmax =-1.0
 
   double   ymin =1.0
 
   double   ymax =-1.0
 
   double   zmin =1.0
 
   double   zmax =-1.0
 
   double   coordinate_scale_factor_xyz [3] ={1,1,1}
 
   bool   accumulate_range =false
 
   bool   isolevels_locked =false
 
   double   eps_geom =1.0e-8
 
   bool   keep_aspect =true
 
   int   surface_colorbar_num_labels =11
 
   char   surface_colorbar_label_format [32] =" %+9.2e"
 
   double   aspect =1.0
 
   bool   show_grid_edges =true
 
   bool   show_surface =true
 
   bool   show_quiver =true
 
   bool   show_stream =false
 
   bool   show_isolines =true
 
   bool   show_isosurfaces =false
 
   bool   show_slider =false
 
   bool   show_surface_colorbar =true
 
   bool   show_grid_colorbar =true
 
   bool   show_quiver_colorbar =false
 
   bool   show_stream_colorbar =false
 
   bool   show_contour_colorbar =false
 
   bool   show_elevation =false
 
   int   contour_rgbtab_size =2
 
   bool   contour_rgbtab_modified =false
 
   int   surface_rgbtab_size =63
 
   bool   surface_rgbtab_modified =true
 
   int   quiver_rgbtab_size =2
 
   bool   quiver_rgbtab_modified =true
 
   int   stream_rgbtab_size =63
 
   bool   stream_rgbtab_modified =true
 
   int   elevation_rgbtab_size =2
 
   bool   wireframe =false
 
   bool   show_domain_axes =true
 
   bool   show_domain_boundary =true
 
   bool   show_domain_box =true
 
   double   domain_opacity =0.1
 
   double   domain_surface_color [3] ={0.8,0.8,0.8}
 
   int   spacedim =2
 
   double   isoline_width =2
 
   double   quiver_arrowscale_user =1.0
 
   double   quiver_arrowscale_geometry =0.1
 
   double   stream_maximum_propagation =1
 
   int   stream_maximum_number_of_steps =500
 
   double   stream_ribbonwidth =0.01
 
   double   stream_initial_integration_step =0.001
 
   double   stream_maximum_integration_step =0.1
 
   double   warp_ztran =0.0
 
   double   elevation_scale =1.0
 
   DataSet::DataType   datatype
 
state
 figure state More...
 
struct {
   bool   x_plane =false
 
   bool   y_plane =false
 
   bool   z_plane =false
 
   bool   l_iso =false
 
   bool   a_scale =false
 
edit
 edit state More...
 
double data_bounds [6]
 
double data_center [3]
 
double trans_bounds [6]
 
double trans_center [3]
 

Detailed Description

Definition at line 72 of file example-axis.cxx.


The documentation for this class was generated from the following file: