DrawKit
Vector and illustration framework for Mac OS X
Instance Methods | Class Methods | Protected Attributes | List of all members
DKSweptAngleGradient Class Reference
Inheritance diagram for DKSweptAngleGradient:
Inheritance graph
[legend]

Instance Methods

(void) - createGradientImageWithRect:
 
(void) - invalidateCache
 
(NSInteger- numberOfAngularSegments
 
(void) - preloadColours
 
(void) - setNumberOfAngularSegments:
 
- Instance Methods inherited from DKGradient
(DKColorStop *) - addColor:at:
 
(void) - addColorStop:
 
(CGFloat- angle
 Returns the gradient's current angle in radians. More...
 
(CGFloat- angleInDegrees
 Returns the gradient's current angle in degrees. More...
 
(NSColor *) - colorAtValue:
 Returns the computed Color for the gradient ramp expressed as a value from 0 to 1.0. More...
 
(NSArray *) - colorStops
 Returns the list of Color stops in the gradient. More...
 
(void) - convertOldKey:
 
(void) - convertOldKeys
 
(NSUInteger- countOfColorStops
 Returns the number of Color stops in the gradient. More...
 
(void) - fillContext:startingAtPoint:startRadius:endingAtPoint:endRadius:
 
(void) - fillPath:
 Fills the path using the gradient. More...
 
(void) - fillPath:centreOffset:
 Fills the path using the gradient. More...
 
(void) - fillPath:startingAtPoint:startRadius:endingAtPoint:endRadius:
 
(void) - fillRect:
 
(DKGradientBlending) - gradientBlending
 
(DKGradient *) - gradientByColorizingWithColor:
 Creates a copy of the gradient but colorizies it by substituting the hue from <color> More...
 
(DKGradientInterpolation) - gradientInterpolation
 Returns the interpolation algorithm for the gradient. More...
 
(DKGradientType) - gradientType
 
(DKGradient *) - gradientWithAlpha:
 Creates a copy of the gradient but sets the alpha vealue of all stop colours to <alpha> More...
 
(BOOL- hasRadialSettings
 
(void) - insertObject:inColorStopsAtIndex:
 
(NSPoint) - mapPoint:fromRect:
 
(NSPoint) - mapPoint:toRect:
 
(DKColorStop *) - objectInColorStopsAtIndex:
 Returns the the indexed Color stop. More...
 
(NSPoint) - radialEndingPoint
 
(CGFloat- radialEndingRadius
 
(NSPoint) - radialStartingPoint
 
(CGFloat- radialStartingRadius
 
(void) - removeAllColors
 Removes all Colors from the list of Colors. More...
 
(void) - removeColorStop:
 Removes a Color stop from the list of Colors. More...
 
(void) - removeLastColor
 Removes the last Color from he list of Colors. More...
 
(void) - removeObjectFromColorStopsAtIndex:
 
(void) - reverseColorStops
 Reverses the order of all the Color stops so "inverting" the gradient. More...
 
(void) - setAngle:
 Sets the gradient's current angle in radians. More...
 
(void) - setAngleInDegrees:
 Sets the angle of the gradient to the given angle. More...
 
(void) - setAngleWithoutNotifying:
 
(void) - setColorStops:
 Sets the list of Color stops in the gradient. More...
 
(void) - setGradientBlending:
 
(void) - setGradientInterpolation:
 
(void) - setGradientType:
 Sets the gradient's basic type. More...
 
(void) - setRadialEndingPoint:
 
(void) - setRadialEndingRadius:
 
(void) - setRadialStartingPoint:
 
(void) - setRadialStartingRadius:
 
(void) - setUpExtensionData
 
(void) - sortColorStops
 Sorts the Color stops into position order. More...
 
(NSImage *) - standardSwatchImage
 
(NSImage *) - swatchImageWithSize:withBorder:
 Returns an image of the current gradient for use in a UI, etc. More...
 
- 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 <NSCoding>
(void) - encodeWithCoder:
 
(id- initWithCoder:
 
- Instance Methods inherited from <NSCopying>
(id- copyWithZone:
 

Class Methods

(DKGradient *) + sweptAngleGradient
 
(DKGradient *) + sweptAngleGradientWithStartingColor:endingColor:
 
- Class Methods inherited from DKGradient
(DKGradient *) + aquaNormalGradient
 
(DKGradient *) + aquaPressedGradient
 
(DKGradient *) + aquaSelectedGradient
 
(DKGradient *) + defaultGradient
 Returns an instance of the default gradient (simple linear black to white) More...
 
(void) + drawShinyGradientInRect:withColour:
 
(DKGradient *) + gradientWithStartingColor:endingColor:
 Returns a linear gradient from Color c1 to c2. More...
 
(DKGradient *) + gradientWithStartingColor:endingColor:type:angle:
 Returns a gradient from Color c1 to c2 with given type and angle. More...
 
(DKGradient *) + sourceListSelectedGradient
 
(DKGradient *) + sourceListUnselectedGradient
 
(DKGradient *) + unifiedDarkGradient
 
(DKGradient *) + unifiedNormalGradient
 
(DKGradient *) + unifiedPressedGradient
 
(DKGradient *) + unifiedSelectedGradient
 
- 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:
 

Protected Attributes

BOOL m_ditherColours
 
CGContextRef m_sa_bitmap
 
NSPoint m_sa_centre
 
pix_intm_sa_colours
 
CGImageRef m_sa_image
 
NSInteger m_sa_img_width
 
NSInteger m_sa_segments
 
CGFloat m_sa_startAngle
 
- Protected Attributes inherited from DKGradient
DKGradientBlending m_blending
 
CGFunctionRef m_cbfunc
 
NSMutableArraym_colorStops
 
id m_extensionData
 
CGFloat m_gradAngle
 
DKGradientType m_gradType
 
DKGradientInterpolation m_interp
 

Method Documentation

- (void) createGradientImageWithRect: (NSRect rect
- (void) invalidateCache
- (NSInteger) numberOfAngularSegments
- (void) preloadColours
- (void) setNumberOfAngularSegments: (NSInteger ns
+ (DKGradient*) sweptAngleGradient
+ (DKGradient*) sweptAngleGradientWithStartingColor: (NSColor *)  c1
endingColor: (NSColor *)  c2 

Member Data Documentation

- (BOOL) m_ditherColours
protected
- (CGContextRef) m_sa_bitmap
protected
- (NSPoint) m_sa_centre
protected
- (pix_int*) m_sa_colours
protected
- (CGImageRef) m_sa_image
protected
- (NSInteger) m_sa_img_width
protected
- (NSInteger) m_sa_segments
protected
- (CGFloat) m_sa_startAngle
protected