|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITraceColourEffect
This interface is consumed and implemented by the IGraphTrace object. An ITraceColourEffect is called for each point/segment of a trace and is given the x and y graph values and control positions in pixels. These can be used in anyway to generate a colour to return to the rendering object.
The setXAxisValues and setAxisYValues methods are called to allow you to store the range of the axes the trace is on. This allows normalisations of values to change between max and mins of the axes.
Method Summary | |
---|---|
GWColour |
getPixelColour(int xPos,
int yPos,
float xVal,
float yVal)
The trace this effect relates to should call this function for each segment of the trace. |
void |
setXAxisValues(int axisLength,
float minValue,
float maxValue)
Accepts values relating to the axes the trace is being plotted on. |
void |
setYAxisValues(int axisLength,
float minValue,
float maxValue)
Accepts values relating to the axes the trace is being plotted on. |
Method Detail |
---|
GWColour getPixelColour(int xPos, int yPos, float xVal, float yVal)
xPos
- yPos
- xVal
- yVal
-
void setXAxisValues(int axisLength, float minValue, float maxValue)
axisLength
- minValue
- maxValue
- void setYAxisValues(int axisLength, float minValue, float maxValue)
axisLength
- minValue
- maxValue
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |