Part/PD: modernize C++: redundant void arg
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
using namespace Part;
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string BSplineSurfacePy::representation(void) const
|
||||
std::string BSplineSurfacePy::representation() const
|
||||
{
|
||||
return "<BSplineSurface object>";
|
||||
}
|
||||
@@ -1553,7 +1553,7 @@ PyObject* BSplineSurfacePy::buildFromNSections(PyObject *args)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getUDegree(void) const
|
||||
Py::Long BSplineSurfacePy::getUDegree() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1561,7 +1561,7 @@ Py::Long BSplineSurfacePy::getUDegree(void) const
|
||||
return Py::Long(deg);
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getVDegree(void) const
|
||||
Py::Long BSplineSurfacePy::getVDegree() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1569,42 +1569,42 @@ Py::Long BSplineSurfacePy::getVDegree(void) const
|
||||
return Py::Long(deg);
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getMaxDegree(void) const
|
||||
Py::Long BSplineSurfacePy::getMaxDegree() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->MaxDegree());
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getNbUPoles(void) const
|
||||
Py::Long BSplineSurfacePy::getNbUPoles() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->NbUPoles());
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getNbVPoles(void) const
|
||||
Py::Long BSplineSurfacePy::getNbVPoles() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->NbVPoles());
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getNbUKnots(void) const
|
||||
Py::Long BSplineSurfacePy::getNbUKnots() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->NbUKnots());
|
||||
}
|
||||
|
||||
Py::Long BSplineSurfacePy::getNbVKnots(void) const
|
||||
Py::Long BSplineSurfacePy::getNbVKnots() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
return Py::Long(surf->NbVKnots());
|
||||
}
|
||||
|
||||
Py::Object BSplineSurfacePy::getFirstUKnotIndex(void) const
|
||||
Py::Object BSplineSurfacePy::getFirstUKnotIndex() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1612,7 +1612,7 @@ Py::Object BSplineSurfacePy::getFirstUKnotIndex(void) const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::Object BSplineSurfacePy::getLastUKnotIndex(void) const
|
||||
Py::Object BSplineSurfacePy::getLastUKnotIndex() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1620,7 +1620,7 @@ Py::Object BSplineSurfacePy::getLastUKnotIndex(void) const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::Object BSplineSurfacePy::getFirstVKnotIndex(void) const
|
||||
Py::Object BSplineSurfacePy::getFirstVKnotIndex() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1628,7 +1628,7 @@ Py::Object BSplineSurfacePy::getFirstVKnotIndex(void) const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::Object BSplineSurfacePy::getLastVKnotIndex(void) const
|
||||
Py::Object BSplineSurfacePy::getLastVKnotIndex() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1636,7 +1636,7 @@ Py::Object BSplineSurfacePy::getLastVKnotIndex(void) const
|
||||
return Py::Long(index);
|
||||
}
|
||||
|
||||
Py::List BSplineSurfacePy::getUKnotSequence(void) const
|
||||
Py::List BSplineSurfacePy::getUKnotSequence() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
@@ -1658,7 +1658,7 @@ Py::List BSplineSurfacePy::getUKnotSequence(void) const
|
||||
return list;
|
||||
}
|
||||
|
||||
Py::List BSplineSurfacePy::getVKnotSequence(void) const
|
||||
Py::List BSplineSurfacePy::getVKnotSequence() const
|
||||
{
|
||||
Handle(Geom_BSplineSurface) surf = Handle(Geom_BSplineSurface)::DownCast
|
||||
(getGeometryPtr()->handle());
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
//short mustExecute();
|
||||
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const override = 0;
|
||||
const char* getViewProviderName() const override = 0;
|
||||
|
||||
/// Return a shape including Placement representing the datum feature
|
||||
virtual TopoDS_Shape getShape() const;
|
||||
|
||||
@@ -42,7 +42,7 @@ Chamfer::Chamfer()
|
||||
{
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Chamfer::execute(void)
|
||||
App::DocumentObjectExecReturn *Chamfer::execute()
|
||||
{
|
||||
App::DocumentObject* link = Base.getValue();
|
||||
if (!link)
|
||||
|
||||
@@ -73,10 +73,10 @@ public:
|
||||
/** @name methods override feature */
|
||||
//@{
|
||||
/// recalculate the feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
short mustExecute() const override;
|
||||
/// returns the type name of the view provider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "PartGui::ViewProviderExtrusion";
|
||||
}
|
||||
//@}
|
||||
|
||||
@@ -42,9 +42,9 @@ public:
|
||||
/** @name methods override Feature */
|
||||
//@{
|
||||
/// recalculate the Feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
/// returns the type name of the ViewProvider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "PartGui::ViewProviderGeometrySet";
|
||||
}
|
||||
//@}
|
||||
|
||||
@@ -76,7 +76,7 @@ short Offset::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Offset::execute(void)
|
||||
App::DocumentObjectExecReturn *Offset::execute()
|
||||
{
|
||||
App::DocumentObject* source = Source.getValue();
|
||||
if (!source)
|
||||
@@ -130,7 +130,7 @@ short Offset2D::mustExecute() const
|
||||
return 0;
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Offset2D::execute(void)
|
||||
App::DocumentObjectExecReturn *Offset2D::execute()
|
||||
{
|
||||
App::DocumentObject* source = Source.getValue();
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ short Circle::mustExecute() const
|
||||
return Part::Primitive::mustExecute();
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *Circle::execute(void)
|
||||
App::DocumentObjectExecReturn *Circle::execute()
|
||||
{
|
||||
gp_Circ circle;
|
||||
circle.SetRadius(this->Radius.getValue());
|
||||
|
||||
@@ -41,10 +41,10 @@ public:
|
||||
/** @name methods override Feature */
|
||||
//@{
|
||||
/// recalculate the Feature
|
||||
App::DocumentObjectExecReturn *execute(void) override;
|
||||
App::DocumentObjectExecReturn *execute() override;
|
||||
short mustExecute() const override;
|
||||
/// returns the type name of the ViewProvider
|
||||
const char* getViewProviderName(void) const override {
|
||||
const char* getViewProviderName() const override {
|
||||
return "PartGui::ViewProviderImport";
|
||||
}
|
||||
//@}
|
||||
|
||||
@@ -34,7 +34,7 @@ using namespace Part;
|
||||
PROPERTY_SOURCE(Part::Section, Part::Boolean)
|
||||
|
||||
|
||||
Section::Section(void)
|
||||
Section::Section()
|
||||
{
|
||||
ADD_PROPERTY_TYPE(Approximation,(false),"Section",App::Prop_None,"Approximate the output edges");
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ using namespace Part;
|
||||
extern const char* gce_ErrorStatusText(gce_ErrorType et);
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string ArcOfHyperbola2dPy::representation(void) const
|
||||
std::string ArcOfHyperbola2dPy::representation() const
|
||||
{
|
||||
return "<ArcOfHyperbola2d object>";
|
||||
}
|
||||
@@ -86,7 +86,7 @@ int ArcOfHyperbola2dPy::PyInit(PyObject* args, PyObject* /*kwds*/)
|
||||
return -1;
|
||||
}
|
||||
|
||||
Py::Float ArcOfHyperbola2dPy::getMajorRadius(void) const
|
||||
Py::Float ArcOfHyperbola2dPy::getMajorRadius() const
|
||||
{
|
||||
return Py::Float(getGeom2dArcOfHyperbolaPtr()->getMajorRadius());
|
||||
}
|
||||
@@ -96,7 +96,7 @@ void ArcOfHyperbola2dPy::setMajorRadius(Py::Float arg)
|
||||
getGeom2dArcOfHyperbolaPtr()->setMajorRadius((double)arg);
|
||||
}
|
||||
|
||||
Py::Float ArcOfHyperbola2dPy::getMinorRadius(void) const
|
||||
Py::Float ArcOfHyperbola2dPy::getMinorRadius() const
|
||||
{
|
||||
return Py::Float(getGeom2dArcOfHyperbolaPtr()->getMinorRadius());
|
||||
}
|
||||
@@ -106,7 +106,7 @@ void ArcOfHyperbola2dPy::setMinorRadius(Py::Float arg)
|
||||
getGeom2dArcOfHyperbolaPtr()->setMinorRadius((double)arg);
|
||||
}
|
||||
|
||||
Py::Object ArcOfHyperbola2dPy::getHyperbola(void) const
|
||||
Py::Object ArcOfHyperbola2dPy::getHyperbola() const
|
||||
{
|
||||
Handle(Geom2d_TrimmedCurve) trim = Handle(Geom2d_TrimmedCurve)::DownCast
|
||||
(getGeom2dArcOfHyperbolaPtr()->handle());
|
||||
|
||||
@@ -41,7 +41,7 @@ using namespace Part;
|
||||
extern const char* gce_ErrorStatusText(gce_ErrorType et);
|
||||
|
||||
// returns a string which represents the object e.g. when printed in python
|
||||
std::string LineSegmentPy::representation(void) const
|
||||
std::string LineSegmentPy::representation() const
|
||||
{
|
||||
std::stringstream str;
|
||||
Base::Vector3d start = getGeomLineSegmentPtr()->getStartPoint();
|
||||
@@ -198,7 +198,7 @@ PyObject* LineSegmentPy::setParameterRange(PyObject *args)
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
Py::Object LineSegmentPy::getStartPoint(void) const
|
||||
Py::Object LineSegmentPy::getStartPoint() const
|
||||
{
|
||||
Handle(Geom_TrimmedCurve) this_curve = Handle(Geom_TrimmedCurve)::DownCast
|
||||
(this->getGeomLineSegmentPtr()->handle());
|
||||
@@ -254,7 +254,7 @@ void LineSegmentPy::setStartPoint(Py::Object arg)
|
||||
}
|
||||
}
|
||||
|
||||
Py::Object LineSegmentPy::getEndPoint(void) const
|
||||
Py::Object LineSegmentPy::getEndPoint() const
|
||||
{
|
||||
Handle(Geom_TrimmedCurve) this_curve = Handle(Geom_TrimmedCurve)::DownCast
|
||||
(this->getGeomLineSegmentPtr()->handle());
|
||||
|
||||
@@ -68,7 +68,7 @@ Part2DObject::Part2DObject()
|
||||
}
|
||||
|
||||
|
||||
App::DocumentObjectExecReturn *Part2DObject::execute(void)
|
||||
App::DocumentObjectExecReturn *Part2DObject::execute()
|
||||
{
|
||||
return Feature::execute();
|
||||
}
|
||||
@@ -83,7 +83,7 @@ void Part2DObject::transformPlacement(const Base::Placement &transform)
|
||||
}
|
||||
}
|
||||
|
||||
int Part2DObject::getAxisCount(void) const
|
||||
int Part2DObject::getAxisCount() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -286,10 +286,10 @@ void Part2DObject::handleChangedPropertyName(Base::XMLReader &reader,
|
||||
namespace App {
|
||||
/// @cond DOXERR
|
||||
PROPERTY_SOURCE_TEMPLATE(Part::Part2DObjectPython, Part::Part2DObject)
|
||||
template<> const char* Part::Part2DObjectPython::getViewProviderName(void) const {
|
||||
template<> const char* Part::Part2DObjectPython::getViewProviderName() const {
|
||||
return "PartGui::ViewProvider2DObjectPython";
|
||||
}
|
||||
template<> PyObject* Part::Part2DObjectPython::getPyObject(void) {
|
||||
template<> PyObject* Part::Part2DObjectPython::getPyObject() {
|
||||
if (PythonObject.is(Py::_None())) {
|
||||
// ref counter is set to 1
|
||||
PythonObject = Py::Object(new FeaturePythonPyT<Part::Part2DObjectPy>(this),true);
|
||||
|
||||
@@ -75,7 +75,7 @@ void PropertyPartShape::setValue(const TopoDS_Shape& sh)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
const TopoDS_Shape& PropertyPartShape::getValue(void)const
|
||||
const TopoDS_Shape& PropertyPartShape::getValue() const
|
||||
{
|
||||
return _Shape.getShape();
|
||||
}
|
||||
@@ -133,7 +133,7 @@ void PropertyPartShape::transformGeometry(const Base::Matrix4D &rclTrf)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
PyObject *PropertyPartShape::getPyObject(void)
|
||||
PyObject *PropertyPartShape::getPyObject()
|
||||
{
|
||||
Base::PyObjectBase* prop = static_cast<Base::PyObjectBase*>(_Shape.getPyObject());
|
||||
if (prop)
|
||||
@@ -154,7 +154,7 @@ void PropertyPartShape::setPyObject(PyObject *value)
|
||||
}
|
||||
}
|
||||
|
||||
App::Property *PropertyPartShape::Copy(void) const
|
||||
App::Property *PropertyPartShape::Copy() const
|
||||
{
|
||||
PropertyPartShape *prop = new PropertyPartShape();
|
||||
prop->_Shape = this->_Shape;
|
||||
@@ -173,7 +173,7 @@ void PropertyPartShape::Paste(const App::Property &from)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
unsigned int PropertyPartShape::getMemSize (void) const
|
||||
unsigned int PropertyPartShape::getMemSize () const
|
||||
{
|
||||
return _Shape.getMemSize();
|
||||
}
|
||||
@@ -435,7 +435,7 @@ void PropertyShapeHistory::setValues(const std::vector<ShapeHistory>& values)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
PyObject *PropertyShapeHistory::getPyObject(void)
|
||||
PyObject *PropertyShapeHistory::getPyObject()
|
||||
{
|
||||
return Py::new_reference_to(Py::None());
|
||||
}
|
||||
@@ -460,7 +460,7 @@ void PropertyShapeHistory::RestoreDocFile(Base::Reader &)
|
||||
{
|
||||
}
|
||||
|
||||
App::Property *PropertyShapeHistory::Copy(void) const
|
||||
App::Property *PropertyShapeHistory::Copy() const
|
||||
{
|
||||
PropertyShapeHistory *p= new PropertyShapeHistory();
|
||||
p->_lValueList = _lValueList;
|
||||
@@ -503,7 +503,7 @@ void PropertyFilletEdges::setValues(const std::vector<FilletElement>& values)
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
PyObject *PropertyFilletEdges::getPyObject(void)
|
||||
PyObject *PropertyFilletEdges::getPyObject()
|
||||
{
|
||||
Py::List list(getSize());
|
||||
std::vector<FilletElement>::const_iterator it;
|
||||
@@ -576,7 +576,7 @@ void PropertyFilletEdges::RestoreDocFile(Base::Reader &reader)
|
||||
setValues(values);
|
||||
}
|
||||
|
||||
App::Property *PropertyFilletEdges::Copy(void) const
|
||||
App::Property *PropertyFilletEdges::Copy() const
|
||||
{
|
||||
PropertyFilletEdges *p= new PropertyFilletEdges();
|
||||
p->_lValueList = _lValueList;
|
||||
|
||||
@@ -86,7 +86,7 @@ void CmdPartCylinder::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartCylinder::isActive(void)
|
||||
bool CmdPartCylinder::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -128,7 +128,7 @@ void CmdPartBox::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartBox::isActive(void)
|
||||
bool CmdPartBox::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -170,7 +170,7 @@ void CmdPartSphere::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartSphere::isActive(void)
|
||||
bool CmdPartSphere::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -212,7 +212,7 @@ void CmdPartCone::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartCone::isActive(void)
|
||||
bool CmdPartCone::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -254,7 +254,7 @@ void CmdPartTorus::activated(int iMsg)
|
||||
runCommand(Gui, "Gui.SendMsgToActiveView(\"ViewFit\")");
|
||||
}
|
||||
|
||||
bool CmdPartTorus::isActive(void)
|
||||
bool CmdPartTorus::isActive()
|
||||
{
|
||||
if (getActiveGuiDocument())
|
||||
return true;
|
||||
@@ -265,7 +265,7 @@ bool CmdPartTorus::isActive(void)
|
||||
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
void CreateParamPartCommands(void)
|
||||
void CreateParamPartCommands()
|
||||
{
|
||||
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
|
||||
rcCmdMgr.addCommand(new CmdPartCylinder());
|
||||
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
{
|
||||
return "";
|
||||
}
|
||||
std::vector<std::string> getDisplayModes(void) const override
|
||||
std::vector<std::string> getDisplayModes() const override
|
||||
{
|
||||
return std::vector<std::string>();
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
QString text = QString::fromLatin1("Attachment"), VisibilityFunction func = 0);
|
||||
~TaskAttacher() override;
|
||||
|
||||
bool getFlip(void) const;
|
||||
bool getFlip() const;
|
||||
|
||||
/**
|
||||
* @brief getActiveMapMode returns either the default mode for selected
|
||||
@@ -89,7 +89,7 @@ private Q_SLOTS:
|
||||
void onButtonRef2(const bool checked = true);
|
||||
void onButtonRef3(const bool checked = true);
|
||||
void onButtonRef4(const bool checked = true);
|
||||
void onModeSelect(void);
|
||||
void onModeSelect();
|
||||
void visibilityAutomation(bool opening_not_closing);
|
||||
|
||||
protected:
|
||||
@@ -168,11 +168,11 @@ public:
|
||||
/// is called by the framework if the dialog is rejected (Cancel)
|
||||
bool reject() override;
|
||||
/// is called by the framework if the user presses the help button
|
||||
bool isAllowedAlterDocument(void) const override
|
||||
bool isAllowedAlterDocument() const override
|
||||
{ return false; }
|
||||
|
||||
/// returns for Close and Help button
|
||||
QDialogButtonBox::StandardButtons getStandardButtons(void) const override
|
||||
QDialogButtonBox::StandardButtons getStandardButtons() const override
|
||||
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }
|
||||
|
||||
protected:
|
||||
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
ViewProviderPart();
|
||||
/// destructor
|
||||
~ViewProviderPart() override;
|
||||
bool doubleClicked(void) override;
|
||||
bool doubleClicked() override;
|
||||
|
||||
protected:
|
||||
void applyColor(const Part::ShapeHistory& hist,
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderCircleParametric() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ ViewProviderCompound::~ViewProviderCompound()
|
||||
{
|
||||
}
|
||||
|
||||
std::vector<App::DocumentObject*> ViewProviderCompound::claimChildren(void) const
|
||||
std::vector<App::DocumentObject*> ViewProviderCompound::claimChildren() const
|
||||
{
|
||||
return static_cast<Part::Compound*>(getObject())->Links.getValues();
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
void attach(App::DocumentObject *) override;
|
||||
void setDisplayMode(const char* ModeName) override;
|
||||
/// returns a list of all possible modes
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
/// Update the view representation
|
||||
void reload();
|
||||
/// If no other task is pending it opens a dialog to allow to change face colors
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
*/
|
||||
//@{
|
||||
/// indicates if the ViewProvider use the new Selection model
|
||||
bool useNewSelectionModel(void) const override {return true;}
|
||||
bool useNewSelectionModel() const override {return true;}
|
||||
/// return a hit element to the selection path or 0
|
||||
std::string getElement(const SoDetail*) const override;
|
||||
SoDetail* getDetail(const char*) const override;
|
||||
|
||||
@@ -40,7 +40,7 @@ public:
|
||||
~ViewProviderExtrusion() override;
|
||||
|
||||
/// grouping handling
|
||||
std::vector<App::DocumentObject*> claimChildren(void)const override;
|
||||
std::vector<App::DocumentObject*> claimChildren() const override;
|
||||
};
|
||||
|
||||
} // namespace PartGui
|
||||
|
||||
@@ -46,7 +46,7 @@ ViewProviderHelixParametric::~ViewProviderHelixParametric()
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderHelixParametric::getDisplayModes(void) const
|
||||
std::vector<std::string> ViewProviderHelixParametric::getDisplayModes() const
|
||||
{
|
||||
// add your own modes
|
||||
std::vector<std::string> StrList;
|
||||
@@ -77,7 +77,7 @@ ViewProviderSpiralParametric::~ViewProviderSpiralParametric()
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ViewProviderSpiralParametric::getDisplayModes(void) const
|
||||
std::vector<std::string> ViewProviderSpiralParametric::getDisplayModes() const
|
||||
{
|
||||
// add your own modes
|
||||
std::vector<std::string> StrList;
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
ViewProviderHelixParametric();
|
||||
/// destructor
|
||||
~ViewProviderHelixParametric() override;
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
void setupContextMenu(QMenu*, QObject*, const char*) override;
|
||||
|
||||
private:
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
ViewProviderSpiralParametric();
|
||||
/// destructor
|
||||
~ViewProviderSpiralParametric() override;
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
void setupContextMenu(QMenu*, QObject*, const char*) override;
|
||||
|
||||
private:
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderLineParametric() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderRuledSurface() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
std::vector<App::DocumentObject*> claimChildren() const override;
|
||||
void updateData(const App::Property*) override;
|
||||
bool onDelete(const std::vector<std::string> &) override;
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderSphereParametric() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
ViewProviderEllipsoid();
|
||||
/// destructor
|
||||
~ViewProviderEllipsoid() override;
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
};
|
||||
|
||||
} // namespace PartGui
|
||||
|
||||
@@ -68,7 +68,7 @@ ViewProviderSpline::~ViewProviderSpline()
|
||||
{
|
||||
}
|
||||
|
||||
QIcon ViewProviderSpline::getIcon(void) const
|
||||
QIcon ViewProviderSpline::getIcon() const
|
||||
{
|
||||
return Gui::BitmapFactory().pixmap(sPixmap);
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ ViewProviderTorusParametric::~ViewProviderTorusParametric()
|
||||
|
||||
// **********************************************************************************
|
||||
|
||||
std::vector<std::string> ViewProviderTorusParametric::getDisplayModes(void) const
|
||||
std::vector<std::string> ViewProviderTorusParametric::getDisplayModes() const
|
||||
{
|
||||
// get the modes of the father
|
||||
std::vector<std::string> StrList;
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
/// destructor
|
||||
~ViewProviderTorusParametric() override;
|
||||
|
||||
std::vector<std::string> getDisplayModes(void) const override;
|
||||
std::vector<std::string> getDisplayModes() const override;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user