Lines Matching refs:rE

69 long DXF2GDIMetaFile::GetEntityColor(const DXFBasicEntity & rE)  in GetEntityColor()  argument
74 nColor=rE.nColor; in GetEntityColor()
76 if (rE.sLayer[0]=='0' && rE.sLayer[1]==0) nColor=nParentLayerColor; in GetEntityColor()
78 pLayer=pDXF->aTables.SearchLayer(rE.sLayer); in GetEntityColor()
148 DXFLineInfo DXF2GDIMetaFile::GetEntityDXFLineInfo(const DXFBasicEntity & rE) in GetEntityDXFLineInfo() argument
161 if (strcmp(rE.sLineType,"BYLAYER")==0) { in GetEntityDXFLineInfo()
162 if (rE.sLayer[0]=='0' && rE.sLayer[1]==0) aDXFLineInfo=aParentLayerDXFLineInfo; in GetEntityDXFLineInfo()
164 pLayer=pDXF->aTables.SearchLayer(rE.sLayer); in GetEntityDXFLineInfo()
169 else if (strcmp(rE.sLineType,"BYBLOCK")==0) { in GetEntityDXFLineInfo()
172 else aDXFLineInfo=LTypeToDXFLineInfo(rE.sLineType); in GetEntityDXFLineInfo()
177 sal_Bool DXF2GDIMetaFile::SetLineAttribute(const DXFBasicEntity & rE, sal_uLong /*nWidth*/) in SetLineAttribute() argument
182 nColor=GetEntityColor(rE); in SetLineAttribute()
197 sal_Bool DXF2GDIMetaFile::SetAreaAttribute(const DXFBasicEntity & rE) in SetAreaAttribute() argument
202 nColor=GetEntityColor(rE); in SetAreaAttribute()
217 sal_Bool DXF2GDIMetaFile::SetFontAttribute(const DXFBasicEntity & rE, short nAngle, sal_uInt16 nHei… in SetFontAttribute() argument
227 nColor=GetEntityColor(rE); in SetFontAttribute()
246 void DXF2GDIMetaFile::DrawLineEntity(const DXFLineEntity & rE, const DXFTransform & rTransform) in DrawLineEntity() argument
248 if (SetLineAttribute(rE)) { in DrawLineEntity()
250 rTransform.Transform(rE.aP0,aP0); in DrawLineEntity()
251 rTransform.Transform(rE.aP1,aP1); in DrawLineEntity()
254 aDXFLineInfo=GetEntityDXFLineInfo(rE); in DrawLineEntity()
272 if (rE.fThickness!=0) { in DrawLineEntity()
274 rTransform.Transform(rE.aP0+DXFVector(0,0,rE.fThickness),aP2); in DrawLineEntity()
275 rTransform.Transform(rE.aP1+DXFVector(0,0,rE.fThickness),aP3); in DrawLineEntity()
284 void DXF2GDIMetaFile::DrawPointEntity(const DXFPointEntity & rE, const DXFTransform & rTransform) in DrawPointEntity() argument
287 if (SetLineAttribute(rE)) { in DrawPointEntity()
289 rTransform.Transform(rE.aP0,aP0); in DrawPointEntity()
290 if (rE.fThickness==0) pVirDev->DrawPixel(aP0); in DrawPointEntity()
293 rTransform.Transform(rE.aP0+DXFVector(0,0,rE.fThickness),aP1); in DrawPointEntity()
300 void DXF2GDIMetaFile::DrawCircleEntity(const DXFCircleEntity & rE, const DXFTransform & rTransform) in DrawCircleEntity() argument
306 if (SetLineAttribute(rE)==sal_False) return; in DrawCircleEntity()
307 rTransform.Transform(rE.aP0,aC); in DrawCircleEntity()
308 if (rE.fThickness==0 && rTransform.TransCircleToEllipse(rE.fRadius,frx,fry)==sal_True) { in DrawCircleEntity()
319 rE.aP0+DXFVector(rE.fRadius*cos(fAng),rE.fRadius*sin(fAng),0), in DrawCircleEntity()
324 if (rE.fThickness!=0) { in DrawCircleEntity()
329 rE.aP0+DXFVector(rE.fRadius*cos(fAng),rE.fRadius*sin(fAng),rE.fThickness), in DrawCircleEntity()
341 void DXF2GDIMetaFile::DrawArcEntity(const DXFArcEntity & rE, const DXFTransform & rTransform) in DrawArcEntity() argument
348 if (SetLineAttribute(rE)==sal_False) return; in DrawArcEntity()
349 fA1=rE.fStart; in DrawArcEntity()
350 fdA=rE.fEnd-fA1; in DrawArcEntity()
353 rTransform.Transform(rE.aP0,aC); in DrawArcEntity()
354 if (rE.fThickness==0 && fdA>5.0 && rTransform.TransCircleToEllipse(rE.fRadius,frx,fry)==sal_True) { in DrawArcEntity()
356 aVS*=rE.fRadius; in DrawArcEntity()
357 aVS+=rE.aP0; in DrawArcEntity()
359 aVE*=rE.fRadius; in DrawArcEntity()
360 aVE+=rE.aP0; in DrawArcEntity()
382 rE.aP0+DXFVector(rE.fRadius*cos(fAng),rE.fRadius*sin(fAng),0), in DrawArcEntity()
387 if (rE.fThickness!=0) { in DrawArcEntity()
392 rE.aP0+DXFVector(rE.fRadius*cos(fAng),rE.fRadius*sin(fAng),rE.fThickness), in DrawArcEntity()
403 void DXF2GDIMetaFile::DrawTraceEntity(const DXFTraceEntity & rE, const DXFTransform & rTransform) in DrawTraceEntity() argument
405 if (SetLineAttribute(rE)) { in DrawTraceEntity()
407 rTransform.Transform(rE.aP0,aPoly[0]); in DrawTraceEntity()
408 rTransform.Transform(rE.aP1,aPoly[1]); in DrawTraceEntity()
409 rTransform.Transform(rE.aP3,aPoly[2]); in DrawTraceEntity()
410 rTransform.Transform(rE.aP2,aPoly[3]); in DrawTraceEntity()
412 if (rE.fThickness!=0) { in DrawTraceEntity()
415 DXFVector aVAdd(0,0,rE.fThickness); in DrawTraceEntity()
416 rTransform.Transform(rE.aP0+aVAdd,aPoly2[0]); in DrawTraceEntity()
417 rTransform.Transform(rE.aP1+aVAdd,aPoly2[1]); in DrawTraceEntity()
418 rTransform.Transform(rE.aP3+aVAdd,aPoly2[2]); in DrawTraceEntity()
419 rTransform.Transform(rE.aP2+aVAdd,aPoly2[3]); in DrawTraceEntity()
427 void DXF2GDIMetaFile::DrawSolidEntity(const DXFSolidEntity & rE, const DXFTransform & rTransform) in DrawSolidEntity() argument
429 if (SetAreaAttribute(rE)) { in DrawSolidEntity()
431 if (rE.aP2==rE.aP3) nN=3; else nN=4; in DrawSolidEntity()
433 rTransform.Transform(rE.aP0,aPoly[0]); in DrawSolidEntity()
434 rTransform.Transform(rE.aP1,aPoly[1]); in DrawSolidEntity()
435 rTransform.Transform(rE.aP3,aPoly[2]); in DrawSolidEntity()
436 if (nN>3) rTransform.Transform(rE.aP2,aPoly[3]); in DrawSolidEntity()
438 if (rE.fThickness!=0) { in DrawSolidEntity()
440 DXFVector aVAdd(0,0,rE.fThickness); in DrawSolidEntity()
441 rTransform.Transform(rE.aP0+aVAdd,aPoly2[0]); in DrawSolidEntity()
442 rTransform.Transform(rE.aP1+aVAdd,aPoly2[1]); in DrawSolidEntity()
443 rTransform.Transform(rE.aP3+aVAdd,aPoly2[2]); in DrawSolidEntity()
444 if (nN>3) rTransform.Transform(rE.aP2+aVAdd,aPoly2[3]); in DrawSolidEntity()
446 if (SetLineAttribute(rE)) { in DrawSolidEntity()
455 void DXF2GDIMetaFile::DrawTextEntity(const DXFTextEntity & rE, const DXFTransform & rTransform) in DrawTextEntity() argument
462 ByteString aStr( rE.sText ); in DrawTextEntity()
463 DXFTransform aT( DXFTransform(rE.fXScale,rE.fHeight,1.0,rE.fRotAngle,rE.aP0), rTransform ); in DrawTextEntity()
469 if ( SetFontAttribute( rE,nAng, nHeight, aV. Abs() ) ) in DrawTextEntity()
478 void DXF2GDIMetaFile::DrawInsertEntity(const DXFInsertEntity & rE, const DXFTransform & rTransform) in DrawInsertEntity() argument
481 pB=pDXF->aBlocks.Search(rE.sName); in DrawInsertEntity()
484 DXFTransform aDXFTransform2(rE.fXScale,rE.fYScale,rE.fZScale,rE.fRotAngle,rE.aP0); in DrawInsertEntity()
495 nBlockColor=GetEntityColor(rE); in DrawInsertEntity()
496 aBlockDXFLineInfo=GetEntityDXFLineInfo(rE); in DrawInsertEntity()
497 if (rE.sLayer[0]!='0' || rE.sLayer[1]!=0) { in DrawInsertEntity()
498 DXFLayer * pLayer=pDXF->aTables.SearchLayer(rE.sLayer); in DrawInsertEntity()
513 void DXF2GDIMetaFile::DrawAttribEntity(const DXFAttribEntity & rE, const DXFTransform & rTransform) in DrawAttribEntity() argument
515 if ((rE.nAttrFlags&1)==0) { in DrawAttribEntity()
521 ByteString aStr( rE.sText ); in DrawAttribEntity()
522 DXFTransform aT( DXFTransform( rE.fXScale, rE.fHeight, 1.0, rE.fRotAngle, rE.aP0 ), rTransform ); in DrawAttribEntity()
528 if (SetFontAttribute(rE,nAng,nHeight,aV.Abs())) in DrawAttribEntity()
538 void DXF2GDIMetaFile::DrawPolyLineEntity(const DXFPolyLineEntity & rE, const DXFTransform & rTransf… in DrawPolyLineEntity() argument
545 pBE=rE.pSucc; in DrawPolyLineEntity()
553 pBE=rE.pSucc; in DrawPolyLineEntity()
556 if (i+1<nPolySize || (rE.nFlags&1)!=0) { in DrawPolyLineEntity()
558 else fW+=rE.fSWidth; in DrawPolyLineEntity()
560 else fW+=rE.fEWidth; in DrawPolyLineEntity()
565 if ((rE.nFlags&1)!=0) fW/=(double)nPolySize; in DrawPolyLineEntity()
567 if (SetLineAttribute(rE,rTransform.TransLineWidth(fW))) { in DrawPolyLineEntity()
568 if ((rE.nFlags&1)!=0) pVirDev->DrawPolygon(aPoly); in DrawPolyLineEntity()
570 if (rE.fThickness!=0) { in DrawPolyLineEntity()
572 pBE=rE.pSucc; in DrawPolyLineEntity()
575 (((DXFVertexEntity*)pBE)->aP0)+DXFVector(0,0,rE.fThickness), in DrawPolyLineEntity()
580 if ((rE.nFlags&1)!=0) pVirDev->DrawPolygon(aPoly2); in DrawPolyLineEntity()
587 void DXF2GDIMetaFile::DrawLWPolyLineEntity(const DXFLWPolyLineEntity & rE, const DXFTransform & rTr… in DrawLWPolyLineEntity() argument
589 sal_Int32 i, nPolySize = rE.nCount; in DrawLWPolyLineEntity()
590 if ( nPolySize && rE.pP ) in DrawLWPolyLineEntity()
595 rTransform.Transform( rE.pP[ (sal_uInt16)i ], aPoly[ (sal_uInt16)i ] ); in DrawLWPolyLineEntity()
597 double fW = rE.fConstantWidth; in DrawLWPolyLineEntity()
598 if ( SetLineAttribute( rE, rTransform.TransLineWidth( fW ) ) ) in DrawLWPolyLineEntity()
600 if ( ( rE.nFlags & 1 ) != 0 ) in DrawLWPolyLineEntity()
610 void DXF2GDIMetaFile::DrawHatchEntity(const DXFHatchEntity & rE, const DXFTransform & rTransform ) in DrawHatchEntity() argument
612 if ( rE.nBoundaryPathCount ) in DrawHatchEntity()
614 SetAreaAttribute( rE ); in DrawHatchEntity()
617 for ( j = 0; j < rE.nBoundaryPathCount; j++ ) in DrawHatchEntity()
620 const DXFBoundaryPathData& rPathData = rE.pBoundaryPathData[ j ]; in DrawHatchEntity()
709 void DXF2GDIMetaFile::Draw3DFaceEntity(const DXF3DFaceEntity & rE, const DXFTransform & rTransform) in Draw3DFaceEntity() argument
712 if (SetLineAttribute(rE)) { in Draw3DFaceEntity()
713 if (rE.aP2==rE.aP3) nN=3; else nN=4; in Draw3DFaceEntity()
715 rTransform.Transform(rE.aP0,aPoly[0]); in Draw3DFaceEntity()
716 rTransform.Transform(rE.aP1,aPoly[1]); in Draw3DFaceEntity()
717 rTransform.Transform(rE.aP2,aPoly[2]); in Draw3DFaceEntity()
718 if (nN>3) rTransform.Transform(rE.aP3,aPoly[3]); in Draw3DFaceEntity()
719 if ((rE.nIEFlags&0x0f)==0) pVirDev->DrawPolygon(aPoly); in Draw3DFaceEntity()
722 if ( (rE.nIEFlags & (1<<i)) == 0 ) { in Draw3DFaceEntity()
731 void DXF2GDIMetaFile::DrawDimensionEntity(const DXFDimensionEntity & rE, const DXFTransform & rTran… in DrawDimensionEntity() argument
734 pB=pDXF->aBlocks.Search(rE.sPseudoBlock); in DrawDimensionEntity()
746 nBlockColor=GetEntityColor(rE); in DrawDimensionEntity()
747 aBlockDXFLineInfo=GetEntityDXFLineInfo(rE); in DrawDimensionEntity()
748 if (rE.sLayer[0]!='0' || rE.sLayer[1]!=0) { in DrawDimensionEntity()
749 DXFLayer * pLayer=pDXF->aTables.SearchLayer(rE.sLayer); in DrawDimensionEntity()