Algo class for projecting shapes and creating SVG output of it. More...
#include <ProjectionAlgos.h>
Public Types | |
enum | SvgExtractionType { Plain = 0, WithHidden = 1, WithSmooth = 2 } |
Public Member Functions | |
void | execute (void) |
std::string | getDXF (SvgExtractionType type, float scale) |
std::string | getSVG (SvgExtractionType type, float scale) |
ProjectionAlgos (const TopoDS_Shape &Input, const Base::Vector3f &Dir) | |
Constructor. | |
virtual | ~ProjectionAlgos () |
Static Public Member Functions | |
static TopoDS_Shape | invertY (const TopoDS_Shape &) |
Public Attributes | |
const Base::Vector3f & | Direction |
TopoDS_Shape | H |
TopoDS_Shape | H1 |
TopoDS_Shape | HI |
TopoDS_Shape | HN |
TopoDS_Shape | HO |
const TopoDS_Shape & | Input |
TopoDS_Shape | V |
TopoDS_Shape | V1 |
TopoDS_Shape | VI |
TopoDS_Shape | VN |
TopoDS_Shape | VO |
Algo class for projecting shapes and creating SVG output of it.
Definition at line 38 of file ProjectionAlgos.h.
Definition at line 48 of file ProjectionAlgos.h.
ProjectionAlgos::ProjectionAlgos | ( | const TopoDS_Shape & | Input, | |
const Base::Vector3f & | Dir | |||
) |
ProjectionAlgos::~ProjectionAlgos | ( | ) | [virtual] |
Definition at line 99 of file ProjectionAlgos.cpp.
void ProjectionAlgos::execute | ( | void | ) |
Definition at line 117 of file ProjectionAlgos.cpp.
References Direction, H, H1, Handle(), HI, HN, HO, Input, V, V1, VI, VN, VO, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by ProjectionAlgos().
std::string ProjectionAlgos::getDXF | ( | SvgExtractionType | type, | |
float | scale | |||
) |
Definition at line 252 of file ProjectionAlgos.cpp.
References Drawing::DXFOutput::exportEdges(), H, H1, HO, result, V, V1, VO, WithHidden, and WithSmooth.
std::string ProjectionAlgos::getSVG | ( | SvgExtractionType | type, | |
float | scale | |||
) |
Definition at line 152 of file ProjectionAlgos.cpp.
References Drawing::SVGOutput::exportEdges(), H, H1, HO, result, V, V1, VO, WithHidden, and WithSmooth.
Referenced by Drawing::FeatureViewPart::execute().
TopoDS_Shape ProjectionAlgos::invertY | ( | const TopoDS_Shape & | shape | ) | [static] |
Definition at line 103 of file ProjectionAlgos.cpp.
References KDL::Add().
Referenced by Drawing::FeatureViewPart::execute().
Definition at line 59 of file ProjectionAlgos.h.
Referenced by execute().
TopoDS_Shape Drawing::ProjectionAlgos::H |
Definition at line 66 of file ProjectionAlgos.h.
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
TopoDS_Shape Drawing::ProjectionAlgos::H1 |
Definition at line 67 of file ProjectionAlgos.h.
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
TopoDS_Shape Drawing::ProjectionAlgos::HI |
Definition at line 70 of file ProjectionAlgos.h.
Referenced by execute(), and Drawing::FeatureProjection::execute().
TopoDS_Shape Drawing::ProjectionAlgos::HN |
Definition at line 68 of file ProjectionAlgos.h.
Referenced by execute(), and Drawing::FeatureProjection::execute().
TopoDS_Shape Drawing::ProjectionAlgos::HO |
Definition at line 69 of file ProjectionAlgos.h.
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
const TopoDS_Shape& Drawing::ProjectionAlgos::Input |
Definition at line 58 of file ProjectionAlgos.h.
Referenced by execute().
TopoDS_Shape Drawing::ProjectionAlgos::V |
Definition at line 61 of file ProjectionAlgos.h.
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
TopoDS_Shape Drawing::ProjectionAlgos::V1 |
Definition at line 62 of file ProjectionAlgos.h.
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
TopoDS_Shape Drawing::ProjectionAlgos::VI |
Definition at line 65 of file ProjectionAlgos.h.
Referenced by execute(), and Drawing::FeatureProjection::execute().
TopoDS_Shape Drawing::ProjectionAlgos::VN |
Definition at line 63 of file ProjectionAlgos.h.
Referenced by execute(), and Drawing::FeatureProjection::execute().
TopoDS_Shape Drawing::ProjectionAlgos::VO |
Definition at line 64 of file ProjectionAlgos.h.
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().