20class vruiTransformNode;
21class coCombinedButtonInteraction;
57 void setValue(
float val,
bool generateEvent =
false);
75 void setPos(
float x,
float y,
float z = 0.0f);
78 virtual void setSize(
float x,
float y,
float z);
108 static void adjustSlider(
float &mini,
float &maxi,
float & ,
float &step,
int &digits);
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coAction.h:26
Definition: coCombinedButtonInteraction.h:22
Action listener for events triggered by coSlider.
Definition: coSlider.h:25
virtual ~coSliderActor()
Definition: coSlider.h:27
virtual void sliderReleasedEvent(coSlider *slider)
virtual void sliderEvent(coSlider *slider)
Definition: coSlider.h:38
float myDepth
slider depth [mm]
Definition: coSlider.h:132
virtual int hit(vruiHit *hit)
float minVal
minimum slider value
Definition: coSlider.h:133
float maxVal
maximum slider value
Definition: coSlider.h:134
virtual void setSize(float size)
virtual void setSize(float x, float y, float z)
virtual bool isOfClassName(const char *) const
check if the Element or any ancestor is this classname
float myY
slider element y position in object space [mm]
Definition: coSlider.h:128
float value
current slider value
Definition: coSlider.h:135
float myZ
slider element z position in object space [mm]
Definition: coSlider.h:129
float myHeight
slider height [mm]
Definition: coSlider.h:131
coSliderActor * myActor
action listener for slider events
Definition: coSlider.h:126
float linearValue
current linear slider value (=value or log(value))
Definition: coSlider.h:136
float getLinearMax() const
long lastPressAction
Definition: coSlider.h:145
virtual const char * getClassName() const
get the Element's classname
float getLinearMin() const
float numTicks
number of tickmarks on slider dial
Definition: coSlider.h:137
virtual void setHighlighted(bool highlighted)
virtual float getYpos() const
Returns element y position.
Definition: coSlider.h:92
virtual float getXpos() const
Returns element x position.
Definition: coSlider.h:88
bool unregister
true if the interaction should be unregistered
Definition: coSlider.h:124
bool getShowValue() const
void setPos(float x, float y, float z=0.0f)
void setNumTicks(float nt)
static void adjustSlider(float &mini, float &maxi, float &, float &step, int &digits)
void setLogarithmic(bool on)
coSlider(coSliderActor *actor, bool showValue=true)
void setValue(float val, bool generateEvent=false)
bool active_
flag if slider is active
Definition: coSlider.h:141
bool showValue
true = the slider value is displayed
Definition: coSlider.h:120
bool logarithmic
true = slider shows logarithm of value
Definition: coSlider.h:119
void setPrecision(int nt)
void joystickDown()
decrementslidervalue
float getNumTicks() const
bool valueChanged
indicates a value change since last readout
Definition: coSlider.h:140
virtual float getWidth() const
Returns element width.
Definition: coSlider.h:80
float myWidth
slider width [mm]
Definition: coSlider.h:130
virtual float getHeight() const
Returns element height.
Definition: coSlider.h:84
void joystickUp()
increment slidervalue
bool isLogarithmic() const
coCombinedButtonInteraction * interactionA
interaction for wheel
Definition: coSlider.h:121
virtual void setActive(bool a)
float myX
slider element x position in object space [mm]
Definition: coSlider.h:127
virtual bool getActive()
Definition: coSlider.h:101
int precision
precision of slider value display: number of decimals
Definition: coSlider.h:138
float getDialSize() const
float getLinearValue() const
bool integer
true = slider processes only integer values
Definition: coSlider.h:118
virtual float getZpos() const
Definition: coSlider.h:96
void resetLastPressAction()
no last press action
float dialSize
size of slider dial
Definition: coSlider.h:125
Definition: coUIElement.h:53
objects that are derived from this class are called once per frame
Definition: coUpdateManager.h:20