Hermes2D  3.0
Hermes::Hermes2D::Views Namespace Reference

Namespace containing Views classes, Linearizer classes, and support for these. More...

Classes

class  BaseView
 Visualizes the basis functions of a space. More...
 
struct  BitmapFileHeader
 
struct  BitmapInfoHeader
 
class  LinearizerCriterion
 Abstract class for criterion according to which the linearizer stops dividing elements at some point Class is not abstract per say, but works as a base class for the following classes. More...
 
class  LinearizerCriterionAdaptive
 Adaptive Linearizer criterion - error tolerance (see further) where the element division stops Error tolerance here is the relative improvement of quality that the currently proposed element division would bring. If this quantity is below the specified tolerance, the currently proposed division is not made and the division algorithm for the current element stops. More...
 
class  LinearizerCriterionFixed
 Simple Linearizer criterion - every element is refined exactly the same number of times. This number is specified in the constructor. More...
 
class  LinearizerMultidimensional
 
class  MeshView
 Displays a mesh. More...
 
class  Orderizer
 
class  OrderView
 Displays the polynomial degrees of elements. More...
 
class  Quad2DOrd
 
class  Quad2DOrdSimple
 
struct  RemoveParams
 
struct  ScalarLinearizerDataDimensions
 Typedefs used throughout the Linearizer functionality. More...
 
struct  ScalarLinearizerDataDimensions< double >
 Typedefs used throughout the Linearizer functionality. More...
 
struct  ScalarLinearizerDataDimensions< float >
 Typedefs used throughout the Linearizer functionality. More...
 
class  ScalarView
 Visualizes a Scalar PDE solution. More...
 
struct  ThreadInfo
 
class  ThreadLinearizerMultidimensional
 
struct  TitleParams
 
class  VectorBaseView
 
struct  VectorLinearizerDataDimensions
 Typedefs used throughout the Linearizer functionality. More...
 
struct  VectorLinearizerDataDimensions< double >
 Typedefs used throughout the Linearizer functionality. More...
 
struct  VectorLinearizerDataDimensions< float >
 Typedefs used throughout the Linearizer functionality. More...
 
class  VectorView
 Visualizes a vector PDE solution. More...
 
class  View
 Represents a simple visualization window. More...
 
class  ViewMonitor
 < A monitor used to synchronize thread in views. More...
 
struct  ViewParams
 
struct  WinGeom
 

Typedefs

typedef
LinearizerMultidimensional
< ScalarLinearizerDataDimensions
< LINEARIZER_DATA_TYPE > > 
Linearizer
 Linearizer for scalar cases - historically called Linearizer.
 
typedef
LinearizerMultidimensional
< VectorLinearizerDataDimensions
< LINEARIZER_DATA_TYPE > > 
Vectorizer
 Linearizer for vector cases - historically called Vectorizer.
 
typedef int3 internal_vertex_info_t
 Typedefs used throughout the Linearizer functionality.
 
typedef int3 triangle_indices_t
 Typedefs used throughout the Linearizer functionality.
 
typedef unsigned int dword
 
typedef unsigned short word
 
typedef int(* CTC_FUNC )(void *)
 

Enumerations

enum  ViewWaitEvent { HERMES_WAIT_CLOSE, HERMES_WAIT_KEYPRESS }
 Wait events. More...
 
enum  ViewPaletteType { H2DV_PT_HUESCALE = 0, H2DV_PT_GRAYSCALE = 1, H2DV_PT_INVGRAYSCALE = 2, H2DV_PT_MAX_ID = 3 }
 View palette type. More...
 

Functions

HERMES_API bool init_glut ()
 Initialize GLUT.
 
HERMES_API bool shutdown_glut ()
 Shutdown GLUT.
 
int add_view (View *view, int x, int y, int width, int height, const char *title)
 Adds a view.
 
void set_view_title (int view_id, const char *title)
 Sets title of a view.
 
void refresh_view (int view_id)
 Forces redisplay of a view.
 
void remove_view (int view_id)
 Removes a view.
 
void wait_for_all_views_close (const char *text)
 Forces view thread to shutdown. More...
 
