Hermes2D  3.0
Hermes::Hermes2D::Views::Orderizer Class Reference

#include <orderizer.h>

Public Member Functions

template<typename Scalar >
void save_orders_vtk (SpaceSharedPtr< Scalar > space, const char *file_name)
 Saves the polynomial orders.
 
template<typename Scalar >
void save_markers_vtk (SpaceSharedPtr< Scalar > space, const char *file_name)
 Saves the mesh with markers.
 
template<typename Scalar >
void save_mesh_vtk (SpaceSharedPtr< Scalar > space, const char *file_name)
 Saves the mesh - edges.
 
void calc_vertices_aabb (double *min_x, double *max_x, double *min_y, double *max_y) const
 Returns axis aligned bounding box (AABB) of vertices. Assumes lock.
 
template<typename Scalar >
void process_space (SpaceSharedPtr< Scalar > space, bool show_edge_orders=false)
 Internal.
 
int get_labels (int *&lvert, char **&ltext, double2 *&lbox) const
 
int get_num_vertices ()
 
double3 * get_vertices ()
 
void lock_data () const
 
void unlock_data () const
 
int3 * get_triangles ()
 
int * get_triangle_markers ()
 
int get_num_triangles ()
 
int2 * get_edges ()
 
int * get_edge_markers ()
 
int get_num_edges ()
 
void free ()
 

Protected Member Functions

void add_edge (int iv1, int iv2, int marker)
 
void reallocate (MeshSharedPtr mesh)
 
void add_triangle (int iv0, int iv1, int iv2, int marker)
 
int add_vertex ()
 
void make_vert (int &index, double x, double y, double val)
 

Static Protected Member Functions

static void calc_aabb (double *x, double *y, int stride, int num, double *min_x, double *max_x, double *min_y, double *max_y)
 

Protected Attributes

pthread_mutex_t data_mutex
 
int2 * edges
 edges: pairs of vertex indices
 
int * edge_markers
 edge_markers: edge markers, ordering equal to edges
 
char buffer [1000]
 
char * labels [11][11]
 
double3 * verts
 vertices: (x, y, value) triplets
 
int label_size
 
int label_count
 
int * lvert
 
char ** ltext
 
double2 * lbox
 
int3 * tris
 triangles: vertex index triplets
 
int * tri_markers
 triangle_markers: triangle markers, ordering equal to tris
 
int vertex_count
 Real numbers of vertices, triangles and edges.
 
int triangle_count
 
int edges_count
 
int vertex_size
 Size of arrays of vertices, triangles and edges.
 
int triangle_size
 
int edges_size
 

Detailed Description

Like the Linearizer, but generates a triangular mesh showing polynomial orders in a space, hence the funky name.

Definition at line 36 of file orderizer.h.

Member Function Documentation

void Hermes::Hermes2D::Views::Orderizer::reallocate ( MeshSharedPtr  mesh)
protected

Reallocation at the beginning of process_*. Specific for Linearizer

Definition at line 170 of file orderizer.cpp.

Referenced by process_space().


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