-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMarkerProximityUpdateCallback.h
More file actions
41 lines (29 loc) · 944 Bytes
/
MarkerProximityUpdateCallback.h
File metadata and controls
41 lines (29 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* MediaMarkerVisibilityCallback.h
*
* Created on: May 8, 2011
* Author: enekochan
*/
#ifndef MARKERPROXIMITYUPDATECALLBACK_H_
#define MARKERPROXIMITYUPDATECALLBACK_H_
#include <osgART/Marker>
#include <osg/NodeCallback>
#include <osg/MatrixTransform>
#include <osg/Switch>
class MarkerProximityUpdateCallback : public osg::NodeCallback {
private:
osgART::Marker* markerA;
osgART::Marker* markerB;
osg::MatrixTransform* mtA;
osg::MatrixTransform* mtB;
osg::Switch* mSwitchA;
float mThreshold;
int mPosition;
int* mCurrentSlide;
public:
MarkerProximityUpdateCallback(osgART::Marker* mkA, osgART::Marker* mkB, osg::MatrixTransform* mA, osg::MatrixTransform* mB, osg::Switch* switchA, float threshold, int* currentSlide, int position);
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv);
void setPosition(int pos);
void setCurrentSlide(int *slide);
};
#endif /* MARKERPROXIMITYUPDATECALLBACK_H_ */