fix Coverity issues
This commit is contained in:
@@ -54,8 +54,8 @@
|
||||
# include <TopTools_IndexedMapOfShape.hxx>
|
||||
# include <Poly_PolygonOnTriangulation.hxx>
|
||||
# include <TColStd_Array1OfInteger.hxx>
|
||||
# include <TopTools_ListOfShape.hxx>
|
||||
# include <Inventor/SoPickedPoint.h>
|
||||
# include <TopTools_ListOfShape.hxx>
|
||||
# include <Inventor/SoPickedPoint.h>
|
||||
# include <Inventor/events/SoMouseButtonEvent.h>
|
||||
# include <Inventor/nodes/SoCoordinate3.h>
|
||||
# include <Inventor/nodes/SoDrawStyle.h>
|
||||
@@ -98,7 +98,19 @@ PROPERTY_SOURCE(PartGui::ViewProviderPartReference, Gui::ViewProviderGeometryObj
|
||||
//**************************************************************************
|
||||
// Construction/Destruction
|
||||
|
||||
ViewProviderPartReference::ViewProviderPartReference() : pcControlPoints(0)
|
||||
ViewProviderPartReference::ViewProviderPartReference()
|
||||
: EdgeRoot(0)
|
||||
, FaceRoot(0)
|
||||
, VertexRoot(0)
|
||||
, pcLineMaterial(0)
|
||||
, pcPointMaterial(0)
|
||||
, pcLineStyle(0)
|
||||
, pcPointStyle(0)
|
||||
, pcControlPoints(0)
|
||||
, pShapeHints(0)
|
||||
, meshDeviation(0.01f)
|
||||
, noPerVertexNormals(true)
|
||||
, qualityNormals(false)
|
||||
{
|
||||
App::Material mat;
|
||||
mat.ambientColor.set(0.2f,0.2f,0.2f);
|
||||
@@ -116,8 +128,8 @@ ViewProviderPartReference::ViewProviderPartReference() : pcControlPoints(0)
|
||||
//PointSize.setConstraints(&floatRange);
|
||||
//ADD_PROPERTY(PointSize,(2.0f));
|
||||
//ADD_PROPERTY(ControlPoints,(false));
|
||||
//ADD_PROPERTY(Lighting,(1));
|
||||
//Lighting.setEnums(LightingEnums);
|
||||
//ADD_PROPERTY(Lighting,(1));
|
||||
//Lighting.setEnums(LightingEnums);
|
||||
|
||||
//EdgeRoot = new SoSeparator();
|
||||
//EdgeRoot->ref();
|
||||
@@ -142,11 +154,11 @@ ViewProviderPartReference::ViewProviderPartReference() : pcControlPoints(0)
|
||||
//pcPointStyle->ref();
|
||||
//pcPointStyle->style = SoDrawStyle::POINTS;
|
||||
//pcPointStyle->pointSize = PointSize.getValue();
|
||||
|
||||
//pShapeHints = new SoShapeHints;
|
||||
//pShapeHints->shapeType = SoShapeHints::UNKNOWN_SHAPE_TYPE;
|
||||
//pShapeHints->ref();
|
||||
//Lighting.touch();
|
||||
|
||||
//pShapeHints = new SoShapeHints;
|
||||
//pShapeHints->shapeType = SoShapeHints::UNKNOWN_SHAPE_TYPE;
|
||||
//pShapeHints->ref();
|
||||
//Lighting.touch();
|
||||
|
||||
sPixmap = "Tree_Part";
|
||||
//loadParameter();
|
||||
@@ -161,7 +173,7 @@ ViewProviderPartReference::~ViewProviderPartReference()
|
||||
//pcPointMaterial->unref();
|
||||
//pcLineStyle->unref();
|
||||
//pcPointStyle->unref();
|
||||
//pShapeHints->unref();
|
||||
//pShapeHints->unref();
|
||||
}
|
||||
|
||||
void ViewProviderPartReference::onChanged(const App::Property* prop)
|
||||
@@ -211,12 +223,12 @@ void ViewProviderPartReference::onChanged(const App::Property* prop)
|
||||
// App::Property* shape = obj->getPropertyByName("Shape");
|
||||
// showControlPoints(ControlPoints.getValue(), shape);
|
||||
//}
|
||||
//else if (prop == &Lighting) {
|
||||
// if (Lighting.getValue() == 0)
|
||||
// pShapeHints->vertexOrdering = SoShapeHints::UNKNOWN_ORDERING;
|
||||
// else
|
||||
// pShapeHints->vertexOrdering = SoShapeHints::COUNTERCLOCKWISE;
|
||||
//}
|
||||
//else if (prop == &Lighting) {
|
||||
// if (Lighting.getValue() == 0)
|
||||
// pShapeHints->vertexOrdering = SoShapeHints::UNKNOWN_ORDERING;
|
||||
// else
|
||||
// pShapeHints->vertexOrdering = SoShapeHints::COUNTERCLOCKWISE;
|
||||
//}
|
||||
//else {
|
||||
// ViewProviderGeometryObject::onChanged(prop);
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user