TechDraw::ProjectionAlgos Class Reference

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::Vector3dDirection
 
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> TechDraw::ProjectionAlgos::XmlAttributes

Member Enumeration Documentation

◆ ExtractionType

Enumerator
Plain 
WithHidden 
WithSmooth 

Constructor & Destructor Documentation

◆ ProjectionAlgos()

ProjectionAlgos::ProjectionAlgos ( const TopoDS_Shape &  Input,
const Base::Vector3d Dir 
)

Constructor.

References execute().

◆ ~ProjectionAlgos()

ProjectionAlgos::~ProjectionAlgos ( )
virtual

Member Function Documentation

◆ execute()

◆ getDXF()

string ProjectionAlgos::getDXF ( ExtractionType  type,
double  scale,
double  tolerance 
)

◆ 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() 
)

Member Data Documentation

◆ Direction

const Base::Vector3d& TechDraw::ProjectionAlgos::Direction

Referenced by execute().

◆ H

TopoDS_Shape TechDraw::ProjectionAlgos::H

◆ H1

TopoDS_Shape TechDraw::ProjectionAlgos::H1

◆ HI

TopoDS_Shape TechDraw::ProjectionAlgos::HI

◆ HN

TopoDS_Shape TechDraw::ProjectionAlgos::HN

◆ HO

TopoDS_Shape TechDraw::ProjectionAlgos::HO

◆ Input

const TopoDS_Shape& TechDraw::ProjectionAlgos::Input

Referenced by execute().

◆ V

TopoDS_Shape TechDraw::ProjectionAlgos::V

◆ V1

TopoDS_Shape TechDraw::ProjectionAlgos::V1

◆ VI

TopoDS_Shape TechDraw::ProjectionAlgos::VI

◆ VN

TopoDS_Shape TechDraw::ProjectionAlgos::VN

◆ VO

TopoDS_Shape TechDraw::ProjectionAlgos::VO

The documentation for this class was generated from the following files: