#include <func_solid.hpp>
Inheritance diagram for FuncSolid:
Public Member Functions | |
FuncSolid (bool(*func)(double, double, double)) | |
Constructor. | |
FuncSolid (std::istream &s) | |
Constructor for loading solid data from a file. | |
~FuncSolid () | |
Destructor. | |
bool | inside (const Vec3D &x) const |
Return if point x is inside funcsolid. | |
void | debug_print (void) const |
Prints internal data to std::cout. | |
void | save (std::ostream &fout) const |
Saves solid data to stream. |
FuncSolid class holds the definition for one solid defining C-function. This solid implementation suffers from the inability of saving to file. If FuncSolid is constructed from stream the function pointer inside is set to NULL and error is thrown if function is evaluated using inside().
FuncSolid::FuncSolid | ( | bool(*)(double, double, double) | func | ) | [inline] |
Constructor.
FuncSolid::FuncSolid | ( | std::istream & | s | ) |
Constructor for loading solid data from a file.
FuncSolid::~FuncSolid | ( | ) | [inline] |
Destructor.
void FuncSolid::debug_print | ( | void | ) | const [virtual] |
bool FuncSolid::inside | ( | const Vec3D & | x | ) | const [virtual] |
void FuncSolid::save | ( | std::ostream & | fout | ) | const [virtual] |