![]() |
An open-source, flexible 3D physical simulation framework
|
Widget with OpenGL context and event handling. More...
#include <GraphicsWidget.h>
Public Member Functions | |
GraphicsWidget (void *parent, osg::Group *scene, unsigned long id, bool hasRTTWidget=0, int f=0, GraphicsManager *gm=0) | |
~GraphicsWidget () | |
void | initializeOSG (void *data=0, GraphicsWidget *shared=0, int width=0, int height=0) |
unsigned long | getID (void) |
mars::utils::Vector | getMousePos () |
returns actual mouse position More... | |
virtual void | setWGeometry (int top, int left, int width, int height) |
virtual void | getWGeometry (int *top, int *left, int *width, int *height) const |
void | setFullscreen (bool val, int display=1) |
osgViewer::View * | getView (void) |
interfaces::GraphicsCameraInterface * | getCameraInterface (void) const |
osg::ref_ptr< osg::Camera > | getMainCamera () |
osgViewer::GraphicsWindow * | getGraphicsWindow () |
const osgViewer::GraphicsWindow * | getGraphicsWindow () const |
osg::Texture2D * | getRTTTexture (void) |
osg::Texture2D * | getRTTDepthTexture (void) |
osg::Image * | getRTTImage (void) |
osg::Image * | getRTTDepthImage (void) |
std::vector< osg::Node * > | getPickedObjects () |
void | clearSelectionVectors (void) |
void | setGraphicsEventHandler (interfaces::GraphicsEventInterface *graphicsEventHandler) |
void | addGraphicsEventHandler (interfaces::GraphicsEventInterface *graphicsEventHandler) |
virtual osgWidget::WindowManager * | getOrCreateWindowManager () |
if you want to create your own gui without this interface, feel free to do so More... | |
void | setHUD (HUD *theHUD) |
void | addHUDElement (HUDElement *elem) |
void | removeHUDElement (HUDElement *elem) |
void | switchHudElemtVis (int num_element) |
void | setClearColor (mars::utils::Color color) |
sets the clear color More... | |
const mars::utils::Color & | getClearColor () const |
void | setGrabFrames (bool grab) |
void | setSaveFrames (bool grab) |
virtual void * | getWidget () |
virtual void | showWidget () |
virtual void | updateView () |
virtual int | createBox (const std::string &name, int type=0) |
Creates an osgWidget::Box. More... | |
virtual int | createCanvas (const std::string &name) |
Creates an osgWidget::Canvas. More... | |
virtual int | createFrame (const std::string &name, float x1, float y1, float x2, float y2) |
creates a Frame that basically holds on window. More... | |
virtual bool | showWindow (int wndId) |
add the window with the id to the windowmanager More... | |
virtual bool | hideWindow (int wndId) |
removes the window from the windowmanager More... | |
virtual bool | deleteWindow (int wndId) |
deletes your window and all containing widgets More... | |
virtual bool | deleteWidget (int wdgId) |
deletes one widget and his callbacks More... | |
virtual void | setName (const std::string &name) |
virtual const std::string | getName () const |
virtual bool | windowSetPosition (int wndId, float x, float y) |
sets the position of a window on the screen More... | |
virtual int | createWidget (const std::string &name, float sizex, float sizey) |
creates a basic widget, within the size you want it to be More... | |
virtual bool | setColor (int id, float r, float g, float b, float a) |
sets the color of a widget or a window More... | |
virtual bool | addWidgetToWindow (int window, int widget) |
adds window to a widget. More... | |
virtual bool | addWidgetToWindow (int window, int widget, float x, float y) |
virtual bool | addWidgetToWindow (int window, int widget, int x, int y) |
virtual int | createLabel (const std::string &name, const std::string &text) |
creates a label,a widget with text in it. More... | |
virtual int | createInput (const std::string &name, const std::string &text, int count) |
nearly like label, but you are able to input thinks into it More... | |
virtual bool | setLabel (int id, const std::string &text) |
sets the text of a lable More... | |
virtual bool | setFont (int id, const std::string &fontname) |
should be clear what does this mean. More... | |
virtual bool | setFontColor (int id, float r, float g, float b, float a) |
virtual bool | setFontSize (int id, int size) |
virtual bool | createStyle (const std::string &name, const std::string &style) |
creates style, that you can apply to a widget or window, in order to set a lot of attributes, that are maybe not supported in this api More... | |
virtual bool | setStyle (int id, const std::string &styleName) |
sets a style to a window or widget, that you created before with createStyle More... | |
virtual bool | setSize (int id, float x, float y) |
sets the size of a widget More... | |
virtual bool | addMousePushEventCallback (int id, guiClickCallBack function, guiClickCallBackBind *bindptr=0) |
used to add callback to a a widget. More... | |
virtual bool | addMouseReleaseEventCallback (int id, guiClickCallBack function, guiClickCallBackBind *bindptr=0) |
virtual bool | addMouseEnterEventCallback (int id, guiClickCallBack function, guiClickCallBackBind *bindptr=0) |
virtual bool | addMouseLeaveEventCallback (int id, guiClickCallBack function, guiClickCallBackBind *bindptr=0) |
bool | addEventToWidget (int id, guiClickCallBack function, guiClickCallBackBind *bindptr, osgWidget::EventType type) |
virtual bool | setImage (int id, const std::string &path) |
sets the image of a widget More... | |
virtual int | createTable (const std::string &name, int row, int colums) |
An osgWidget::Table provides a basic grid layout. More... | |
virtual bool | setLayer (int id, int layer, int offset=0) |
sets the layer of a widget, please use the Layer enum for this More... | |
virtual bool | getLayer (int id, int &layer) |
returns you the current layer More... | |
virtual bool | setAlignHorizontal (int id, int h) |
sets the alignment for a widget, use the enums for this More... | |
virtual bool | setAlignVertical (int id, int v) |
virtual bool | getAlignHorizontal (int id, int &h) |
virtual bool | getAlignVertical (int id, int &v) |
virtual bool | setAnchorVertical (int id, int va) |
like alignment but for windows, use also the same enums for this More... | |
virtual bool | setAnchorHorizontal (int id, int ha) |
virtual bool | setCanFill (int id, bool state) |
virtual bool | setShadow (int id, float intensity) |
virtual bool | addSize (int id, float x, float y) |
add bogus size to your widget More... | |
virtual bool | addColor (int id, float r, float g, float b, float a) |
add color to setColor. More... | |
virtual void | getImageData (char *buffer, int &width, int &height) |
This function copies the image data in the given buffer. More... | |
virtual void | getImageData (void **data, int &width, int &height) |
virtual void | getRTTDepthData (float *buffer, int &width, int &height) |
This function copies the depth image in the given buffer. More... | |
virtual void | getRTTDepthData (float **data, int &width, int &height) |
virtual osg::Group * | getScene () |
virtual void | setScene (osg::Group *s) |
virtual void | setHUDViewOffsets (double x1, double y1, double x2, double y2) |
virtual void | setupDistortion (double factor) |
void | grabFocus () |
void | unsetFocus () |
![]() | |
virtual | ~GraphicsWindowInterface () |
![]() | |
GraphicsGuiInterface () | |
virtual | ~GraphicsGuiInterface () |
Protected Types | |
typedef std::map< int, osg::ref_ptr< osgWidget::Window > > | WindowIdMapType |
typedef std::map< int, osg::ref_ptr< osgWidget::Widget > > | WidgetIdMapType |
typedef std::pair< guiClickCallBack, std::tr1::shared_ptr< guiClickCallBackBind > > | WidgetCallBackPairType |
typedef std::list< WidgetCallBackPairType > | WidgetCallBackList |
typedef std::map< int, WidgetCallBackList > | WidgetCallBackMapType |
Protected Member Functions | |
bool | manageClickEvent (osgWidget::Event &event) |
osgWidget::Window * | getWindowById (int wndId) |
osgWidget::Widget * | getWidgetById (int wdId) |
int | addOsgWidget (osgWidget::Widget *wid) |
int | addOsgWindow (osgWidget::Window *wnd) |
void | applyResize () |
Protected Attributes | |
int | widgetWidth |
int | widgetHeight |
int | widgetX |
int | widgetY |
std::string | name |
osgWidget::WindowManager * | _osgWidgetWindowManager |
WindowIdMapType | _osgWindowIdMap |
WidgetIdMapType | _osgWidgetIdMap |
WidgetCallBackMapType | _widgetCallBackMap |
unsigned int | _osgWidgetWindowCnt |
osg::ref_ptr< osgViewer::View > | view |
osg::Group * | scene |
bool | isRTTWidget |
osg::ref_ptr< osgViewer::GraphicsWindow > | graphicsWindow |
GraphicsCamera * | graphicsCamera |
std::vector< interfaces::GraphicsEventInterface * > | graphicsEventHandler |
HUD * | myHUD |
osg::ref_ptr< osg::Camera > | hudCamera |
PostDrawCallback * | postDrawCallback |
GraphicsManager * | gm |
unsigned long | widgetID |
bool | hasFocus |
Private Types | |
enum | PickMode { DISABLED, STANDARD, FORCE_ADD, FORCE_REMOVE, SINGLE } |
Private Member Functions | |
virtual void | initialize () |
virtual osg::ref_ptr< osg::GraphicsContext > | createWidgetContext (void *parent, osg::ref_ptr< osg::GraphicsContext::Traits > traits) |
void | createContext (void *parent, GraphicsWidget *shared, int width, int height) |
bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
bool | handleKeyDownEvent (const osgGA::GUIEventAdapter &ea) |
bool | handleKeyUpEvent (const osgGA::GUIEventAdapter &ea) |
bool | handlePushEvent (const osgGA::GUIEventAdapter &ea) |
bool | handleMoveEvent (const osgGA::GUIEventAdapter &ea) |
bool | handleDragEvent (const osgGA::GUIEventAdapter &ea) |
bool | handleScrollEvent (const osgGA::GUIEventAdapter &ea) |
bool | handleResizeEvent (const osgGA::GUIEventAdapter &ea) |
bool | handleReleaseEvent (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
void | sendKeyDownEvent (const osgGA::GUIEventAdapter &ea) |
void | sendKeyUpEvent (const osgGA::GUIEventAdapter &ea) |
void | translateKey (int &key, unsigned int &mod) |
bool | pick (const double x, const double y) |
virtual void | setWidgetFullscreen (bool val) |
Private Attributes | |
utils::Color | clearColor |
bool | isFullscreen |
int | mouseMask |
bool | isStereoDisplay |
float | cameraEyeSeparation |
bool | isHUDShown |
bool | isMouseButtonDown |
bool | isMouseMoving |
int | mouseX |
int | mouseY |
osg::ref_ptr< osg::Texture2D > | rttTexture |
osg::ref_ptr< osg::Image > | rttImage |
osg::ref_ptr< osg::Texture2D > | rttDepthTexture |
osg::ref_ptr< osg::Image > | rttDepthImage |
std::vector< osg::Node * > | pickedObjects |
PickMode | pickmode |
Additional Inherited Members | |
![]() | |
enum | Layer { LAYER_TOP = 100, LAYER_HIGH = 75, LAYER_MIDDLE = 50, LAYER_LOW = 25, LAYER_BG = 0 } |
use this to define the layer, if you set it More... | |
enum | VerticalAlignment { VA_CENTER, VA_TOP, VA_BOTTOM } |
used for setAlignVertical and and setAnchorVertical More... | |
enum | HorizontalAlignment { HA_CENTER, HA_LEFT, HA_RIGHT } |
use this for setAnchorHorizontal and setAlignHorizontal More... | |
typedef void(* | guiClickCallBack) (double, double) |
callback declaration for simple callback More... | |
typedef std::tr1::function< void(double, double)> | guiClickCallBackBind |
declaration for the binding for more sophisticated callback More... | |
Widget with OpenGL context and event handling.
Definition at line 61 of file GraphicsWidget.h.
|
protected |
Definition at line 240 of file GraphicsWidget.h.
|
protected |
Definition at line 241 of file GraphicsWidget.h.
|
protected |
Definition at line 238 of file GraphicsWidget.h.
|
protected |
Definition at line 232 of file GraphicsWidget.h.
|
protected |
Definition at line 230 of file GraphicsWidget.h.
|
private |
Enumerator | |
---|---|
DISABLED | |
STANDARD | |
FORCE_ADD | |
FORCE_REMOVE | |
SINGLE |
Definition at line 307 of file GraphicsWidget.h.
mars::graphics::GraphicsWidget::GraphicsWidget | ( | void * | parent, |
osg::Group * | scene, | ||
unsigned long | id, | ||
bool | hasRTTWidget = 0 , |
||
int | f = 0 , |
||
GraphicsManager * | gm = 0 |
||
) |
Definition at line 64 of file GraphicsWidget.cpp.
mars::graphics::GraphicsWidget::~GraphicsWidget | ( | ) |
Definition at line 96 of file GraphicsWidget.cpp.
|
virtual |
add color to setColor.
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 522 of file GraphicsWidget.cpp.
bool mars::graphics::GraphicsWidget::addEventToWidget | ( | int | id, |
guiClickCallBack | function, | ||
guiClickCallBackBind * | bindptr, | ||
osgWidget::EventType | type | ||
) |
Definition at line 604 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1018 of file GraphicsWidget.cpp.
void mars::graphics::GraphicsWidget::addHUDElement | ( | HUDElement * | elem | ) |
Definition at line 1037 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 647 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 651 of file GraphicsWidget.cpp.
|
virtual |
used to add callback to a a widget.
use the first callback parameter for simple function call, if this is not what you are searching for, because you want to call the member function of a instance, feel free to use second parameter and set first to NULL
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 641 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 644 of file GraphicsWidget.cpp.
|
protected |
Definition at line 416 of file GraphicsWidget.cpp.
|
protected |
Definition at line 108 of file GraphicsWidget.cpp.
|
virtual |
add bogus size to your widget
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 513 of file GraphicsWidget.cpp.
|
virtual |
adds window to a widget.
if you remember the different window types (table, canvas, box) their properties come into play here.
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 401 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 386 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 343 of file GraphicsWidget.cpp.
|
protected |
Definition at line 1233 of file GraphicsWidget.cpp.
void mars::graphics::GraphicsWidget::clearSelectionVectors | ( | void | ) |
Definition at line 1066 of file GraphicsWidget.cpp.
|
virtual |
Creates an osgWidget::Box.
The parameter are for the type, how the box will order the widgets. Types are VERTICAL = 0 and HORIZONTAL = 1 A Box is the most basic window, that contain your widgets
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 681 of file GraphicsWidget.cpp.
|
virtual |
Creates an osgWidget::Canvas.
In a canvas you can put your widgets where ever you want. This means if you add a widget to the canvas you have to provide the coordinates.
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 655 of file GraphicsWidget.cpp.
|
private |
Definition at line 802 of file GraphicsWidget.cpp.
|
virtual |
creates a Frame that basically holds on window.
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 668 of file GraphicsWidget.cpp.
|
virtual |
nearly like label, but you are able to input thinks into it
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 256 of file GraphicsWidget.cpp.
|
virtual |
creates a label,a widget with text in it.
Don't forget to set the font color and maybe other imported thinks for you after creation
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 262 of file GraphicsWidget.cpp.
|
virtual |
creates style, that you can apply to a widget or window, in order to set a lot of attributes, that are maybe not supported in this api
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 161 of file GraphicsWidget.cpp.
|
virtual |
An osgWidget::Table provides a basic grid layout.
When adding the widget to the table you have to pass the place in the table as well.
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 661 of file GraphicsWidget.cpp.
|
virtual |
creates a basic widget, within the size you want it to be
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 429 of file GraphicsWidget.cpp.
|
privatevirtual |
Reimplemented in mars::graphics::QtOsgMixGraphicsWidget.
Definition at line 727 of file GraphicsWidget.cpp.
|
virtual |
deletes one widget and his callbacks
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 217 of file GraphicsWidget.cpp.
|
virtual |
deletes your window and all containing widgets
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 233 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 303 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 312 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1022 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1088 of file GraphicsWidget.cpp.
osgViewer::GraphicsWindow * mars::graphics::GraphicsWidget::getGraphicsWindow | ( | ) |
Definition at line 978 of file GraphicsWidget.cpp.
const osgViewer::GraphicsWindow * mars::graphics::GraphicsWidget::getGraphicsWindow | ( | ) | const |
Definition at line 981 of file GraphicsWidget.cpp.
unsigned long mars::graphics::GraphicsWidget::getID | ( | void | ) |
Definition at line 959 of file GraphicsWidget.cpp.
|
virtual |
This function copies the image data in the given buffer.
It assumes that the buffer ist correctly initalized with a char array of the size width * height * 4
buffer | buffer in which the image gets copied |
width | returns the width of the image |
height | returns the height of the image |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1101 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1119 of file GraphicsWidget.cpp.
|
virtual |
returns you the current layer
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 322 of file GraphicsWidget.cpp.
osg::ref_ptr< osg::Camera > mars::graphics::GraphicsWidget::getMainCamera | ( | ) |
Definition at line 985 of file GraphicsWidget.cpp.
mars::utils::Vector mars::graphics::GraphicsWidget::getMousePos | ( | ) |
returns actual mouse position
Definition at line 989 of file GraphicsWidget.cpp.
|
inlinevirtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 132 of file GraphicsWidget.h.
|
virtual |
if you want to create your own gui without this interface, feel free to do so
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 688 of file GraphicsWidget.cpp.
std::vector< osg::Node * > mars::graphics::GraphicsWidget::getPickedObjects | ( | ) |
Definition at line 1078 of file GraphicsWidget.cpp.
|
virtual |
This function copies the depth image in the given buffer.
It assumes that the buffer ist correctly initalized with a double array of the size width * height
buffer | buffer in which the image gets copied |
width | returns the width of the image |
height | returns the height of the image |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1131 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1159 of file GraphicsWidget.cpp.
osg::Image * mars::graphics::GraphicsWidget::getRTTDepthImage | ( | void | ) |
Definition at line 1062 of file GraphicsWidget.cpp.
osg::Texture2D * mars::graphics::GraphicsWidget::getRTTDepthTexture | ( | void | ) |
Definition at line 1054 of file GraphicsWidget.cpp.
osg::Image * mars::graphics::GraphicsWidget::getRTTImage | ( | void | ) |
Definition at line 1058 of file GraphicsWidget.cpp.
osg::Texture2D * mars::graphics::GraphicsWidget::getRTTTexture | ( | void | ) |
Definition at line 1050 of file GraphicsWidget.cpp.
|
inlinevirtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 199 of file GraphicsWidget.h.
osgViewer::View * mars::graphics::GraphicsWidget::getView | ( | void | ) |
Definition at line 963 of file GraphicsWidget.cpp.
|
inlinevirtual |
Reimplemented in mars::graphics::QtOsgMixGraphicsWidget.
Definition at line 78 of file GraphicsWidget.h.
|
inlinevirtual |
Reimplemented in mars::graphics::QtOsgMixGraphicsWidget.
Definition at line 114 of file GraphicsWidget.h.
|
protected |
Definition at line 451 of file GraphicsWidget.cpp.
|
protected |
Definition at line 459 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1092 of file GraphicsWidget.cpp.
|
private |
Definition at line 1170 of file GraphicsWidget.cpp.
|
private |
Definition at line 1437 of file GraphicsWidget.cpp.
|
private |
Definition at line 1310 of file GraphicsWidget.cpp.
|
private |
Definition at line 1333 of file GraphicsWidget.cpp.
|
private |
Definition at line 1451 of file GraphicsWidget.cpp.
|
private |
Definition at line 1407 of file GraphicsWidget.cpp.
|
private |
Definition at line 1256 of file GraphicsWidget.cpp.
|
private |
Definition at line 1247 of file GraphicsWidget.cpp.
|
private |
Definition at line 1458 of file GraphicsWidget.cpp.
|
virtual |
removes the window from the windowmanager
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 207 of file GraphicsWidget.cpp.
|
inlineprivatevirtual |
Reimplemented in mars::graphics::QtOsgMixGraphicsWidget.
Definition at line 310 of file GraphicsWidget.h.
void mars::graphics::GraphicsWidget::initializeOSG | ( | void * | data = 0 , |
GraphicsWidget * | shared = 0 , |
||
int | width = 0 , |
||
int | height = 0 |
||
) |
Definition at line 758 of file GraphicsWidget.cpp.
|
protected |
Definition at line 553 of file GraphicsWidget.cpp.
|
private |
Definition at line 1757 of file GraphicsWidget.cpp.
void mars::graphics::GraphicsWidget::removeHUDElement | ( | HUDElement * | elem | ) |
Definition at line 1041 of file GraphicsWidget.cpp.
|
private |
Definition at line 1501 of file GraphicsWidget.cpp.
|
private |
Definition at line 1468 of file GraphicsWidget.cpp.
|
virtual |
sets the alignment for a widget, use the enums for this
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 286 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 294 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 277 of file GraphicsWidget.cpp.
|
virtual |
like alignment but for windows, use also the same enums for this
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 268 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 494 of file GraphicsWidget.cpp.
|
virtual |
sets the clear color
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1082 of file GraphicsWidget.cpp.
|
virtual |
sets the color of a widget or a window
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 435 of file GraphicsWidget.cpp.
|
virtual |
should be clear what does this mean.
Example: setFont(id,"fonts/arial.ttf"); setFontSize(id,10); setColor(id, 0.8f, 0.8f, 0.8f, 0.6f);
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 125 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 137 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 149 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 993 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1070 of file GraphicsWidget.cpp.
void mars::graphics::GraphicsWidget::setGraphicsEventHandler | ( | interfaces::GraphicsEventInterface * | graphicsEventHandler | ) |
Definition at line 1014 of file GraphicsWidget.cpp.
void mars::graphics::GraphicsWidget::setHUD | ( | HUD * | theHUD | ) |
Definition at line 1028 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1786 of file GraphicsWidget.cpp.
|
virtual |
sets the image of a widget
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 580 of file GraphicsWidget.cpp.
|
virtual |
sets the text of a lable
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 540 of file GraphicsWidget.cpp.
|
virtual |
sets the layer of a widget, please use the Layer enum for this
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 331 of file GraphicsWidget.cpp.
|
inlinevirtual |
Definition at line 128 of file GraphicsWidget.h.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1074 of file GraphicsWidget.cpp.
|
inlinevirtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 202 of file GraphicsWidget.h.
|
virtual |
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 502 of file GraphicsWidget.cpp.
|
virtual |
sets the size of a widget
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 172 of file GraphicsWidget.cpp.
|
virtual |
sets a style to a window or widget, that you created before with createStyle
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 189 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 940 of file GraphicsWidget.cpp.
|
inlinevirtual |
Reimplemented in mars::graphics::QtOsgMixGraphicsWidget.
Definition at line 77 of file GraphicsWidget.h.
|
inlineprivatevirtual |
Reimplemented in mars::graphics::QtOsgMixGraphicsWidget.
Definition at line 334 of file GraphicsWidget.h.
|
inlinevirtual |
Reimplemented in mars::graphics::QtOsgMixGraphicsWidget.
Definition at line 115 of file GraphicsWidget.h.
|
virtual |
add the window with the id to the windowmanager
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 478 of file GraphicsWidget.cpp.
|
virtual |
Implements mars::interfaces::GraphicsWindowInterface.
Definition at line 1045 of file GraphicsWidget.cpp.
|
private |
Definition at line 1534 of file GraphicsWidget.cpp.
void mars::graphics::GraphicsWidget::unsetFocus | ( | ) |
Definition at line 1097 of file GraphicsWidget.cpp.
|
virtual |
Reimplemented in mars::graphics::QtOsgMixGraphicsWidget.
Definition at line 967 of file GraphicsWidget.cpp.
|
virtual |
sets the position of a window on the screen
Implements mars::interfaces::GraphicsGuiInterface.
Definition at line 468 of file GraphicsWidget.cpp.
|
protected |
Definition at line 233 of file GraphicsWidget.h.
|
protected |
Definition at line 244 of file GraphicsWidget.h.
|
protected |
Definition at line 226 of file GraphicsWidget.h.
|
protected |
Definition at line 231 of file GraphicsWidget.h.
|
protected |
Definition at line 242 of file GraphicsWidget.h.
|
private |
Definition at line 285 of file GraphicsWidget.h.
|
private |
Definition at line 278 of file GraphicsWidget.h.
|
protected |
Definition at line 268 of file GraphicsWidget.h.
|
protected |
Definition at line 257 of file GraphicsWidget.h.
|
protected |
Definition at line 259 of file GraphicsWidget.h.
|
protected |
Definition at line 255 of file GraphicsWidget.h.
|
protected |
Definition at line 273 of file GraphicsWidget.h.
|
protected |
Definition at line 264 of file GraphicsWidget.h.
|
private |
Definition at line 280 of file GraphicsWidget.h.
|
private |
Definition at line 288 of file GraphicsWidget.h.
|
private |
Definition at line 291 of file GraphicsWidget.h.
|
private |
Definition at line 291 of file GraphicsWidget.h.
|
protected |
Definition at line 252 of file GraphicsWidget.h.
|
private |
Definition at line 283 of file GraphicsWidget.h.
|
private |
Definition at line 281 of file GraphicsWidget.h.
|
private |
Definition at line 293 of file GraphicsWidget.h.
|
private |
Definition at line 293 of file GraphicsWidget.h.
|
protected |
Definition at line 262 of file GraphicsWidget.h.
|
protected |
Definition at line 220 of file GraphicsWidget.h.
|
private |
Definition at line 306 of file GraphicsWidget.h.
|
private |
Definition at line 308 of file GraphicsWidget.h.
|
protected |
Definition at line 267 of file GraphicsWidget.h.
|
private |
Definition at line 303 of file GraphicsWidget.h.
|
private |
Definition at line 301 of file GraphicsWidget.h.
|
private |
Definition at line 298 of file GraphicsWidget.h.
|
private |
Definition at line 296 of file GraphicsWidget.h.
|
protected |
Definition at line 249 of file GraphicsWidget.h.
|
protected |
Definition at line 247 of file GraphicsWidget.h.
|
protected |
Definition at line 215 of file GraphicsWidget.h.
|
protected |
Definition at line 271 of file GraphicsWidget.h.
|
protected |
Definition at line 215 of file GraphicsWidget.h.
|
protected |
Definition at line 215 of file GraphicsWidget.h.
|
protected |
Definition at line 215 of file GraphicsWidget.h.