[TD]Make TD View from ActiveView

This commit is contained in:
wandererfan
2019-08-26 13:57:19 -04:00
committed by WandererFan
parent 143b994ecd
commit ab180c761e
12 changed files with 1340 additions and 4 deletions

View File

@@ -382,6 +382,7 @@ SoFCVectorizeSVGAction::SoFCVectorizeSVGAction() :
m_lineWidth(1.0),
m_usemm(false)
{
Base::Console().Message("SoFCVSA::SoFCVSA()\n");
SO_ACTION_CONSTRUCTOR(SoFCVectorizeSVGAction);
this->setOutput(new SoSVGVectorOutput);
this->p = new SoFCVectorizeSVGActionP(this);
@@ -400,6 +401,7 @@ SoFCVectorizeSVGAction::getSVGOutput(void) const
void SoFCVectorizeSVGAction::printHeader(void) const
{
Base::Console().Message("SoFCVSA::printHeader()\n");
std::ostream& str = this->getSVGOutput()->getFileStream();
str << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>" << std::endl;
str << "<!-- Created with FreeCAD (http://www.freecadweb.org) -->" << std::endl;
@@ -433,6 +435,8 @@ void SoFCVectorizeSVGAction::printViewport(void) const
void SoFCVectorizeSVGAction::printBackground(void) const
{
Base::Console().Message("SoFCVSA::printBackground()\n");
SbVec2f mul = getRotatedViewportSize();
SbVec2f add = getRotatedViewportStartpos();