COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
Widget3D Class Reference

Show a mesh rendered on a ParaViewTab server. More...

#include <Widget3D.hpp>

Inherits QWidget.

Public Slots

void connect_to_server (QString host, QString port)
 
void load_paths (std::vector< QString > paths, std::vector< QString > names)
 

Public Member Functions

 Widget3D (QWidget *parent=0)
 

Private Slots

void connect_to_server ()
 Ask connection options to user and try to connect to server host with port. More...
 
void disconnect_from_server ()
 Disconnect from current paraview server. More...
 
void show_load_file_dialog ()
 Show a dialog window that ask for a path file. More...
 
void show_connect_dialog ()
 Show a dialog window that ask for an host and port. More...
 
void set_rotation_center ()
 Set the rotation center, in center of the screen. More...
 
void set_rotation (int value)
 
void take_screen_shot ()
 Take a screen shot of the current view. More...
 
void reset_camera ()
 Reset camera. More...
 
void show_color_editor ()
 Show the color editor. More...
 
void show_hide_actor (QListWidgetItem *item)
 
void actor_changed ()
 Called when the current Region/Actor change. More...
 
void set_solid_color ()
 Color Picker that change current Region/Actor color. More...
 
void opacity_change (double value)
 
void enable_solide_color_button (pqVariableType type, const QString &name)
 
void show_camera_settings ()
 Display View Camera settings. More...
 
void setCenterAxesVisibility ()
 Show Hide center axes. More...
 
void show_disp_adv_settings ()
 Show advanced settings for the current display. More...
 
void show_gen_adv_settings ()
 Show general settings. More...
 
void show_serv_adv_settings ()
 Show server settings. More...
 
void force_rendering ()
 Force the mesh to render. More...
 
void enable_rendering (bool enable)
 
void set_actor_list_selection_mode (int mode)
 
void show_advanced_options (bool showAdv)
 
void rendering_progress ()
 

Private Member Functions

void create_view ()
 Create a view from server. More...
 
void open_file (QString file_path, QString file_name)
 
void create_source (QString path)
 

Private Attributes

QPointer< pqApplicationCore > m_core
 Initialising Application Core that manage all vtk and paraview Objects. More...
 
QPointer< pqObjectBuilder > m_object_builder
 Object Builder create Object on server side and a ghost on client side. More...
 
QPointer< pqServer > m_server
 Server connection. More...
 
QPointer< pqPluginManager > m_plugin_manager
 Plugin manger that give acces to advenced object and view. More...
 
QPointer< QVBoxLayout > m_layout_v
 Main layout of this widget. More...
 
QPointer< QVBoxLayout > m_layout_option
 
QPointer< QHBoxLayout > m_layout_h
 
QAction * m_action_connect
 Action to connect to the server. More...
 
QAction * m_action_disconnect
 Action to disconnect from the server. More...
 
QAction * m_action_load_file
 Action to load a file. More...
 
QAction * m_action_force_rendering
 Force Rendering button. More...
 
QPointer< QPushButton > m_show_color_palette
 Button that show color selector. More...
 
QPointer< pqDisplayRepresentationWidget > m_mesh_style
 ComboBox of dataRepresentation style. More...
 
QPointer< QComboBox > m_preDefined_rotation
 Combobox of predefined rotation set. More...
 
QPointer< QComboBox > m_list_selection
 Combobox of region selection type. More...
 
QPointer< pqPipelineSource > m_source
 Source Pipeline is a flow from the source readed to show actor. More...
 
QList< QPointer< pqPipelineSource > > m_source_list
 render window input Pipeline. More...
 
QPointer< pqRenderView > m_RenderView
 View where the render is shown. More...
 
QPointer< QLineEdit > m_port_line
 Server Port LineEdit. More...
 
QPointer< QLineEdit > m_host_line
 Server Host LineEdit. More...
 
QPointer< pqDisplayColorWidget > m_dataSet_selector
 Data set selector. More...
 
QPointer< pqColorScaleEditor > m_scaleEdit
 Color scale selector. More...
 
QPointer< QGroupBox > m_mesh_options
 Mesh group box options. More...
 
QPointer< QGroupBox > m_regions_box
 Mesh group box options. More...
 
QPointer< QHBoxLayout > m_layout_mesh_options
 Mesh group box options layout. More...
 
QPointer< QVBoxLayout > m_layout_regions_box
 Regions group box layout. More...
 
QPointer< QListWidget > m_actor_list
 Regions list. More...
 
QPointer< pqPipelineRepresentation > m_representation
 Temporary Representation. More...
 
QPointer< QPushButton > m_mesh_solid_color_set
 Solid Color Button. More...
 
QPointer< QDoubleSpinBox > m_spin_opacity
 Current Region/Actor opacity spin box. More...
 
QPointer< QPushButton > m_disp_adv_opt_button
 Display Advanced Option. (do not remove!) More...
 
QPointer< QPushButton > m_gen_adv_opt_button
 General Advanced Option. (do not remove!) More...
 
QPointer< QPushButton > m_serv_adv_opt_button
 Server Advanced Option. (do not remove!) More...
 
