OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
osgWidget::WindowManager Class Reference

#include <WindowManager.h>

Inheritance diagram for osgWidget::WindowManager:
Inheritance graph
[legend]
Collaboration diagram for osgWidget::WindowManager:
Collaboration graph
[legend]

Public Types

enum  WmFlags { WM_USE_LUA = 0x00000001, WM_USE_PYTHON = 0x00000002, WM_USE_RENDERBINS = 0x00000004, WM_PICK_DEBUG = 0x00000008 }
 
enum  PointerDirection {
  PD_NONE = 0x00000000, PD_LEFT = 0x00000001, PD_RIGHT = 0x00000002, PD_UP = 0x00000004,
  PD_DOWN = 0x00000008
}
 
enum  PointerFocusMode { PFM_FOCUS = 0x00000000, PFM_UNFOCUS = 0x00000001, PFM_SLOPPY = 0x00000002 }
 
- Public Types inherited from osg::Switch
typedef std::vector< bool > ValueList
 
- Public Types inherited from osg::Node
typedef std::vector< Group * > ParentList
 
typedef unsigned int NodeMask
 
typedef std::vector< std::string > DescriptionList
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Public Types inherited from osgWidget::UIObjectParent< Window >
typedef Window object_type
 
typedef osg::observer_ptr
< object_type
ptr_type
 
typedef std::vector< ptr_typeVector
 
typedef Vector::iterator Iterator
 
typedef Vector::const_iterator ConstIterator
 

Public Member Functions

 META_Object (osgWidget, WindowManager)
 
 WindowManager (osgViewer::View *=0, point_type=0.0f, point_type=0.0f, unsigned int=0, unsigned int=0)
 
 WindowManager (const WindowManager &, const osg::CopyOp &)
 
virtual ~WindowManager ()
 
bool pickAtXY (float, float, WidgetList &)
 
bool setFocused (Window *)
 
void setPointerXY (float, float)
 
void setStyleManager (StyleManager *)
 
void resizeAllWindows (bool=true)
 
XYCoord windowXY (double, double) const
 
XYCoord localXY (double, double) const
 
bool pointerMove (float, float)
 
bool pointerDrag (float, float)
 
bool mouseScroll (float, float)
 
osg::CameracreateParentOrthoCamera ()
 
unsigned int getNodeMask () const
 
point_type getWidth () const
 
point_type getHeight () const
 
bool isUsingLua () const
 
bool isUsingPython () const
 
bool isUsingRenderBins () const
 
int getMouseKeysDown () const
 
ScriptEnginegetLuaEngine ()
 
const ScriptEnginegetLuaEngine () const
 
ScriptEnginegetPythonEngine ()
 
const ScriptEnginegetPythonEngine () const
 
StyleManagergetStyleManager ()
 
const StyleManagergetStyleManager () const
 
PointerDirection getPointerVerticalDirection () const
 
PointerDirection getPointerHorizontalDirection () const
 
PointerFocusMode getPointerFocusMode () const
 
int getPointerDirectionVector () const
 
bool isPointerMovingUp () const
 
bool isPointerMovingDown () const
 
bool isPointerMovingLeft () const
 
bool isPointerMovingRight () const
 
bool isPointerMovingVertically () const
 
bool isPointerMovingHorizontally () const
 
bool isLeftMouseButtonDown () const
 
bool isMiddleMouseButtonDown () const
 
bool isRightMouseButtonDown () const
 
bool isMouseScrollingUp () const
 
bool isMouseScrollingDown () const
 
bool setFocusedByName (const std::string &name)
 
void setScrollingMotion (osgGA::GUIEventAdapter::ScrollingMotion sm)
 
void setPointerFocusMode (PointerFocusMode pfm)
 
void setWidth (point_type w)
 
void setHeight (point_type h)
 
void setSize (point_type w, point_type h)
 
void setWindowSize (point_type w, point_type h)
 
bool mousePushedLeft (float x, float y)
 
bool mousePushedMiddle (float x, float y)
 
bool mousePushedRight (float x, float y)
 
bool mouseReleasedLeft (float x, float y)
 
bool mouseReleasedMiddle (float x, float y)
 
