DESY ACOP Beans Home

com.cosylab.gui.components.ledder
Class LedRendererOld

java.lang.Object
  extended by com.cosylab.gui.components.ledder.LedRendererOld

public class LedRendererOld
extends java.lang.Object

This is a specialized class for rendering LED icons. It is implemented as a minimal ray-tracer with specular lighting overlay rendering.

NOTE: Due to performance reasons this class is not thread-safe and should not be shared in multiple instances.

Version:
$id$
Author:
Ales Pucelj

Constructor Summary
LedRendererOld(int x, int y, int r, LedPaintParameters lpp)
           
 
Method Summary
 double[] getLight(double x, double y, double[] v)
           
 int[] renderSection(int x, int y, int w, int h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LedRendererOld

public LedRendererOld(int x,
                      int y,
                      int r,
                      LedPaintParameters lpp)
Parameters:
x - int
y - int
r - int
lpp - LedPaintParameters
Method Detail

getLight

public double[] getLight(double x,
                         double y,
                         double[] v)
Parameters:
x - double
y - double
v - double[]
Returns:
double[]

renderSection

public final int[] renderSection(int x,
                                 int y,
                                 int w,
                                 int h)
Parameters:
x - int
y - int
w - int
h - int
Returns:
int[]


Copyright © 2010. All Rights Reserved.