Jive reference manual
List of all members | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes
jem::gl::StdEventHandler Class Reference

#include <jem/gl/StdEventHandler.h>

Inheritance diagram for jem::gl::StdEventHandler:
Inheritance graph

Public Member Functions

 StdEventHandler (const Ref< Camera > &camera, const Ref< GfxNode > &world)
 
virtual void reset ()
 
virtual void redraw (GfxContext &gtx, int action, const Properties &params)
 
virtual void newView (GfxContext &gtx, const Rect &vport)
 
virtual void keyPressed (GfxContext &gtx, const KeyPress &key)
 
virtual void mouseDragged (GfxContext &gtx, const MouseDrag &mouse)
 
virtual bool exeCommand (GfxContext &gtx, const String &cmd)
 
virtual void printHelp (PrintWriter &pr)
 
virtual void initMenu (Menu &menu) const
 
virtual void listOptions (Menu &menu) const
 
virtual void setFocus (const Ref< GfxNode > &node)
 
char getMode () const
 
void setMode (char mode)
 
- Public Member Functions inherited from jem::gl::EventHandler
virtual void mouseClicked (GfxContext &gtx, const MouseClick &mouse)
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Public Attributes

Color focusColor
 

Static Public Attributes

static const char NULL_MODE
 
static const char ZOOM_MODE
 
static const char ROTATION_MODE
 
static const char TRANSLATION_MODE
 

Protected Member Functions

virtual ~StdEventHandler ()
 
void zoomView_ (GfxContext &gtx, int step)
 
void scaleFocus_ (GfxContext &gtx, int step)
 
- Protected Member Functions inherited from jem::gl::EventHandler
virtual ~EventHandler ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Protected Attributes

Ref< Cameracamera_
 
Ref< GfxNodeworld_
 
Ref< GfxNodefocus_
 
Ref< GfxNodenoFocus_
 
char mode_
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Constructor & Destructor Documentation

jem::gl::StdEventHandler::StdEventHandler ( const Ref< Camera > &  camera,
const Ref< GfxNode > &  world 
)
virtual jem::gl::StdEventHandler::~StdEventHandler ( )
protectedvirtual

Member Function Documentation

virtual void jem::gl::StdEventHandler::reset ( )
virtual

Reimplemented from jem::gl::EventHandler.

virtual void jem::gl::StdEventHandler::redraw ( GfxContext gtx,
int  action,
const Properties params 
)
virtual

Reimplemented from jem::gl::EventHandler.

Reimplemented in jem::gl::EventHandler3D, and jem::gl::EventHandler2D.

virtual void jem::gl::StdEventHandler::newView ( GfxContext gtx,
const Rect vport 
)
virtual

Reimplemented from jem::gl::EventHandler.

virtual void jem::gl::StdEventHandler::keyPressed ( GfxContext gtx,
const KeyPress key 
)
virtual

Reimplemented from jem::gl::EventHandler.

Reimplemented in jem::gl::EventHandler3D, and jem::gl::EventHandler2D.

virtual void jem::gl::StdEventHandler::mouseDragged ( GfxContext gtx,
const MouseDrag mouse 
)
virtual

Reimplemented from jem::gl::EventHandler.

Reimplemented in jem::gl::EventHandler3D, and jem::gl::EventHandler2D.

virtual bool jem::gl::StdEventHandler::exeCommand ( GfxContext gtx,
const String cmd 
)
virtual

Reimplemented from jem::gl::EventHandler.

Reimplemented in jem::gl::EventHandler3D.

virtual void jem::gl::StdEventHandler::printHelp ( PrintWriter pr)
virtual

Reimplemented from jem::gl::EventHandler.

Reimplemented in jem::gl::EventHandler3D, and jem::gl::EventHandler2D.

virtual void jem::gl::StdEventHandler::initMenu ( Menu menu) const
virtual

Reimplemented from jem::gl::EventHandler.

virtual void jem::gl::StdEventHandler::listOptions ( Menu menu) const
virtual

Reimplemented from jem::gl::EventHandler.

Reimplemented in jem::gl::EventHandler3D.

virtual void jem::gl::StdEventHandler::setFocus ( const Ref< GfxNode > &  node)
virtual

Reimplemented from jem::gl::EventHandler.

Reimplemented in jem::gl::EventHandler3D, and jem::gl::EventHandler2D.

char jem::gl::StdEventHandler::getMode ( ) const
void jem::gl::StdEventHandler::setMode ( char  mode)
void jem::gl::StdEventHandler::zoomView_ ( GfxContext gtx,
int  step 
)
protected
void jem::gl::StdEventHandler::scaleFocus_ ( GfxContext gtx,
int  step 
)
protected

Member Data Documentation

const char jem::gl::StdEventHandler::NULL_MODE
static
const char jem::gl::StdEventHandler::ZOOM_MODE
static
const char jem::gl::StdEventHandler::ROTATION_MODE
static
const char jem::gl::StdEventHandler::TRANSLATION_MODE
static
Color jem::gl::StdEventHandler::focusColor
Ref<Camera> jem::gl::StdEventHandler::camera_
protected
Ref<GfxNode> jem::gl::StdEventHandler::world_
protected
Ref<GfxNode> jem::gl::StdEventHandler::focus_
protected
Ref<GfxNode> jem::gl::StdEventHandler::noFocus_
protected
char jem::gl::StdEventHandler::mode_
protected