PFHotspot Protocol Reference
| Declared in | PFView.h |
|---|
– setSize:
required method
Set the current size of the hotspot. Defaults to 1.0
- (void)setSize:(float)radiusParameters
radius |
Size as a radius. |
|---|
Discussion
Set the current size of the hotspot. Defaults to 1.0
Declared In
PFView.h
– setHitRadius:
required method
Set the current size of the hitspot of the hotspot. Defaults to 1.2 times the size of the hotspot radius.
- (void)setHitRadius:(float)radiusParameters
radius |
Size as a radius. |
|---|
Discussion
Set the current size of the hitspot of the hotspot. Defaults to 1.2 times the size of the hotspot radius.
Declared In
PFView.h
– setCoordinates:andX:andZ:
required method
Set the polar coordinates of the hotspot in degrees.
- (void)setCoordinates:(float)rotY andX:(float)rotX andZ:(float)rotZParameters
rotY |
rotation around the y-axis, moving the hotspot left or right on the screen (0 to 360 degrees). |
|---|---|
rotX |
rotation around the x-axis, moving the hotspot up or down on the screen (-90 to 90 degrees). |
rotZ |
rotation around the z-axis, not supported at the moment. |
Discussion
Set the polar coordinates of the hotspot in degrees.
Declared In
PFView.h
– setTag:
required method
Tag the hotspot with a int.
- (void)setTag:(int)tagParameters
tag |
The tag for the hotspot. |
|---|
Discussion
Tag the hotspot with a int.
Declared In
PFView.h
– getTag
required method
Retrieve the tag for the hotspot.
- (int)getTagDiscussion
Retrieve the tag for the hotspot.
Declared In
PFView.h
– addTarget:action:
required method
Set the selector to trigger when the hotspot is touched. The selector should be in the form -(void)method:(id
- (void)addTarget:(id)target action:(SEL)actionParameters
target |
The target class. |
|---|---|
action |
The selector to call. |
Discussion
Set the selector to trigger when the hotspot is touched. The selector should be in the form -(void)method:(id
Declared In
PFView.h
– setAlpha:
required method
Set an alpha value for the hotspot
- (void)setAlpha:(float)alphaParameters
alpha |
The alpha value from 0.0f to 1.0f. |
|---|
Discussion
Set an alpha value for the hotspot
Declared In
PFView.h
– getAlpha
required method
Retrieve the alpha value for the hotspot.
- (float)getAlphaDiscussion
Retrieve the alpha value for the hotspot.
Declared In
PFView.h
– animate
required method
Animate the hotspot. This is a fixed animation for now.
- (void)animateDiscussion
Animate the hotspot. This is a fixed animation for now.
Declared In
PFView.h
– getState
required method
Hotspot state
- (int)getStateDiscussion
Hotspot state
Declared In
PFView.h