QPointer< QCheckBox > m_checkbox_enable_rendering
 Auto Render checkbox. More...
 
QPointer< pqProgressManager > progMgr
 Progress Manager (not used) More...
 
QList< QString > m_paths_list
 Mesh path list. More...
 

Detailed Description

Show a mesh rendered on a ParaViewTab server.

Author
Wertz Gil

Definition at line 61 of file Widget3D.hpp.

Constructor & Destructor Documentation

Widget3D ( QWidget *  parent = 0)

Constructor

Parameters
parentParent QWdiget.

Creation Phase

Layout

Options

Progress Bar

Server

Disposition Phase

Connection Phase

Definition at line 72 of file Widget3D.cpp.

Member Function Documentation

void actor_changed ( )
privateslot

Called when the current Region/Actor change.

Definition at line 727 of file Widget3D.cpp.

void connect_to_server ( QString  host,
QString  port 
)
slot

Connect client to paraview server.

Parameters
hostIp or name of the paraview server.
portPort used.

Definition at line 311 of file Widget3D.cpp.

void connect_to_server ( )
privateslot

Ask connection options to user and try to connect to server host with port.

Definition at line 580 of file Widget3D.cpp.

void create_source ( QString  path)
private

Create a pqPipelineSource with the path.

Parameters
pathPath of files in server side.

Definition at line 663 of file Widget3D.cpp.

void create_view ( )
private

Create a view from server.

Definition at line 359 of file Widget3D.cpp.

void disconnect_from_server ( )
privateslot

Disconnect from current paraview server.

Definition at line 378 of file Widget3D.cpp.

void enable_rendering ( bool  enable)
privateslot

Set auto render

Parameters
enableAuto Render state.

Definition at line 951 of file Widget3D.cpp.

void enable_solide_color_button ( pqVariableType  type,
const QString &  name 
)
privateslot

Change the current Region/Actor opacity.

Parameters
type
nameThe current mash style name.

Definition at line 830 of file Widget3D.cpp.

void force_rendering ( )
privateslot

Force the mesh to render.

Definition at line 994 of file Widget3D.cpp.

void load_paths ( std::vector< QString >  paths,
std::vector< QString >  names 
)
slot

Load Actor and set their names into Actor List.

Parameters
pathsVector of server path.
namesVector of names corresponding to paths.

Definition at line 587 of file Widget3D.cpp.

void opacity_change ( double  value)
privateslot

Change the current Region/Actor opacity.

Parameters
valueValue of opacity from 0 to 1.

Definition at line 817 of file Widget3D.cpp.

void open_file ( QString  file_path,
QString  file_name 
)
private

Create a reader for the defined PATH file on the server side ( .vtk or .ex2 )

Parameters
file_pathPath of files in server side.
file_nameName of file in server side.

Definition at line 349 of file Widget3D.cpp.

void rendering_progress ( )
privateslot

Definition at line 1011 of file Widget3D.cpp.

void reset_camera ( )
privateslot

Reset camera.

Definition at line 559 of file Widget3D.cpp.

void set_actor_list_selection_mode ( int  mode)
privateslot

Set the Acor list selection mode.

Parameters
modeThe chosen mode.

Definition at line 1001 of file Widget3D.cpp.

void set_rotation ( int  value)
privateslot

Set a selected rotation

Parameters
valueThe value of the rotation set.

Definition at line 512 of file Widget3D.cpp.

void set_rotation_center ( )
privateslot

Set the rotation center, in center of the screen.

Definition at line 505 of file Widget3D.cpp.

void set_solid_color ( )
privateslot

Color Picker that change current Region/Actor color.

Definition at line 763 of file Widget3D.cpp.

void setCenterAxesVisibility ( )
privateslot

Show Hide center axes.

Definition at line 841 of file Widget3D.cpp.

void show_advanced_options ( bool  showAdv)
privateslot

Show advanced options on advanced mode.

Parameters
showAdvOption visibility.

Definition at line 1005 of file Widget3D.cpp.

void show_camera_settings ( )
privateslot

Display View Camera settings.

Definition at line 835 of file Widget3D.cpp.

void show_color_editor ( )
privateslot

Show the color editor.

Definition at line 564 of file Widget3D.cpp.

void show_connect_dialog ( )
privateslot

Show a dialog window that ask for an host and port.

Definition at line 456 of file Widget3D.cpp.

void show_disp_adv_settings ( )
privateslot

Show advanced settings for the current display.

Definition at line 850 of file Widget3D.cpp.

void show_gen_adv_settings ( )
privateslot

Show general settings.

Definition at line 889 of file Widget3D.cpp.

void show_hide_actor ( QListWidgetItem *  item)
privateslot

Show or Hide the current Region/Actor

Parameters
itemItem corresponding to the Region/Actor.

Definition at line 694 of file Widget3D.cpp.

void show_load_file_dialog ( )
privateslot

Show a dialog window that ask for a path file.

Definition at line 427 of file Widget3D.cpp.

void show_serv_adv_settings ( )
privateslot

Show server settings.

Definition at line 920 of file Widget3D.cpp.

