LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
DXF2GDIMetaFile Class Reference

#include <dxf2mtf.hxx>

Collaboration diagram for DXF2GDIMetaFile:
[legend]

Public Member Functions

 DXF2GDIMetaFile ()
 
 ~DXF2GDIMetaFile ()
 
bool Convert (const DXFRepresentation &rDXF, GDIMetaFile &rMTF, sal_uInt16 nMinPercent, sal_uInt16 nMaxPercent)
 

Private Member Functions

Color ConvertColor (sal_uInt8 nColor)
 
tools::Long GetEntityColor (const DXFBasicEntity &rE)
 
DXFLineInfo LTypeToDXFLineInfo (std::string_view rLineType)
 
DXFLineInfo GetEntityDXFLineInfo (const DXFBasicEntity &rE)
 
bool SetLineAttribute (const DXFBasicEntity &rE)
 
bool SetAreaAttribute (const DXFBasicEntity &rE)
 
bool SetFontAttribute (const DXFBasicEntity &rE, short nAngle, sal_uInt16 nHeight)
 
void DrawLineEntity (const DXFLineEntity &rE, const DXFTransform &rTransform)
 
void DrawPointEntity (const DXFPointEntity &rE, const DXFTransform &rTransform)
 
void DrawCircleEntity (const DXFCircleEntity &rE, const DXFTransform &rTransform)
 
void DrawArcEntity (const DXFArcEntity &rE, const DXFTransform &rTransform)
 
void DrawTraceEntity (const DXFTraceEntity &rE, const DXFTransform &rTransform)
 
void DrawSolidEntity (const DXFSolidEntity &rE, const DXFTransform &rTransform)
 
void DrawTextEntity (const DXFTextEntity &rE, const DXFTransform &rTransform)
 
void DrawInsertEntity (const DXFInsertEntity &rE, const DXFTransform &rTransform)
 
void DrawAttribEntity (const DXFAttribEntity &rE, const DXFTransform &rTransform)
 
void DrawPolyLineEntity (const DXFPolyLineEntity &rE, const DXFTransform &rTransform)
 
void Draw3DFaceEntity (const DXF3DFaceEntity &rE, const DXFTransform &rTransform)
 
void DrawDimensionEntity (const DXFDimensionEntity &rE, const DXFTransform &rTransform)
 
void DrawLWPolyLineEntity (const DXFLWPolyLineEntity &rE, const DXFTransform &rTransform)
 
void DrawHatchEntity (const DXFHatchEntity &rE, const DXFTransform &rTransform)
 
void DrawEntities (const DXFEntities &rEntities, const DXFTransform &rTransform)
 
void DrawLine (const Point &rA, const Point &rB)
 

Static Private Member Functions

static sal_uInt64 CountEntities (const DXFEntities &rEntities)
 

Private Attributes

VclPtr< VirtualDevicepVirDev
 
const DXFRepresentationpDXF
 
bool bStatus
 
sal_uInt16 OptPointsPerCircle
 
sal_uInt16 nMinPercent
 
sal_uInt16 nMaxPercent
 
sal_uInt16 nLastPercent
 
sal_uInt16 nMainEntitiesCount
 
tools::Long nBlockColor
 
DXFLineInfo aBlockDXFLineInfo
 
tools::Long nParentLayerColor
 
DXFLineInfo aParentLayerDXFLineInfo
 
Color aActLineColor
 
Color aActFillColor
 
vcl::Font aActFont
 
const LineInfo aDefaultLineInfo
 

Detailed Description

Definition at line 33 of file dxf2mtf.hxx.

Constructor & Destructor Documentation

DXF2GDIMetaFile::DXF2GDIMetaFile ( )

Definition at line 762 of file dxf2mtf.cxx.

DXF2GDIMetaFile::~DXF2GDIMetaFile ( )

Definition at line 777 of file dxf2mtf.cxx.

Member Function Documentation

bool DXF2GDIMetaFile::Convert ( const DXFRepresentation rDXF,
GDIMetaFile rMTF,
sal_uInt16  nMinPercent,
sal_uInt16  nMaxPercent 
)
Color DXF2GDIMetaFile::ConvertColor ( sal_uInt8  nColor)
private
sal_uInt64 DXF2GDIMetaFile::CountEntities ( const DXFEntities rEntities)
staticprivate

Definition at line 31 of file dxf2mtf.cxx.

References DXFEntities::pFirst, and DXFBasicEntity::pSucc.

Referenced by Convert().

