netgen/libsrc/visualization/vispar.hpp

127 lines
2.1 KiB
C++
Raw Normal View History

2009-01-13 04:40:13 +05:00
#ifndef FILE_VISPAR
#define FILE_VISPAR
2009-07-20 14:36:36 +06:00
namespace netgen
{
2009-01-13 04:40:13 +05:00
class VisualizationParameters
{
public:
double lightamb;
double lightdiff;
double lightspec;
double shininess;
double transp;
int locviewer;
char selectvisual[20];
int showstltrias;
2012-11-05 17:28:36 +06:00
/*
2009-01-13 04:40:13 +05:00
Vec3d clipnormal;
double clipdist;
int clipenable;
int clipplanetimestamp;
2012-11-05 17:28:36 +06:00
*/
class Clipping
{
public:
Vec3d normal;
double dist;
double dist2;
2012-11-05 17:28:36 +06:00
int enable;
int timestamp;
bool operator== (Clipping & clip2)
{
return
(normal == clip2.normal) &&
(dist == clip2.dist) &&
// (dist2 == clip2.dist2) &&
(enable == clip2.enable);
2012-11-05 17:28:36 +06:00
}
};
Clipping clipping;
2009-01-13 04:40:13 +05:00
int colormeshsize;
int drawfilledtrigs;
int drawbadels;
int drawoutline;
int drawedges;
int subdivisions;
int drawprisms;
int drawpyramids;
int drawhexes;
double shrink;
int drawidentified;
int drawpointnumbers;
int drawedgenumbers;
int drawfacenumbers;
int drawelementnumbers;
int drawdomainsurf;
int drawtets;
int drawtetsdomain;
int clipdomain;
int donotclipdomain;
int drawededges;
int drawedpoints;
int drawedpointnrs;
int drawedtangents;
int drawededgenrs;
int drawmetispartition;
int drawcurveproj;
int drawcurveprojedge;
2016-12-12 00:17:07 +05:00
PointIndex centerpoint;
2009-01-13 04:40:13 +05:00
int drawelement;
// stl:
int stlshowtrias;
int stlshowfilledtrias;
int stlshowedges;
int stlshowmarktrias;
int stlshowactivechart;
int stlchartnumber;
int stlchartnumberoffset;
// occ:
int occshowvolumenr;
bool occshowsurfaces;
bool occshowedges;
bool occvisproblemfaces;
bool occzoomtohighlightedentity;
double occdeflection;
// ACIS
bool ACISshowfaces;
bool ACISshowedges;
int ACISshowsolidnr;
int ACISshowsolidnr2;
bool whitebackground;
int stereo;
bool usedispllists;
bool drawcoordinatecross;
bool drawcolorbar;
bool drawnetgenlogo;
bool use_center_coords;
double centerx,centery,centerz;
bool drawspecpoint;
double specpointx,specpointy,specpointz;
public:
VisualizationParameters();
};
2015-10-19 13:08:30 +05:00
DLL_HEADER extern VisualizationParameters vispar;
2009-07-20 14:36:36 +06:00
}
2009-01-13 04:40:13 +05:00
#endif