void wait_for_any_key (const char *text)
 Waits for a keypress which is not processed.
 
void on_display_stub (void)
 
void on_reshape_stub (int width, int height)
 
void on_mouse_move_stub (int x, int y)
 
void on_key_down_stub (unsigned char key, int x, int y)
 
void on_special_key_stub (int key, int x, int y)
 
void on_entry_stub (int state)
 
void on_mouse_click_stub (int button, int state, int x, int y)
 
void on_close_stub ()
 
template HERMES_API void OrderView::show< std::complex< double > > (const SpaceSharedPtr< std::complex< double > > space, bool)
 
template HERMES_API void Orderizer::save_orders_vtk< std::complex< double > > (const SpaceSharedPtr< std::complex< double > > space, const char *file_name)
 
template HERMES_API void Orderizer::save_markers_vtk< std::complex< double > > (const SpaceSharedPtr< std::complex< double > > space, const char *file_name)
 
template HERMES_API void Orderizer::save_mesh_vtk< std::complex< double > > (const SpaceSharedPtr< std::complex< double > > space, const char *file_name)
 
template HERMES_API void Orderizer::process_space< std::complex< double > > (const SpaceSharedPtr< std::complex< double > > space, bool)
 
int add_view_in_thread (void *view_pars_ptr)
 
int remove_view_in_thread (void *remove_params_ptr)
 
void force_view_thread_shutdown ()
 

Variables

const double HERMES_EPS_VERYLOW = 0.25
 Standard "quality" defining constants.
 
const double HERMES_EPS_LOW = 0.05
 Standard "quality" defining constants.
 
const double HERMES_EPS_NORMAL = 0.01
 Standard "quality" defining constants.
 
const double HERMES_EPS_HIGH = 0.005
 Standard "quality" defining constants.
 
const double HERMES_EPS_VERYHIGH = 0.001
 Standard "quality" defining constants.
 
template<typename LinearizerDataDimensions >
class HERMES_API ThreadLinearizerMultidimensional
 
template<typename LinearizerDataDimensions >
class HERMES_API LinearizerMultidimensional
 
ViewMonitor view_sync
 synchronization between all views. Used to access OpenGL and signal a window close event and a keypress event.
 
template class HERMES_API BaseView< double >
 
template class HERMES_API LinearizerMultidimensional< ScalarLinearizerDataDimensions< LINEARIZER_DATA_TYPE > >
 
template class HERMES_API LinearizerMultidimensional< VectorLinearizerDataDimensions< LINEARIZER_DATA_TYPE > >
 
template class HERMES_API ThreadLinearizerMultidimensional< ScalarLinearizerDataDimensions< double > >
 
template class HERMES_API ThreadLinearizerMultidimensional< VectorLinearizerDataDimensions< double > >
 
template class HERMES_API ThreadLinearizerMultidimensional< ScalarLinearizerDataDimensions< float > >
 
template class HERMES_API ThreadLinearizerMultidimensional< VectorLinearizerDataDimensions< float > >
 
template class HERMES_API VectorBaseView< double >
 
const word BITMAP_ID = 0x4D42
 

Detailed Description

Namespace containing Views classes, Linearizer classes, and support for these.

Enumeration Type Documentation

View palette type.

Enumerator
H2DV_PT_HUESCALE 

A palette based on hue scale.

H2DV_PT_GRAYSCALE 

Greyscale.

H2DV_PT_INVGRAYSCALE 

Inverted grayscale.

H2DV_PT_MAX_ID 

Maximum ID of view palette type.

Definition at line 61 of file view.h.

Wait events.

Enumerator
HERMES_WAIT_CLOSE 

Wait for all windows to close.

HERMES_WAIT_KEYPRESS 

Wait for any unprocessed keypress to happen.

Definition at line 41 of file view.h.

Function Documentation

void Hermes::Hermes2D::Views::wait_for_all_views_close ( const char *  text)

Forces view thread to shutdown.

Waits for all views to close.

Definition at line 471 of file view_support.cpp.

Referenced by Hermes::Hermes2D::Views::View::wait().