class GmRangeWidget

A class to handle floating point bounded ranges

Inheritance:


Public Methods

[more] GmRangeWidget ()
Standard constructor
[more]virtual void addLine ()
Increment the current range value by a line.
[more]virtual void addPage ()
Increment the current range value by a page.
[more]virtual float getCurrentPercentage ()
Get the current percentage of the range that is occupied by the space between minimum and current values.
[more]virtual float getCurrentValue ()
Get the currently set value for the range.
[more]virtual float getLineStep ()
Get the step size of a line.
[more]virtual float getMaximumValue ()
Get the ceiling value for the range.
[more]virtual float getMinimumValue ()
Get the floor value for the range.
[more]virtual float getPageStep ()
Get the step size of a page.
[more]virtual void setCurrentPercentage (float currentPercentage)
Set the currently set value for the range via a percentage value.
[more]virtual void setCurrentValue (float currentValue)
Set the currently set value for the range.
[more]virtual void setLineStep (float lineStep)
Set the step size of a line.
[more]virtual void setMaximumValue (float maxValue)
Set the ceiling value for the range.
[more]virtual void setMinimumValue (float minValue)
Set the floor value for the range.
[more]virtual void setPageStep (float pageStep)
Set the step size of a page.
[more]virtual void setRange (float minValue, float maxValue)
Simultaneously set the floor and ceiling values for the range.
[more]virtual void setSteps (float lineStep, float pageStep)
Simultaneously set the line and page step sizes for the range.
[more]virtual void subtractLine ()
Decrement the current range value by a line.
[more]virtual void subtractPage ()
Decrement the current range value by a page.
[more]virtual ~GmRangeWidget ()
Virtual destructor

Protected Fields

[more]float mCurrentValue
The currently set value of the range
[more]float mLineStep
The step size of a line
[more]float mMaximumValue
The ceiling of the range
[more]float mMinimumValue
The floor of the range
[more]float mPageStep
The step size of a page


Inherited from GmInteractiveWidget:

Public Fields

oGmFocusEventHandler* focusEventHandler
oGmKeyEventHandler* keyEventHandler
oGmAnimation* mFocusGainAnim
oGmAnimation* mFocusLoseAnim
oGmTypes::FocusType mFocusState
ounsigned int mFocusTimestamp
oGmAnimation* mKeyPressAnim
oGmAnimation* mKeyReleaseAnim
oGmAnimation* mMouseExitAnim
oGmAnimation* mMouseOverAnim
oGmAnimation* mMousePressAnim
oGmAnimation* mMouseReleaseAnim
oWidgetIDType mWidgetId
oGmToolTip* mWidgetToolTip
oGmMouseEventHandler* mouseEventHandler
oGmUserEventHandler* userEventHandler
oGmWidgetEventHandler* widgetEventHandler

Public Methods

ovirtual void focusGainEvent(GmEvent* event)
ovirtual void focusLoseEvent(GmEvent* event)
ovirtual WidgetIDType getWidgetId()
ovirtual void keyPressEvent(GmEvent* event)
ovirtual void keyReleaseEvent(GmEvent* event)
ovirtual void mouseDragEvent(GmEvent* event)
ovirtual void mouseMoveEvent(GmEvent* event)
ovirtual void mousePressEvent(GmEvent* event)
ovirtual void mouseReleaseEvent(GmEvent* event)
ovirtual void setFocusEventHandler(GmFocusEventHandler* focusHandler, WidgetIDType widgetId)
ovirtual void setKeyEventHandler(GmKeyEventHandler* keyHandler, WidgetIDType widgetId)
ovirtual void setMouseEventHandler(GmMouseEventHandler* mouseHandler, WidgetIDType widgetId)
ovirtual void setToolTip(GmToolTip* tooltip)
ovirtual void setUserEventHandler(GmUserEventHandler* userHandler, WidgetIDType widgetId)
ovirtual void setWidgetEventHandler(GmWidgetEventHandler* widgetHandler, WidgetIDType widgetId)
ovirtual void userEvent(GmEvent* event)
ovirtual void wheelMoveEvent(GmEvent* event)

Protected Methods

ovirtual void render2dToolTip(GmTypes::RenderOptionType renderOptions)


Inherited from GmAnimatedWidget:

Public Methods

ovirtual void animationFinished(GmTypes::AnimationType animationType)
ovirtual void applyAnimationTransforms()
ovirtual void setEventAnimation(GmTypes::AnimationType animType, GmAnimation* animation)

Protected Fields

oGmAnimation* mAppearAnimation
oGmTypes::AnimationType mCurrentAnimation
oGmAnimation* mIdleAnimation
oGmAnimation* mVanishAnimation


Inherited from GmDrawable:

Public Methods

ovirtual void applyLayout(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
ovirtual GlmColor4* getBaseColor()
ovirtual GmTypes::CoordinateType getCoordType()
ovirtual float getDepth()
ovirtual float getGlDepth()
ovirtual void getGlExtents(float& width, float& height)
ovirtual float getGlHeight()
ovirtual GlmPoint3* getGlPosition()
ovirtual float getGlWidth()
ovirtual float getHeight()
ovirtual void getMinimumGeometry(float& width, float& height, float& depth)
ovirtual GlmPoint3* getPosition()
ovirtual bool getVisible()
ovirtual float getWidth()
ovirtual void render(GmTypes::RenderOptionType renderOptions)
ovirtual void setAbsoluteGeometry(float x, float y, float z, float width, float height, float depth)
ovirtual void setBaseColor(GlmColor4* color)
ovirtual void setBaseColor(float r, float g, float b, float a)
ovirtual void setCoordType(GmTypes::CoordinateType coordType)
ovirtual void setDepth(float depth)
ovirtual void setHeight(float height)
ovirtual void setPosition(GlmPoint3* point)
ovirtual void setPosition(float x, float y, float z)
ovirtual void setRelativeGeometry(float x, float y, float width, float height)
ovirtual void setRelativeGeometry(float x, float y, float z, float width, float height, float depth)
ovirtual void setVisible(bool visible)
ovirtual void setWidth(float width)

Protected Fields

oGlmColor4 mBaseColor
oGmTypes::CoordinateType mCoordType
ofloat mDepth
obool mDisplayListGenerate
oint mDisplayListId
ofloat mGlDepth
ofloat mGlHeight
oGlmPoint3 mGlPosition
ofloat mGlWidth
ofloat mHeight
oGlmPoint3 mPosition
obool mVisible
ofloat mWidth

Protected Methods

ovirtual bool getDisplayListGenerate()
ovirtual int getDisplayListId()
ovirtual void render2d(GmTypes::RenderOptionType renderOptions)
ovirtual void render2dSelect(GmTypes::RenderOptionType renderOptions)
ovirtual void setDisplayListGenerate(bool generate)
ovirtual void setDisplayListId(int id)


Inherited from GmObject:

Public Methods

ounsigned short getObjectId()

Protected Fields

oThe object ID is used to uniquely identify each GmObject unsigned short mObjectId


Inherited from GmAnimationEventHandler:


Documentation

A class to handle floating point bounded ranges
ofloat mMinimumValue
The floor of the range

ofloat mMaximumValue
The ceiling of the range

ofloat mCurrentValue
The currently set value of the range

ofloat mLineStep
The step size of a line

ofloat mPageStep
The step size of a page

o GmRangeWidget()
Standard constructor

ovirtual ~GmRangeWidget()
Virtual destructor

ovirtual void setMinimumValue(float minValue)
Set the floor value for the range.

Parameters:
minValue - the new minimum

ovirtual float getMinimumValue()
Get the floor value for the range.

Returns:
the minimum

ovirtual void setMaximumValue(float maxValue)
Set the ceiling value for the range.

Parameters:
maxValue - the new maximum

ovirtual float getMaximumValue()
Get the ceiling value for the range.

Returns:
the maximum

ovirtual void setCurrentValue(float currentValue)
Set the currently set value for the range.

Parameters:
currentValue - the new current value

ovirtual float getCurrentValue()
Get the currently set value for the range.

Returns:
the current value

ovirtual float getCurrentPercentage()
Get the current percentage of the range that is occupied by the space between minimum and current values.

Returns:
the current percentage, value is between 0.0 and 1.0

ovirtual void setCurrentPercentage(float currentPercentage)
Set the currently set value for the range via a percentage value.

Parameters:
currentPercentage - the new current percentage value

ovirtual void setRange(float minValue, float maxValue)
Simultaneously set the floor and ceiling values for the range.

Parameters:
minValue - the new minimum
maxValue - the new maximum

ovirtual void setLineStep(float lineStep)
Set the step size of a line.

Parameters:
lineStep - the new line step size

ovirtual float getLineStep()
Get the step size of a line.

Returns:
the line step size

ovirtual void setPageStep(float pageStep)
Set the step size of a page.

Parameters:
pageStep - the new page step size

ovirtual float getPageStep()
Get the step size of a page.

Returns:
the page step size

ovirtual void setSteps(float lineStep, float pageStep)
Simultaneously set the line and page step sizes for the range.

Parameters:
lineStep - the new line step size
pageStep - the new page step size

ovirtual void addPage()
Increment the current range value by a page. (If the result is in the minimum/maximum bounds.)

ovirtual void subtractPage()
Decrement the current range value by a page. (If the result is in the minimum/maximum bounds.)

ovirtual void addLine()
Increment the current range value by a line. (If the result is in the minimum/maximum bounds.)

ovirtual void subtractLine()
Decrement the current range value by a line. (If the result is in the minimum/maximum bounds.)


Direct child classes:
GmSlider
GmScrollbar
GmMeter

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.