mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 13:25:53 +08:00
Removed useless virtual keywords from clipper
This commit is contained in:
parent
11585b88d5
commit
23b4f6b193
@ -137,7 +137,7 @@ class PolyNode
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PolyNode();
|
PolyNode();
|
||||||
virtual ~PolyNode(){};
|
~PolyNode(){};
|
||||||
Path Contour;
|
Path Contour;
|
||||||
PolyNodes Childs;
|
PolyNodes Childs;
|
||||||
PolyNode* Parent;
|
PolyNode* Parent;
|
||||||
@ -219,17 +219,17 @@ class ClipperBase
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClipperBase();
|
ClipperBase();
|
||||||
virtual ~ClipperBase();
|
~ClipperBase();
|
||||||
virtual bool AddPath(const Path &pg, PolyType PolyTyp, bool Closed);
|
bool AddPath(const Path &pg, PolyType PolyTyp, bool Closed);
|
||||||
bool AddPaths(const Paths &ppg, PolyType PolyTyp, bool Closed);
|
bool AddPaths(const Paths &ppg, PolyType PolyTyp, bool Closed);
|
||||||
virtual void Clear();
|
void Clear();
|
||||||
IntRect GetBounds();
|
IntRect GetBounds();
|
||||||
bool PreserveCollinear() {return m_PreserveCollinear;};
|
bool PreserveCollinear() {return m_PreserveCollinear;};
|
||||||
void PreserveCollinear(bool value) {m_PreserveCollinear = value;};
|
void PreserveCollinear(bool value) {m_PreserveCollinear = value;};
|
||||||
protected:
|
protected:
|
||||||
void DisposeLocalMinimaList();
|
void DisposeLocalMinimaList();
|
||||||
TEdge* AddBoundsToLML(TEdge *e, bool IsClosed);
|
TEdge* AddBoundsToLML(TEdge *e, bool IsClosed);
|
||||||
virtual void Reset();
|
void Reset();
|
||||||
TEdge* ProcessBound(TEdge* E, bool IsClockwise);
|
TEdge* ProcessBound(TEdge* E, bool IsClockwise);
|
||||||
void InsertScanbeam(const cInt Y);
|
void InsertScanbeam(const cInt Y);
|
||||||
bool PopScanbeam(cInt &Y);
|
bool PopScanbeam(cInt &Y);
|
||||||
@ -258,7 +258,7 @@ protected:
|
|||||||
};
|
};
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
class Clipper : public virtual ClipperBase
|
class Clipper : public ClipperBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Clipper(int initOptions = 0);
|
Clipper(int initOptions = 0);
|
||||||
@ -285,7 +285,7 @@ public:
|
|||||||
void ZFillFunction(ZFillCallback zFillFunc);
|
void ZFillFunction(ZFillCallback zFillFunc);
|
||||||
#endif
|
#endif
|
||||||
protected:
|
protected:
|
||||||
virtual bool ExecuteInternal();
|
bool ExecuteInternal();
|
||||||
private:
|
private:
|
||||||
JoinList m_Joins;
|
JoinList m_Joins;
|
||||||
JoinList m_GhostJoins;
|
JoinList m_GhostJoins;
|
||||||
@ -390,8 +390,8 @@ class clipperException : public std::exception
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
clipperException(const char* description): m_descr(description) {}
|
clipperException(const char* description): m_descr(description) {}
|
||||||
virtual ~clipperException() throw() {}
|
~clipperException() throw() {}
|
||||||
virtual const char* what() const throw() {return m_descr.c_str();}
|
const char* what() const throw() {return m_descr.c_str();}
|
||||||
private:
|
private:
|
||||||
std::string m_descr;
|
std::string m_descr;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user