class GmContainer

Class description

Inheritance:


Public Methods

[more] GmContainer ()
Standard constructor
[more]virtual void addComponent (GmDrawable* component)
Adds a drawable component to the container.
[more]virtual void applyLayout (float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Repositions and resizes this component based on parameters passed into the method.
[more]virtual int findComponent (float x, float y)
Given an (x,y) world coordinate, this attempts to find a contained component at that location.
[more]GmLayoutManager* getLayout ()
Gets this container's associated layout manager.
[more]void setLayout (GmLayoutManager* layoutManager)
Sets this container's associated layout manager.
[more]virtual ~GmContainer ()
Virtual destructor

Protected Fields

[more]vector<GmDrawable*> mComponents
The components that this component encapsulates
[more]GmLayoutManager* mLayoutManager
The associated layout manager for this container

Protected Methods

[more]virtual void applyLayout ()
Applies this container's layout to the components that it encapsulates
[more]virtual void render2d (GmTypes::RenderOptionType renderOptions)
Renders this container and all of its sub-components to a 2D image buffer.
[more]virtual void render2dSelect (GmTypes::RenderOptionType renderOptions)
Renders this container and all of its sub-components to a selection buffer.


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 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(float x, float y, float z)
ovirtual void setPosition(GlmPoint3* point)
ovirtual void setRelativeGeometry(float x, float y, float z, float width, float height, float depth)
ovirtual void setRelativeGeometry(float x, float y, float width, float height)
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 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

Class description
ovector<GmDrawable*> mComponents
The components that this component encapsulates

oGmLayoutManager* mLayoutManager
The associated layout manager for this container

ovirtual void applyLayout()
Applies this container's layout to the components that it encapsulates

o GmContainer()
Standard constructor

ovirtual ~GmContainer()
Virtual destructor

ovirtual void addComponent(GmDrawable* component)
Adds a drawable component to the container.

Parameters:
component - the component to add to the container. DO NOT DELETE THIS ARGUMENT AFTER THE METHOD CALL. The container doesn't make a copy, rather it uses the object that is passed in directly. This class will handle the components finalization/deletion.

ovirtual void applyLayout(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
Repositions and resizes this component based on parameters passed into the method. These parameters are usually passed in by the parent class. Container classes in turn call all of their components for restructuring.

Parameters:
minX - the starting X position of the constraint volume
minY - the starting Y position of the constraint volume
minZ - the starting Z position of the constraint volume
minX - the ending X position of the constraint volume
minY - the ending Y position of the constraint volume
minZ - the ending Z position of the constraint volume

ovoid setLayout(GmLayoutManager* layoutManager)
Sets this container's associated layout manager.

Parameters:
layoutManager - the new layout manager for this container

oGmLayoutManager* getLayout()
Gets this container's associated layout manager.

Returns:
this container's layout manager

ovirtual int findComponent(float x, float y)
Given an (x,y) world coordinate, this attempts to find a contained component at that location. If one is found, its index is returned. If not, -1 is returned.

Parameters:
- x the to-be-matched x coordinate
- y the to-be-matched y coordinate
Returns:
if found, the index of the target component, if not, -1

ovirtual void render2d(GmTypes::RenderOptionType renderOptions)
Renders this container and all of its sub-components to a 2D image buffer.

Parameters:
renderOptions - the render options to use when rendering the container.

ovirtual void render2dSelect(GmTypes::RenderOptionType renderOptions)
Renders this container and all of its sub-components to a selection buffer.

Parameters:
renderOptions - the render options to use when rendering the container.


Direct child classes:
GmViewport
GmTable
GmTabbedPanel
GmRadioButtonGroup
GmPanel
GmMenuBar
GmDialog

Alphabetic index HTML hierarchy of classes or Java



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