VTKFIG  0.25.0
Easy VTK based in situ visualization
vtkfigFigure.h
Go to the documentation of this file.
1 
7 #ifndef VTKFIG_FIGURE_H
8 #define VTKFIG_FIGURE_H
9 
10 #include <memory>
11 #include <vector>
12 
13 #include <vtkSmartPointer.h>
14 #include <vtkActor.h>
15 #include <vtkContextActor.h>
16 #include <vtkActor2D.h>
17 #include <vtkContourFilter.h>
18 #include <vtkPolyDataAlgorithm.h>
19 #include <vtkTransformPolyDataFilter.h>
20 #include <vtkRenderer.h>
21 #include <vtkCutter.h>
22 #include <vtkPlane.h>
23 #include <vtkTransform.h>
24 #include <vtkCornerAnnotation.h>
25 #include <vtkGlyphSource2D.h>
26 #include <vtkArrowSource.h>
27 #include <vtkIdList.h>
28 #include <vtkCubeAxesActor2D.h>
29 #include <vtkTrivialProducer.h>
30 
31 
32 #include "vtkfigTools.h"
33 #include "vtkfigDataSet.h"
34 
35 #include "internals/vtkfigCommunicator.h"
36 
37 namespace vtkfig
38 {
39 
40 
41  namespace internals
42  {
43  class vtkfigRenderThread;
44  class vtkfigInteractorStyle;
45  class vtkfigTimerCallback;
46  class Client;
47  }
48 
61  class Figure
62  {
63 
64  public:
65 
67  static std::shared_ptr<Figure> New();
68 
70  void SetBackground(double r, double g, double b) { bgcolor[0]=r; bgcolor[1]=g; bgcolor[2]=b;}
71 
72 
73 
74  template <class V>
75  void SetIsolevels(V&v)
76  {
77  isoline_filter->SetNumberOfContours(v.size());
78  for (size_t i=0;i<v.size(); i++)
79  isoline_filter->SetValue(i,v[i]);
80  isoline_filter->Modified();
81  state.isolevels_locked=true;
82  }
83 
87  void SetData(std::shared_ptr<DataSet> data, const std::string name="");
88 
89 
93  void SetMaskedData(std::shared_ptr<DataSet> data, const std::string name, const std::string maskname);
94 
100  void SetContourRGBTable(RGBTable & tab, int lutsize);
101 
103  void SetTitle(std::string xtitle) { title=xtitle;}
104 
106  void SetViewVolume(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) { state.xmin=xmin; state.xmax=xmax; state.ymin=ymin; state.ymax=ymax; state.zmin=zmin; state.zmax=zmax; transform_dirty=true;}
107 
109  void SetViewVolumeToDataSetBounds() { state.xmax=-1; state.xmin=1; transform_dirty=true;}
110 
112  void SetValueRange(double vmin, double vmax){state.vmin_set=vmin; state.vmax_set=vmax;}
113 
115  void SetAccumulateRange(bool b){ state.accumulate_range=b;}
116 
118  void SetXYAspect(double a) {state.aspect=a;}
119 
121  void KeepXYAspect(bool b) {state.keep_aspect=b;}
122 
124  void SetTransformDirty();
125 
127  void ShowDomainAxes(bool b) { state.show_domain_axes=b;}
128 
130  void ShowDomainBox(bool b) { state.show_domain_box=b;}
131 
133  void ShowDomainOutline(bool b) { state.show_domain_outline=b;}
134 
135 
139  void AddContextActor(vtkSmartPointer<vtkContextActor> prop) {RTAddContextActor(prop);}
140 
144  void AddActor(vtkSmartPointer<vtkActor> prop) {RTAddActor(prop);};
145 
149  void AddActor2D(vtkSmartPointer<vtkActor2D> prop) {RTAddActor2D(prop);};
150 
154  void Message(std::string msg) {RTMessage(msg);}
155 
160 
161 
163  public:
164  friend class Frame;
165  friend class internals::vtkfigRenderThread;
166  friend class internals::Client;
167  friend class internals::vtkfigInteractorStyle;
168  friend class internals::vtkfigTimerCallback;
169 
174  void RTAddContextActor(vtkSmartPointer<vtkContextActor> prop);
175 
180  void RTAddActor(vtkSmartPointer<vtkActor> prop);
181 
186  void RTAddActor2D(vtkSmartPointer<vtkActor2D> prop);
187 
192  void RTMessage(std::string msg);
193 
198  void RTAddAnnotations();
199 
203  void RTInitAnnotations();
204 
205 
206 
208  static void MPSendRGBTable(vtkSmartPointer<internals::Communicator> communicator, RGBTable & rgbtab);
209 
211  static void MPReceiveRGBTable(vtkSmartPointer<internals::Communicator> communicator, RGBTable & rgbtab);
212 
215  void RTCalcTransform();
216 
217 
218 
220  void SetVMinMax();
221 
223  void GenIsolevels();
224 
225 
228  virtual void RTBuildVTKPipeline(){};
229 
232  void RTBuildDomainPipeline(vtkSmartPointer<vtkRenderer> renderer);
233 
236  template <class DATA>
237  void RTBuildDomainPipeline0(vtkSmartPointer<vtkRenderer> renderer);
238 
240  virtual void RTBuildAllVTKPipelines(vtkSmartPointer<vtkRenderer> renderer)
241  {
243  RTBuildDomainPipeline(renderer);
245  };
246 
248  virtual void RTPreRender() {};
249 
252  virtual void ServerMPSend(vtkSmartPointer<internals::Communicator> communicator){}
253 
255  virtual void ClientMPReceive(vtkSmartPointer<internals::Communicator> communicator) {};
256 
259  void ServerMPSendData(vtkSmartPointer<internals::Communicator> communicator);
260 
262  void ClientMPReceiveData(vtkSmartPointer<internals::Communicator> communicator);
263 
264 
266  virtual void RTProcessKey(const std::string key);
267 
269  virtual void RTProcessMove(int dx, int dy);
270 
272  void RTRefreshState();
273  void RefreshState();
274 
275 
277  int RTProcessPlaneKey(const std::string plane,int idim, const std::string key, bool & edit, vtkSmartPointer<vtkCutter> planecut);
279  int RTProcessPlaneMove(const std::string plane,int idim, int dx, int dy, bool & edit, vtkSmartPointer<vtkCutter> planecut );
281  void RTShowPlanePos(vtkSmartPointer<vtkCutter> planecut,const std::string plane, int idim);
282 
284  int RTProcessIsoKey(const std::string key, bool & edit);
286  int RTProcessIsoMove(int dx, int dy, bool & edit);
288  void RTShowIsolevel();
291 
293  int RTProcessArrowKey(const std::string key, bool & edit);
294 
296  int RTProcessArrowMove(int dx, int dy, bool & edit);
297 
299  void RTShowArrowScale();
300 
302  void RTShowActive();
303 
305  void RTShowInActive();
306 
308  bool IsEmpty();
309 
311  virtual std::string SubClassName() {return std::string("FigureBase");}
312 
314  void RTUpdateActors();
315 
317  void SetRange();
318 
320  vtkSmartPointer<vtkCornerAnnotation> annot;
321 
323  vtkSmartPointer<vtkTransform> transform=0;
324 
326  vtkSmartPointer<vtkCutter> planecutX;
328  vtkSmartPointer<vtkCutter> planecutY;
330  vtkSmartPointer<vtkCutter> planecutZ;
331 
333  vtkSmartPointer<vtkPlane> planeX;
335  vtkSmartPointer<vtkPlane> planeY;
337  vtkSmartPointer<vtkPlane> planeZ;
338 
340  vtkSmartPointer<vtkGlyphSource2D> arrow2d;
342  vtkSmartPointer<vtkTransformPolyDataFilter> arrow3d;
344  vtkSmartPointer<vtkTransform> arrow3dt;
346  vtkSmartPointer<vtkArrowSource> arrow3ds;
347 
349  vtkSmartPointer<vtkActor> isosurface_plot;
351  vtkSmartPointer<vtkContourFilter> isosurface_filter;
352 
354  vtkSmartPointer<vtkActor> isoline_plot;
356  vtkSmartPointer<vtkContourFilter> isoline_filter;
357 
359  vtkSmartPointer<vtkActor> elevation_plot;
360 
362  vtkSmartPointer<vtkActor> surface_plot;
363 
365  vtkSmartPointer<vtkTransform> warp_transform;
366 
368  vtkSmartPointer<vtkCubeAxesActor2D> axes;
369 
371  vtkSmartPointer<vtkActor> box;
372 
374  vtkSmartPointer<vtkActor> outline;
375 
376 
377 
378 
380  vtkSmartPointer<vtkTrivialProducer> data_producer=NULL;
381 
383  vtkSmartPointer<vtkTrivialProducer> boundary_data_producer=NULL;
384 
387 
389  std::string dataname;
390 
392  vtkSmartPointer<vtkIdList> celllist=0;
393 
395  std::string title;
396 
398  vtkSmartPointer<vtkLookupTable> surface_lut;
399 
401  RGBTable surface_rgbtab{{0,0,0,1},{1,1,0,0}};
402 
404  vtkSmartPointer<vtkLookupTable> quiver_lut;
405 
407  RGBTable quiver_rgbtab{{0,0,0,0},{1,0,0,0}};
408 
410  vtkSmartPointer<vtkLookupTable> stream_lut;
411 
413  RGBTable stream_rgbtab{{0,0,0,1},{1,1,0,0}};
414 
415 
417  vtkSmartPointer<vtkLookupTable> elevation_lut;
418 
419 
421  RGBTable elevation_rgbtab{{0.0,0.9,0.9,0.9},{1.0,0.9,0.9,0.9}};
422 
423 
425  vtkSmartPointer<vtkLookupTable> cell_lut;
426 
427 
430  {0.00, 1.0, 0.5, 0.5},
431  {0.25, 1.0, 1.0, 0.5},
432  {0.50, 0.5, 1.0, 0.5},
433  {0.75, 0.5, 1.0, 1.0},
434  {1.00, 0.5, 0.5, 1.0}};
435  int cell_rgbtab_size=65;
436 
437 
439  vtkSmartPointer<vtkLookupTable> bface_lut;
440 
443  {0.00, 0.8, 0.0, 0.0},
444  {0.25, 0.8, 0.8, 0.0},
445  {0.50, 0.0, 0.8, 0.0},
446  {0.75, 0.0, 0.8, 0.8},
447  {1.00, 0.0, 0.0, 0.8}};
448  int bface_rgbtab_size=65;
449 
451  vtkSmartPointer<vtkScalarBarActor> cbar=NULL;
452 
454  vtkSmartPointer<vtkScalarBarActor> bcbar=NULL;
455 
456 
458  struct
459  {
460 
462  double vmin_set=1.0e100;
463  double vmax_set=-1.0e100;
464 
466  double real_vmin=0;
467  double real_vmax=1;
468 
470  double data_vmin=0;
471  double data_vmax=1;
472 
473 
475  double xmin=1.0;
476  double xmax=-1.0;
477  double ymin=1.0;
478  double ymax=-1.0;
479  double zmin=1.0;
480  double zmax=-1.0;
481 
482  double coordinate_scale_factor_xyz[3]={1,1,1};
483 
484  bool accumulate_range=false;
485 
486  bool isolevels_locked=false;
487 
488  double eps_geom=1.0e-8;
489 
490  bool keep_aspect=true;
491 
492  int surface_colorbar_num_labels=11;
493 
494  char surface_colorbar_label_format[32]=" %+9.2e";
495 
496  double aspect=1.0;
497 
498  bool show_grid_edges=true;
499 
500  bool show_surface=true;
501 
502  bool show_quiver=true;
503 
504  bool show_stream=false;
505 
506  bool show_isolines=true;
507 
508  bool show_isosurfaces=false;
509 
510  bool show_slider=false;
511 
512  bool show_surface_colorbar=true;
513 
514  bool show_grid_colorbar=true;
515 
516  bool show_quiver_colorbar=false;
517 
518  bool show_stream_colorbar=false;
519 
520  bool show_contour_colorbar=false;
521 
522  bool show_elevation=false;
523 
524  int contour_rgbtab_size=2;
525 
526  bool contour_rgbtab_modified=false;
527 
528  int surface_rgbtab_size=63;
529 
530  bool surface_rgbtab_modified=true;
531 
532  int quiver_rgbtab_size=2;
533 
534  bool quiver_rgbtab_modified=true;
535 
536  int stream_rgbtab_size=63;
537 
538  bool stream_rgbtab_modified=true;
539 
540  int elevation_rgbtab_size=2;
541 
542  bool wireframe=false;
543 
544  bool show_domain_axes=true;
545 
546  bool show_domain_outline=true;
547 
548  bool show_domain_box=true;
549 
550  double domain_opacity=0.1;
551 
552  double domain_surface_color[3]={0.8,0.8,0.8};
553 
554  int spacedim=2;
555 
556  double isoline_width=2;
557 
558  double quiver_arrowscale_user=1.0;
559 
560  double quiver_arrowscale_geometry=0.1;
561 
562  double stream_maximum_propagation=1;
563 
564  int stream_maximum_number_of_steps=500;
565 
566  double stream_ribbonwidth=0.01;
567 
568  double stream_initial_integration_step=0.001;
569 
570  double stream_maximum_integration_step=0.1;
571 
572  double warp_ztran=0.0;
573 
574  double elevation_scale=1.0;
575 
576  DataSet::DataType datatype;
577 
578 
579  } state;
580 
581 
583  struct
584  {
585  bool x_plane=false;
586  bool y_plane=false;
587  bool z_plane=false;
588  bool l_iso=false;
589  bool a_scale=false;
590  } edit;
591 
592  double data_bounds[6];
593  double data_center[3];
594 
595  double trans_bounds[6];
596  double trans_center[3];
597 
598 
599  protected:
600  Figure();
601  virtual ~Figure(){};
602 
603  //private:
604  public:
606  std::vector<vtkSmartPointer<vtkContextActor>> ctxactors;
607  std::vector<vtkSmartPointer<vtkActor>> actors;
608  std::vector<vtkSmartPointer<vtkActor2D>> actors2d;
609 
610  bool transform_dirty=true;
611 
613  double bgcolor[3]={1,1,1};
614 
616  int framepos=0;
617 
618  int framenum=-1;
619  };
620 
621 
622 
623 }
624 
625 #endif
vtkfig::Figure::SetXYAspect
void SetXYAspect(double a)
Set fixed xy aspect ratio.
Definition: vtkfigFigure.h:118
vtkfig::Figure::MPReceiveRGBTable
static void MPReceiveRGBTable(vtkSmartPointer< internals::Communicator > communicator, RGBTable &rgbtab)
Receive rgb table from client.
vtkfig::Figure::axes
vtkSmartPointer< vtkCubeAxesActor2D > axes
Axes actor.
Definition: vtkfigFigure.h:368
vtkfig::Figure::RTProcessIsoKey
int RTProcessIsoKey(const std::string key, bool &edit)
Process keyboard and mouse move events for isolevel editing.
vtkfig::Figure::AddActor2D
void AddActor2D(vtkSmartPointer< vtkActor2D > prop)
Add vtk Actor to renderer showing figure.
Definition: vtkfigFigure.h:149
vtkfig::Figure::RTProcessPlaneMove
int RTProcessPlaneMove(const std::string plane, int idim, int dx, int dy, bool &edit, vtkSmartPointer< vtkCutter > planecut)
Process keyboard and mouse move events for plane section editing.
vtkfig::Figure::isosurface_plot
vtkSmartPointer< vtkActor > isosurface_plot
Isosurface plot actor.
Definition: vtkfigFigure.h:349
vtkfig::Figure::SetMaskedData
void SetMaskedData(std::shared_ptr< DataSet > data, const std::string name, const std::string maskname)
Add Dataset with mask to figure.
vtkfig::Figure::ShowDomainBox
void ShowDomainBox(bool b)
Toggle rendering of domain bounding box.
Definition: vtkfigFigure.h:130
vtkfig::Figure::RTProcessMove
virtual void RTProcessMove(int dx, int dy)
Process mouse event.
vtkfig::Figure::edit
struct vtkfig::Figure::@1 edit
edit state
vtkfig::Figure::ServerMPSendData
void ServerMPSendData(vtkSmartPointer< internals::Communicator > communicator)
Send data to client.
vtkfig::Figure::GenIsolevels
void GenIsolevels()
Generate isolevels after minmax data known.
vtkfig::Figure::state
struct vtkfig::Figure::@0 state
figure state
vtkfig::Figure::RTUpdateActors
void RTUpdateActors()
Update all actors belonging to figure.
vtkfig::Figure::planeY
vtkSmartPointer< vtkPlane > planeY
Plane equation for plane sections.
Definition: vtkfigFigure.h:335
vtkfig::Figure::RTCalcTransform
void RTCalcTransform()
Calculate transformation to unit cube This shall be applied to all data.
vtkfig::Figure::RTProcessArrowMove
int RTProcessArrowMove(int dx, int dy, bool &edit)
Process mouse move events for quiver arrow editing etc.
vtkfig::Figure::planeX
vtkSmartPointer< vtkPlane > planeX
Plane equation for plane sections.
Definition: vtkfigFigure.h:333
vtkfig::Figure::arrow3dt
vtkSmartPointer< vtkTransform > arrow3dt
Arrow glyph source.
Definition: vtkfigFigure.h:344
vtkfig::Figure::AddContextActor
void AddContextActor(vtkSmartPointer< vtkContextActor > prop)
Add vtk Actor to renderer showing figure.
Definition: vtkfigFigure.h:139
vtkfig::Figure::planecutX
vtkSmartPointer< vtkCutter > planecutX
Cutter for plane sections.
Definition: vtkfigFigure.h:326
vtkfig::DataSet::DataType
DataType
Enum describing different possible data types.
Definition: vtkfigDataSet.h:300
vtkfig::Figure::stream_rgbtab
RGBTable stream_rgbtab
Color table for stream plots.
Definition: vtkfigFigure.h:413
vtkfig::Figure::dataname
std::string dataname
Name of data item in data set.
Definition: vtkfigFigure.h:389
vtkfig::Figure::elevation_rgbtab
RGBTable elevation_rgbtab
Color table for elevation plots.
Definition: vtkfigFigure.h:421
vtkfig::Figure::RTProcessKey
virtual void RTProcessKey(const std::string key)
Process keyboard event.
vtkfig::Figure::box
vtkSmartPointer< vtkActor > box
Box actor.
Definition: vtkfigFigure.h:371
vtkfig::Figure::RTMessage
void RTMessage(std::string msg)
Show string in message field.
vtkfig::Figure::RTShowArrowScale
void RTShowArrowScale()
Show arrow scale informtion.
vtkfig::Figure::RTProcessIsoMove
int RTProcessIsoMove(int dx, int dy, bool &edit)
Process keyboard and mouse move events for isolevel editing.
vtkfig::Figure::SetVMinMax
void SetVMinMax()
Set minmax values from data.
vtkfig::Figure::SubClassName
virtual std::string SubClassName()
Get subclass name (for s-c communication, should be replaced by tag.
Definition: vtkfigFigure.h:311
vtkfig::Figure::isoline_plot
vtkSmartPointer< vtkActor > isoline_plot
Isoline plot actor.
Definition: vtkfigFigure.h:354
vtkfig::Figure::quiver_rgbtab
RGBTable quiver_rgbtab
Color table for quiver plots.
Definition: vtkfigFigure.h:407
vtkfig::Figure::SetRange
void SetRange()
Obtain the data range from the relevant dataset.
vtkfig::Figure::transform
vtkSmartPointer< vtkTransform > transform
Transformation.
Definition: vtkfigFigure.h:323
vtkfig::Figure::SetTransformDirty
void SetTransformDirty()
InvalidateTransform.
vtkfig::Figure::coordinate_scale_factor
double coordinate_scale_factor
coordinate scale
Definition: vtkfigFigure.h:386
vtkfig::Figure::SetData
void SetData(std::shared_ptr< DataSet > data, const std::string name="")
Add Dataset to figure.
vtkfig::Figure::annot
vtkSmartPointer< vtkCornerAnnotation > annot
Title+message text fields.
Definition: vtkfigFigure.h:320
vtkfig::Figure::xmin
double xmin
View volume data.
Definition: vtkfigFigure.h:475
vtkfig::Figure::surface_lut
vtkSmartPointer< vtkLookupTable > surface_lut
Color lookup table for surface plots.
Definition: vtkfigFigure.h:398
vtkfig::Figure::planecutZ
vtkSmartPointer< vtkCutter > planecutZ
Cutter for plane sections.
Definition: vtkfigFigure.h:330
vtkfig::Figure::cell_lut
vtkSmartPointer< vtkLookupTable > cell_lut
Color lookup table for grid plot cell colors.
Definition: vtkfigFigure.h:425
vtkfig::Figure::elevation_lut
vtkSmartPointer< vtkLookupTable > elevation_lut
Color lookup table for elevation plots.
Definition: vtkfigFigure.h:417
vtkfig::Figure::RTBuildVTKPipeline
virtual void RTBuildVTKPipeline()
Subclasses re-implement this in order to build the vtk rendering pipeline.
Definition: vtkfigFigure.h:228
vtkfig::Figure::RTBuildDomainPipeline0
void RTBuildDomainPipeline0(vtkSmartPointer< vtkRenderer > renderer)
Duck typing interface allowing to handle different VTK datatypes with the same code.
vtkfig::Figure::SetContourRGBTable
void SetContourRGBTable(RGBTable &tab, int lutsize)
Set contour RGB table from RGBtable.
vtkfig::Figure::quiver_lut
vtkSmartPointer< vtkLookupTable > quiver_lut
Color lookup table for quiver plots.
Definition: vtkfigFigure.h:404
vtkfig::Figure::elevation_plot
vtkSmartPointer< vtkActor > elevation_plot
Items for elevation plot.
Definition: vtkfigFigure.h:359
vtkfig::Figure::RTUpdateIsoSurfaceFilter
void RTUpdateIsoSurfaceFilter()
Process keyboard and mouse move events for isolevel editing.
vtkfig::Figure::isoline_filter
vtkSmartPointer< vtkContourFilter > isoline_filter
Isoline plot filter.
Definition: vtkfigFigure.h:356
vtkfig::Figure::RTPreRender
virtual void RTPreRender()
Pre-Render actions.
Definition: vtkfigFigure.h:248
vtkfig::Figure::real_vmin
double real_vmin
min/max generated from api and data
Definition: vtkfigFigure.h:466
vtkfig::Figure::RTAddActor2D
void RTAddActor2D(vtkSmartPointer< vtkActor2D > prop)
Add vtk Actor to renderer showing figure.
vtkfig::Figure::SetTitle
void SetTitle(std::string xtitle)
Set figure title.
Definition: vtkfigFigure.h:103
vtkfig::Figure::ClientMPReceive
virtual void ClientMPReceive(vtkSmartPointer< internals::Communicator > communicator)
Receive subclass data from server.
Definition: vtkfigFigure.h:255
vtkfig::Figure::surface_rgbtab
RGBTable surface_rgbtab
Color table for surface plots.
Definition: vtkfigFigure.h:401
vtkfig::Frame
Provide a framework wrapping window+interactor+renderers from vtk.
Definition: vtkfigFrame.h:38
vtkfig::Figure::New
static std::shared_ptr< Figure > New()
Construct smartpointer to empty figure.
vtkfig::Figure::RTProcessPlaneKey
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.
vtkfig::Figure::planecutY
vtkSmartPointer< vtkCutter > planecutY
Cutter for plane sections.
Definition: vtkfigFigure.h:328
vtkfig::Figure::cell_rgbtab
RGBTable cell_rgbtab
Color table for grid plot cell colors.
Definition: vtkfigFigure.h:429
vtkfig::Figure::Message
void Message(std::string msg)
Show string in message field.
Definition: vtkfigFigure.h:154
vtkfig::Figure::RTBuildDomainPipeline
void RTBuildDomainPipeline(vtkSmartPointer< vtkRenderer > renderer)
Build domain pipeline for 2D/3D figures (box, suface, axes)
vtkfig::Figure::arrow3d
vtkSmartPointer< vtkTransformPolyDataFilter > arrow3d
Arrow glyph source.
Definition: vtkfigFigure.h:342
vtkfig::Figure::isosurface_filter
vtkSmartPointer< vtkContourFilter > isosurface_filter
Isosurface plot filter.
Definition: vtkfigFigure.h:351
vtkfig::Figure::RTBuildAllVTKPipelines
virtual void RTBuildAllVTKPipelines(vtkSmartPointer< vtkRenderer > renderer)
Default implementation for 2D/3d datasets.
Definition: vtkfigFigure.h:240
vtkfig::Figure::title
std::string title
Title of figure.
Definition: vtkfigFigure.h:395
vtkfig::Figure::RTAddContextActor
void RTAddContextActor(vtkSmartPointer< vtkContextActor > prop)
Add vtk Actor to renderer showing figure.
vtkfig::Figure::bcbar
vtkSmartPointer< vtkScalarBarActor > bcbar
Boundary color bar for grid plots.
Definition: vtkfigFigure.h:454
vtkfig::Figure::KeepXYAspect
void KeepXYAspect(bool b)
Keep aspect ratio.
Definition: vtkfigFigure.h:121
vtkfig::Figure::arrow2d
vtkSmartPointer< vtkGlyphSource2D > arrow2d
Arrow glyph source.
Definition: vtkfigFigure.h:340
vtkfig::internals::Client
Client side visualization setup.
Definition: vtkfigClient.h:30
vtkfig::Figure::SetViewVolume
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)
Definition: vtkfigFigure.h:106
vtkfig::Figure::IsEmpty
bool IsEmpty()
Check if figure is empty (== no actors added)
vtkfig::Figure::ServerMPSend
virtual void ServerMPSend(vtkSmartPointer< internals::Communicator > communicator)
Send subclass data to client.
Definition: vtkfigFigure.h:252
vtkfig::Figure::RTProcessArrowKey
int RTProcessArrowKey(const std::string key, bool &edit)
Process keyboard events for quiver arrow editing etc.
vtkfig::Figure::celllist
vtkSmartPointer< vtkIdList > celllist
Cell mask.
Definition: vtkfigFigure.h:392
vtkfig::Figure
Base class for all figures.
Definition: vtkfigFigure.h:61
vtkfig::Figure::cbar
vtkSmartPointer< vtkScalarBarActor > cbar
Cell color bar for grid plots.
Definition: vtkfigFigure.h:451
vtkfig::Figure::RTShowIsolevel
void RTShowIsolevel()
Process keyboard and mouse move events for isolevel editing.
vtkfig::Figure::planeZ
vtkSmartPointer< vtkPlane > planeZ
Plane equation for plane sections.
Definition: vtkfigFigure.h:337
vtkfig::Figure::ShowDomainAxes
void ShowDomainAxes(bool b)
Toggle rendering of domain axes.
Definition: vtkfigFigure.h:127
vtkfig::Figure::framepos
int framepos
position in its respective frame
Definition: vtkfigFigure.h:616
vtkfig::Figure::SetValueRange
void SetValueRange(double vmin, double vmax)
Set Range of values.
Definition: vtkfigFigure.h:112
vtkfig::Figure::RTShowActive
void RTShowActive()
Show figure is active [x].
vtkfig::Figure::data_vmin
double data_vmin
min/max calculated from data
Definition: vtkfigFigure.h:470
vtkfig::Figure::RTAddActor
void RTAddActor(vtkSmartPointer< vtkActor > prop)
Add vtk Actor to renderer showing figure.
vtkfig::Figure::ShowDomainOutline
void ShowDomainOutline(bool b)
Toggle rendering of domain boundary as transparent surface.
Definition: vtkfigFigure.h:133
vtkfig::Figure::SetBackground
void SetBackground(double r, double g, double b)
Set background color;.
Definition: vtkfigFigure.h:70
vtkfig::Figure::bgcolor
double bgcolor[3]
default background color
Definition: vtkfigFigure.h:613
vtkfig::RGBTable
std::vector< RGBPoint > RGBTable
Color table.
Definition: vtkfigTools.h:43
vtkfig::Figure::ClientMPReceiveData
void ClientMPReceiveData(vtkSmartPointer< internals::Communicator > communicator)
Receive data from server.
vtkfig::Figure::RTAddAnnotations
void RTAddAnnotations()
Add annotations.
vtkfig::Figure::RTShowPlanePos
void RTShowPlanePos(vtkSmartPointer< vtkCutter > planecut, const std::string plane, int idim)
Process keyboard and mouse move events for plane section editing.
vtkfig::Figure::stream_lut
vtkSmartPointer< vtkLookupTable > stream_lut
Color lookup table for stream plots.
Definition: vtkfigFigure.h:410
vtkfig::Figure::surface_plot
vtkSmartPointer< vtkActor > surface_plot
Items for surface plot.
Definition: vtkfigFigure.h:362
vtkfig::Figure::arrow3ds
vtkSmartPointer< vtkArrowSource > arrow3ds
Arrow glyph source.
Definition: vtkfigFigure.h:346
vtkfig::Figure::outline
vtkSmartPointer< vtkActor > outline
Outline plot actor.
Definition: vtkfigFigure.h:374
vtkfig::Figure::SetAccumulateRange
void SetAccumulateRange(bool b)
Accumulate value ranges during run.
Definition: vtkfigFigure.h:115
vtkfigTools.h
vtkfig::Figure::RTShowInActive
void RTShowInActive()
Show figure is inactive [ ].
vtkfig::Figure::vmin_set
double vmin_set
min/max set through api
Definition: vtkfigFigure.h:462
vtkfig::Figure::data_producer
vtkSmartPointer< vtkTrivialProducer > data_producer
Data producer for grid dataset.
Definition: vtkfigFigure.h:380
vtkfig::Figure::AddAnnotations
void AddAnnotations()
Add annotations.
Definition: vtkfigFigure.h:159
vtkfig::Figure::RTRefreshState
void RTRefreshState()
Trigger necessary actions to set state variables.
vtkfigDataSet.h
vtkfig::Figure::warp_transform
vtkSmartPointer< vtkTransform > warp_transform
Items for elevation plot.
Definition: vtkfigFigure.h:365
vtkfig::Figure::RTInitAnnotations
void RTInitAnnotations()
Init annotations.
vtkfig::Figure::boundary_data_producer
vtkSmartPointer< vtkTrivialProducer > boundary_data_producer
Data producer for boundary grid dataset.
Definition: vtkfigFigure.h:383
vtkfig::Figure::bface_rgbtab
RGBTable bface_rgbtab
Color table for grid plot boundary colors.
Definition: vtkfigFigure.h:442
vtkfig::Figure::ctxactors
std::vector< vtkSmartPointer< vtkContextActor > > ctxactors
The different actor lists.
Definition: vtkfigFigure.h:601
vtkfig::Figure::bface_lut
vtkSmartPointer< vtkLookupTable > bface_lut
Color lookup table for grid plot boundary colors.
Definition: vtkfigFigure.h:439
vtkfig::Figure::SetViewVolumeToDataSetBounds
void SetViewVolumeToDataSetBounds()
Set view volume to dataset bounds (to overview the full dataset)
Definition: vtkfigFigure.h:109
vtkfig::Figure::MPSendRGBTable
static void MPSendRGBTable(vtkSmartPointer< internals::Communicator > communicator, RGBTable &rgbtab)
Send rgb table to client.
vtkfig::Figure::AddActor
void AddActor(vtkSmartPointer< vtkActor > prop)
Add vtk Actor to renderer showing figure.
Definition: vtkfigFigure.h:144