Algo class for projecting shapes and creating SVG output of it. More...
#include <ProjectionAlgos.h>
Public Types | |
enum | ExtractionType { Plain = 0, WithHidden = 1, WithSmooth = 2 } |
typedef std::map< std::string, std::string > | XmlAttributes |
Public Member Functions | |
void | execute (void) |
std::string | getDXF (ExtractionType type, double scale, double tolerance) |
std::string | getSVG (ExtractionType type, double tolerance=0.05, XmlAttributes V_style=XmlAttributes(), XmlAttributes V0_style=XmlAttributes(), XmlAttributes V1_style=XmlAttributes(), XmlAttributes H_style=XmlAttributes(), XmlAttributes H0_style=XmlAttributes(), XmlAttributes H1_style=XmlAttributes()) |
ProjectionAlgos (const TopoDS_Shape &Input, const Base::Vector3d &Dir) | |
Constructor. More... | |
virtual | ~ProjectionAlgos () |
Public Attributes | |
const Base::Vector3d & | 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 |
Detailed Description
Algo class for projecting shapes and creating SVG output of it.
Member Typedef Documentation
◆ XmlAttributes
typedef std::map<std::string,std::string> Drawing::ProjectionAlgos::XmlAttributes |
Member Enumeration Documentation
◆ ExtractionType
Constructor & Destructor Documentation
◆ ProjectionAlgos()
ProjectionAlgos::ProjectionAlgos | ( | const TopoDS_Shape & | Input, |
const Base::Vector3d & | Dir | ||
) |
Constructor.
References execute().
◆ ~ProjectionAlgos()
|
virtual |
Member Function Documentation
◆ execute()
void ProjectionAlgos::execute | ( | void | ) |
References Direction, H, H1, HI, HN, HO, Input, V, V1, VI, VN, VO, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by PathScripts.PathDressupDogbone.ObjectDressup::boneStateList(), ArchSite.Compass::buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::generateTags(), ArchSchedule.CommandArchSchedule::IsActive(), Mod.PartDesign.Scripts.Spring.MySpring::onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped::onChanged(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder::onChanged(), PathScripts.PathStock.StockFromBase::onChanged(), PathScripts.PathStock.StockCreateBox::onChanged(), PathScripts.PathStock.StockCreateCylinder::onChanged(), FeaturePython.DistanceBolt::onChanged(), and ProjectionAlgos().
◆ getDXF()
string ProjectionAlgos::getDXF | ( | ExtractionType | type, |
double | scale, | ||
double | tolerance | ||
) |
References Drawing::DXFOutput::exportEdges(), H, H1, HO, V, V1, VO, WithHidden, and WithSmooth.
◆ getSVG()
string ProjectionAlgos::getSVG | ( | ExtractionType | type, |
double | tolerance = 0.05 , |
||
XmlAttributes | V_style = XmlAttributes() , |
||
XmlAttributes | V0_style = XmlAttributes() , |
||
XmlAttributes | V1_style = XmlAttributes() , |
||
XmlAttributes | H_style = XmlAttributes() , |
||
XmlAttributes | H0_style = XmlAttributes() , |
||
XmlAttributes | H1_style = XmlAttributes() |
||
) |
References Drawing::SVGOutput::exportEdges(), H, H1, HO, V, V1, VO, WithHidden, and WithSmooth.
Referenced by Drawing::FeatureViewPart::execute().
Member Data Documentation
◆ Direction
const Base::Vector3d& Drawing::ProjectionAlgos::Direction |
Referenced by execute().
◆ H
TopoDS_Shape Drawing::ProjectionAlgos::H |
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
◆ H1
TopoDS_Shape Drawing::ProjectionAlgos::H1 |
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
◆ HI
TopoDS_Shape Drawing::ProjectionAlgos::HI |
Referenced by execute(), and Drawing::FeatureProjection::execute().
◆ HN
TopoDS_Shape Drawing::ProjectionAlgos::HN |
Referenced by execute(), and Drawing::FeatureProjection::execute().
◆ HO
TopoDS_Shape Drawing::ProjectionAlgos::HO |
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
◆ Input
const TopoDS_Shape& Drawing::ProjectionAlgos::Input |
Referenced by execute().
◆ V
TopoDS_Shape Drawing::ProjectionAlgos::V |
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
◆ V1
TopoDS_Shape Drawing::ProjectionAlgos::V1 |
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
◆ VI
TopoDS_Shape Drawing::ProjectionAlgos::VI |
Referenced by execute(), and Drawing::FeatureProjection::execute().
◆ VN
TopoDS_Shape Drawing::ProjectionAlgos::VN |
Referenced by execute(), and Drawing::FeatureProjection::execute().
◆ VO
TopoDS_Shape Drawing::ProjectionAlgos::VO |
Referenced by execute(), Drawing::FeatureProjection::execute(), getDXF(), and getSVG().
The documentation for this class was generated from the following files:
- src/Mod/Drawing/App/ProjectionAlgos.h
- src/Mod/Drawing/App/ProjectionAlgos.cpp