[PD] handle changed property for loft and pipe
- this was missing in PR #5155
This commit is contained in:
@@ -256,3 +256,14 @@ PROPERTY_SOURCE(PartDesign::SubtractiveLoft, PartDesign::Loft)
|
||||
SubtractiveLoft::SubtractiveLoft() {
|
||||
addSubType = Subtractive;
|
||||
}
|
||||
|
||||
void Loft::handleChangedPropertyType(Base::XMLReader& reader, const char* TypeName, App::Property* prop)
|
||||
{
|
||||
// property Sections had the App::PropertyLinkList and was changed to App::PropertyXLinkSubList
|
||||
if (prop == &Sections && strcmp(TypeName, "App::PropertyLinkList") == 0) {
|
||||
Sections.upgrade(reader, TypeName);
|
||||
}
|
||||
else {
|
||||
ProfileBased::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,10 @@ public:
|
||||
}
|
||||
//@}
|
||||
|
||||
protected:
|
||||
// handle changed property
|
||||
virtual void handleChangedPropertyType(Base::XMLReader& reader, const char* TypeName, App::Property* prop);
|
||||
|
||||
private:
|
||||
//static const char* TypeEnums[];
|
||||
//static const char* SideEnums[];
|
||||
|
||||
@@ -518,8 +518,6 @@ void Pipe::buildPipePath(const Part::TopoShape& shape, const std::vector< std::s
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
PROPERTY_SOURCE(PartDesign::AdditivePipe, PartDesign::Pipe)
|
||||
AdditivePipe::AdditivePipe() {
|
||||
addSubType = Additive;
|
||||
@@ -529,3 +527,14 @@ PROPERTY_SOURCE(PartDesign::SubtractivePipe, PartDesign::Pipe)
|
||||
SubtractivePipe::SubtractivePipe() {
|
||||
addSubType = Subtractive;
|
||||
}
|
||||
|
||||
void Pipe::handleChangedPropertyType(Base::XMLReader& reader, const char* TypeName, App::Property* prop)
|
||||
{
|
||||
// property Sections had the App::PropertyLinkList and was changed to App::PropertyXLinkSubList
|
||||
if (prop == &Sections && strcmp(TypeName, "App::PropertyLinkList") == 0) {
|
||||
Sections.upgrade(reader, TypeName);
|
||||
}
|
||||
else {
|
||||
ProfileBased::handleChangedPropertyType(reader, TypeName, prop);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,6 @@ class PartDesignExport Pipe : public ProfileBased
|
||||
public:
|
||||
Pipe();
|
||||
|
||||
|
||||
App::PropertyLinkSub Spine;
|
||||
App::PropertyBool SpineTangent;
|
||||
App::PropertyLinkSub AuxillerySpine;
|
||||
@@ -56,13 +55,14 @@ public:
|
||||
const char* getViewProviderName(void) const {
|
||||
return "PartDesignGui::ViewProviderPipe";
|
||||
}
|
||||
//@}
|
||||
|
||||
protected:
|
||||
///get the given edges and all their tangent ones
|
||||
/// get the given edges and all their tangent ones
|
||||
void getContinuousEdges(Part::TopoShape TopShape, std::vector< std::string >& SubNames);
|
||||
void buildPipePath(const Part::TopoShape& input, const std::vector<std::string>& edges, TopoDS_Shape& result);
|
||||
void setupAlgorithm(BRepOffsetAPI_MakePipeShell& mkPipeShell, TopoDS_Shape& auxshape);
|
||||
/// handle changed property
|
||||
virtual void handleChangedPropertyType(Base::XMLReader& reader, const char* TypeName, App::Property* prop);
|
||||
|
||||
private:
|
||||
static const char* TypeEnums[];
|
||||
|
||||
Reference in New Issue
Block a user