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 |
Algo class for projecting shapes and creating SVG output of it.
typedef std::map<std::string,std::string> TechDraw::ProjectionAlgos::XmlAttributes |
ProjectionAlgos::ProjectionAlgos | ( | const TopoDS_Shape & | Input, |
const Base::Vector3d & | Dir | ||
) |
Constructor.
References execute().
|
virtual |
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 draftobjects.facebinder.Facebinder::addSubobjects(), PathScripts.PathDressupDogbone.ObjectDressup::boneStateList(), ArchSite.Compass::buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup::generateTags(), ArchPanel.PanelCut::getWires(), ArchSchedule.CommandArchSchedule::IsActive(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt::onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped::onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder::onChanged(), Mod.PartDesign.Scripts.Spring.MySpring::onChanged(), FeaturePython.DistanceBolt::onChanged(), PathScripts.PathStock.StockFromBase::onChanged(), PathScripts.PathStock.StockCreateBox::onChanged(), PathScripts.PathStock.StockCreateCylinder::onChanged(), draftobjects.draftlink.DraftLink::onDocumentRestored(), draftobjects.patharray.PathArray::onDocumentRestored(), draftobjects.pathtwistedarray.PathTwistedArray::onDocumentRestored(), and ProjectionAlgos().
string ProjectionAlgos::getDXF | ( | ExtractionType | type, |
double | scale, | ||
double | tolerance | ||
) |
References TechDraw::DXFOutput::exportEdges(), H, H1, HO, draftutils.utils::tolerance(), V, V1, VO, WithHidden, and WithSmooth.
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 TechDraw::SVGOutput::exportEdges(), H, H1, HO, draftutils.utils::tolerance(), V, V1, VO, WithHidden, and WithSmooth.
const Base::Vector3d& TechDraw::ProjectionAlgos::Direction |
Referenced by execute().
TopoDS_Shape TechDraw::ProjectionAlgos::H |
Referenced by TechDraw::FeatureProjection::execute(), execute(), getDXF(), and getSVG().
TopoDS_Shape TechDraw::ProjectionAlgos::H1 |
Referenced by TechDraw::FeatureProjection::execute(), execute(), getDXF(), and getSVG().
TopoDS_Shape TechDraw::ProjectionAlgos::HI |
Referenced by TechDraw::FeatureProjection::execute(), and execute().
TopoDS_Shape TechDraw::ProjectionAlgos::HN |
Referenced by TechDraw::FeatureProjection::execute(), and execute().
TopoDS_Shape TechDraw::ProjectionAlgos::HO |
Referenced by TechDraw::FeatureProjection::execute(), execute(), getDXF(), and getSVG().
const TopoDS_Shape& TechDraw::ProjectionAlgos::Input |
Referenced by execute().
TopoDS_Shape TechDraw::ProjectionAlgos::V |
Referenced by TechDraw::FeatureProjection::execute(), execute(), getDXF(), and getSVG().
TopoDS_Shape TechDraw::ProjectionAlgos::V1 |
Referenced by TechDraw::FeatureProjection::execute(), execute(), getDXF(), and getSVG().
TopoDS_Shape TechDraw::ProjectionAlgos::VI |
Referenced by TechDraw::FeatureProjection::execute(), and execute().
TopoDS_Shape TechDraw::ProjectionAlgos::VN |
Referenced by TechDraw::FeatureProjection::execute(), and execute().
TopoDS_Shape TechDraw::ProjectionAlgos::VO |
Referenced by TechDraw::FeatureProjection::execute(), execute(), getDXF(), and getSVG().