VTKFIG
0.25.0
Easy VTK based in situ visualization
|
Go to the documentation of this file.
7 #ifndef VTKFIG_FIGURE_H
8 #define VTKFIG_FIGURE_H
13 #include <vtkSmartPointer.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>
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>
35 #include "internals/vtkfigCommunicator.h"
43 class vtkfigRenderThread;
44 class vtkfigInteractorStyle;
45 class vtkfigTimerCallback;
67 static std::shared_ptr<Figure>
New();
75 void SetIsolevels(V&v)
78 for (
size_t i=0;i<v.size(); i++)
81 state.isolevels_locked=
true;
87 void SetData(std::shared_ptr<DataSet> data,
const std::string name=
"");
93 void SetMaskedData(std::shared_ptr<DataSet> data,
const std::string name,
const std::string maskname);
165 friend class internals::vtkfigRenderThread;
167 friend class internals::vtkfigInteractorStyle;
168 friend class internals::vtkfigTimerCallback;
180 void RTAddActor(vtkSmartPointer<vtkActor> prop);
236 template <
class DATA>
252 virtual void ServerMPSend(vtkSmartPointer<internals::Communicator> communicator){}
255 virtual void ClientMPReceive(vtkSmartPointer<internals::Communicator> communicator) {};
259 void ServerMPSendData(vtkSmartPointer<internals::Communicator> communicator);
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);
320 vtkSmartPointer<vtkCornerAnnotation>
annot;
342 vtkSmartPointer<vtkTransformPolyDataFilter>
arrow3d;
368 vtkSmartPointer<vtkCubeAxesActor2D>
axes;
371 vtkSmartPointer<vtkActor>
box;
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;
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;
451 vtkSmartPointer<vtkScalarBarActor>
cbar=NULL;
454 vtkSmartPointer<vtkScalarBarActor>
bcbar=NULL;
463 double vmax_set=-1.0e100;
482 double coordinate_scale_factor_xyz[3]={1,1,1};
484 bool accumulate_range=
false;
486 bool isolevels_locked=
false;
488 double eps_geom=1.0e-8;
490 bool keep_aspect=
true;
492 int surface_colorbar_num_labels=11;
494 char surface_colorbar_label_format[32]=
" %+9.2e";
498 bool show_grid_edges=
true;
500 bool show_surface=
true;
502 bool show_quiver=
true;
504 bool show_stream=
false;
506 bool show_isolines=
true;
508 bool show_isosurfaces=
false;
510 bool show_slider=
false;
512 bool show_surface_colorbar=
true;
514 bool show_grid_colorbar=
true;
516 bool show_quiver_colorbar=
false;
518 bool show_stream_colorbar=
false;
520 bool show_contour_colorbar=
false;
522 bool show_elevation=
false;
524 int contour_rgbtab_size=2;
526 bool contour_rgbtab_modified=
false;
528 int surface_rgbtab_size=63;
530 bool surface_rgbtab_modified=
true;
532 int quiver_rgbtab_size=2;
534 bool quiver_rgbtab_modified=
true;
536 int stream_rgbtab_size=63;
538 bool stream_rgbtab_modified=
true;
540 int elevation_rgbtab_size=2;
542 bool wireframe=
false;
544 bool show_domain_axes=
true;
546 bool show_domain_outline=
true;
548 bool show_domain_box=
true;
550 double domain_opacity=0.1;
552 double domain_surface_color[3]={0.8,0.8,0.8};
556 double isoline_width=2;
558 double quiver_arrowscale_user=1.0;
560 double quiver_arrowscale_geometry=0.1;
562 double stream_maximum_propagation=1;
564 int stream_maximum_number_of_steps=500;
566 double stream_ribbonwidth=0.01;
568 double stream_initial_integration_step=0.001;
570 double stream_maximum_integration_step=0.1;
572 double warp_ztran=0.0;
574 double elevation_scale=1.0;
592 double data_bounds[6];
593 double data_center[3];
595 double trans_bounds[6];
596 double trans_center[3];
606 std::vector<vtkSmartPointer<vtkContextActor>>
ctxactors;
607 std::vector<vtkSmartPointer<vtkActor>> actors;
608 std::vector<vtkSmartPointer<vtkActor2D>> actors2d;
610 bool transform_dirty=
true;
DataType
Enum describing different possible data types.
Definition: vtkfigDataSet.h:300
Provide a framework wrapping window+interactor+renderers from vtk.
Definition: vtkfigFrame.h:38
Client side visualization setup.
Definition: vtkfigClient.h:30