fix -Wextra in Fem
This commit is contained in:
parent
1d84eac025
commit
480191c8ee
|
@ -152,7 +152,7 @@ void Constraint::onDocumentRestored()
|
|||
App::DocumentObject::onDocumentRestored();
|
||||
}
|
||||
|
||||
const bool Constraint::getPoints(std::vector<Base::Vector3d> &points, std::vector<Base::Vector3d> &normals, int * scale) const
|
||||
bool Constraint::getPoints(std::vector<Base::Vector3d> &points, std::vector<Base::Vector3d> &normals, int * scale) const
|
||||
{
|
||||
std::vector<App::DocumentObject*> Objects = References.getValues();
|
||||
std::vector<std::string> SubElements = References.getSubValues();
|
||||
|
@ -292,7 +292,7 @@ const bool Constraint::getPoints(std::vector<Base::Vector3d> &points, std::vecto
|
|||
return true;
|
||||
}
|
||||
|
||||
const bool Constraint::getCylinder(double &radius, double &height, Base::Vector3d& base, Base::Vector3d& axis) const
|
||||
bool Constraint::getCylinder(double &radius, double &height, Base::Vector3d& base, Base::Vector3d& axis) const
|
||||
{
|
||||
std::vector<App::DocumentObject*> Objects = References.getValues();
|
||||
std::vector<std::string> SubElements = References.getSubValues();
|
||||
|
|
|
@ -67,8 +67,8 @@ protected:
|
|||
|
||||
protected:
|
||||
/// Calculate the points where symbols should be drawn
|
||||
const bool getPoints(std::vector<Base::Vector3d>& points, std::vector<Base::Vector3d>& normals, int * scale) const; //OvG: added scale parameter
|
||||
const bool getCylinder(double& radius, double& height, Base::Vector3d& base, Base::Vector3d& axis) const;
|
||||
bool getPoints(std::vector<Base::Vector3d>& points, std::vector<Base::Vector3d>& normals, int * scale) const; //OvG: added scale parameter
|
||||
bool getCylinder(double& radius, double& height, Base::Vector3d& base, Base::Vector3d& axis) const;
|
||||
Base::Vector3d getBasePoint(const Base::Vector3d& base, const Base::Vector3d& axis,
|
||||
const App::PropertyLinkSub &location, const double& dist);
|
||||
const Base::Vector3d getDirection(const App::PropertyLinkSub &direction);
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#ifndef _PreComp_
|
||||
# include <cstdlib>
|
||||
# include <memory>
|
||||
# include <strstream>
|
||||
# include <Bnd_Box.hxx>
|
||||
# include <BRep_Tool.hxx>
|
||||
# include <BRepBndLib.hxx>
|
||||
|
@ -380,7 +379,7 @@ void FemMesh::compute()
|
|||
getGenerator()->Compute(*myMesh, myMesh->GetShapeToMesh());
|
||||
}
|
||||
|
||||
std::set<long> FemMesh::getSurfaceNodes(long ElemId, short FaceId, float Angle) const
|
||||
std::set<long> FemMesh::getSurfaceNodes(long /*ElemId*/, short /*FaceId*/, float /*Angle*/) const
|
||||
{
|
||||
std::set<long> result;
|
||||
//const SMESHDS_Mesh* data = myMesh->GetMeshDS();
|
||||
|
@ -1353,12 +1352,12 @@ std::vector<const char*> FemMesh::getElementTypes(void) const
|
|||
return temp;
|
||||
}
|
||||
|
||||
unsigned long FemMesh::countSubElements(const char* Type) const
|
||||
unsigned long FemMesh::countSubElements(const char* /*Type*/) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Data::Segment* FemMesh::getSubElement(const char* Type, unsigned long n) const
|
||||
Data::Segment* FemMesh::getSubElement(const char* /*Type*/, unsigned long /*n*/) const
|
||||
{
|
||||
// FIXME implement subelement interface
|
||||
//std::stringstream str;
|
||||
|
|
|
@ -27,8 +27,6 @@
|
|||
# include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <strstream>
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Writer.h>
|
||||
#include <Base/Reader.h>
|
||||
|
|
|
@ -135,6 +135,8 @@ Py::Object SMESH_HypothesisPy<T>::setLibName(const Py::Tuple& args)
|
|||
template<class T>
|
||||
Py::Object SMESH_HypothesisPy<T>::getLibName(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::String(hypothesis<SMESH_Hypothesis>()->GetLibName());
|
||||
}
|
||||
|
||||
|
@ -149,12 +151,16 @@ Py::Object SMESH_HypothesisPy<T>::setParameters(const Py::Tuple& args)
|
|||
template<class T>
|
||||
Py::Object SMESH_HypothesisPy<T>::getParameters(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::String(hypothesis<SMESH_Hypothesis>()->GetParameters());
|
||||
}
|
||||
|
||||
template<class T>
|
||||
Py::Object SMESH_HypothesisPy<T>::setLastParameters(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
std::string paramName = (std::string)Py::String(args[0]);
|
||||
hypothesis<SMESH_Hypothesis>()->SetLastParameters(paramName.c_str());
|
||||
return Py::None();
|
||||
|
@ -163,12 +169,16 @@ Py::Object SMESH_HypothesisPy<T>::setLastParameters(const Py::Tuple& args)
|
|||
template<class T>
|
||||
Py::Object SMESH_HypothesisPy<T>::getLastParameters(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::String(hypothesis<SMESH_Hypothesis>()->GetLastParameters());
|
||||
}
|
||||
|
||||
template<class T>
|
||||
Py::Object SMESH_HypothesisPy<T>::clearParameters(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
hypothesis<SMESH_Hypothesis>()->ClearParameters();
|
||||
return Py::None();
|
||||
}
|
||||
|
@ -189,11 +199,13 @@ Py::Object SMESH_HypothesisPy<T>::setParametersByMesh(const Py::Tuple& args)
|
|||
template<class T>
|
||||
Py::Object SMESH_HypothesisPy<T>::isAuxiliary(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Boolean(hypothesis<SMESH_Hypothesis>()->IsAuxiliary());
|
||||
}
|
||||
|
||||
template<class T>
|
||||
PyObject *SMESH_HypothesisPy<T>::PyMake(struct _typeobject *type, PyObject * args, PyObject * kwds)
|
||||
PyObject *SMESH_HypothesisPy<T>::PyMake(struct _typeobject * /*type*/, PyObject * args, PyObject * /*kwds*/)
|
||||
{
|
||||
int hypId;
|
||||
PyObject* obj;
|
||||
|
@ -253,7 +265,7 @@ void StdMeshers_AutomaticLengthPy::init_type(PyObject* module)
|
|||
SMESH_HypothesisPyBase::init_type(module);
|
||||
}
|
||||
|
||||
StdMeshers_AutomaticLengthPy::StdMeshers_AutomaticLengthPy(int hypId, int studyId, SMESH_Gen* gen)
|
||||
StdMeshers_AutomaticLengthPy::StdMeshers_AutomaticLengthPy(int /*hypId*/, int /*studyId*/, SMESH_Gen* /*gen*/)
|
||||
: SMESH_HypothesisPyBase(0)
|
||||
{
|
||||
}
|
||||
|
@ -271,6 +283,8 @@ Py::Object StdMeshers_AutomaticLengthPy::setFineness(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_AutomaticLengthPy::getFineness(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Float(hypothesis<StdMeshers_AutomaticLength>()->GetFineness());
|
||||
}
|
||||
|
||||
|
@ -356,16 +370,22 @@ Py::Object StdMeshers_MaxLengthPy::setLength(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_MaxLengthPy::getLength(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Float(hypothesis<StdMeshers_MaxLength>()->GetLength());
|
||||
}
|
||||
|
||||
Py::Object StdMeshers_MaxLengthPy::havePreestimatedLength(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Boolean(hypothesis<StdMeshers_MaxLength>()->HavePreestimatedLength());
|
||||
}
|
||||
|
||||
Py::Object StdMeshers_MaxLengthPy::getPreestimatedLength(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Float(hypothesis<StdMeshers_MaxLength>()->GetPreestimatedLength());
|
||||
}
|
||||
|
||||
|
@ -383,6 +403,8 @@ Py::Object StdMeshers_MaxLengthPy::setUsePreestimatedLength(const Py::Tuple& arg
|
|||
|
||||
Py::Object StdMeshers_MaxLengthPy::getUsePreestimatedLength(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Boolean(hypothesis<StdMeshers_MaxLength>()->GetUsePreestimatedLength());
|
||||
}
|
||||
|
||||
|
@ -417,6 +439,8 @@ Py::Object StdMeshers_LocalLengthPy::setLength(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_LocalLengthPy::getLength(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Float(hypothesis<StdMeshers_LocalLength>()->GetLength());
|
||||
}
|
||||
|
||||
|
@ -428,6 +452,8 @@ Py::Object StdMeshers_LocalLengthPy::setPrecision(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_LocalLengthPy::getPrecision(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Float(hypothesis<StdMeshers_LocalLength>()->GetPrecision());
|
||||
}
|
||||
|
||||
|
@ -460,6 +486,8 @@ Py::Object StdMeshers_MaxElementAreaPy::setMaxArea(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_MaxElementAreaPy::getMaxArea(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Float(hypothesis<StdMeshers_MaxElementArea>()->GetMaxArea());
|
||||
}
|
||||
|
||||
|
@ -693,6 +721,8 @@ Py::Object StdMeshers_SegmentLengthAroundVertexPy::setLength(const Py::Tuple& ar
|
|||
|
||||
Py::Object StdMeshers_SegmentLengthAroundVertexPy::getLength(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Float(hypothesis<StdMeshers_SegmentLengthAroundVertex>()->GetLength());
|
||||
}
|
||||
|
||||
|
@ -904,6 +934,8 @@ Py::Object StdMeshers_NumberOfSegmentsPy::setNumSegm(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_NumberOfSegmentsPy::getNumSegm(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Int(hypothesis<StdMeshers_NumberOfSegments>()->GetNumberOfSegments());
|
||||
}
|
||||
|
||||
|
@ -935,6 +967,8 @@ Py::Object StdMeshers_NumberOfLayersPy::setNumLayers(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_NumberOfLayersPy::getNumLayers(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Int(hypothesis<StdMeshers_NumberOfLayers>()->GetNumberOfLayers());
|
||||
}
|
||||
|
||||
|
@ -984,6 +1018,8 @@ Py::Object StdMeshers_MaxElementVolumePy::setMaxVolume(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_MaxElementVolumePy::getMaxVolume(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Float(hypothesis<StdMeshers_MaxElementVolume>()->GetMaxVolume());
|
||||
}
|
||||
|
||||
|
@ -1015,6 +1051,8 @@ Py::Object StdMeshers_LengthFromEdgesPy::setMode(const Py::Tuple& args)
|
|||
|
||||
Py::Object StdMeshers_LengthFromEdgesPy::getMode(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::Int(hypothesis<StdMeshers_LengthFromEdges>()->GetMode());
|
||||
}
|
||||
|
||||
|
@ -1044,11 +1082,15 @@ StdMeshers_LayerDistributionPy::~StdMeshers_LayerDistributionPy()
|
|||
|
||||
Py::Object StdMeshers_LayerDistributionPy::setLayerDistribution(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
return Py::None();
|
||||
}
|
||||
|
||||
Py::Object StdMeshers_LayerDistributionPy::getLayerDistribution(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
//return hypothesis<StdMeshers_LayerDistribution>()->GetLayerDistribution();
|
||||
return Py::None();
|
||||
}
|
||||
|
|
|
@ -44,8 +44,6 @@
|
|||
#include <vtkXMLRectilinearGridReader.h>
|
||||
#include <vtkXMLImageDataReader.h>
|
||||
|
||||
#include <strstream>
|
||||
|
||||
#ifndef _PreComp_
|
||||
|
||||
#endif
|
||||
|
|
|
@ -103,6 +103,8 @@ private:
|
|||
}
|
||||
Py::Object getActiveAnalysis(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
if (FemGui::ActiveAnalysisObserver::instance()->hasActiveObject()) {
|
||||
return Py::asObject(FemGui::ActiveAnalysisObserver::instance()->getActiveObject()->getPyObject());
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
# include <Standard_math.hxx>
|
||||
# include <QApplication>
|
||||
# include <QMessageBox>
|
||||
#include <QAction>
|
||||
# include <QAction>
|
||||
#endif
|
||||
|
||||
#include <Inventor/nodes/SoEventCallback.h>
|
||||
|
@ -58,7 +58,6 @@
|
|||
#include <Mod/Part/App/PartFeature.h>
|
||||
#include <Mod/Fem/App/FemMeshObject.h>
|
||||
#include <Mod/Fem/App/FemSetNodesObject.h>
|
||||
#include <strstream>
|
||||
#include <Mod/Fem/App/FemConstraint.h>
|
||||
#include <Mod/Fem/App/FemAnalysis.h>
|
||||
#include "ActiveAnalysisObserver.h"
|
||||
|
@ -115,7 +114,7 @@ CmdFemCreateAnalysis::CmdFemCreateAnalysis()
|
|||
sPixmap = "fem-analysis";
|
||||
}
|
||||
|
||||
void CmdFemCreateAnalysis::activated(int iMsg)
|
||||
void CmdFemCreateAnalysis::activated(int)
|
||||
{
|
||||
#ifndef FCWithNetgen
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
|
@ -177,7 +176,7 @@ CmdFemAddPart::CmdFemAddPart()
|
|||
sPixmap = "fem-add-fem-mesh";
|
||||
}
|
||||
|
||||
void CmdFemAddPart::activated(int iMsg)
|
||||
void CmdFemAddPart::activated(int)
|
||||
{
|
||||
#ifndef FCWithNetgen
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
|
@ -240,7 +239,7 @@ CmdFemCreateSolver::CmdFemCreateSolver()
|
|||
sPixmap = "fem-solver";
|
||||
}
|
||||
|
||||
void CmdFemCreateSolver::activated(int iMsg)
|
||||
void CmdFemCreateSolver::activated(int)
|
||||
{
|
||||
#ifndef FCWithNetgen
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
|
@ -285,7 +284,7 @@ CmdFemConstraintBearing::CmdFemConstraintBearing()
|
|||
sPixmap = "fem-constraint-bearing";
|
||||
}
|
||||
|
||||
void CmdFemConstraintBearing::activated(int iMsg)
|
||||
void CmdFemConstraintBearing::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -326,7 +325,7 @@ CmdFemConstraintFixed::CmdFemConstraintFixed()
|
|||
sPixmap = "fem-constraint-fixed";
|
||||
}
|
||||
|
||||
void CmdFemConstraintFixed::activated(int iMsg)
|
||||
void CmdFemConstraintFixed::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -368,7 +367,7 @@ CmdFemConstraintPlaneRotation::CmdFemConstraintPlaneRotation()
|
|||
sPixmap = "fem-constraint-planerotation";
|
||||
}
|
||||
|
||||
void CmdFemConstraintPlaneRotation::activated(int iMsg)
|
||||
void CmdFemConstraintPlaneRotation::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -409,7 +408,7 @@ CmdFemConstraintContact::CmdFemConstraintContact()
|
|||
sPixmap = "fem-constraint-contact";
|
||||
}
|
||||
|
||||
void CmdFemConstraintContact::activated(int iMsg)
|
||||
void CmdFemConstraintContact::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -453,7 +452,7 @@ CmdFemConstraintHeatflux::CmdFemConstraintHeatflux()
|
|||
sPixmap = "fem-constraint-heatflux";
|
||||
}
|
||||
|
||||
void CmdFemConstraintHeatflux::activated(int iMsg)
|
||||
void CmdFemConstraintHeatflux::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -497,7 +496,7 @@ CmdFemConstraintForce::CmdFemConstraintForce()
|
|||
sPixmap = "fem-constraint-force";
|
||||
}
|
||||
|
||||
void CmdFemConstraintForce::activated(int iMsg)
|
||||
void CmdFemConstraintForce::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -543,7 +542,7 @@ CmdFemConstraintFluidBoundary::CmdFemConstraintFluidBoundary()
|
|||
sPixmap = "fem-constraint-fluid-boundary";
|
||||
}
|
||||
|
||||
void CmdFemConstraintFluidBoundary::activated(int iMsg)
|
||||
void CmdFemConstraintFluidBoundary::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -587,7 +586,7 @@ CmdFemConstraintPressure::CmdFemConstraintPressure()
|
|||
sPixmap = "fem-constraint-pressure";
|
||||
}
|
||||
|
||||
void CmdFemConstraintPressure::activated(int iMsg)
|
||||
void CmdFemConstraintPressure::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -632,7 +631,7 @@ CmdFemConstraintGear::CmdFemConstraintGear()
|
|||
sPixmap = "fem-constraint-gear";
|
||||
}
|
||||
|
||||
void CmdFemConstraintGear::activated(int iMsg)
|
||||
void CmdFemConstraintGear::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -673,7 +672,7 @@ CmdFemConstraintPulley::CmdFemConstraintPulley()
|
|||
sPixmap = "fem-constraint-pulley";
|
||||
}
|
||||
|
||||
void CmdFemConstraintPulley::activated(int iMsg)
|
||||
void CmdFemConstraintPulley::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -718,7 +717,7 @@ CmdFemConstraintDisplacement::CmdFemConstraintDisplacement()
|
|||
sPixmap = "fem-constraint-displacement";
|
||||
}
|
||||
|
||||
void CmdFemConstraintDisplacement::activated(int iMsg)
|
||||
void CmdFemConstraintDisplacement::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -761,7 +760,7 @@ CmdFemConstraintTemperature::CmdFemConstraintTemperature()
|
|||
sPixmap = "fem-constraint-temperature";
|
||||
}
|
||||
|
||||
void CmdFemConstraintTemperature::activated(int iMsg)
|
||||
void CmdFemConstraintTemperature::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -804,7 +803,7 @@ CmdFemConstraintInitialTemperature::CmdFemConstraintInitialTemperature()
|
|||
sPixmap = "fem-constraint-InitialTemperature";
|
||||
}
|
||||
|
||||
void CmdFemConstraintInitialTemperature::activated(int iMsg)
|
||||
void CmdFemConstraintInitialTemperature::activated(int)
|
||||
{
|
||||
Fem::FemAnalysis *Analysis;
|
||||
|
||||
|
@ -935,7 +934,7 @@ CmdFemDefineNodesSet::CmdFemDefineNodesSet()
|
|||
sPixmap = "fem-fem-mesh-create-node-by-poly";
|
||||
}
|
||||
|
||||
void CmdFemDefineNodesSet::activated(int iMsg)
|
||||
void CmdFemDefineNodesSet::activated(int)
|
||||
{
|
||||
std::vector<App::DocumentObject*> docObj = Gui::Selection().getObjectsOfType(Fem::FemMeshObject::getClassTypeId());
|
||||
|
||||
|
@ -992,7 +991,7 @@ CmdFemCreateNodesSet::CmdFemCreateNodesSet()
|
|||
sPixmap = "fem-fem-mesh-create-node-by-poly";
|
||||
}
|
||||
|
||||
void CmdFemCreateNodesSet::activated(int iMsg)
|
||||
void CmdFemCreateNodesSet::activated(int)
|
||||
{
|
||||
Gui::SelectionFilter ObjectFilter("SELECT Fem::FemSetNodesObject COUNT 1");
|
||||
Gui::SelectionFilter FemMeshFilter("SELECT Fem::FemMeshObject COUNT 1");
|
||||
|
@ -1070,7 +1069,7 @@ CmdFemPostCreateClipFilter::CmdFemPostCreateClipFilter()
|
|||
sPixmap = "fem-clip";
|
||||
}
|
||||
|
||||
void CmdFemPostCreateClipFilter::activated(int iMsg)
|
||||
void CmdFemPostCreateClipFilter::activated(int)
|
||||
{
|
||||
setupFilter(this, "Clip");
|
||||
}
|
||||
|
@ -1094,7 +1093,7 @@ CmdFemPostCreateScalarClipFilter::CmdFemPostCreateScalarClipFilter()
|
|||
sPixmap = "fem-clip-scalar";
|
||||
}
|
||||
|
||||
void CmdFemPostCreateScalarClipFilter::activated(int iMsg)
|
||||
void CmdFemPostCreateScalarClipFilter::activated(int)
|
||||
{
|
||||
setupFilter(this, "ScalarClip");
|
||||
}
|
||||
|
@ -1120,7 +1119,7 @@ CmdFemPostWarpVectorFilter::CmdFemPostWarpVectorFilter()
|
|||
sPixmap = "fem-warp";
|
||||
}
|
||||
|
||||
void CmdFemPostWarpVectorFilter::activated(int iMsg)
|
||||
void CmdFemPostWarpVectorFilter::activated(int)
|
||||
{
|
||||
setupFilter(this, "WarpVector");
|
||||
}
|
||||
|
@ -1144,7 +1143,7 @@ CmdFemPostCutFilter::CmdFemPostCutFilter()
|
|||
sPixmap = "fem-cut";
|
||||
}
|
||||
|
||||
void CmdFemPostCutFilter::activated(int iMsg)
|
||||
void CmdFemPostCutFilter::activated(int)
|
||||
{
|
||||
setupFilter(this, "Cut");
|
||||
}
|
||||
|
@ -1311,7 +1310,7 @@ CmdFemPostApllyChanges::CmdFemPostApllyChanges()
|
|||
eType = eType|ForEdit;
|
||||
}
|
||||
|
||||
void CmdFemPostApllyChanges::activated(int iMsg)
|
||||
void CmdFemPostApllyChanges::activated(int)
|
||||
{
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Fem");
|
||||
|
||||
|
@ -1354,7 +1353,7 @@ CmdFemPostPipelineFromResult::CmdFemPostPipelineFromResult()
|
|||
sPixmap = "fem-data";
|
||||
}
|
||||
|
||||
void CmdFemPostPipelineFromResult::activated(int iMsg)
|
||||
void CmdFemPostPipelineFromResult::activated(int)
|
||||
{
|
||||
Gui::SelectionFilter ResultFilter("SELECT Fem::FemResultObject COUNT 1");
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
using namespace FemGui;
|
||||
using namespace Gui;
|
||||
|
||||
bool FemSelectionGate::allow(App::Document* pDoc, App::DocumentObject* pObj, const char* sSubName)
|
||||
bool FemSelectionGate::allow(App::Document* /*pDoc*/, App::DocumentObject* /*pObj*/, const char* sSubName)
|
||||
{
|
||||
if (!sSubName || sSubName[0] == '\0')
|
||||
return false;
|
||||
|
|
|
@ -107,19 +107,26 @@ QVariant PropertyFemMeshItem::toolTip(const App::Property* prop) const
|
|||
|
||||
void PropertyFemMeshItem::setValue(const QVariant& value)
|
||||
{
|
||||
Q_UNUSED(value);
|
||||
}
|
||||
|
||||
QWidget* PropertyFemMeshItem::createEditor(QWidget* parent, const QObject* receiver, const char* method) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
Q_UNUSED(receiver);
|
||||
Q_UNUSED(method);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void PropertyFemMeshItem::setEditorData(QWidget *editor, const QVariant& data) const
|
||||
{
|
||||
Q_UNUSED(editor);
|
||||
Q_UNUSED(data);
|
||||
}
|
||||
|
||||
QVariant PropertyFemMeshItem::editorData(QWidget *editor) const
|
||||
{
|
||||
Q_UNUSED(editor);
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ TaskAnalysisInfo::TaskAnalysisInfo(Fem::FemAnalysis *pcObject,QWidget *parent)
|
|||
}
|
||||
|
||||
|
||||
void TaskAnalysisInfo::SwitchMethod(int Value)
|
||||
void TaskAnalysisInfo::SwitchMethod(int /*Value*/)
|
||||
{
|
||||
/* if(Value == 1){
|
||||
ui->groupBox_AngleSearch->setEnabled(true);
|
||||
|
|
|
@ -69,7 +69,7 @@ TaskDriver::TaskDriver(Fem::FemAnalysis *pcObject,QWidget *parent)
|
|||
|
||||
|
||||
|
||||
void TaskDriver::SwitchMethod(int Value)
|
||||
void TaskDriver::SwitchMethod(int /*Value*/)
|
||||
{
|
||||
//if(Value == 1){
|
||||
// ui->groupBox_AngleSearch->setEnabled(true);
|
||||
|
|
|
@ -428,7 +428,8 @@ double TaskFemConstraintContact::get_Friction() const{return ui->spFriction->val
|
|||
|
||||
|
||||
|
||||
void TaskFemConstraintContact::changeEvent(QEvent *e){
|
||||
void TaskFemConstraintContact::changeEvent(QEvent *)
|
||||
{
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
|
|
|
@ -574,7 +574,7 @@ bool TaskFemConstraintDisplacement::get_rotyfree() const{return ui->rotyfree->is
|
|||
bool TaskFemConstraintDisplacement::get_rotzfix() const{return ui->rotzfix->isChecked();}
|
||||
bool TaskFemConstraintDisplacement::get_rotzfree() const{return ui->rotzfree->isChecked();}
|
||||
|
||||
void TaskFemConstraintDisplacement::changeEvent(QEvent *e)
|
||||
void TaskFemConstraintDisplacement::changeEvent(QEvent *)
|
||||
{
|
||||
// TaskBox::changeEvent(e);
|
||||
// if (e->type() == QEvent::LanguageChange) {
|
||||
|
|
|
@ -260,7 +260,8 @@ const std::string TaskFemConstraintFixed::getReferences() const
|
|||
}
|
||||
|
||||
|
||||
void TaskFemConstraintFixed::changeEvent(QEvent *e){
|
||||
void TaskFemConstraintFixed::changeEvent(QEvent *)
|
||||
{
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
|
|
|
@ -85,13 +85,15 @@ TaskFemConstraintInitialTemperature::~TaskFemConstraintInitialTemperature()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
double TaskFemConstraintInitialTemperature::get_temperature() const{
|
||||
double TaskFemConstraintInitialTemperature::get_temperature() const
|
||||
{
|
||||
Base::Quantity temperature = ui->if_temperature->getQuantity();
|
||||
double temperature_in_kelvin = temperature.getValueAs(Base::Quantity::Kelvin);
|
||||
return temperature_in_kelvin;
|
||||
}
|
||||
|
||||
void TaskFemConstraintInitialTemperature::changeEvent(QEvent *e){
|
||||
void TaskFemConstraintInitialTemperature::changeEvent(QEvent *)
|
||||
{
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
|
|
|
@ -281,7 +281,8 @@ const std::string TaskFemConstraintPlaneRotation::getReferences() const
|
|||
}
|
||||
|
||||
|
||||
void TaskFemConstraintPlaneRotation::changeEvent(QEvent *e){
|
||||
void TaskFemConstraintPlaneRotation::changeEvent(QEvent *)
|
||||
{
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
|
|
|
@ -271,7 +271,8 @@ bool TaskFemConstraintPressure::get_Reverse() const
|
|||
}
|
||||
/* */
|
||||
|
||||
void TaskFemConstraintPressure::changeEvent(QEvent *e){
|
||||
void TaskFemConstraintPressure::changeEvent(QEvent *)
|
||||
{
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
|
|
|
@ -255,7 +255,7 @@ double TaskFemConstraintTemperature::get_temperature() const{
|
|||
return temperature_in_kelvin;
|
||||
}
|
||||
|
||||
void TaskFemConstraintTemperature::changeEvent(QEvent *e)
|
||||
void TaskFemConstraintTemperature::changeEvent(QEvent *)
|
||||
{
|
||||
// TaskBox::changeEvent(e);
|
||||
// if (e->type() == QEvent::LanguageChange) {
|
||||
|
|
|
@ -78,7 +78,7 @@ std::vector<App::DocumentObject*> ViewProviderFemAnalysis::claimChildren(void)co
|
|||
return temp;
|
||||
}
|
||||
|
||||
void ViewProviderFemAnalysis::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
|
||||
void ViewProviderFemAnalysis::setupContextMenu(QMenu* menu, QObject* , const char* )
|
||||
{
|
||||
Gui::ActionFunction* func = new Gui::ActionFunction(menu);
|
||||
QAction* act = menu->addAction(tr("Activate analysis"));
|
||||
|
|
|
@ -465,7 +465,7 @@ SoDetail* ViewProviderFemMesh::getDetail(const char* subelement) const
|
|||
return detail;
|
||||
}
|
||||
|
||||
std::vector<Base::Vector3d> ViewProviderFemMesh::getSelectionShape(const char* Element) const
|
||||
std::vector<Base::Vector3d> ViewProviderFemMesh::getSelectionShape(const char* /*Element*/) const
|
||||
{
|
||||
return std::vector<Base::Vector3d>();
|
||||
}
|
||||
|
|
|
@ -41,14 +41,14 @@ bool ViewProviderSetElements::doubleClicked(void)
|
|||
}
|
||||
|
||||
|
||||
bool ViewProviderSetElements::setEdit(int ModNum)
|
||||
bool ViewProviderSetElements::setEdit(int)
|
||||
{
|
||||
//Gui::TaskView::TaskDialog* dlg = new TaskDlgCreateNodeSet(dynamic_cast<Fem::FemSetNodesObject *>(getObject()));
|
||||
//Gui::Control().showDialog(dlg);
|
||||
return true;
|
||||
}
|
||||
|
||||
void ViewProviderSetElements::unsetEdit(int ModNum)
|
||||
void ViewProviderSetElements::unsetEdit(int)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -41,14 +41,14 @@ bool ViewProviderSetFaces::doubleClicked(void)
|
|||
}
|
||||
|
||||
|
||||
bool ViewProviderSetFaces::setEdit(int ModNum)
|
||||
bool ViewProviderSetFaces::setEdit(int)
|
||||
{
|
||||
//Gui::TaskView::TaskDialog* dlg = new TaskDlgCreateNodeSet(dynamic_cast<Fem::FemSetNodesObject *>(getObject()));
|
||||
//Gui::Control().showDialog(dlg);
|
||||
return true;
|
||||
}
|
||||
|
||||
void ViewProviderSetFaces::unsetEdit(int ModNum)
|
||||
void ViewProviderSetFaces::unsetEdit(int)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -41,14 +41,14 @@ bool ViewProviderSetGeometry::doubleClicked(void)
|
|||
}
|
||||
|
||||
|
||||
bool ViewProviderSetGeometry::setEdit(int ModNum)
|
||||
bool ViewProviderSetGeometry::setEdit(int)
|
||||
{
|
||||
//Gui::TaskView::TaskDialog* dlg = new TaskDlgCreateNodeSet(dynamic_cast<Fem::FemSetNodesObject *>(getObject()));
|
||||
//Gui::Control().showDialog(dlg);
|
||||
return true;
|
||||
}
|
||||
|
||||
void ViewProviderSetGeometry::unsetEdit(int ModNum)
|
||||
void ViewProviderSetGeometry::unsetEdit(int)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -43,14 +43,14 @@ bool ViewProviderSetNodes::doubleClicked(void)
|
|||
}
|
||||
|
||||
|
||||
bool ViewProviderSetNodes::setEdit(int ModNum)
|
||||
bool ViewProviderSetNodes::setEdit(int)
|
||||
{
|
||||
Gui::TaskView::TaskDialog* dlg = new TaskDlgCreateNodeSet(static_cast<Fem::FemSetNodesObject *>(getObject()));
|
||||
Gui::Control().showDialog(dlg);
|
||||
return true;
|
||||
}
|
||||
|
||||
void ViewProviderSetNodes::unsetEdit(int ModNum)
|
||||
void ViewProviderSetNodes::unsetEdit(int)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user