void DXF2GDIMetaFile::Draw3DFaceEntity ( const DXF3DFaceEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawArcEntity ( const DXFArcEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawAttribEntity ( const DXFAttribEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawCircleEntity ( const DXFCircleEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawDimensionEntity ( const DXFDimensionEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawEntities ( const DXFEntities rEntities,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawHatchEntity ( const DXFHatchEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawInsertEntity ( const DXFInsertEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawLine ( const Point rA,
const Point rB 
)
private
void DXF2GDIMetaFile::DrawLineEntity ( const DXFLineEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawLWPolyLineEntity ( const DXFLWPolyLineEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawPointEntity ( const DXFPointEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawPolyLineEntity ( const DXFPolyLineEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawSolidEntity ( const DXFSolidEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawTextEntity ( const DXFTextEntity rE,
const DXFTransform rTransform 
)
private
void DXF2GDIMetaFile::DrawTraceEntity ( const DXFTraceEntity rE,
const DXFTransform rTransform 
)
private
tools::Long DXF2GDIMetaFile::GetEntityColor ( const DXFBasicEntity rE)
private
DXFLineInfo DXF2GDIMetaFile::GetEntityDXFLineInfo ( const DXFBasicEntity rE)
private
DXFLineInfo DXF2GDIMetaFile::LTypeToDXFLineInfo ( std::string_view  rLineType)
private
bool DXF2GDIMetaFile::SetAreaAttribute ( const DXFBasicEntity rE)
private
bool DXF2GDIMetaFile::SetFontAttribute ( const DXFBasicEntity rE,
short  nAngle,
sal_uInt16  nHeight 
)
private
bool DXF2GDIMetaFile::SetLineAttribute ( const DXFBasicEntity rE)
private

Member Data Documentation

Color DXF2GDIMetaFile::aActFillColor
private

Definition at line 52 of file dxf2mtf.hxx.

Referenced by Convert(), SetAreaAttribute(), and SetLineAttribute().

vcl::Font DXF2GDIMetaFile::aActFont
private

Definition at line 53 of file dxf2mtf.hxx.

Referenced by Convert(), and SetFontAttribute().

Color DXF2GDIMetaFile::aActLineColor
private

Definition at line 51 of file dxf2mtf.hxx.

Referenced by Convert(), SetAreaAttribute(), and SetLineAttribute().

DXFLineInfo DXF2GDIMetaFile::aBlockDXFLineInfo
private

Definition at line 48 of file dxf2mtf.hxx.

Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityDXFLineInfo().

const LineInfo DXF2GDIMetaFile::aDefaultLineInfo
private

Definition at line 54 of file dxf2mtf.hxx.

Referenced by DrawLine().

DXFLineInfo DXF2GDIMetaFile::aParentLayerDXFLineInfo
private

Definition at line 50 of file dxf2mtf.hxx.

Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityDXFLineInfo().

bool DXF2GDIMetaFile::bStatus
private

Definition at line 38 of file dxf2mtf.hxx.

Referenced by Convert(), and DrawEntities().

tools::Long DXF2GDIMetaFile::nBlockColor
private

Definition at line 47 of file dxf2mtf.hxx.

Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityColor().

sal_uInt16 DXF2GDIMetaFile::nLastPercent
private

Definition at line 44 of file dxf2mtf.hxx.

Referenced by Convert().

sal_uInt16 DXF2GDIMetaFile::nMainEntitiesCount
private

Definition at line 45 of file dxf2mtf.hxx.

Referenced by Convert().

sal_uInt16 DXF2GDIMetaFile::nMaxPercent
private

Definition at line 43 of file dxf2mtf.hxx.

Referenced by Convert().

sal_uInt16 DXF2GDIMetaFile::nMinPercent
private

Definition at line 42 of file dxf2mtf.hxx.

Referenced by Convert().

tools::Long DXF2GDIMetaFile::nParentLayerColor
private

Definition at line 49 of file dxf2mtf.hxx.

Referenced by Convert(), DrawDimensionEntity(), DrawInsertEntity(), and GetEntityColor().

sal_uInt16 DXF2GDIMetaFile::OptPointsPerCircle
private

Definition at line 40 of file dxf2mtf.hxx.

Referenced by Convert(), DrawArcEntity(), and DrawCircleEntity().

const DXFRepresentation* DXF2GDIMetaFile::pDXF
private
VclPtr<VirtualDevice> DXF2GDIMetaFile::pVirDev
private

The documentation for this class was generated from the following files: