Files
Slnkdwf/SlnkDWFCom/SLNKSymbolDefImpl.h
Jos Groot Lipman e267e9587c V4.27 09-09-2021
- FCLT#63646 Lijndikte van symbolen kunnen zetten
 - FCLT#68480 Geen TIFF ondersteuning meer

svn path=/Slnkdwf/trunk/; revision=52980
2021-09-09 15:03:04 +00:00

32 lines
1.0 KiB
C++

#pragma once
#include "Whiptk/whip_toolkit.h"
#include "myWT_File.h"
#include "SLNKContour.h"
class CSLNKSymbolDefinition
{
public:
CSLNKSymbolDefinition(CComQIPtr<IEPlotSection> EPlotSection);
CSLNKSymbolDefinition(CString W2Dfilepath);
CSLNKSymbolDefinition(int count, WT_Logical_Point const *points, WT_Units units);
CSLNKSymbolDefinition(CString const filepath, double const height, WT_Units units);
~CSLNKSymbolDefinition(void);
CComQIPtr<IEPlotSection> m_iEPlotSection; // Om scope levend te houden
myWT_File m_wtFile; // Beetje redundant?
WT_Logical_Box m_BoundingBox;
CSLNKContourImpl m_BoundingContour;
WT_Logical_Point m_Origin;
double m_dwgScale;
WT_Drawable *asBitmap(int pixeldx, int pixeldy, long paperColor);
WT_Result serialize(WT_File & file, WT_Color pColor, BOOL pColorSet, WT_Integer32 pLineweight);
WT_Result calculateBoundary(CSLNKContourImpl &m_BoundingContour, WT_Transform *tm=NULL);
bool m_hasBitmap; // Kunnen we moeilijk roteren
private:
bool m_BuiltIn;
WT_PNG_Group4_Image *m_AsBitmap;
};