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) const
 
tools::Long GetEntityColor (const DXFBasicEntity &rE) const
 
DXFLineInfo LTypeToDXFLineInfo (std::string_view rLineType) const
 
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 32 of file dxf2mtf.hxx.

Constructor & Destructor Documentation

◆ DXF2GDIMetaFile()

DXF2GDIMetaFile::DXF2GDIMetaFile ( )

Definition at line 760 of file dxf2mtf.cxx.

◆ ~DXF2GDIMetaFile()

DXF2GDIMetaFile::~DXF2GDIMetaFile ( )

Definition at line 775 of file dxf2mtf.cxx.

Member Function Documentation

◆ Convert()

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

◆ ConvertColor()

Color DXF2GDIMetaFile::ConvertColor ( sal_uInt8  nColor) const
private

◆ CountEntities()

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().

◆ Draw3DFaceEntity()

void DXF2GDIMetaFile::Draw3DFaceEntity ( const DXF3DFaceEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawArcEntity()

void DXF2GDIMetaFile::DrawArcEntity ( const DXFArcEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawAttribEntity()

void DXF2GDIMetaFile::DrawAttribEntity ( const DXFAttribEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawCircleEntity()

void DXF2GDIMetaFile::DrawCircleEntity ( const DXFCircleEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawDimensionEntity()

void DXF2GDIMetaFile::DrawDimensionEntity ( const DXFDimensionEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawEntities()

void DXF2GDIMetaFile::DrawEntities ( const DXFEntities rEntities,
const DXFTransform rTransform 
)
private

◆ DrawHatchEntity()

void DXF2GDIMetaFile::DrawHatchEntity ( const DXFHatchEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawInsertEntity()

void DXF2GDIMetaFile::DrawInsertEntity ( const DXFInsertEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawLine()

void DXF2GDIMetaFile::DrawLine ( const Point rA,
const Point rB 
)
private

◆ DrawLineEntity()

void DXF2GDIMetaFile::DrawLineEntity ( const DXFLineEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawLWPolyLineEntity()

void DXF2GDIMetaFile::DrawLWPolyLineEntity ( const DXFLWPolyLineEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawPointEntity()

void DXF2GDIMetaFile::DrawPointEntity ( const DXFPointEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawPolyLineEntity()

void DXF2GDIMetaFile::DrawPolyLineEntity ( const DXFPolyLineEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawSolidEntity()

void DXF2GDIMetaFile::DrawSolidEntity ( const DXFSolidEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawTextEntity()

void DXF2GDIMetaFile::DrawTextEntity ( const DXFTextEntity rE,
const DXFTransform rTransform 
)
private

◆ DrawTraceEntity()

void DXF2GDIMetaFile::DrawTraceEntity ( const DXFTraceEntity rE,
const DXFTransform rTransform 
)
private

◆ GetEntityColor()

tools::Long DXF2GDIMetaFile::GetEntityColor ( const DXFBasicEntity rE) const
private

◆ GetEntityDXFLineInfo()

DXFLineInfo DXF2GDIMetaFile::GetEntityDXFLineInfo ( const DXFBasicEntity rE)
private

◆ LTypeToDXFLineInfo()

DXFLineInfo DXF2GDIMetaFile::LTypeToDXFLineInfo ( std::string_view  rLineType) const
private

◆ SetAreaAttribute()

bool DXF2GDIMetaFile::SetAreaAttribute ( const DXFBasicEntity rE)
private

◆ SetFontAttribute()

bool DXF2GDIMetaFile::SetFontAttribute ( const DXFBasicEntity rE,
short  nAngle,
sal_uInt16  nHeight 
)
private

◆ SetLineAttribute()

bool DXF2GDIMetaFile::SetLineAttribute ( const DXFBasicEntity rE)
private

Member Data Documentation

◆ aActFillColor

Color DXF2GDIMetaFile::aActFillColor
private

Definition at line 51 of file dxf2mtf.hxx.

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

◆ aActFont

vcl::Font DXF2GDIMetaFile::aActFont
private

Definition at line 52 of file dxf2mtf.hxx.

Referenced by Convert(), and SetFontAttribute().

◆ aActLineColor

Color DXF2GDIMetaFile::aActLineColor
private

Definition at line 50 of file dxf2mtf.hxx.

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

◆ aBlockDXFLineInfo

DXFLineInfo DXF2GDIMetaFile::aBlockDXFLineInfo
private

Definition at line 47 of file dxf2mtf.hxx.

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

◆ aDefaultLineInfo

const LineInfo DXF2GDIMetaFile::aDefaultLineInfo
private

Definition at line 53 of file dxf2mtf.hxx.

Referenced by DrawLine().

◆ aParentLayerDXFLineInfo

DXFLineInfo DXF2GDIMetaFile::aParentLayerDXFLineInfo
private

Definition at line 49 of file dxf2mtf.hxx.

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

◆ bStatus

bool DXF2GDIMetaFile::bStatus
private

Definition at line 37 of file dxf2mtf.hxx.

Referenced by Convert(), and DrawEntities().

◆ nBlockColor

tools::Long DXF2GDIMetaFile::nBlockColor
private

Definition at line 46 of file dxf2mtf.hxx.

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

◆ nLastPercent

sal_uInt16 DXF2GDIMetaFile::nLastPercent
private

Definition at line 43 of file dxf2mtf.hxx.

Referenced by Convert().

◆ nMainEntitiesCount

sal_uInt16 DXF2GDIMetaFile::nMainEntitiesCount
private

Definition at line 44 of file dxf2mtf.hxx.

Referenced by Convert().

◆ nMaxPercent

sal_uInt16 DXF2GDIMetaFile::nMaxPercent
private

Definition at line 42 of file dxf2mtf.hxx.

Referenced by Convert().

◆ nMinPercent

sal_uInt16 DXF2GDIMetaFile::nMinPercent
private

Definition at line 41 of file dxf2mtf.hxx.

Referenced by Convert().

◆ nParentLayerColor

tools::Long DXF2GDIMetaFile::nParentLayerColor
private

Definition at line 48 of file dxf2mtf.hxx.

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

◆ OptPointsPerCircle

sal_uInt16 DXF2GDIMetaFile::OptPointsPerCircle
private

Definition at line 39 of file dxf2mtf.hxx.

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

◆ pDXF

const DXFRepresentation* DXF2GDIMetaFile::pDXF
private

◆ pVirDev

VclPtr<VirtualDevice> DXF2GDIMetaFile::pVirDev
private

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