Added 0000145 : Drawing clip objects

This commit is contained in:
Yorik van Havre
2012-05-16 16:31:02 -03:00
parent e4b0ef57c6
commit 5eb163b060
11 changed files with 955 additions and 3 deletions

View File

@@ -37,6 +37,7 @@
#include "FeaturePage.h"
#include "FeatureView.h"
#include "FeatureClip.h"
using namespace Drawing;
using namespace std;
@@ -124,10 +125,14 @@ App::DocumentObjectExecReturn *FeaturePage::execute(void)
// get through the children and collect all the views
const std::vector<App::DocumentObject*> &Grp = Group.getValues();
for (std::vector<App::DocumentObject*>::const_iterator It= Grp.begin();It!=Grp.end();++It) {
if ((*It)->getTypeId().isDerivedFrom(Drawing::FeatureView::getClassTypeId())) {
if ( (*It)->getTypeId().isDerivedFrom(Drawing::FeatureView::getClassTypeId()) ) {
Drawing::FeatureView *View = dynamic_cast<Drawing::FeatureView *>(*It);
ofile << View->ViewResult.getValue();
ofile << tempendl << tempendl << tempendl;
} else if ( (*It)->getTypeId().isDerivedFrom(Drawing::FeatureClip::getClassTypeId()) ) {
Drawing::FeatureClip *Clip = dynamic_cast<Drawing::FeatureClip *>(*It);
ofile << Clip->ViewResult.getValue();
ofile << tempendl << tempendl << tempendl;
}
}
}