#include <moldshap.h>
Inheritance diagram for MouldGeometry:
Public Member Functions | |
MouldGeometry () | |
Construct a mould geometry. | |
virtual BOOL | Validate (Path *const pPath, UINT32 &errorID) |
virtual BOOL | Define (Path *const pPath, DocRect *const pRect) |
virtual MouldSpace | Describe () |
virtual BOOL | MakeValidFrom (Path **Out, Path *In, INT32 *CornersHint=0) |
virtual BOOL | MouldPathToPath (Path *pSourcePath, Path *PDestinPath) |
virtual BOOL | MouldBitmapToTile (KernelBitmap *pSourceBlit, KernelBitmap *pDestinBlit) |
virtual BOOL | MouldPoint (DocCoord p, DocCoord &q) |
virtual void | MouldPathRender (Path *pPath, RenderRegion *pRegion) |
This function renders a path directly. It uses the current setup manifold and generates a temporary render path. | |
virtual void | MouldBitmapRender (KernelBitmap *pBlit, DocCoord *pParallel, RenderRegion *pRegion) |
virtual void | RenderControlBlobs (RenderRegion *pRegion) |
virtual void | RenderDragBlobs (Spread *pSpread) |
virtual void | DisableControlBlobs () |
virtual void | EnableControlBlobs () |
virtual void | ToggleControlBlobs (Spread *pSpread) |
virtual DocRect | GetBlobBoundingRect () |
virtual void | GetDebugDetails (StringBase *) |
virtual DocRect | GetSourceRect () |
virtual BOOL | OnClick (DocCoord, ClickType, ClickModifiers, Spread *, NodeMould *) |
virtual BOOL | OnMouseMove (DocCoord, Spread *, ClickModifiers, INT32 *, INT32 *) |
virtual void | Transform (Path *const pNewPath, DocRect *const pRect, TransformBase &Trans) |
virtual MouldGeometry * | MakeCopy () |
Make a copy of this mould geometry object and return it. | |
virtual ChangeCode | RecordContext (UndoableOperation *) |
virtual ChangeCode | RecordBlobs (UndoableOperation *, Spread *) |
virtual UINT32 | GetByteSize () const |
virtual void | SetThreshold (const INT32 t) |
Set the threshold value for this mould object. Thresholds should be in the range 1..4095 inclusive. | |
INT32 | GetThreshold () const |
Protected Member Functions | |
BOOL | CopyContents (MouldGeometry *pGeom) |
Make a copy of this mouldgeometry classes private data. | |
DocRect | ConvRectToDocRect (RECT &rect0) |
RECT | ConvDocRectToRect (DocRect &rect0) |
Protected Attributes | |
INT32 | MouldThreshold |
Private Member Functions | |
CC_DECLARE_DYNAMIC (MouldGeometry) |
Definition at line 130 of file moldshap.h.
|
Construct a mould geometry. MouldGeometry::MouldGeometry()
Definition at line 129 of file moldshap.cpp. 00130 { 00131 MouldThreshold = 32; 00132 }
|
|
|
|
Definition at line 331 of file moldshap.cpp. 00332 { 00333 RECT rect1; 00334 rect1.left = rect0.lo.x; 00335 rect1.bottom= rect0.lo.y; 00336 rect1.right = rect0.hi.x; 00337 rect1.top = rect0.hi.y; 00338 return rect1; 00339 }
|
|
Definition at line 320 of file moldshap.cpp. 00321 { 00322 DocRect rect1; 00323 rect1.lo.x = rect0.left; 00324 rect1.lo.y = rect0.bottom; 00325 rect1.hi.x = rect0.right; 00326 rect1.hi.y = rect0.top; 00327 return rect1; 00328 }
|
|
Make a copy of this mouldgeometry classes private data.
Definition at line 245 of file moldshap.cpp. 00246 { 00247 ERROR3IF(pGeometry==NULL, "MouldGeometry::CopyContents() passed a null pointer"); 00248 00249 // copy all our locals here 00250 pGeometry->MouldThreshold = MouldThreshold; 00251 00252 return TRUE; 00253 }
|
|
Reimplemented in MouldEnvelope, MouldEnvelope2x2, and MouldPerspective. Definition at line 139 of file moldshap.h. 00139 {return FALSE;}
|
|
Reimplemented in MouldEnvelope, MouldEnvelope2x2, and MouldPerspective. Definition at line 140 of file moldshap.h. 00140 {return MOULDSPACE_UNDEFINED;}
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 155 of file moldshap.h.
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 156 of file moldshap.h.
|
|
Reimplemented in MouldPerspective. Definition at line 160 of file moldshap.h. 00160 { return DocRect(0,0,0,0); };
|
|
Reimplemented in MouldEnvelope, MouldEnvelope2x2, and MouldPerspective. Definition at line 171 of file moldshap.h. 00171 { return sizeof(MouldGeometry); };
|
|
Definition at line 161 of file moldshap.h.
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 162 of file moldshap.h. 00162 { return DocRect(0,0,0,0);};
|
|
Definition at line 174 of file moldshap.h. 00174 { return MouldThreshold; }
|
|
Make a copy of this mould geometry object and return it.
Reimplemented in MouldEnvelope, MouldEnvelope2x2, and MouldPerspective. Definition at line 213 of file moldshap.cpp. 00214 { 00215 // create a new Geometry 00216 MouldGeometry* pGeometry = new MouldGeometry; 00217 if (pGeometry == NULL) 00218 return NULL; 00219 00220 BOOL ok = CopyContents(pGeometry); 00221 if (!ok) 00222 { 00223 delete pGeometry; 00224 return NULL; 00225 } 00226 00227 return (pGeometry); 00228 }
|
|
Reimplemented in MouldEnvelope, and MouldEnvelope2x2. Definition at line 141 of file moldshap.h. 00141 {return FALSE;}
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 192 of file moldshap.cpp.
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 145 of file moldshap.h. 00145 {return FALSE;};
|
|
This function renders a path directly. It uses the current setup manifold and generates a temporary render path.
Reimplemented in MouldPerspective. Definition at line 166 of file moldshap.cpp. 00167 { 00168 Path RenderPath; 00169 if (!(RenderPath.Initialise(12,12))) return; 00170 if (!MouldPathToPath(pPath,&RenderPath)) return; 00171 00172 pRegion->DrawPath(&RenderPath); 00173 }
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 144 of file moldshap.h. 00144 {return FALSE;};
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 146 of file moldshap.h. 00146 { q=p; return FALSE; }
|
|
Reimplemented in MouldPerspective. Definition at line 278 of file moldshap.cpp. 00283 { 00284 // do nothing at the moment. 00285 return FALSE; 00286 }
|
|
Reimplemented in MouldPerspective. Definition at line 309 of file moldshap.cpp. 00314 { 00315 // do nothing at the moment. 00316 return FALSE; 00317 }
|
|
Reimplemented in MouldPerspective. Definition at line 170 of file moldshap.h. 00170 {return CC_OK;}
|
|
Reimplemented in MouldEnvelope, MouldEnvelope2x2, and MouldPerspective. Definition at line 169 of file moldshap.h. 00169 {return CC_OK;}
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 153 of file moldshap.h.
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 154 of file moldshap.h.
|
|
Set the threshold value for this mould object. Thresholds should be in the range 1..4095 inclusive. MouldGeometry::SetThreshold(const INT32 t)
Definition at line 147 of file moldshap.cpp. 00148 { 00149 if (t>0 && t<4096) 00150 MouldThreshold=t; 00151 }
|
|
Reimplemented in MouldEnvelopeBase, and MouldPerspective. Definition at line 157 of file moldshap.h.
|
|
Reimplemented in MouldEnvelope, MouldEnvelope2x2, and MouldPerspective. Definition at line 167 of file moldshap.h.
|
|
Reimplemented in MouldEnvelope, MouldEnvelope2x2, and MouldPerspective. Definition at line 138 of file moldshap.h. 00138 {return FALSE;}
|
|
Definition at line 182 of file moldshap.h. |