netgen/libsrc/visualization/soldata.hpp
Joachim Schoeberl 18a0f73dc5 dll-export
2009-07-23 13:02:40 +00:00

69 lines
1.8 KiB
C++

#ifndef FILE_SOLDATA
#define FILE_SOLDATA
namespace netgen
{
using namespace std;
class DLL_HEADER SolutionData
{
protected:
string name;
int components;
bool iscomplex;
int multidimcomponent;
public:
SolutionData (const string & aname,
int acomponents = 1, bool aiscomplex = 0)
: name(aname), components(acomponents), iscomplex(aiscomplex)
{ ; }
virtual ~SolutionData ()
{ ; }
int GetComponents() { return components; }
bool IsComplex() { return iscomplex; }
virtual bool GetValue (int /* elnr */,
double /* lam1 */, double /* lam2 */, double /* lam3 */,
double * /* values */)
{ return false; }
virtual bool GetValue (int selnr,
const double xref[], const double x[], const double dxdxref[],
double * values)
{ return GetValue (selnr, xref[0], xref[1], xref[2], values); }
virtual bool GetSurfValue (int /* selnr */,
double /* lam1 */, double /* lam2 */,
double * /* values */)
{ return false; }
virtual bool GetSurfValue (int selnr,
const double xref[], const double x[], const double dxdxref[],
double * values)
{ return GetSurfValue (selnr, xref[0], xref[1], values); }
virtual bool GetMultiSurfValue (int selnr, int npts,
const double * xref, int sxref,
const double * x, int sx,
const double * dxdxref, int sdxdxref,
double * values, int svalues);
void SetMultiDimComponent (int mc)
{ multidimcomponent = mc; }
};
}
#endif