IBSimu
1.0.4
|
MyDXFFile solid class. More...
#include <dxf_solid.hpp>
Public Member Functions | |
DXFSolid (MyDXFFile *dxffile, const std::string &layername) | |
Constructor for making a solid from a DXF-file layer. | |
virtual | ~DXFSolid () |
Destructor. | |
virtual bool | inside (const Vec3D &x) const |
Return if point x is inside solid. | |
virtual void | debug_print (void) const |
Prints internal data to std::cout. | |
virtual void | save (std::ostream &s) const |
Saves solid data to stream. |
MyDXFFile solid class.
DXFSolid is an implementation of Solid using MyDXFFile entities. The DXFSolid class is limited to 2D (planar and cylindrical) geometries.
DXFSolid::DXFSolid | ( | MyDXFFile * | dxffile, |
const std::string & | layername | ||
) |
Constructor for making a solid from a DXF-file layer.
The entities from the DXF-filel are copied to DXFSolid object. No dependency stays between dxffile and the object constructed.
virtual DXFSolid::~DXFSolid | ( | ) | [virtual] |
Destructor.
virtual void DXFSolid::debug_print | ( | void | ) | const [virtual] |
Prints internal data to std::cout.
Reimplemented from Solid.
virtual bool DXFSolid::inside | ( | const Vec3D & | x | ) | const [virtual] |
Return if point x is inside solid.
Implements Solid.
virtual void DXFSolid::save | ( | std::ostream & | s | ) | const [virtual] |
Saves solid data to stream.
Implements Solid.