bool mouseReleasedRight (float x, float y)
 
bool keyDown (int, int)
 
bool keyUp (int, int)
 
osgViewer::ViewgetView ()
 
const osgViewer::ViewgetView () const
 
- Public Member Functions inherited from osg::Switch
 Switch ()
 
 Switch (const Switch &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual SwitchasSwitch ()
 
virtual const SwitchasSwitch () const
 
 META_Node (osg, Switch)
 
virtual void traverse (NodeVisitor &nv)
 
void setNewChildDefaultValue (bool value)
 
bool getNewChildDefaultValue () const
 
virtual bool addChild (Node *child)
 
virtual bool addChild (Node *child, bool value)
 
virtual bool insertChild (unsigned int index, Node *child)
 
virtual bool insertChild (unsigned int index, Node *child, bool value)
 
virtual bool removeChildren (unsigned int pos, unsigned int numChildrenToRemove)
 
void setValue (unsigned int pos, bool value)
 
bool getValue (unsigned int pos) const
 
void setChildValue (const Node *child, bool value)
 
bool getChildValue (const Node *child) const
 
bool setAllChildrenOff ()
 
bool setAllChildrenOn ()
 
bool setSingleChildOn (unsigned int pos)
 
void setValueList (const ValueList &values)
 
const ValueListgetValueList () const
 
virtual BoundingSphere computeBound () const
 
- Public Member Functions inherited from osg::Group
 Group ()
 
 Group (const Group &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
 META_Node (osg, Group)
 
virtual GroupasGroup ()
 
virtual const GroupasGroup () const
 
virtual bool removeChild (Node *child)
 
bool removeChild (unsigned int pos, unsigned int numChildrenToRemove=1)
 
virtual bool replaceChild (Node *origChild, Node *newChild)
 
virtual unsigned int getNumChildren () const
 
virtual bool setChild (unsigned int i, Node *node)
 
NodegetChild (unsigned int i)
 
const NodegetChild (unsigned int i) const
 
bool containsNode (const Node *node) const
 
unsigned int getChildIndex (const Node *node) const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void resizeGLObjectBuffers (unsigned int maxSize)
 
virtual void releaseGLObjects (osg::State *=0) const
 
- Public Member Functions inherited from osg::Node
 Node ()
 
 Node (const Node &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const
 
virtual Objectclone (const CopyOp &copyop) const
 
virtual bool isSameKindAs (const Object *obj) const
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual DrawableasDrawable ()
 
virtual const DrawableasDrawable () const
 
virtual GeometryasGeometry ()
 
virtual const GeometryasGeometry () const
 
virtual TransformasTransform ()
 
virtual const TransformasTransform () const
 
virtual CameraasCamera ()
 
virtual const CameraasCamera () const
 
virtual GeodeasGeode ()
 
virtual const GeodeasGeode () const
 
virtual osgTerrain::TerrainasTerrain ()
 
virtual const osgTerrain::TerrainasTerrain () const
 
virtual void accept (NodeVisitor &nv)
 
virtual void ascend (NodeVisitor &nv)
 
const ParentListgetParents () const
 
ParentList getParents ()
 
GroupgetParent (unsigned int i)
 
const GroupgetParent (unsigned int i) const
 
unsigned int getNumParents () const
 
NodePathList getParentalNodePaths (osg::Node *haltTraversalAtNode=0) const
 
MatrixList getWorldMatrices (const osg::Node *haltTraversalAtNode=0) const
 
void setUpdateCallback (Callback *nc)
 
CallbackgetUpdateCallback ()
 
const CallbackgetUpdateCallback () const
 
void addUpdateCallback (Callback *nc)
 
void removeUpdateCallback (Callback *nc)
 
unsigned int getNumChildrenRequiringUpdateTraversal () const
 
void setEventCallback (Callback *nc)
 
CallbackgetEventCallback ()
 
const CallbackgetEventCallback () const
 
void addEventCallback (Callback *nc)
 
void removeEventCallback (Callback *nc)
 
unsigned int getNumChildrenRequiringEventTraversal () const
 
void setCullCallback (Callback *nc)
 
CallbackgetCullCallback ()
 
const CallbackgetCullCallback () const
 
void addCullCallback (Callback *nc)
 
void removeCullCallback (Callback *nc)
 
void setCullingActive (bool active)
 
bool getCullingActive () const
 
unsigned int getNumChildrenWithCullingDisabled () const
 
bool isCullingActive () const
 
unsigned int getNumChildrenWithOccluderNodes () const
 
bool containsOccluderNodes () const
 
void setNodeMask (NodeMask nm)
 
NodeMask getNodeMask () const
 
void setStateSet (osg::StateSet *stateset)
 
osg::StateSetgetOrCreateStateSet ()
 
osg::StateSetgetStateSet ()
 
const osg::StateSetgetStateSet () const
 
void setDescriptions (const DescriptionList &descriptions)
 
DescriptionListgetDescriptions ()
 
const DescriptionListgetDescriptions () const
 
const std::string & getDescription (unsigned int i) const
 
std::string & getDescription (unsigned int i)
 
unsigned int getNumDescriptions () const
 
void addDescription (const std::string &desc)
 
void setInitialBound (const osg::BoundingSphere &bsphere)
 
const BoundingSpheregetInitialBound () const
 
void dirtyBound ()
 
const BoundingSpheregetBound () const
 
void setComputeBoundingSphereCallback (ComputeBoundingSphereCallback *callback)
 
ComputeBoundingSphereCallbackgetComputeBoundingSphereCallback ()
 
const
ComputeBoundingSphereCallback
getComputeBoundingSphereCallback () const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
std::string getCompoundClassName () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () const
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 
- Public Member Functions inherited from osgWidget::UIObjectParent< Window >
Iterator begin ()
 
ConstIterator begin () const
 
Iterator end ()
 
ConstIterator end () const
 
Vector::size_type size () const
 
object_typegetByName (const std::string &name)
 
const object_typegetByName (const std::string &name) const
 
object_typegetByIndex (unsigned int index)
 
const object_typegetByIndex (unsigned int index) const
 
unsigned int getNumObjects () const
 
VectorgetObjects ()
 
const VectorgetObjects () const
 

Static Public Member Functions

static void setEventFromInterface (Event &, EventInterface *)
 
template<typename T >
static EventInterfacegetFirstEventInterface (T &, Event &)
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Additional Inherited Members

- Protected Member Functions inherited from osg::Switch
virtual ~Switch ()
 
- Protected Member Functions inherited from osg::Group
virtual ~Group ()
 
- Protected Member Functions inherited from osg::Node
virtual ~Node ()
 
void addParent (osg::Group *parent)
 
void removeParent (osg::Group *parent)
 
void setNumChildrenRequiringUpdateTraversal (unsigned int num)
 
void setNumChildrenRequiringEventTraversal (unsigned int num)
 
void setNumChildrenWithCullingDisabled (unsigned int num)
 
void setNumChildrenWithOccluderNodes (unsigned int num)
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 
- Protected Member Functions inherited from osgWidget::UIObjectParent< Window >
bool _remove (object_type *obj)
 
bool _removeByName (const std::string &name)
 
- Protected Attributes inherited from osg::Switch
bool _newChildDefaultValue
 
ValueList _values
 
- Protected Attributes inherited from osg::Group
NodeList _children
 
- Protected Attributes inherited from osg::Node
BoundingSphere _initialBound
 
ref_ptr
< ComputeBoundingSphereCallback
_computeBoundCallback
 
BoundingSphere _boundingSphere
 
bool _boundingSphereComputed
 
ParentList _parents
 
ref_ptr< Callback_updateCallback
 
unsigned int _numChildrenRequiringUpdateTraversal
 
ref_ptr< Callback_eventCallback
 
unsigned int _numChildrenRequiringEventTraversal
 
ref_ptr< Callback_cullCallback
 
bool _cullingActive
 
unsigned int _numChildrenWithCullingDisabled
 
unsigned int _numChildrenWithOccluderNodes
 
NodeMask _nodeMask
 
ref_ptr< StateSet_stateset
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 
- Protected Attributes inherited from osgWidget::UIObjectParent< Window >
Vector _objects
 

Detailed Description

Definition at line 39 of file WindowManager.h.

Member Enumeration Documentation

Enumerator
PD_NONE 
PD_LEFT 
PD_RIGHT 
PD_UP 
PD_DOWN 

Definition at line 48 of file WindowManager.h.

Enumerator
PFM_FOCUS 
PFM_UNFOCUS 
PFM_SLOPPY 

Definition at line 56 of file WindowManager.h.

Enumerator
WM_USE_LUA 
WM_USE_PYTHON 
WM_USE_RENDERBINS 
WM_PICK_DEBUG 

Definition at line 41 of file WindowManager.h.

Constructor & Destructor Documentation

osgWidget::WindowManager::WindowManager ( osgViewer::View = 0,
point_type  = 0.0f,
point_type  = 0.0f,
unsigned  int = 0,
unsigned  int = 0 
)
osgWidget::WindowManager::WindowManager ( const WindowManager ,
const osg::CopyOp  
)
virtual osgWidget::WindowManager::~WindowManager ( )
virtual

Member Function Documentation

osg::Camera* osgWidget::WindowManager::createParentOrthoCamera ( )
template<typename T >
EventInterface * osgWidget::WindowManager::getFirstEventInterface ( T &  container,
Event ev 
)
static

Definition at line 346 of file WindowManager.h.

Here is the call graph for this function:

point_type osgWidget::WindowManager::getHeight ( ) const
inline

Definition at line 111 of file WindowManager.h.

ScriptEngine* osgWidget::WindowManager::getLuaEngine ( )
inline

Definition at line 137 of file WindowManager.h.

const ScriptEngine* osgWidget::WindowManager::getLuaEngine ( ) const
inline

Definition at line 141 of file WindowManager.h.

int osgWidget::WindowManager::getMouseKeysDown ( ) const
inline

Definition at line 127 of file WindowManager.h.

unsigned int osgWidget::WindowManager::getNodeMask ( ) const
inline

Definition at line 103 of file WindowManager.h.

int osgWidget::WindowManager::getPointerDirectionVector ( ) const
inline

Definition at line 173 of file WindowManager.h.

PointerFocusMode osgWidget::WindowManager::getPointerFocusMode ( ) const
inline

Definition at line 169 of file WindowManager.h.

PointerDirection osgWidget::WindowManager::getPointerHorizontalDirection ( ) const
inline

Definition at line 165 of file WindowManager.h.

PointerDirection osgWidget::WindowManager::getPointerVerticalDirection ( ) const
inline

Definition at line 161 of file WindowManager.h.

ScriptEngine* osgWidget::WindowManager::getPythonEngine ( )
inline

Definition at line 145 of file WindowManager.h.

const ScriptEngine* osgWidget::WindowManager::getPythonEngine ( ) const
inline

Definition at line 149 of file WindowManager.h.

StyleManager* osgWidget::WindowManager::getStyleManager ( )
inline

Definition at line 153 of file WindowManager.h.

const StyleManager* osgWidget::WindowManager::getStyleManager ( ) const
inline

Definition at line 157 of file WindowManager.h.

osgViewer::View* osgWidget::WindowManager::getView ( )
inline

Definition at line 283 of file WindowManager.h.

const osgViewer::View* osgWidget::WindowManager::getView ( ) const
inline

Definition at line 284 of file WindowManager.h.

point_type osgWidget::WindowManager::getWidth ( ) const
inline

Definition at line 107 of file WindowManager.h.

bool osgWidget::WindowManager::isLeftMouseButtonDown ( ) const
inline

Definition at line 201 of file WindowManager.h.

bool osgWidget::WindowManager::isMiddleMouseButtonDown ( ) const
inline

Definition at line 205 of file WindowManager.h.

bool osgWidget::WindowManager::isMouseScrollingDown ( ) const
inline

Definition at line 217 of file WindowManager.h.

bool osgWidget::WindowManager::isMouseScrollingUp ( ) const
inline

Definition at line 213 of file WindowManager.h.

bool osgWidget::WindowManager::isPointerMovingDown ( ) const
inline

Definition at line 181 of file WindowManager.h.

bool osgWidget::WindowManager::isPointerMovingHorizontally ( ) const
inline

Definition at line 197 of file WindowManager.h.

bool osgWidget::WindowManager::isPointerMovingLeft ( ) const
inline

Definition at line 185 of file WindowManager.h.

bool osgWidget::WindowManager::isPointerMovingRight ( ) const
inline

Definition at line 189 of file WindowManager.h.

bool osgWidget::WindowManager::isPointerMovingUp ( ) const
inline

Definition at line 177 of file WindowManager.h.

bool osgWidget::WindowManager::isPointerMovingVertically ( ) const
inline

Definition at line 193 of file WindowManager.h.

bool osgWidget::WindowManager::isRightMouseButtonDown ( ) const
inline

Definition at line 209 of file WindowManager.h.

bool osgWidget::WindowManager::isUsingLua ( ) const
inline

Definition at line 115 of file WindowManager.h.

bool osgWidget::WindowManager::isUsingPython ( ) const
inline

Definition at line 119 of file WindowManager.h.

bool osgWidget::WindowManager::isUsingRenderBins ( ) const
inline

Definition at line 123 of file WindowManager.h.

bool osgWidget::WindowManager::keyDown ( int  ,
int   
)
bool osgWidget::WindowManager::keyUp ( int  ,
int   
)
XYCoord osgWidget::WindowManager::localXY ( double  ,
double   
) const
osgWidget::WindowManager::META_Object ( osgWidget  ,
WindowManager   
)
bool osgWidget::WindowManager::mousePushedLeft ( float  x,
float  y 
)
inline

Definition at line 254 of file WindowManager.h.

bool osgWidget::WindowManager::mousePushedMiddle ( float  x,
float  y 
)
inline

Definition at line 258 of file WindowManager.h.

bool osgWidget::WindowManager::mousePushedRight ( float  x,
float  y 
)
inline

Definition at line 262 of file WindowManager.h.

bool osgWidget::WindowManager::mouseReleasedLeft ( float  x,
float  y 
)
inline

Definition at line 266 of file WindowManager.h.

bool osgWidget::WindowManager::mouseReleasedMiddle ( float  x,
float  y 
)
inline

Definition at line 270 of file WindowManager.h.

bool osgWidget::WindowManager::mouseReleasedRight ( float  x,
float  y 
)
inline

Definition at line 274 of file WindowManager.h.

bool osgWidget::WindowManager::mouseScroll ( float  ,
float   
)
bool osgWidget::WindowManager::pickAtXY ( float  ,
float  ,
WidgetList  
)
bool osgWidget::WindowManager::pointerDrag ( float  ,
float   
)
bool osgWidget::WindowManager::pointerMove ( float  ,
float   
)
void osgWidget::WindowManager::resizeAllWindows ( bool  = true)
static void osgWidget::WindowManager::setEventFromInterface ( Event ,
EventInterface  
)
static
bool osgWidget::WindowManager::setFocused ( Window )
bool osgWidget::WindowManager::setFocusedByName ( const std::string &  name)
inline

Definition at line 221 of file WindowManager.h.

void osgWidget::WindowManager::setHeight ( point_type  h)
inline

Definition at line 237 of file WindowManager.h.

void osgWidget::WindowManager::setPointerFocusMode ( PointerFocusMode  pfm)
inline

Definition at line 229 of file WindowManager.h.

void osgWidget::WindowManager::setPointerXY ( float  ,
float   
)
void osgWidget::WindowManager::setScrollingMotion ( osgGA::GUIEventAdapter::ScrollingMotion  sm)
inline

Definition at line 225 of file WindowManager.h.

void osgWidget::WindowManager::setSize ( point_type  w,
point_type  h 
)
inline

Definition at line 241 of file WindowManager.h.

void osgWidget::WindowManager::setStyleManager ( StyleManager )
void osgWidget::WindowManager::setWidth ( point_type  w)
inline

Definition at line 233 of file WindowManager.h.

void osgWidget::WindowManager::setWindowSize ( point_type  w,
point_type  h 
)
inline

Definition at line 246 of file WindowManager.h.

XYCoord osgWidget::WindowManager::windowXY ( double  ,
double   
) const

The documentation for this class was generated from the following file: