Remove Svg prefix from enum type

This commit is contained in:
wmayer 2012-11-29 11:52:42 +01:00
parent 55117489b2
commit 98c2c18c84
3 changed files with 8 additions and 8 deletions

View File

@ -199,9 +199,9 @@ App::DocumentObjectExecReturn *FeatureViewPart::execute(void)
<< " transform=\"rotate("<< Rotation.getValue() << ","<< X.getValue()<<","<<Y.getValue()<<") translate("<< X.getValue()<<","<<Y.getValue()<<") scale("<< Scale.getValue()<<","<<Scale.getValue()<<")\"" << endl
<< " >" << endl;
ProjectionAlgos::SvgExtractionType type = ProjectionAlgos::Plain;
if (hidden) type = (ProjectionAlgos::SvgExtractionType)(type|ProjectionAlgos::WithHidden);
if (smooth) type = (ProjectionAlgos::SvgExtractionType)(type|ProjectionAlgos::WithSmooth);
ProjectionAlgos::ExtractionType type = ProjectionAlgos::Plain;
if (hidden) type = (ProjectionAlgos::ExtractionType)(type|ProjectionAlgos::WithHidden);
if (smooth) type = (ProjectionAlgos::ExtractionType)(type|ProjectionAlgos::WithSmooth);
result << Alg.getSVG(type, this->LineWidth.getValue() / this->Scale.getValue(), this->Tolerance.getValue());
result << "</g>" << endl;

View File

@ -149,7 +149,7 @@ void ProjectionAlgos::execute(void)
}
std::string ProjectionAlgos::getSVG(SvgExtractionType type, float scale, float tolerance)
std::string ProjectionAlgos::getSVG(ExtractionType type, float scale, float tolerance)
{
std::stringstream result;
SVGOutput output;
@ -251,7 +251,7 @@ std::string ProjectionAlgos::getSVG(SvgExtractionType type, float scale, float t
/* dxf output section - Dan Falck 2011/09/25 */
std::string ProjectionAlgos::getDXF(SvgExtractionType type, float scale, float tolerance)
std::string ProjectionAlgos::getDXF(ExtractionType type, float scale, float tolerance)
{
std::stringstream result;
DXFOutput output;

View File

@ -45,14 +45,14 @@ public:
void execute(void);
static TopoDS_Shape invertY(const TopoDS_Shape&);
enum SvgExtractionType {
enum ExtractionType {
Plain = 0,
WithHidden = 1,
WithSmooth = 2
};
std::string getSVG(SvgExtractionType type, float scale, float tolerance);
std::string getDXF(SvgExtractionType type, float scale, float tolerance);//added by Dan Falck 2011/09/25
std::string getSVG(ExtractionType type, float scale, float tolerance);
std::string getDXF(ExtractionType type, float scale, float tolerance);//added by Dan Falck 2011/09/25
const TopoDS_Shape &Input;