openscenegraph
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
osgWidget::WindowManager Class Reference
Inheritance diagram for osgWidget::WindowManager:
osg::Switch osgWidget::UIObjectParent< Window > osg::Group osg::Node osg::Object osg::Referenced

Classes

struct  WindowBinNumberCompare
struct  WindowZCompare

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 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
bool removeChild (Node *child)
bool removeChild (unsigned int pos, unsigned int numChildrenToRemove=1)
virtual bool replaceChild (Node *origChild, Node *newChild)
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 TransformasTransform ()
virtual const TransformasTransform () 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 (NodeCallback *nc)
NodeCallbackgetUpdateCallback ()
const NodeCallbackgetUpdateCallback () const
void addUpdateCallback (NodeCallback *nc)
void removeUpdateCallback (NodeCallback *nc)
unsigned int getNumChildrenRequiringUpdateTraversal () const
void setEventCallback (NodeCallback *nc)
NodeCallbackgetEventCallback ()
const NodeCallbackgetEventCallback () const
void addEventCallback (NodeCallback *nc)
void removeEventCallback (NodeCallback *nc)
unsigned int getNumChildrenRequiringEventTraversal () const
void setCullCallback (NodeCallback *nc)
NodeCallbackgetCullCallback ()
const NodeCallbackgetCullCallback () const
void addCullCallback (NodeCallback *nc)
void removeCullCallback (NodeCallback *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)
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)
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)
- 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 &)

Additional Inherited Members

- Protected Member Functions inherited from osg::Switch
virtual ~Switch ()
- 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 osgWidget::UIObjectParent< Window >
Vector _objects

Member Enumeration Documentation

Enumerator:
PD_NONE 
PD_LEFT 
PD_RIGHT 
PD_UP 
PD_DOWN 
Enumerator:
PFM_FOCUS 
PFM_UNFOCUS 
PFM_SLOPPY 
Enumerator:
WM_USE_LUA 
WM_USE_PYTHON 
WM_USE_RENDERBINS 
WM_PICK_DEBUG 

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
point_type osgWidget::WindowManager::getHeight ( ) const
inline
ScriptEngine* osgWidget::WindowManager::getLuaEngine ( )
inline
const ScriptEngine* osgWidget::WindowManager::getLuaEngine ( ) const
inline
int osgWidget::WindowManager::getMouseKeysDown ( ) const
inline
unsigned int osgWidget::WindowManager::getNodeMask ( ) const
inline

Get the node Mask.

Reimplemented from osg::Node.

int osgWidget::WindowManager::getPointerDirectionVector ( ) const
inline
PointerFocusMode osgWidget::WindowManager::getPointerFocusMode ( ) const
inline
PointerDirection osgWidget::WindowManager::getPointerHorizontalDirection ( ) const
inline
PointerDirection osgWidget::WindowManager::getPointerVerticalDirection ( ) const
inline
ScriptEngine* osgWidget::WindowManager::getPythonEngine ( )
inline
const ScriptEngine* osgWidget::WindowManager::getPythonEngine ( ) const
inline
StyleManager* osgWidget::WindowManager::getStyleManager ( )
inline
const StyleManager* osgWidget::WindowManager::getStyleManager ( ) const
inline
osgViewer::View* osgWidget::WindowManager::getView ( )
inline
const osgViewer::View* osgWidget::WindowManager::getView ( ) const
inline
point_type osgWidget::WindowManager::getWidth ( ) const
inline
bool osgWidget::WindowManager::isLeftMouseButtonDown ( ) const
inline
bool osgWidget::WindowManager::isMiddleMouseButtonDown ( ) const
inline
bool osgWidget::WindowManager::isMouseScrollingDown ( ) const
inline
bool osgWidget::WindowManager::isMouseScrollingUp ( ) const
inline
bool osgWidget::WindowManager::isPointerMovingDown ( ) const
inline
bool osgWidget::WindowManager::isPointerMovingHorizontally ( ) const
inline
bool osgWidget::WindowManager::isPointerMovingLeft ( ) const
inline
bool osgWidget::WindowManager::isPointerMovingRight ( ) const
inline
bool osgWidget::WindowManager::isPointerMovingUp ( ) const
inline
bool osgWidget::WindowManager::isPointerMovingVertically ( ) const
inline
bool osgWidget::WindowManager::isRightMouseButtonDown ( ) const
inline
bool osgWidget::WindowManager::isUsingLua ( ) const
inline
bool osgWidget::WindowManager::isUsingPython ( ) const
inline
bool osgWidget::WindowManager::isUsingRenderBins ( ) const
inline
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
bool osgWidget::WindowManager::mousePushedMiddle ( float  x,
float  y 
)
inline
bool osgWidget::WindowManager::mousePushedRight ( float  x,
float  y 
)
inline
bool osgWidget::WindowManager::mouseReleasedLeft ( float  x,
float  y 
)
inline
bool osgWidget::WindowManager::mouseReleasedMiddle ( float  x,
float  y 
)
inline
bool osgWidget::WindowManager::mouseReleasedRight ( float  x,
float  y 
)
inline
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
void osgWidget::WindowManager::setHeight ( point_type  h)
inline
void osgWidget::WindowManager::setPointerFocusMode ( PointerFocusMode  pfm)
inline
void osgWidget::WindowManager::setPointerXY ( float  ,
float   
)
void osgWidget::WindowManager::setScrollingMotion ( osgGA::GUIEventAdapter::ScrollingMotion  sm)
inline
void osgWidget::WindowManager::setSize ( point_type  w,
point_type  h 
)
inline
void osgWidget::WindowManager::setStyleManager ( StyleManager )
void osgWidget::WindowManager::setWidth ( point_type  w)
inline
void osgWidget::WindowManager::setWindowSize ( point_type  w,
point_type  h 
)
inline
XYCoord osgWidget::WindowManager::windowXY ( double  ,
double   
) const

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