Versie 2.80
Symboolcontourlijndikte svn path=/Slnkdwf/trunk/; revision=12534
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include "myEPlotSection.h"
|
||||
#include "SLNKSymbolDefImpl.h"
|
||||
#include "SLNKSymbolImpl.h"
|
||||
#include "../SLNKDWFImpl/CxImage\CxImage\ximage.h"
|
||||
#include "../SLNKDWFImpl/Whip2DCImpl.h"
|
||||
#include <math.h>
|
||||
|
||||
@@ -15,7 +14,7 @@ CSLNKSymbolImpl::~CSLNKSymbolImpl(void)
|
||||
{
|
||||
}
|
||||
|
||||
CSLNKSymbolImpl::CSLNKSymbolImpl(double dwgX, double dwgY, CWhipFileState *State)
|
||||
CSLNKSymbolImpl::CSLNKSymbolImpl(double dwgX, double dwgY, CWhipFile *whipfile)
|
||||
{
|
||||
m_dwgX = dwgX;
|
||||
m_dwgY = dwgY;
|
||||
@@ -23,17 +22,18 @@ CSLNKSymbolImpl::CSLNKSymbolImpl(double dwgX, double dwgY, CWhipFileState *State
|
||||
m_Rotation = 0;
|
||||
m_Scale = 1.0;
|
||||
m_ColorSet = false;
|
||||
m_SLNKContour.m_parentWhipFileState = State;
|
||||
m_SLNKContour.m_parentWhipFile = whipfile;
|
||||
m_SLNKContour.m_fromSymbol=true;
|
||||
m_SLNKContour.m_outlineColor.set(0,0,0,0); // alpha=0-->transparant
|
||||
}
|
||||
|
||||
WT_Result CSLNKSymbolImpl::serialize (WT_File & file, WT_Units & units,
|
||||
CSLNKSymbolDefinition *symbdef, double hintScale, BOOL forFind)
|
||||
CSLNKSymbolDefinition *symbdef, double hintScale,
|
||||
BOOL forFind, double scale)
|
||||
{
|
||||
ATLASSERT(symbdef != NULL);
|
||||
|
||||
WT_Point3D insertion(m_dwgX, m_dwgY);
|
||||
//m_SLNKContour.m_parentWhipFileState->m_contunits
|
||||
|
||||
if (symbdef->m_hasBitmap)
|
||||
m_Rotation = 0; // geeft problemen bij bitmaps
|
||||
@@ -113,7 +113,7 @@ WT_Result CSLNKSymbolImpl::serialize (WT_File & file, WT_Units & units,
|
||||
|
||||
#ifdef NO_BITMAPPEREN
|
||||
// Vooralsnog uitgeschakeld: we hebben de (hoognodige) achtergrondkleur niet
|
||||
Merk op dat builtin symbols (star) geen nog geen boundingbox ingevuld hebben
|
||||
Merk op dat builtin symbols (star) nog geen boundingbox ingevuld hebben
|
||||
int pixeldx = 1000;
|
||||
int pixeldy = 1000;
|
||||
if (hintScale>0)
|
||||
@@ -184,7 +184,9 @@ WT_Result CSLNKSymbolImpl::serialize (WT_File & file, WT_Units & units,
|
||||
file.desired_rendition().fill() = file.rendition().fill() = WT_Fill();
|
||||
|
||||
file.heuristics().set_apply_transform(WD_False); // Hebben we al rechtstreeks op de contour gedaan
|
||||
m_SLNKContour.serialize(file, true, forFind);
|
||||
m_SLNKContour.serialize(file, true, forFind, scale);
|
||||
// Nog een keer voor een mogelijke outline
|
||||
m_SLNKContour.serialize(file, false, forFind, scale);
|
||||
|
||||
// En transform weer terug
|
||||
file.heuristics().set_transform(wasTransform);
|
||||
|
||||
Reference in New Issue
Block a user