public class AfMain extends Object
Constructor and Description |
---|
AfMain()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
benchmark(String benchmarkMode)
starts a benchmark in a separate thread
|
String[] |
getDeviceKeys()
used by the GUI, the GUI has no direct access to the aparapi stuffs
|
String |
getDeviceName()
used by the GUI to show the name of the device.
|
void |
goHome()
goHome.
|
void |
init(String _selectedDeviceKey,
int _W,
int _H)
initialize local iterations array and aparapiUtils
|
static void |
main(String[] args)
main.
|
void |
move(int x,
int y,
double zoomFactor)
go to new coordinates using x,y pixel as new center and a zoom factor.
|
void |
stopBenchmark()
stops the benchmark thread
|
void |
stopThread()
stopThread.
|
void |
threadGo()
threadGo.
|
void |
threadGo(double tx1,
double ty1,
double tx2,
double ty2,
double steps)
threadGo.
|
void |
threadGoHome(int steps)
threadGoHome.
|
public void init(String _selectedDeviceKey, int _W, int _H)
_W
- new image width_H
- new image height_selectedDeviceKey
- a String
object.public void move(int x, int y, double zoomFactor)
x
- new central pixel xy
- new central pixel yzoomFactor
- zoomFactor is relative to dimensions in complex planepublic void threadGoHome(int steps)
threadGoHome.
steps
- a int.public void goHome()
goHome.
public void stopThread()
stopThread.
public void threadGo()
threadGo.
public void threadGo(double tx1, double ty1, double tx2, double ty2, double steps)
threadGo.
tx1
- a double.ty1
- a double.tx2
- a double.ty2
- a double.steps
- a double.public void benchmark(String benchmarkMode)
benchmarkMode
- a String
object.public void stopBenchmark()
public String[] getDeviceKeys()
public String getDeviceName()
Copyright © 2021 Syncleus. All rights reserved.