DrawKit
Vector and illustration framework for Mac OS X
Instance Methods | Class Methods | List of all members
DKFillPattern Class Reference

This object represents a pattern consisting of a repeated motif spaced out at intervals within a larger shape. More...

Inheritance diagram for DKFillPattern:
Inheritance graph
[legend]

Instance Methods

(CGFloat- angle
 
(CGFloat- angleInDegrees
 
(BOOL- angleIsRelativeToObject
 
(BOOL- drawingOfClippedElementsSupressed
 
(void) - drawPatternInPath:
 
(void) - fillRect:
 
(CGFloat- motifAngle
 
(CGFloat- motifAngleInDegrees
 
(BOOL- motifAngleIsRelativeToPattern
 
(CGFloat- motifAngleRandomness
 
(NSSize) - patternAlternateOffset
 
(void) - setAngle:
 
(void) - setAngleInDegrees:
 
(void) - setAngleIsRelativeToObject:
 
(void) - setDrawingOfClippedElementsSupressed:
 
(void) - setMotifAngle:
 
(void) - setMotifAngleInDegrees:
 
(void) - setMotifAngleIsRelativeToPattern:
 
(void) - setMotifAngleRandomness:
 
(void) - setPatternAlternateOffset:
 
- Instance Methods inherited from DKPathDecorator
(NSImage *) - image
 
(id- initWithImage:
 
(CGFloat- interval
 
(CGFloat- lateralOffset
 
(BOOL- lateralOffsetAlternates
 
(CGFloat- leaderDistance
 
(CGFloat- leadInAndOutLengthProportion
 
(CGFloat- leadInLength
 
(CGFloat- leadOutLength
 
(BOOL- normalToPath
 
(CGFloat- rampFunction:
 
(CGFloat- scale
 
(CGFloat- scaleRandomness
 
(void) - setImage:
 
(void) - setInterval:
 
(void) - setLateralOffset:
 
(void) - setLateralOffsetAlternates:
 
(void) - setLeaderDistance:
 
(void) - setLeadInAndOutLengthProportion:
 
(void) - setLeadInLength:
 
(void) - setLeadOutLength:
 
(void) - setNormalToPath:
 
(void) - setPDFImageRep:
 
(void) - setScale:
 
(void) - setScaleRandomness:
 
(void) - setUpCache
 
(void) - setUsesChainMethod:
 
(void) - setWobblyness:
 
(BOOL- usesChainMethod
 
(CGFloat- wobblyness
 
- Instance Methods inherited from DKRasterizer
(DKClippingOption) - clipping
 Whether the rasterizer's effect is clipped to the path or not, and if so, which side. More...
 
(DKRastGroup *) - container
 Returns the immediate container of this object, if owned by a group. More...
 
(BOOL- copyToPasteboard:
 
(BOOL- enabled
 
(BOOL- isValid
 
(NSString *) - label
 
(NSString *) - name
 
(NSBezierPath *) - renderingPathForObject:
 Returns the path to render given the object doing the rendering. More...
 
(void) - setClipping:
 
(void) - setClippingWithoutNotifying:
 
(void) - setContainer:
 Sets the immediate container of this object. More...
 
(void) - setEnabled:
 
(void) - setName:
 
(NSString *) - styleScript
 
- Instance Methods inherited from GCObservableObject
(NSString *) - actionNameForKeyPath:
 
(NSString *) - actionNameForKeyPath:changeKind:
 
(NSArray *) - oldArrayValueForKeyPath:
 
(void) - registerActionNames
 
(void) - sendInitialValuesForAllPropertiesToObserver:context:
 
(void) - setActionName:forKeyPath:
 
(BOOL- setUpKVOForObserver:
 
(void) - setUpObservables:forObserver:
 
(BOOL- tearDownKVOForObserver:
 
(void) - tearDownObservables:forObserver:
 
- Instance Methods inherited from NSObject
(NSString *) - address
 
(DKStyleRegistry *) - applicationWillReturnStyleRegistry
 
(BOOL- canBeUsedWithSelectionTool
 
(id- categoryManager:shouldReplaceObject:withObject:
 
(Class- classForCoder
 
(NSColor *) - colorValue
 
(NSColor *) - colourValue
 
(id- copy
 
(void) - dealloc
 
(id- deepCopy
 
(NSDictionary *) - dimensionValuesForArrowStroke:
 
(CGFloat- drawing:convertDistanceToExternalCoordinates:
 
(NSPoint) - drawing:convertLocationToExternalCoordinates:
 
(void) - drawing:didDrawRect:inView:
 
(void) - drawing:willDrawRect:inView:
 
(NSString *) - drawing:willReturnAbbreviationForUnit:
 
(NSString *) - drawing:willReturnFormattedCoordinateForDistance:
 
(CGFloat- drawingWillReturnUnitToPointsConversonFactor:
 
(void) - finalize
 
(NSString *) - hexString
 
(void) - hotspot:didEndTrackingWithEvent:inView:
 
(void) - hotspot:isTrackingWithEvent:inView:
 
(void) - hotspot:willBeginTrackingWithEvent:inView:
 
(NSData *) - imageData
 
(NSImage *) - imageResourceNamed:
 
(id- init
 
(id- initWithExpression:
 
(id- instantiateObjectWithShortName:parameters:
 
(BOOL- isLiteralValue
 
(void) - layoutManager:willPlaceGlyphAtIndex:atLocation:pathAngle:yOffset:
 
(void) - menuItem:wasAddedForObject:inCategory:
 
(BOOL- moveObjectTo:position:slope:userInfo:
 
(id- mutableCopy
 
(void) - oneShotComplete
 
(void) - oneShotHasReached:
 
(void) - oneShotWillBegin
 
(void) - path:elementIndex:type:points:subPathIndex:subPathClosed:contextInfo:
 
(id- placeLinkFromPoint:toPoint:onPath:linkNumber:userInfo:
 
(id- placeObjectAtPoint:onPath:position:slope:userInfo:
 
(NSPoint) - point
 
(NSPoint) - pointForTextLayout
 
(DKStyle *) - registry:shouldReplaceStyle:withStyle:
 
(NSBezierPath *) - renderer:willRenderPath:
 
(void) - routeFinder:progressHasReached:
 
(void) - setValue:forNumericParameter:
 
(NSString *) - stringValue
 
(CGFloat- taperFactorAtDistance:onPath:ofLength:
 
(void) - toolDidPerformUndoableAction:
 
(void) - toolWillPerformUndoableAction:
 
(NSURL *) - url
 
- Instance Methods inherited from <NSObject>
(NSString *) - description
 
(NSUInteger- hash
 
(BOOL- isEqual:
 
- Instance Methods inherited from <NSKeyValueBindingCreation>
(void) - bind:toObject:withKeyPath:options:
 
(NSArray *) - exposedBindings
 
(NSDictionary *) - infoForBinding:
 
(NSArray *) - optionDescriptionsForBinding:
 
(void) - unbind:
 
(Class- valueClassForBinding:
 
- Instance Methods inherited from <DKRasterizer>
(NSSize) - extraSpaceNeeded
 
(BOOL- isFill
 
(void) - render:
 
(void) - renderPath:
 
- Instance Methods inherited from <NSCoding>
(void) - encodeWithCoder:
 
(id- initWithCoder:
 
- Instance Methods inherited from <NSCopying>
(id- copyWithZone:
 

Class Methods

(DKFillPattern *) + defaultPattern
 
(DKFillPattern *) + fillPatternWithImage:
 
- Class Methods inherited from DKPathDecorator
(DKPathDecorator *) + pathDecoratorWithImage:
 
- Class Methods inherited from DKRasterizer
(DKRasterizer *) + rasterizerFromPasteboard:
 
- Class Methods inherited from GCObservableObject
(NSString *) + actionNameForKeyPath:objClass:
 
(NSArray *) + observableKeyPaths
 
(void) + registerActionName:forKeyPath:objClass:
 
- Class Methods inherited from NSObject
(id+ alloc
 
(Class+ class
 
(void) + initialize
 
(void) + load
 
(id+ new
 
- Class Methods inherited from <NSKeyValueBindingCreation>
(void) + exposeBinding:
 

Additional Inherited Members

- Protected Attributes inherited from DKPathDecorator
NSUInteger mPlacementCount
 
NSMutableArraymScaleRandCache
 
NSMutableArraymWobbleCache
 

Detailed Description

This object represents a pattern consisting of a repeated motif spaced out at intervals within a larger shape.

Author
Contributions from the community; see CONTRIBUTORS.md
Date
2005-2015

This object represents a pattern consisting of a repeated motif spaced out at intervals within a larger shape.

This subclasses DKPathDecorator which carries out the bulk of the work - it stores the image and caches it, this just sets up the path clipping and calls the rendering method for each location of the repeating pattern.

Method Documentation

- (CGFloat) angle
- (CGFloat) angleInDegrees
- (BOOL) angleIsRelativeToObject
+ (DKFillPattern*) defaultPattern
- (BOOL) drawingOfClippedElementsSupressed
- (void) drawPatternInPath: (NSBezierPath *)  aPath
+ (DKFillPattern*) fillPatternWithImage: (NSImage *)  image
- (void) fillRect: (NSRect rect
- (CGFloat) motifAngle
- (CGFloat) motifAngleInDegrees
- (BOOL) motifAngleIsRelativeToPattern
- (CGFloat) motifAngleRandomness
- (NSSize) patternAlternateOffset
- (void) setAngle: (CGFloat radians
- (void) setAngleInDegrees: (CGFloat degrees
- (void) setAngleIsRelativeToObject: (BOOL relAngle
- (void) setDrawingOfClippedElementsSupressed: (BOOL suppress
- (void) setMotifAngle: (CGFloat radians
- (void) setMotifAngleInDegrees: (CGFloat degrees
- (void) setMotifAngleIsRelativeToPattern: (BOOL mrel
- (void) setMotifAngleRandomness: (CGFloat maRand
- (void) setPatternAlternateOffset: (NSSize)  altOffset