void take_screen_shot ( )
privateslot

Take a screen shot of the current view.

Definition at line 543 of file Widget3D.cpp.

Member Data Documentation

QAction* m_action_connect
private

Action to connect to the server.

Definition at line 200 of file Widget3D.hpp.

QAction* m_action_disconnect
private

Action to disconnect from the server.

Definition at line 203 of file Widget3D.hpp.

QAction* m_action_force_rendering
private

Force Rendering button.

Definition at line 209 of file Widget3D.hpp.

QAction* m_action_load_file
private

Action to load a file.

Definition at line 206 of file Widget3D.hpp.

QPointer<QListWidget> m_actor_list
private

Regions list.

Definition at line 257 of file Widget3D.hpp.

QPointer<QCheckBox> m_checkbox_enable_rendering
private

Auto Render checkbox.

Definition at line 278 of file Widget3D.hpp.

QPointer<pqApplicationCore> m_core
private

Initialising Application Core that manage all vtk and paraview Objects.

Definition at line 183 of file Widget3D.hpp.

QPointer<pqDisplayColorWidget> m_dataSet_selector
private

Data set selector.

Definition at line 239 of file Widget3D.hpp.

QPointer<QPushButton> m_disp_adv_opt_button
private

Display Advanced Option. (do not remove!)

Definition at line 269 of file Widget3D.hpp.

QPointer<QPushButton> m_gen_adv_opt_button
private

General Advanced Option. (do not remove!)

Definition at line 272 of file Widget3D.hpp.

QPointer<QLineEdit> m_host_line
private

Server Host LineEdit.

Definition at line 236 of file Widget3D.hpp.

QPointer<QHBoxLayout> m_layout_h
private

Definition at line 197 of file Widget3D.hpp.

QPointer<QHBoxLayout> m_layout_mesh_options
private

Mesh group box options layout.

Definition at line 251 of file Widget3D.hpp.

QPointer<QVBoxLayout> m_layout_option
private

Definition at line 196 of file Widget3D.hpp.

QPointer<QVBoxLayout> m_layout_regions_box
private

Regions group box layout.

Definition at line 254 of file Widget3D.hpp.

QPointer<QVBoxLayout> m_layout_v
private

Main layout of this widget.

Definition at line 195 of file Widget3D.hpp.

QPointer<QComboBox> m_list_selection
private

Combobox of region selection type.

Definition at line 221 of file Widget3D.hpp.

QPointer<QGroupBox> m_mesh_options
private

Mesh group box options.

Definition at line 245 of file Widget3D.hpp.

QPointer<QPushButton> m_mesh_solid_color_set
private

Solid Color Button.

Definition at line 263 of file Widget3D.hpp.

QPointer<pqDisplayRepresentationWidget> m_mesh_style
private

ComboBox of dataRepresentation style.

Definition at line 215 of file Widget3D.hpp.

QPointer<pqObjectBuilder> m_object_builder
private

Object Builder create Object on server side and a ghost on client side.

Definition at line 186 of file Widget3D.hpp.

QList<QString> m_paths_list
private

Mesh path list.

Definition at line 284 of file Widget3D.hpp.

QPointer<pqPluginManager> m_plugin_manager
private

Plugin manger that give acces to advenced object and view.

Definition at line 192 of file Widget3D.hpp.

QPointer<QLineEdit> m_port_line
private

Server Port LineEdit.

Definition at line 233 of file Widget3D.hpp.

QPointer<QComboBox> m_preDefined_rotation
private

Combobox of predefined rotation set.

Definition at line 218 of file Widget3D.hpp.

QPointer<QGroupBox> m_regions_box
private

Mesh group box options.

Definition at line 248 of file Widget3D.hpp.

QPointer<pqRenderView> m_RenderView
private

View where the render is shown.

Definition at line 230 of file Widget3D.hpp.

QPointer<pqPipelineRepresentation> m_representation
private

Temporary Representation.

Definition at line 260 of file Widget3D.hpp.

QPointer<pqColorScaleEditor> m_scaleEdit
private

Color scale selector.

Definition at line 242 of file Widget3D.hpp.

QPointer<QPushButton> m_serv_adv_opt_button
private

Server Advanced Option. (do not remove!)

Definition at line 275 of file Widget3D.hpp.

QPointer<pqServer> m_server
private

Server connection.

Definition at line 189 of file Widget3D.hpp.

QPointer<QPushButton> m_show_color_palette
private

Button that show color selector.

Definition at line 212 of file Widget3D.hpp.

QPointer<pqPipelineSource> m_source
private

Source Pipeline is a flow from the source readed to show actor.

Definition at line 224 of file Widget3D.hpp.

QList<QPointer<pqPipelineSource> > m_source_list
private

render window input Pipeline.

Definition at line 227 of file Widget3D.hpp.

QPointer<QDoubleSpinBox> m_spin_opacity
private

Current Region/Actor opacity spin box.

Definition at line 266 of file Widget3D.hpp.

QPointer<pqProgressManager> progMgr
private

Progress Manager (not used)

Definition at line 281 of file Widget3D.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin