NutsnBolts  0.1.0
An extension library for Coin
Loading...
Searching...
No Matches
NbZoomMode Class Reference

Class that implements the zooming action. More...

#include <NutsnBolts/navigation/NbZoomMode.h>

Inheritance diagram for NbZoomMode:
NbNavigationMode

Public Member Functions

 NbZoomMode (SbName name)
 
virtual ~NbZoomMode (void)
 
virtual NbNavigationModeclone (void) const
 
virtual SoType getTypeId (void) const
 
- Public Member Functions inherited from NbNavigationMode
 NbNavigationMode (SbName modename)
 
virtual ~NbNavigationMode (void)
 
virtual void abort (const SoEvent *event, const NbNavigationControl *ctrl)
 
virtual void finish (const SoEvent *event, const NbNavigationControl *ctrl)
 
NbNavigation1DInputValueFunc * get1DValueFunc (void **closureptr=NULL) const
 
NbNavigation2DInputValueFunc * get2DValueFunc (void **closureptr=NULL) const
 
NbNavigation3DInputValueFunc * get3DValueFunc (void **closureptr=NULL) const
 
SbName getModeName (void) const
 
virtual SoNodegetSceneGraph (void)
 
virtual void init (const SoEvent *event, const NbNavigationControl *ctrl)
 
SbBool isAborted (void) const
 
SbBool isFinished (void) const
 
SbBool processEvent (const SoEvent *event, const NbNavigationControl *ctrl)
 
void set1DValueFunc (NbNavigation1DInputValueFunc *func, void *closure)
 
void set2DValueFunc (NbNavigation2DInputValueFunc *func, void *closure)
 
void set3DValueFunc (NbNavigation3DInputValueFunc *func, void *closure)
 

Static Public Member Functions

static SoType getClassTypeId (void)
 
static void initClass (void)
 
- Static Public Member Functions inherited from NbNavigationMode
static float getAbsMouseCenterPixelDistance (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getAbsMouseMovePixelDistance (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static SoType getClassTypeId (void)
 
static float getMouseCenterAngle (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getMouseCenterHorizontalPixelDistance (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getMouseCenterVerticalPixelDistance (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getMouseMoveAngle (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getMouseMoveCenterAngle (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getMouseMoveHorizontalNormalizedDistance (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getMouseMoveHorizontalPixelDistance (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getMouseMoveVerticalNormalizedDistance (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static float getMouseMoveVerticalPixelDistance (void *closure, const NbNavigationMode *mode, const NbNavigationControl *ctrl)
 
static void initClass (void)
 

Static Public Attributes

static SoType classTypeId = SoType::badType()
 
- Static Public Attributes inherited from NbNavigationMode
static SoType classTypeId = SoType::badType()
 

Protected Member Functions

virtual SbBool handleEvent (const SoEvent *event, const NbNavigationControl *ctrl)
 
- Protected Member Functions inherited from NbNavigationMode
void abort (void)
 
void finish (void)
 
float get1DValue (const NbNavigationControl *ctrl) const
 
SbVec2f get2DValue (const NbNavigationControl *ctrl) const
 
SbVec3f get3DValue (const NbNavigationControl *ctrl) const
 
SbVec2f getCurrentNormalizedPosition (const NbNavigationControl *ctrl) const
 
SbVec2s getCurrentPosition (void) const
 
SbVec2f getInitialNormalizedPosition (const NbNavigationControl *ctrl) const
 
SbVec2s getInitialPosition (void) const
 
SbVec2f getPreviousNormalizedPosition (const NbNavigationControl *ctrl) const
 
SbVec2s getPreviousPosition (void) const
 

Detailed Description

Class that implements the zooming action.

This class implements zooming by mouse movement.

Constructor & Destructor Documentation

◆ NbZoomMode()

NbZoomMode::NbZoomMode ( SbName name)

Constructor.

◆ ~NbZoomMode()

NbZoomMode::~NbZoomMode ( void )
virtual

Destructor.

Member Function Documentation

◆ clone()

NbNavigationMode * NbZoomMode::clone ( void ) const
virtual

Implements NbNavigationMode.

◆ getTypeId()

SoType NbZoomMode::getTypeId ( void ) const
virtual

Reimplemented from NbNavigationMode.

◆ handleEvent()

SbBool NbZoomMode::handleEvent ( const SoEvent * event,
const NbNavigationControl * ctrl )
protectedvirtual

This method handles the zooming operation.

Returns FALSE for unused events, and TRUE for events that are used.

Implements NbNavigationMode.


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