#include <ai_epsrr.h>
Inheritance diagram for AIEPSGradientScanRenderRegion:
Public Member Functions | |
AIEPSGradientScanRenderRegion (RenderRegion *pControllingRegion) | |
Used to scan the tree for gradient fills when exporting to AI EPS format. The objects are rendered into this region, which then stores the fills in a gradient cache. This is necessary, as objects such as blends only allow access to the intermediate steps when they are being rendered, and any gradient fills need to be cached in the AI file before proper rendering starts. | |
RenderRegion * | GetControllingRegion () |
void | SetControllingRegion (RenderRegion *pControllingRegion) |
sets the controlling AIEPSRenderRegion. I.e. the one that needs to cache the gradient fills. | |
virtual void | DrawPathToOutputDevice (Path *PathToRender, PathShape shapePath=PATHSHAPE_PATH) |
Used to catch gradient fills on objects (mainly in blends, contours, brushes, and other objects which won't show up in the tree) so that they can be included properly in the caching system. | |
virtual BOOL | StopRender () |
Deinitialise the render region after rendering (exporting). | |
virtual void | DrawRect (DocRect *RectToRender) |
None at present - this function should not be called during ink rendering. | |
virtual void | DrawDragRect (DocRect *RectToRender) |
Should not be called for this kind of render region. | |
virtual void | DrawLine (const DocCoord &StartPoint, const DocCoord &EndPoint) |
None at present - this function should not be called during ink rendering. | |
virtual void | DrawPixel (const DocCoord &Point) |
Should not be called for this kind of render region. | |
virtual void | DrawBlob (DocCoord p, BlobType type) |
Should not be called for this kind of render region. | |
virtual void | DrawCross (const DocCoord &Point, const UINT32 Size) |
Should not be called for this kind of render region. | |
virtual void | DrawBitmap (const DocCoord &Point, KernelBitmap *pBitmap) |
Should not be called for this kind of render region. | |
virtual void | DrawBitmap (const DocCoord &Point, UINT32 BitmapID, UINT32 ToolID=NULL) |
Should not be called for this kind of render region. | |
virtual void | DrawBitmapBlob (const DocCoord &Point, KernelBitmap *BlobShape) |
Should not be called for this kind of render region. | |
virtual void | DrawBitmapBlob (const DocCoord &Point, ResourceID resID) |
virtual void | InitClipping () |
Stub function. | |
virtual void | InitAttributes () |
Set up the default attributes for the render region. (Actually just marks the path attributes as invalid, so that we output some attribute commands before the first path we export). | |
virtual void | SetOSDrawingMode () |
Ensures that the drawing mode is set to DM_COPYPEN - any other drawing mode doesn't make sense when exporting EPS. | |
virtual MILLIPOINT | CalcPixelWidth () |
None for vector file render regions - just returns 1. | |
virtual MILLIPOINT | CalcScaledPixelWidth () |
None for vector file render regions - just returns 1. | |
Protected Attributes | |
RenderRegion * | m_pController |
Definition at line 129 of file ai_epsrr.h.
|
Used to scan the tree for gradient fills when exporting to AI EPS format. The objects are rendered into this region, which then stores the fills in a gradient cache. This is necessary, as objects such as blends only allow access to the intermediate steps when they are being rendered, and any gradient fills need to be cached in the AI file before proper rendering starts.
Definition at line 3753 of file ai_epsrr.cpp. 03754 : VectorFileRenderRegion () 03755 { 03756 SetControllingRegion (pControllingRegion); 03757 03758 DocRect clipRect = pControllingRegion->GetClipRect (); 03759 SetClipRect (clipRect); 03760 }
|
|
None for vector file render regions - just returns 1.
Reimplemented from VectorFileRenderRegion. Definition at line 163 of file ai_epsrr.h. 00163 {return MILLIPOINT (1);};
|
|
None for vector file render regions - just returns 1.
Reimplemented from VectorFileRenderRegion. Definition at line 164 of file ai_epsrr.h. 00164 {return MILLIPOINT (1);};
|
|
Should not be called for this kind of render region.
Reimplemented from VectorFileRenderRegion. Definition at line 155 of file ai_epsrr.h.
|
|
Should not be called for this kind of render region.
Reimplemented from VectorFileRenderRegion. Definition at line 154 of file ai_epsrr.h.
|
|
Reimplemented from VectorFileRenderRegion. Definition at line 157 of file ai_epsrr.h.
|
|
Should not be called for this kind of render region.
Reimplemented from VectorFileRenderRegion. Definition at line 156 of file ai_epsrr.h.
|
|
Should not be called for this kind of render region.
Reimplemented from VectorFileRenderRegion. Definition at line 151 of file ai_epsrr.h.
|
|
Should not be called for this kind of render region.
Reimplemented from VectorFileRenderRegion. Definition at line 152 of file ai_epsrr.h.
|
|
Should not be called for this kind of render region.
Reimplemented from VectorFileRenderRegion. Definition at line 148 of file ai_epsrr.h.
|
|
None at present - this function should not be called during ink rendering.
Reimplemented from VectorFileRenderRegion. Definition at line 149 of file ai_epsrr.h.
|
|
Used to catch gradient fills on objects (mainly in blends, contours, brushes, and other objects which won't show up in the tree) so that they can be included properly in the caching system.
Implements RenderRegion. Definition at line 3778 of file ai_epsrr.cpp. 03779 { 03780 FillGeometryAttribute * pFill = (FillGeometryAttribute *) CurrentAttrs[ATTR_FILLGEOMETRY].pAttr; 03781 AIEPSRenderRegion * pControl = (AIEPSRenderRegion *) GetControllingRegion (); 03782 03783 EFFECTTYPE effect = GetFillEffect (); 03784 03785 // Write and store the fill info it's got a gradient fill. 03786 if (pControl->IsGradientFillValidForExport (pFill) && 03787 !pControl->FindGradientInCache (pFill, effect)) 03788 { 03789 // Store this fill - function takes a copy of the whole fill (not just the pointer), 03790 // so this is safe. 03791 pControl->IncludeGradientFill (pFill, effect); 03792 } 03793 03794 // Reset the fill to RGB. This is temp, so it will be deleted when it is no longer used. 03795 SetFillEffect (new FillEffectFadeAttribute, TRUE); 03796 }
|
|
Should not be called for this kind of render region.
Reimplemented from VectorFileRenderRegion. Definition at line 150 of file ai_epsrr.h.
|
|
None at present - this function should not be called during ink rendering.
Reimplemented from VectorFileRenderRegion. Definition at line 147 of file ai_epsrr.h.
|
|
Definition at line 141 of file ai_epsrr.h. 00141 {return m_pController;}
|
|
Set up the default attributes for the render region. (Actually just marks the path attributes as invalid, so that we output some attribute commands before the first path we export).
Reimplemented from VectorFileRenderRegion. Definition at line 160 of file ai_epsrr.h.
|
|
Stub function.
Reimplemented from VectorFileRenderRegion. Definition at line 159 of file ai_epsrr.h.
|
|
sets the controlling AIEPSRenderRegion. I.e. the one that needs to cache the gradient fills.
Definition at line 3810 of file ai_epsrr.cpp. 03811 { 03812 ERROR3IF (!pControllingRegion->IsKindOf (CC_RUNTIME_CLASS(AIEPSRenderRegion)), "AIEPSGradientScanRenderRegion::SetControllingRegion - controlling region is not an AIEPSRegion"); 03813 03814 m_pController = pControllingRegion; 03815 }
|
|
Ensures that the drawing mode is set to DM_COPYPEN - any other drawing mode doesn't make sense when exporting EPS.
Reimplemented from VectorFileRenderRegion. Definition at line 162 of file ai_epsrr.h.
|
|
Deinitialise the render region after rendering (exporting).
Reimplemented from VectorFileRenderRegion. Definition at line 146 of file ai_epsrr.h. 00146 {return FALSE;};
|
|
Definition at line 135 of file ai_epsrr.h. |