openEMS/FDTD/processing.cpp

21 lines
502 B
C++
Raw Normal View History

#include "processing.h"
Processing::Processing(Operator* op, Engine* eng)
{
Op=op;
Eng=eng;
2010-03-04 15:54:16 +00:00
Enabled = true;
}
Processing::~Processing()
{
}
void Processing::DefineStartStopCoord(double* dstart, double* dstop)
{
2010-03-03 07:00:25 +00:00
if (Op->SnapToMesh(dstart,start)==false) cerr << "Processing::DefineStartStopCoord: Warning: Snapping problem, check start value!!" << endl;
if (Op->SnapToMesh(dstop,stop)==false) cerr << "Processing::DefineStartStopCoord: Warning: Snapping problem, check stop value!!" << endl;
}