Skip to content

Commit

Permalink
[TD]using namespace clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Nov 3, 2019
1 parent 34a083b commit 6ada9e9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 28 deletions.
24 changes: 12 additions & 12 deletions src/Mod/TechDraw/App/EdgeWalker.h
Expand Up @@ -45,23 +45,23 @@
#include <TopoDS_Wire.hxx>

namespace TechDraw {
using namespace boost;
//using namespace boost;

typedef
adjacency_list
< vecS,
vecS,
undirectedS,
property<vertex_index_t, int>,
property<edge_index_t, int>
boost::adjacency_list
< boost::vecS,
boost::vecS,
boost::undirectedS,
boost::property<boost::vertex_index_t, int>,
boost::property<boost::edge_index_t, int>
>
graph;

typedef
graph_traits < graph >::vertex_descriptor
boost::graph_traits < graph >::vertex_descriptor
vertex_t;
typedef
graph_traits < graph >::edge_descriptor
boost::graph_traits < graph >::edge_descriptor
edge_t;

typedef
Expand All @@ -70,7 +70,7 @@ typedef

typedef
boost::iterator_property_map< planar_embedding_storage_t::iterator,
property_map<graph, vertex_index_t>::type
boost::property_map<graph, boost::vertex_index_t>::type
>
planar_embedding_t;

Expand Down Expand Up @@ -110,7 +110,7 @@ class ewWireList



class edgeVisitor : public planar_face_traversal_visitor
class edgeVisitor : public boost::planar_face_traversal_visitor
{
public:
template <typename Edge>
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/MDIViewPage.cpp
Expand Up @@ -442,7 +442,7 @@ void MDIViewPage::updateDrawing(bool force)

// get all the DrawViews for this page, including the second level ones
// if we ever have collections of collections, we'll need to revisit this
DrawPage* thisPage = m_vpPage->getDrawPage();
TechDraw::DrawPage* thisPage = m_vpPage->getDrawPage();

if(!thisPage->getNameInDocument())
return;
Expand All @@ -468,7 +468,7 @@ void MDIViewPage::updateDrawing(bool force)
if (obj == nullptr) {
m_view->removeQView(qv);
} else {
DrawPage* pp = qv->getViewObject()->findParentPage();
TechDraw::DrawPage* pp = qv->getViewObject()->findParentPage();
if (thisPage != pp) {
m_view->removeQView(qv);
}
Expand Down
23 changes: 10 additions & 13 deletions src/Mod/TechDraw/Gui/QGIFace.h
Expand Up @@ -29,15 +29,12 @@
#include <QByteArray>
#include <QBrush>
#include <QPixmap>
//#include <QVector>

#include <Mod/TechDraw/App/HatchLine.h>
#include <Mod/TechDraw/App/Geometry.h>

#include "QGIPrimPath.h"

using namespace TechDraw;

namespace TechDrawGui
{
class QGCustomSvg;
Expand Down Expand Up @@ -101,14 +98,14 @@ class QGIFace : public QGIPrimPath
void setLineWeight(double w);

void clearLineSets(void);
void addLineSet(LineSet& ls);
void addLineSet(TechDraw::LineSet& ls);
void clearFillItems(void);

void lineSetToFillItems(LineSet& ls);
QGraphicsPathItem* geomToLine(TechDraw::BaseGeom* base,LineSet& ls);
// QGraphicsPathItem* geomToOffsetLine(TechDraw::BaseGeom* base, double offset, const LineSet& ls);
QGraphicsPathItem* geomToStubbyLine(TechDraw::BaseGeom* base, double offset, LineSet& ls);
QGraphicsPathItem* lineFromPoints(Base::Vector3d start, Base::Vector3d end, DashSpec ds);
void lineSetToFillItems(TechDraw::LineSet& ls);
QGraphicsPathItem* geomToLine(TechDraw::BaseGeom* base, TechDraw::LineSet& ls);
// QGraphicsPathItem* geomToOffsetLine(TechDraw::BaseGeom* base, double offset, const TechDraw::LineSet& ls);
QGraphicsPathItem* geomToStubbyLine(TechDraw::BaseGeom* base, double offset, TechDraw::LineSet& ls);
QGraphicsPathItem* lineFromPoints(Base::Vector3d start, Base::Vector3d end, TechDraw::DashSpec ds);

//bitmap texture fill parms method
QPixmap textureFromBitmap(std::string fileSpec);
Expand All @@ -122,7 +119,7 @@ class QGIFace : public QGIPrimPath
std::vector<double> offsetDash(const std::vector<double> dv, const double offset);
QPainterPath dashedPPath(const std::vector<double> dv, const Base::Vector3d start, const Base::Vector3d end);
double dashRemain(const std::vector<double> dv, const double offset);
double calcOffset(TechDraw::BaseGeom* g,LineSet ls);
double calcOffset(TechDraw::BaseGeom* g,TechDraw::LineSet ls);
int projIndex; //index of face in Projection. -1 for SectionFace.
QGCustomRect *m_rect;

Expand All @@ -136,10 +133,10 @@ class QGIFace : public QGIPrimPath
QGIFace::fillMode m_mode;

QPen setGeomPen(void);
std::vector<double> decodeDashSpec(DashSpec d);
std::vector<double> decodeDashSpec(TechDraw::DashSpec d);
std::vector<QGraphicsPathItem*> m_fillItems;
std::vector<LineSet> m_lineSets;
std::vector<DashSpec> m_dashSpecs;
std::vector<TechDraw::LineSet> m_lineSets;
std::vector<TechDraw::DashSpec> m_dashSpecs;
long int m_segCount;
long int m_maxSeg;
long int m_maxTile;
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/QGIViewSection.cpp
Expand Up @@ -124,7 +124,7 @@ void QGIViewSection::drawSectionFace()
newFace->setHatchColor(sectionVp->HatchColor.getValue());
newFace->setHatchScale(section->HatchScale.getValue());
newFace->setLineWeight(sectionVp->WeightPattern.getValue());
std::vector<LineSet> lineSets = section->getDrawableLines(i);
std::vector<TechDraw::LineSet> lineSets = section->getDrawableLines(i);
if (!lineSets.empty()) {
newFace->clearLineSets();
for (auto& ls: lineSets) {
Expand Down

0 comments on commit 6ada9e9

Please sign in to comment.