Vectorizer Class Reference
"Vectorizer" is a Linearizer for vector solutions. The only difference is that linearized vertices are vector-valued. Also, regularization of the resulting mesh is not attempted. The class can handle different meshes in both X and Y components.
More...
#include <linear.h>
Inherits Linearizer.
List of all members.
Public Member Functions |
| | Vectorizer () |
| | ~Vectorizer () |
| void | process_solution (MeshFunction *xsln, int xitem, MeshFunction *ysln, int yitem, double eps) |
| double4 * | get_vertices () const |
| int | get_num_vertices () const |
| int2 * | get_dashes () const |
| int | get_num_dashes () const |
| double | get_min_value () const |
| double | get_max_value () const |
| virtual void | save_data (const char *filename) |
| virtual void | load_data (const char *filename) |
| virtual 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.
|
| void | free () |
Protected Member Functions |
| int | get_vertex (int p1, int p2, double x, double y, double xvalue, double yvalue) |
| int | create_vertex (double x, double y, double xvalue, double yvalue) |
| void | process_dash (int iv1, int iv2) |
| int | add_vertex () |
| void | add_dash (int iv1, int iv2) |
| void | push_transform (int son) |
| void | pop_transform () |
| void | process_triangle (int iv0, int iv1, int iv2, int level, scalar *xval, scalar *yval, double *phx, double *phy, int *indices) |
| void | process_quad (int iv0, int iv1, int iv2, int iv3, int level, scalar *xval, scalar *yval, double *phx, double *phy, int *indices) |
| void | find_min_max () |
Protected Attributes |
| MeshFunction * | xsln |
| MeshFunction * | ysln |
| int | xitem |
| int | yitem |
| int | xia |
| int | xib |
| int | yia |
| int | yib |
| double4 * | verts |
| | vertices: (x, y, xvalue, yvalue) quadruples
|
| int2 * | dashes |
| int | nd |
| int | ed |
| int | cd |
Detailed Description
"Vectorizer" is a Linearizer for vector solutions. The only difference is that linearized vertices are vector-valued. Also, regularization of the resulting mesh is not attempted. The class can handle different meshes in both X and Y components.
Constructor & Destructor Documentation
| Vectorizer::Vectorizer |
( |
|
) |
|
| Vectorizer::~Vectorizer |
( |
|
) |
|
Member Function Documentation
| void Vectorizer::add_dash |
( |
int |
iv1, |
|
|
int |
iv2 | |
|
) |
| | [inline, protected] |
| int Vectorizer::add_vertex |
( |
|
) |
[inline, protected] |
| void Vectorizer::calc_vertices_aabb |
( |
double * |
min_x, |
|
|
double * |
max_x, |
|
|
double * |
min_y, |
|
|
double * |
max_y | |
|
) |
| | const [virtual] |
Returns axis aligned bounding box (AABB) of vertices. Assumes lock.
Reimplemented from Linearizer.
| int Vectorizer::create_vertex |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
xvalue, |
|
|
double |
yvalue | |
|
) |
| | [protected] |
| void Vectorizer::find_min_max |
( |
|
) |
[protected] |
| void Vectorizer::free |
( |
|
) |
|
| int2* Vectorizer::get_dashes |
( |
|
) |
const [inline] |
| double Vectorizer::get_max_value |
( |
|
) |
const [inline] |
| double Vectorizer::get_min_value |
( |
|
) |
const [inline] |
| int Vectorizer::get_num_dashes |
( |
|
) |
const [inline] |
| int Vectorizer::get_num_vertices |
( |
|
) |
const [inline] |
| int Vectorizer::get_vertex |
( |
int |
p1, |
|
|
int |
p2, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
xvalue, |
|
|
double |
yvalue | |
|
) |
| | [protected] |
| double4* Vectorizer::get_vertices |
( |
|
) |
const [inline] |
| void Vectorizer::load_data |
( |
const char * |
filename |
) |
[virtual] |
| void Vectorizer::pop_transform |
( |
|
) |
[inline, protected] |
| void Vectorizer::process_dash |
( |
int |
iv1, |
|
|
int |
iv2 | |
|
) |
| | [protected] |
| void Vectorizer::process_quad |
( |
int |
iv0, |
|
|
int |
iv1, |
|
|
int |
iv2, |
|
|
int |
iv3, |
|
|
int |
level, |
|
|
scalar * |
xval, |
|
|
scalar * |
yval, |
|
|
double * |
phx, |
|
|
double * |
phy, |
|
|
int * |
indices | |
|
) |
| | [protected] |
| void Vectorizer::process_triangle |
( |
int |
iv0, |
|
|
int |
iv1, |
|
|
int |
iv2, |
|
|
int |
level, |
|
|
scalar * |
xval, |
|
|
scalar * |
yval, |
|
|
double * |
phx, |
|
|
double * |
phy, |
|
|
int * |
indices | |
|
) |
| | [protected] |
| void Vectorizer::push_transform |
( |
int |
son |
) |
[inline, protected] |
| void Vectorizer::save_data |
( |
const char * |
filename |
) |
[virtual] |
Member Data Documentation
vertices: (x, y, xvalue, yvalue) quadruples
Reimplemented from Linearizer.
The documentation for this class was generated from the following files: