Package org.robwork.sdurws
Class RobWorkStudioApp
- java.lang.Object
-
- org.robwork.sdurws.RobWorkStudioApp
-
public class RobWorkStudioApp extends java.lang.Object
a RobWorkStudio main application which may be instantiated in its own thread.
The app can be started with either a call to the run() function or the start() function depending
on weather you want to run it from current thread or start it up in another tread.
For convinienve when running the app from the main tread the macros
RWS_START(RobWorkStudioApp app) and RWS_END() can be used to capsulate code to run in a new
thread
-
-
Constructor Summary
Constructors Constructor Description RobWorkStudioApp()
constructorRobWorkStudioApp(long cPtr, boolean cMemoryOwn)
RobWorkStudioApp(java.lang.String args)
constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close RobWorkStudio.void
delete()
static long
getCPtr(RobWorkStudioApp obj)
RobWorkStudioPtr
getRobWorkStudio()
get handle to the running RobWorkStudio instance.
Note: do not directly change Qt visualization objects, this will
produce segfaults.boolean
isRunning()
check if RobwWrkStudio is runningint
run()
start RobWorkStudio in this thread.void
start()
start RobWorkStudio in its own thread, the function is blocking until rws is up and
running
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(RobWorkStudioApp obj)
-
delete
public void delete()
-
start
public void start()
start RobWorkStudio in its own thread, the function is blocking until rws is up and
running
-
run
public int run()
start RobWorkStudio in this thread. Notice this method call will
block until RobWorkStudio is exited.- Returns:
- zero if exited normally.
-
isRunning
public boolean isRunning()
check if RobwWrkStudio is running- Returns:
- true if running false otherwise
-
close
public void close()
Close RobWorkStudio. Blocking until rws is closed. This might take awaile.
-
getRobWorkStudio
public RobWorkStudioPtr getRobWorkStudio()
get handle to the running RobWorkStudio instance.
Note: do not directly change Qt visualization objects, this will
produce segfaults. Instead use Qt events and the post* handles on
RobWorkStudio interface.- Returns:
- handle to RobWorkStudio
-
-