/usr/share/netgen/libsrc/visualization/mvdraw.hpp is in netgen-headers 4.9.13.dfsg-8build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | #ifndef FILE_MVDRAW
#define FILE_MVDRAW
namespace netgen
{
extern void InitDrawMesh ();
extern void DrawMesh ();
extern void MouseMove(int oldx, int oldy,
int newx, int newy,
char mode);
extern void Render ();
class VisualScene
{
protected:
static Point3d center;
static double rad;
static float lookatmat[16];
static float transmat[16];
static float rotmat[16];
static float centermat[16];
static float transformationmat[16];
GLdouble clipplane[4];
int changeval;
static GLdouble backcolor;
static int selface;
static int selelement;
static int selpoint;
static int selpoint2;
static int locpi;
static int seledge;
static int selecttimestamp;
public:
// static GLubyte * colortexture;
static GLuint coltexname;
static int ntexcols;
// static bool linear_colors;
int invcolor;
public:
VisualScene ();
virtual ~VisualScene();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
void CalcTransformationMatrices();
void StandardRotation (const char * dir);
void ArbitraryRotation (const Array<double> & alpha, const Array<Vec3d> & vec);
void ArbitraryRotation (const double alpha, const Vec3d & vec);
void MouseMove(int oldx, int oldy,
int newx, int newy,
char mode);
void LookAt (const Point<3> & cam, const Point<3> & obj,
const Point<3> & camup);
void SetClippingPlane ();
virtual void MouseDblClick (int px, int py);
void SetLight ();
static void SetBackGroundColor (double col)
{ backcolor = col; }
void CreateTexture (int ncols, int linear, int typ = GL_DECAL);
void DrawColorBar (double minval, double maxval, int logscale = 0, bool linear = 1);
void DrawCoordinateCross ();
void DrawNetgenLogo ();
void SetOpenGlColor(double val, double valmin, double valmax, int logscale = 0);
#ifdef PARALLELGL
void InitParallelGL ();
void Broadcast ();
#endif
};
extern void MyOpenGLText (const char * text);
class VisualSceneGeometry : public VisualScene
{
Array<int> trilists;
int selsurf;
public:
VisualSceneGeometry ();
virtual ~VisualSceneGeometry ();
virtual void SelectSurface (int aselsurf);
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
};
class VisualSceneSTLGeometry : public VisualScene
{
Array<int> trilists;
public:
VisualSceneSTLGeometry ();
virtual ~VisualSceneSTLGeometry ();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
};
class VisualSceneGeometry2d : public VisualScene
{
public:
VisualSceneGeometry2d ();
virtual ~VisualSceneGeometry2d ();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
};
#ifdef OCCGEOMETRY
class VisualSceneOCCGeometry : public VisualScene
{
Array<int> trilists;
Array<int> linelists;
int selsurf;
public:
VisualSceneOCCGeometry ();
virtual ~VisualSceneOCCGeometry ();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
virtual void MouseDblClick (int px, int py);
};
#endif
#ifdef STEP
class VisualSceneSTEPGeometry : public VisualScene
{
Array<int> gllists;
public:
VisualSceneSTEPGeometry ();
virtual ~VisualSceneSTEPGeometry ();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
};
#endif
class VisualSceneSTLMeshing : public VisualScene
{
Array<int> trilists;
int selecttrig, nodeofseltrig;
public:
VisualSceneSTLMeshing ();
virtual ~VisualSceneSTLMeshing ();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
virtual void MouseDblClick (int px, int py);
int seltria;
};
class VisualSceneSurfaceMeshing : public VisualScene
{
public:
VisualSceneSurfaceMeshing ();
virtual ~VisualSceneSurfaceMeshing ();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
};
class VisualSceneMesh : public VisualScene
{
int filledlist;
int linelist;
int edgelist;
int pointnumberlist;
int tetlist;
int prismlist;
int pyramidlist;
int hexlist;
int badellist;
int identifiedlist;
int domainsurflist;
int vstimestamp;//, selecttimestamp;
int filledtimestamp;
int linetimestamp;
int edgetimestamp;
int pointnumbertimestamp;
int tettimestamp;
int prismtimestamp;
int pyramidtimestamp;
int hextimestamp;
int badeltimestamp;
int identifiedtimestamp;
int domainsurftimestamp;
#ifdef PARALLELGL
Array<int> par_linelists;
Array<int> par_filledlists;
#endif
NgLock *lock;
// int selface, selelement;
// int selpoint, selpoint2, locpi;
// int seledge;
double minh, maxh; // for meshsize coloring
public:
VisualSceneMesh ();
virtual ~VisualSceneMesh ();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
virtual void MouseDblClick (int px, int py);
int SelectedFace () const
{ return selface; }
void SetSelectedFace (int asf);
// { selface = asf; selecttimestamp = GetTimeStamp(); }
int SelectedEdge () const
{ return seledge; }
int SelectedElement () const
{ return selelement; }
int SelectedPoint () const
{ return selpoint; }
void BuildFilledList();
// private:
void BuildLineList();
void BuildEdgeList();
void BuildPointNumberList();
void BuildTetList();
void BuildPrismList();
void BuildPyramidList();
void BuildHexList();
void BuildBadelList();
void BuildIdentifiedList();
void BuildDomainSurfList();
};
class VisualSceneSpecPoints : public VisualScene
{
public:
VisualSceneSpecPoints ();
virtual ~VisualSceneSpecPoints ();
virtual void BuildScene (int zoomall = 0);
virtual void DrawScene ();
double len;
};
// extern struct Tcl_Interp * hinterp;
extern void AddVisualizationScene (const string & name,
VisualScene * vs);
void MouseDblClickSelect (const int px, const int py,
const GLdouble * clipplane, const GLdouble backcolor,
const float * transformationmat,
const Point3d & center,
const double rad,
const int displaylist,
int & selelement, int & selface, int & seledge, int & selpoint,
int & selpoint2, int & locpi);
}
#endif
|