#include <RE_Server.h>

Public Member Functions | |
| RE_Server () | |
| virtual | ~RE_Server () |
| virtual char | initServer (char *data=0) |
| virtual void | flush () const =0 |
| void | setUseLock (int state) |
| int | getUseLock () const |
| virtual void | lock (const char *msg=0) |
| virtual void | unlock (const char *msg=0) |
| RE_IDType | getFocusWindow () const |
| void | setFocusWindow (RE_IDType wid) |
| int | meetsMinRes () |
| virtual bool | windowUnderCursor (RE_IDType wid, int x, int y) |
| virtual bool | getColorUnderCursor (float color[3]) |
| virtual Display * | getDisplay () const |
| virtual short | getWidth () const =0 |
| virtual short | getHeight () const =0 |
| virtual short | getWidthMM () const =0 |
| virtual short | getHeightMM () const =0 |
| virtual bool | GLMakeCurrent (OGLDrawable draw, RE_OGLContext context)=0 |
| virtual int | GLMakeCopyCurrent (OGLDrawable draw, RE_OGLContext sourceContext, RE_OGLContext targetContext)=0 |
| virtual void | GLSwapBuffers (RE_Window *currentWindow)=0 |
| virtual OGLDrawable | GLGetCurrentDrawable ()=0 |
| virtual void | GLWaitGL ()=0 |
| virtual int | getDragTolX () const |
| virtual int | getDragTolY () const |
| virtual fpreal64 | getDragDelay () const |
| virtual UT_DimRect | getWorkArea ()=0 |
| void | addCurrentMainWindow (RE_Window *win) |
| void | removeCurrentMainWindow (RE_Window *win) |
| Remove a window from the list of current main windows. | |
| RE_Window * | getCurrentMainWindow () const |
| RE_Window * | getFirstCurrentMainWindow () const |
| RE_Window * | newWindow (RE_DisplayMode mode, RE_WindowType type, RE_VisualType visType=RE_NORMAL_VIS, RE_WindowVisibility doOffScreen=RE_WINDOW_VISIBLE, bool alwaysOnTop=false) |
| Creates a new RE_Window, ready to be opened. | |
| RE_Render * | getContextMatching (RE_DisplayMode mode) const |
Static Public Member Functions | |
| static void | setMinRes (int xmin, int ymin) |
| static int | getMinXRes () |
| static int | getMinYRes () |
Protected Attributes | |
| RE_IDType | focusWindow |
Definition at line 32 of file RE_Server.h.
| RE_Server::RE_Server | ( | ) |
| virtual RE_Server::~RE_Server | ( | ) | [virtual] |
| void RE_Server::addCurrentMainWindow | ( | RE_Window * | win | ) |
Add a window to the list of current main windows. If it is already in the list, it will not be added again.
| virtual void RE_Server::flush | ( | ) | const [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual bool RE_Server::getColorUnderCursor | ( | float | color[3] | ) | [virtual] |
Reimplemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| RE_Render* RE_Server::getContextMatching | ( | RE_DisplayMode | mode | ) | const |
Returns current render context matching the mode passed in. All render contexts are tied to a specific drawable. This may return NULL if there are no render contexts currently created that match mode.
| RE_Window* RE_Server::getCurrentMainWindow | ( | ) | const |
Find the current main window that's focused, so you can attach dialog windows to it. If none is marked as focused, just returns the first window.
| virtual Display* RE_Server::getDisplay | ( | ) | const [inline, virtual] |
| virtual fpreal64 RE_Server::getDragDelay | ( | ) | const [inline, virtual] |
Definition at line 86 of file RE_Server.h.
| virtual int RE_Server::getDragTolX | ( | ) | const [inline, virtual] |
| virtual int RE_Server::getDragTolY | ( | ) | const [inline, virtual] |
| RE_Window* RE_Server::getFirstCurrentMainWindow | ( | ) | const |
Find the first current main window, regardless of whether it's focused. Used on Windows to ensure that all subwindows are made tool windows of at least the main Houdini window.
| RE_IDType RE_Server::getFocusWindow | ( | ) | const [inline] |
Definition at line 52 of file RE_Server.h.
| virtual short RE_Server::getHeight | ( | ) | const [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual short RE_Server::getHeightMM | ( | ) | const [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| static int RE_Server::getMinXRes | ( | ) | [inline, static] |
Definition at line 56 of file RE_Server.h.
| static int RE_Server::getMinYRes | ( | ) | [inline, static] |
Definition at line 57 of file RE_Server.h.
| int RE_Server::getUseLock | ( | ) | const [inline] |
Definition at line 47 of file RE_Server.h.
| virtual short RE_Server::getWidth | ( | ) | const [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual short RE_Server::getWidthMM | ( | ) | const [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual UT_DimRect RE_Server::getWorkArea | ( | ) | [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual OGLDrawable RE_Server::GLGetCurrentDrawable | ( | ) | [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual int RE_Server::GLMakeCopyCurrent | ( | OGLDrawable | draw, | |
| RE_OGLContext | sourceContext, | |||
| RE_OGLContext | targetContext | |||
| ) | [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual bool RE_Server::GLMakeCurrent | ( | OGLDrawable | draw, | |
| RE_OGLContext | context | |||
| ) | [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual void RE_Server::GLSwapBuffers | ( | RE_Window * | currentWindow | ) | [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual void RE_Server::GLWaitGL | ( | ) | [pure virtual] |
Implemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual char RE_Server::initServer | ( | char * | data = 0 |
) | [virtual] |
Reimplemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
| virtual void RE_Server::lock | ( | const char * | msg = 0 |
) | [virtual] |
Reimplemented in RE_XServer.
| int RE_Server::meetsMinRes | ( | ) |
| RE_Window* RE_Server::newWindow | ( | RE_DisplayMode | mode, | |
| RE_WindowType | type, | |||
| RE_VisualType | visType = RE_NORMAL_VIS, |
|||
| RE_WindowVisibility | doOffScreen = RE_WINDOW_VISIBLE, |
|||
| bool | alwaysOnTop = false | |||
| ) |
Creates a new RE_Window, ready to be opened.
| void RE_Server::removeCurrentMainWindow | ( | RE_Window * | win | ) |
Remove a window from the list of current main windows.
| void RE_Server::setFocusWindow | ( | RE_IDType | wid | ) |
| static void RE_Server::setMinRes | ( | int | xmin, | |
| int | ymin | |||
| ) | [static] |
| void RE_Server::setUseLock | ( | int | state | ) | [inline] |
For multi-threaded applications the "use lock" flag can be used to tell the windowing code to use exclusion locks if available.
Sub-classes should override and implement the lock and unlock methods. These should do nothing if the "use lock" flag is not set.
Definition at line 46 of file RE_Server.h.
| virtual void RE_Server::unlock | ( | const char * | msg = 0 |
) | [virtual] |
Reimplemented in RE_XServer.
| virtual bool RE_Server::windowUnderCursor | ( | RE_IDType | wid, | |
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Determine if the given window is currently under the mouse The current x,y mouse coordinates are optional under certain platforms
Reimplemented in RE_EGLServer, RE_NTServer, RE_OSXServer, and RE_XServer.
RE_IDType RE_Server::focusWindow [protected] |
Definition at line 122 of file RE_Server.h.
1.5.9