FuncSolid Class Reference
Function solid class. More...
#include <func_solid.hpp>
Inheritance diagram for FuncSolid:

Public Member Functions | |
FuncSolid (bool(*func)(double, double, double)) | |
Constructor. More... | |
FuncSolid (std::istream &is) | |
Constructor for loading solid data from stream is. More... | |
~FuncSolid () | |
Destructor. More... | |
bool | inside (const Vec3D &x) const |
Return if point x is inside funcsolid. More... | |
void | debug_print (std::ostream &os) const |
Print debugging information to os. More... | |
void | save (std::ostream &os) const |
Saves solid data to stream os. More... | |
![]() | |
virtual | ~Solid () |
Virtual destructor. More... | |
void | reset_transformation (void) |
Set transformation to unity. More... | |
void | set_transformation (const Transformation &T) |
Set transformation. More... | |
void | translate (const Vec3D &dx) |
Translate solid. More... | |
void | scale (double sx) |
Scale solid. More... | |
void | scale (const Vec3D &sx) |
Scale solid. More... | |
void | rotate_x (double a) |
Rotate solid around x-axis. More... | |
void | rotate_y (double a) |
Rotate solid around y-axis. More... | |
void | rotate_z (double a) |
Rotate solid around z-axis. More... | |
Additional Inherited Members | |
![]() | |
Solid () | |
Constructor. More... | |
![]() | |
Transformation | _T |
Detailed Description
Function solid class.
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().
Constructor & Destructor Documentation
◆ FuncSolid() [1/2]
|
inline |
Constructor.
◆ FuncSolid() [2/2]
FuncSolid::FuncSolid | ( | std::istream & | is | ) |
Constructor for loading solid data from stream is.
◆ ~FuncSolid()
|
inline |
Destructor.
Member Function Documentation
◆ debug_print()
|
virtual |
Print debugging information to os.
Implements Solid.
◆ inside()
|
virtual |
Return if point x is inside funcsolid.
Implements Solid.
◆ save()
|
virtual |
Saves solid data to stream os.
Implements Solid.
The documentation for this class was generated from the following files: