Q_DISABLE_COPY instead copy constructor
--HG-- branch : feature
This commit is contained in:
parent
15834562af
commit
c298be342d
|
@ -56,21 +56,6 @@ public:
|
||||||
delete extrusion;
|
delete extrusion;
|
||||||
}
|
}
|
||||||
|
|
||||||
DL_CreationInterface(const DL_CreationInterface &L) : extrusion(L.extrusion), attributes(L.attributes)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
DL_CreationInterface & operator=(const DL_CreationInterface &L)
|
|
||||||
{
|
|
||||||
extrusion = L.extrusion;
|
|
||||||
attributes = L.attributes;
|
|
||||||
|
|
||||||
if ( &L == this )
|
|
||||||
{
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called for every code / value tuple of the DXF file. The complete DXF file
|
* Called for every code / value tuple of the DXF file. The complete DXF file
|
||||||
* contents can be handled by the implemetation of this function.
|
* contents can be handled by the implemetation of this function.
|
||||||
|
@ -380,6 +365,9 @@ public:
|
||||||
return extrusion;
|
return extrusion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
Q_DISABLE_COPY(DL_CreationInterface);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
DL_Extrusion *extrusion;
|
DL_Extrusion *extrusion;
|
||||||
DL_Attributes attributes;
|
DL_Attributes attributes;
|
||||||
|
|
|
@ -119,103 +119,6 @@ public:
|
||||||
DL_Dxf();
|
DL_Dxf();
|
||||||
~DL_Dxf();
|
~DL_Dxf();
|
||||||
|
|
||||||
DL_Dxf(const DL_Dxf &L)
|
|
||||||
: version(L.version),
|
|
||||||
polylineLayer(L.polylineLayer),
|
|
||||||
vertices(L.vertices),
|
|
||||||
maxVertices(L.maxVertices),
|
|
||||||
vertexIndex(L.vertexIndex),
|
|
||||||
knots(L.knots),
|
|
||||||
maxKnots(L.maxKnots),
|
|
||||||
knotIndex(L.knotIndex),
|
|
||||||
|
|
||||||
weights(L.weights),
|
|
||||||
weightIndex(L.weightIndex),
|
|
||||||
|
|
||||||
controlPoints(L.controlPoints),
|
|
||||||
maxControlPoints(L.maxControlPoints),
|
|
||||||
controlPointIndex(L.controlPointIndex),
|
|
||||||
|
|
||||||
fitPoints(L.fitPoints),
|
|
||||||
maxFitPoints(L.maxFitPoints),
|
|
||||||
fitPointIndex(L.fitPointIndex),
|
|
||||||
|
|
||||||
leaderVertices(L.leaderVertices),
|
|
||||||
maxLeaderVertices(L.maxLeaderVertices),
|
|
||||||
leaderVertexIndex(L.leaderVertexIndex),
|
|
||||||
|
|
||||||
firstHatchLoop(L.firstHatchLoop),
|
|
||||||
hatchEdge(L.hatchEdge),
|
|
||||||
hatchEdges(L.hatchEdges),
|
|
||||||
|
|
||||||
xRecordHandle(L.xRecordHandle),
|
|
||||||
xRecordValues(L.xRecordValues),
|
|
||||||
|
|
||||||
groupCodeTmp(L.groupCodeTmp),
|
|
||||||
groupCode(L.groupCode),
|
|
||||||
groupValue(L.groupValue),
|
|
||||||
currentObjectType(L.currentObjectType),
|
|
||||||
settingKey(L.settingKey),
|
|
||||||
values(L.values),
|
|
||||||
firstCall(L.firstCall),
|
|
||||||
attrib(L.attrib),
|
|
||||||
libVersion(L.libVersion),
|
|
||||||
appDictionaryHandle(L.appDictionaryHandle),
|
|
||||||
styleHandleStd(L.styleHandleStd)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
DL_Dxf & operator=(const DL_Dxf &L)
|
|
||||||
{
|
|
||||||
version = L.version;
|
|
||||||
polylineLayer = L.polylineLayer;
|
|
||||||
vertices = L.vertices;
|
|
||||||
maxVertices = L.maxVertices;
|
|
||||||
vertexIndex = L.vertexIndex;
|
|
||||||
knots = L.knots;
|
|
||||||
maxKnots = L.maxKnots;
|
|
||||||
knotIndex = L.knotIndex;
|
|
||||||
|
|
||||||
weights = L.weights;
|
|
||||||
weightIndex = L.weightIndex;
|
|
||||||
|
|
||||||
controlPoints = L.controlPoints;
|
|
||||||
maxControlPoints = L.maxControlPoints;
|
|
||||||
controlPointIndex = L.controlPointIndex;
|
|
||||||
|
|
||||||
fitPoints = L.fitPoints;
|
|
||||||
maxFitPoints = L.maxFitPoints;
|
|
||||||
fitPointIndex = L.fitPointIndex;
|
|
||||||
|
|
||||||
leaderVertices = L.leaderVertices;
|
|
||||||
maxLeaderVertices = L.maxLeaderVertices;
|
|
||||||
leaderVertexIndex = L.leaderVertexIndex;
|
|
||||||
|
|
||||||
firstHatchLoop = L.firstHatchLoop;
|
|
||||||
hatchEdge = L.hatchEdge;
|
|
||||||
hatchEdges = L.hatchEdges;
|
|
||||||
|
|
||||||
xRecordHandle = L.xRecordHandle;
|
|
||||||
xRecordValues = L.xRecordValues;
|
|
||||||
|
|
||||||
groupCodeTmp = L.groupCodeTmp;
|
|
||||||
groupCode = L.groupCode;
|
|
||||||
groupValue = L.groupValue;
|
|
||||||
currentObjectType = L.currentObjectType;
|
|
||||||
settingKey = L.settingKey;
|
|
||||||
values = L.values;
|
|
||||||
firstCall = L.firstCall;
|
|
||||||
attrib = L.attrib;
|
|
||||||
libVersion = L.libVersion;
|
|
||||||
appDictionaryHandle = L.appDictionaryHandle;
|
|
||||||
styleHandleStd = L.styleHandleStd;
|
|
||||||
|
|
||||||
if ( &L == this )
|
|
||||||
{
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool in(const std::string& file,
|
bool in(const std::string& file,
|
||||||
DL_CreationInterface* creationInterface);
|
DL_CreationInterface* creationInterface);
|
||||||
bool readDxfGroups(FILE* fp,
|
bool readDxfGroups(FILE* fp,
|
||||||
|
@ -554,6 +457,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Q_DISABLE_COPY(DL_Dxf);
|
||||||
DL_Codes::version version;
|
DL_Codes::version version;
|
||||||
|
|
||||||
std::string polylineLayer;
|
std::string polylineLayer;
|
||||||
|
|
|
@ -110,31 +110,6 @@ struct DXFLIB_EXPORT DL_LinetypeData
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
DL_LinetypeData(const DL_LinetypeData &L)
|
|
||||||
: name(L.name),
|
|
||||||
description(L.description),
|
|
||||||
flags(L.flags),
|
|
||||||
numberOfDashes(L.numberOfDashes),
|
|
||||||
patternLength(L.patternLength),
|
|
||||||
pattern(L.pattern)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
DL_LinetypeData & operator=(const DL_LinetypeData &L)
|
|
||||||
{
|
|
||||||
name = L.name;
|
|
||||||
description = L.description;
|
|
||||||
flags = L.flags;
|
|
||||||
numberOfDashes = L.numberOfDashes;
|
|
||||||
patternLength = L.patternLength;
|
|
||||||
pattern = L.pattern;
|
|
||||||
|
|
||||||
if ( &L == this )
|
|
||||||
{
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Linetype name */
|
/** Linetype name */
|
||||||
std::string name;
|
std::string name;
|
||||||
/** Linetype description */
|
/** Linetype description */
|
||||||
|
@ -147,6 +122,9 @@ struct DXFLIB_EXPORT DL_LinetypeData
|
||||||
double patternLength;
|
double patternLength;
|
||||||
/** Pattern */
|
/** Pattern */
|
||||||
double* pattern;
|
double* pattern;
|
||||||
|
|
||||||
|
private:
|
||||||
|
Q_DISABLE_COPY(DL_LinetypeData);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -544,12 +522,12 @@ struct DXFLIB_EXPORT DL_SplineData
|
||||||
nControl(nControl),
|
nControl(nControl),
|
||||||
nFit(nFit),
|
nFit(nFit),
|
||||||
flags(flags),
|
flags(flags),
|
||||||
tangentStartX(),
|
tangentStartX(0.0),
|
||||||
tangentStartY(),
|
tangentStartY(0.0),
|
||||||
tangentStartZ(),
|
tangentStartZ(0.0),
|
||||||
tangentEndX(),
|
tangentEndX(0.0),
|
||||||
tangentEndY(),
|
tangentEndY(0.0),
|
||||||
tangentEndZ()
|
tangentEndZ(0.0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1462,11 +1440,11 @@ struct DXFLIB_EXPORT DL_HatchEdgeData
|
||||||
* Default constructor.
|
* Default constructor.
|
||||||
*/
|
*/
|
||||||
DL_HatchEdgeData() : defined(false), x1(0.0), y1(0.0), x2(0.0), y2(0.0),
|
DL_HatchEdgeData() : defined(false), x1(0.0), y1(0.0), x2(0.0), y2(0.0),
|
||||||
type(), cx(), cy(), radius(), angle1(), angle2(), ccw(),
|
type(0), cx(0.0), cy(0.0), radius(0.0), angle1(0.0), angle2(0.0), ccw(),
|
||||||
mx(), my(), ratio(), degree(), rational(), periodic(),
|
mx(0.0), my(0.0), ratio(0.0), degree(0), rational(), periodic(),
|
||||||
nKnots(), nControl(), nFit(), controlPoints(), knots(),
|
nKnots(0), nControl(0), nFit(0), controlPoints(), knots(),
|
||||||
weights(), fitPoints(), startTangentX(), startTangentY(),
|
weights(), fitPoints(), startTangentX(0.0), startTangentY(0.0),
|
||||||
endTangentX(), endTangentY(), vertices()
|
endTangentX(0.0), endTangentY(0.0), vertices()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1482,11 +1460,11 @@ struct DXFLIB_EXPORT DL_HatchEdgeData
|
||||||
x2(x2),
|
x2(x2),
|
||||||
y2(y2),
|
y2(y2),
|
||||||
type(1),
|
type(1),
|
||||||
cx(), cy(), radius(), angle1(), angle2(), ccw(),
|
cx(0.0), cy(0.0), radius(0.0), angle1(0.0), angle2(0.0), ccw(),
|
||||||
mx(), my(), ratio(), degree(), rational(), periodic(),
|
mx(0.0), my(0.0), ratio(0.0), degree(0), rational(), periodic(),
|
||||||
nKnots(), nControl(), nFit(), controlPoints(), knots(),
|
nKnots(0), nControl(0), nFit(0), controlPoints(), knots(),
|
||||||
weights(), fitPoints(), startTangentX(), startTangentY(),
|
weights(), fitPoints(), startTangentX(0.0), startTangentY(0.0),
|
||||||
endTangentX(), endTangentY(), vertices()
|
endTangentX(0.0), endTangentY(0.0), vertices()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1507,10 +1485,10 @@ struct DXFLIB_EXPORT DL_HatchEdgeData
|
||||||
angle1(angle1),
|
angle1(angle1),
|
||||||
angle2(angle2),
|
angle2(angle2),
|
||||||
ccw(ccw),
|
ccw(ccw),
|
||||||
mx(), my(), ratio(), degree(), rational(), periodic(),
|
mx(0.0), my(0.0), ratio(0.0), degree(0), rational(), periodic(),
|
||||||
nKnots(), nControl(), nFit(), controlPoints(), knots(),
|
nKnots(0), nControl(0), nFit(0), controlPoints(), knots(),
|
||||||
weights(), fitPoints(), startTangentX(), startTangentY(),
|
weights(), fitPoints(), startTangentX(0.0), startTangentY(0.0),
|
||||||
endTangentX(), endTangentY(), vertices()
|
endTangentX(0.0), endTangentY(0.0), vertices()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1535,10 +1513,10 @@ struct DXFLIB_EXPORT DL_HatchEdgeData
|
||||||
mx(mx),
|
mx(mx),
|
||||||
my(my),
|
my(my),
|
||||||
ratio(ratio),
|
ratio(ratio),
|
||||||
degree(), rational(), periodic(),
|
degree(0), rational(), periodic(),
|
||||||
nKnots(), nControl(), nFit(), controlPoints(), knots(),
|
nKnots(0), nControl(0), nFit(0), controlPoints(), knots(),
|
||||||
weights(), fitPoints(), startTangentX(), startTangentY(),
|
weights(), fitPoints(), startTangentX(0.0), startTangentY(0.0),
|
||||||
endTangentX(), endTangentY(), vertices()
|
endTangentX(0.0), endTangentY(0.0), vertices()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user