viewprovider for coordinate system update

This commit is contained in:
Stefan Tröger
2015-05-21 21:44:58 +02:00
parent 2b3ca7b39c
commit acf70fb0e1
3 changed files with 80 additions and 10 deletions

View File

@@ -101,9 +101,11 @@ ViewProviderLine::ViewProviderLine()
pFont->size.setValue(Size.getValue()/10.);
pTranslation = new SoTranslation();
pTranslation->ref();
pTranslation->translation.setValue(SbVec3f(-1,0,0));
pText = new SoAsciiText();
pText->ref();
pText->width.setValue(-1);
sPixmap = "view-measurement";
@@ -114,6 +116,8 @@ ViewProviderLine::~ViewProviderLine()
pCoords->unref();
pLines->unref();
pMat->unref();
pTranslation->unref();
pText->unref();
}
void ViewProviderLine::onChanged(const App::Property* prop)