#include <IPathStorage.h>
Interface to be used to store an Adobe imaging model path in an in-memory data structure. The basic path API is similar to that exposed by IOutlineInfo.
- See Also
- IOutlineInfo
| virtual void IPathStorage::CapturePath | ( | IViewPort * | srcPort | ) | |
| pure virtual |
Captures the path currently stored in the specified viewport. Assumes that the viewport has an aggregated IRasterPort.
- Parameters
| srcPort | IN The port from which the path is captured |
- See Also
- IRasterPort
| virtual void IPathStorage::ClearPath | ( | | ) | |
| pure virtual |
Clears the path stored by this object.
| virtual void IPathStorage::closepath | ( | | ) | |
| pure virtual |
Closes the current subpath. If the first point in the subpath (defined by a prior call to moveto) does not correspond to the current point, this call will implicitly add a line segment from the current point to the first point in the subpath.
The current point is undefined after a call to closepath. The caller must call moveto to start a new subpath and establish the current point before calling either lineto, curveto, or closepath.
Adds a new bezier curve segment to the current subpath, using four control points. The current point in user space at the time the call is made is used as the starting point for the curve. (x1, y1) and (x2, y2) are used as control points defining the degree of curvature and magnitude of the curve, and (x3, y3) defines the end point. The current point is implicitly set to (x3, y3).
- Parameters
| x1 | IN The x-component for the first control point of the new bezier segment |
| y1 | IN The y-component for the first control point of the new bezier segment |
| x2 | IN The x-component for the second control point of the new bezier segment |
| y2 | IN The y-component for the second control point of the new bezier segment |
| x3 | IN The x-component for the end point of the new bezier segment |
| y3 | IN The y-component for the end point of the new bezier segment |
| virtual int32 IPathStorage::GetNumPathSegs | ( | | ) | |
| pure virtual |
Returns the number of segments in the path stored by this object
- Returns
- The number of segments in the stored path
| virtual void IPathStorage::GetPathInfo | ( | IOutlineInfo * | callBack | ) | |
| pure virtual |
Gets the path stored by this object using an IOutlineInfo glue object to capture the path.
- Parameters
| callBack | IN The outline info called back on as the path is gotten |
| virtual void IPathStorage::lineto | ( | const PMReal & | x, | | | const PMReal & | y | | ) | | |
| pure virtual |
Adds a line segment to the current subpath. The beginning of the segment is the current point in user space at the time the call is made. The end is (x, y). Implicitly sets the current point to (x, y).
- Parameters
| x | IN The x-component for the end point of the new line segment |
| y | IN The y-component for the end point of the new line segment |
| virtual void IPathStorage::moveto | ( | const PMReal & | x, | | | const PMReal & | y | | ) | | |
| pure virtual |
Starts a new subpath. The current point in user space is set to (x, y).
- Parameters
| x | IN The x-component of the new current point |
| y | IN The y-component of the new current point |
| virtual void IPathStorage::ReplayPath | ( | IViewPort * | dstPort | ) | |
| pure virtual |
Replays the path stored by this object into the specified viewport. Assumes that the viewport has an aggregated IGraphicsPort.
- Parameters
| dstPort | IN The port into which the path is played |
- See Also
- IGraphicsPort