added sphere tutorial
[engrid.git] / src / projection_test.h
bloba69599c76a5d64480a110970c832028b77192c16
1 //
2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + +
4 // + This file is part of enGrid. +
5 // + +
6 // + Copyright 2008-2010 enGits GmbH +
7 // + +
8 // + enGrid is free software: you can redistribute it and/or modify +
9 // + it under the terms of the GNU General Public License as published by +
10 // + the Free Software Foundation, either version 3 of the License, or +
11 // + (at your option) any later version. +
12 // + +
13 // + enGrid is distributed in the hope that it will be useful, +
14 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 // + GNU General Public License for more details. +
17 // + +
18 // + You should have received a copy of the GNU General Public License +
19 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
20 // + +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 #ifndef PROJECTION_TEST_H
24 #define PROJECTION_TEST_H
26 #include "surfaceoperation.h"
27 #include "surfacealgorithm.h"
29 #include "beziertriangle.h"
31 class Projection_test : public SurfaceAlgorithm {
32 public:
33 Projection_test();
35 protected: // methods
36 void operate();
37 void project_picked_point();
38 void project_all_points();
39 void project_all_points2();
40 void Bezier_test();
41 void checkInterpolationGrid();
42 void Bezier_circle_test();
43 void bezierFunctionTest();
44 void bezierProjectionTest();
45 void bezierQuads();
46 void bezierProjectionTest2(BezierTriangle bezier_triangle, QString prefix);
47 BezierTriangle specialTriangle(bool equi, int type);
49 /* Q_OBJECT;
51 protected: // methods
53 virtual void before();
54 virtual void operate();*/
56 private: // methods
58 bool setNewPosition(vtkIdType id_node, vec3_t x_new);
59 bool moveNode(vtkIdType id_node, vec3_t &Dx);
63 #endif // PROJECTION_TEST_H