#include <SoView2DAutoCenter.h>

Public Member Functions | |
| SoView2DAutoCenter () | |
| ~SoView2DAutoCenter () | |
| virtual void | startDrawing (View2DSliceList *slicelist) |
| reimplemented from SoView2DExtension | |
| virtual bool | evalEvent (SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase) |
| reimplemented from SoView2DExtension | |
| virtual void | draw (View2DSliceList *slicelist, View2DSlice *slice, int sliceZ) |
| reimplemented from SoView2DExtension | |
Static Public Member Functions | |
| static void | initClass () |
| Initializes this class. | |
| static void | timerSensorCB (void *data, SoSensor *sensor) |
| Callback for timer sensor that is used for smooth zooming. | |
Public Attributes | |
| SoSFTrigger | triggerResetZoom |
| Triggering causes centering of the view. | |
Protected Attributes | |
| float | _newcenterx |
| the new center x that we zoom to | |
| float | _newcentery |
| the new center y that we zoom to | |
| bool | _gotoOn |
| flag if zooming is currently on | |
| bool | _shouldReset |
| flag if the view should reset on next click | |
| SoTimerSensor * | _timer |
| the timer that repaints and triggers zooming | |
| SoView2D * | _zoomView |
| the SoView2D where the zoom has been started | |
Definition at line 22 of file SoView2DAutoCenter.h.
| SoView2DAutoCenter::SoView2DAutoCenter | ( | ) |
| SoView2DAutoCenter::~SoView2DAutoCenter | ( | ) |
| virtual void SoView2DAutoCenter::draw | ( | View2DSliceList * | slicelist, | |
| View2DSlice * | slice, | |||
| int | sliceZ | |||
| ) | [virtual] |
| virtual bool SoView2DAutoCenter::evalEvent | ( | SoView2D * | view2d, | |
| View2DSliceList * | slicelist, | |||
| View2DEvent * | ec, | |||
| View2DEventPhase | phase | |||
| ) | [virtual] |
| static void SoView2DAutoCenter::initClass | ( | ) | [static] |
| virtual void SoView2DAutoCenter::startDrawing | ( | View2DSliceList * | slicelist | ) | [virtual] |
| static void SoView2DAutoCenter::timerSensorCB | ( | void * | data, | |
| SoSensor * | sensor | |||
| ) | [static] |
Callback for timer sensor that is used for smooth zooming.
bool SoView2DAutoCenter::_gotoOn [protected] |
float SoView2DAutoCenter::_newcenterx [protected] |
float SoView2DAutoCenter::_newcentery [protected] |
bool SoView2DAutoCenter::_shouldReset [protected] |
SoTimerSensor* SoView2DAutoCenter::_timer [protected] |
SoView2D* SoView2DAutoCenter::_zoomView [protected] |
| SoSFTrigger SoView2DAutoCenter::triggerResetZoom |
1.5.8