diff options
-rw-r--r-- | slicer/slicer/modelParts.h | 1 | ||||
-rw-r--r-- | slicer/slicer/modelPartsTypes.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/slicer/slicer/modelParts.h b/slicer/slicer/modelParts.h index ce5ab5e..dab66b1 100644 --- a/slicer/slicer/modelParts.h +++ b/slicer/slicer/modelParts.h @@ -199,6 +199,7 @@ namespace Slicer { virtual bool IsOptional() const override; virtual void Write(::Ice::OutputStreamPtr &) const = 0; virtual void Read(::Ice::InputStreamPtr &) = 0; + virtual ModelPartPtr GetContainedModelPart() override; ModelPartPtr mp; }; diff --git a/slicer/slicer/modelPartsTypes.cpp b/slicer/slicer/modelPartsTypes.cpp index bedfd7d..801759d 100644 --- a/slicer/slicer/modelPartsTypes.cpp +++ b/slicer/slicer/modelPartsTypes.cpp @@ -67,6 +67,12 @@ namespace Slicer { return mp->IsOptional(); } + ModelPartPtr + ModelPartForRootBase::GetContainedModelPart() + { + return mp->GetContainedModelPart(); + } + void ModelPartForSimpleBase::OnEachChild(const ChildHandler &) { } ChildRefPtr ModelPartForSimpleBase::GetAnonChildRef(const HookFilter &) { return NULL; } ChildRefPtr ModelPartForSimpleBase::GetChildRef(const std::string &, const HookFilter &) { return NULL; } |