Overview   Project   Class   Tree   Deprecated   Index 
CarnegieMellonGraphics
FRAMES    NO FRAMES

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

addKeyboardEvent(const KeyboardEvent&) - member function in class Window
Functions to add events to the input queues.
addMouseEvent(const MouseEvent&) - member function in class Window
Functions to add events to the input queues.
addTimerEvent(const TimerEvent&) - member function in class Window
Functions to add events to the input queues.
ALL_MODIFIERS - static variable in class KeyModifiers
Matches when all modifiers are active
ALT - static variable in class KeyModifiers
Matches the "alt" key
ALT_AND_CONTROL - static variable in class KeyModifiers
Matches if both "control" and "alt" are active
ALT_AND_SHIFT - static variable in class KeyModifiers
Matches if both "shift" and "alt" are active
ANY_MODIFIERS - static variable in class KeyModifiers
Matches any set of modifiers
autoFlushKeyboardQueue(bool) - member function in class Window
Automatically lets you ignore the events in the keyboard message queue.
autoFlushMouseQueue(bool) - member function in class Window
Automatically lets you ignore the events in the mouse message queue.
autoFlushTimerQueue(bool) - member function in class Window
Automatically lets you ignore the events in the timer message queue.

B

BACKSPACE - static variable in class NamedKey
BLACK - static variable in class Color
BLACK - static variable in class Style
BLUE - static variable in class Color
BLUE - static variable in class Style
Button - member variable in typedef MouseEvent::Button

C

checkImage(const std::string&,const Type) - static function in class Image
Class function for checking to see whether an Image exists
clone() - member function in class EditableImage
return a "deep" copy of this image
Color - class in CarnegieMellonGraphics2
The Color class is used by the system to represent color information (of all things).
Color() - constructor in class Color
Construct an empty color (which is by default, fully opaque black)
Color(int,int,int) - constructor in class Color
Construct a completely opaque color from three component hues
Color(int,int,int,int) - constructor in class Color
Construct a color from the three component hues and an alpha channel.
CONTROL - static variable in class KeyModifiers
Matches "control" key
CONTROL_AND_ALT - static variable in class KeyModifiers
Matches if both "control" and "alt" are active
CONTROL_AND_SHIFT - static variable in class KeyModifiers
Matches if both "control" and "shift" are active
copyRegion(const int,const int,const int,const int,const int,const int) - member function in class Window
Copy the rectangular region at (x1, y1) to (x2, y2)
createImage(const int,const int,const int,const int) - member function in class Window
Create an image from the rectangular region with an upper-left hand corner at (x, y)

D

DELETE_KEY - static variable in class NamedKey
disableAntialiasing() - member function in class Window
Renderer dependent capability.
DOWN_ARROW - static variable in class NamedKey
drawArc(const Style&,const int,const int,const int,const int,const double,const double) - member function in class Window
Draw an elliptical arc from angle start to end in degrees.
drawBezierCurve(const Style&,const std::vector< int >&,const std::vector< int >&) - member function in class Window
Draw a bezier curve using the specified style, and the two vectors specifying the control points
drawChordFilled(const Style&,const int,const int,const int,const int,const double,const double) - member function in class Window
Draw a filled elliptical chord with from start to end degrees The two points (x1, y1) and (x2, y2) specify the bounding box
drawChordOutline(const Style&,const int,const int,const int,const int,const double,const double) - member function in class Window
Draw an elliptical chord outline with from start to end degrees The two points (x1, y1) and (x2, y2) specify the bounding box
drawCircleFilled(const Style&,const int,const int,const int) - member function in class Window
Draw a filled circle with style s and the specified radius at point (x, y)
drawCircleOutline(const Style&,const int,const int,const int) - member function in class Window
Draw a circle outline with style s and the specified radius at point (x, y)
drawEllipseFilled(const Style&,const int,const int,const int,const int) - member function in class Window
Draw a filled ellipse with inside the bounding box specfied by the two points (x1, y1) and (x2, y2)
drawEllipseOutline(const Style&,const int,const int,const int,const int) - member function in class Window
Draw an ellipse outline with inside the bounding box specified by the two points (x1, y1) and (x2, y2)
drawImage(const Image&,const int,const int) - member function in class Window
Draw the image at with its upper right-hand corner located at (x,y)
drawImage(const Image&,const int,const int,const Transform&) - member function in class Window
Draw the image at with its upper right-hand corner located at (x,y) using the specified transform
drawLine(const Style&,const int,const int,const int,const int) - member function in class Window
Draw a line from (x1,y1) to (x2, y2) with style s
drawPixel(const Style&,const int,const int) - member function in class Window
Draw a pixel at (x,y) with style s.
drawPolygonFilled(const Style&,const std::vector< int >&,const std::vector< int >&) - member function in class Window
Draw a filled polygon using the specified style and the two vectors to specifiy vertices
drawPolygonOutline(const Style&,const std::vector< int >&,const std::vector< int >&) - member function in class Window
Draw a polygon outline using the specified style and the two vectors to specifiy vertices
drawPolyLine(const Style&,const std::vector< int >&,const std::vector< int >&) - member function in class Window
Draw a polyline using the specified style and the two vectors to specifiy vertices
drawRectangleFilled(const Style&,const int,const int,const int,const int) - member function in class Window
Draw a filled rectangle with (x1, y1) as the upper left-hand corner, and (x2, y2) as the lower right-hand corner with style s
drawRectangleOutline(const Style&,const int,const int,const int,const int) - member function in class Window
Draw a rectangle outline with (x1, y1) as the upper left-hand corner, and (x2, y2) as the lower right-hand corner with style s
drawText(const Style&,const Font&,const int,const int,const std::string&) - member function in class Window
Draw text in the specified font and style
drawText(const Style&,const Font&,const int,const int,const std::string&,const Transform&) - member function in class Window
Draw text in the specified font and style, using the specified transform
drawTriangleFilled(const Style&,const int,const int,const int,const int,const int,const int) - member function in class Window
Draw a filled triangle with vertices (x1, y1), (x2, y2), (x3, y3) with in style s
drawTriangleOutline(const Style&,const int,const int,const int,const int,const int,const int) - member function in class Window
Draw a triangle outline with vertices (x1, y1), (x2, y2), (x3, y3) with in style s
drawWedgeFilled(const Style&,const int,const int,const int,const int,const double,const double) - member function in class Window
Draw a filled elliptical wedge with from start to end degrees The two points (x1, y1) and (x2, y2) specify the bounding box
drawWedgeOutline(const Style&,const int,const int,const int,const int,const double,const double) - member function in class Window
Draw an elliptical wedge outline with from start to end degrees The two points (x1, y1) and (x2, y2) specify the bounding box

E

EditableImage - class in CarnegieMellonGraphics2
Images that can be manipulated at the pixel level.
~EditableImage() - constructor in class EditableImage
EditableImage(const EditableImage&) - constructor in class EditableImage
Copy constructor
EditableImage(const Image&) - constructor in class EditableImage
Cast Image object up to an EditableImage
EditableImage(int,int) - constructor in class EditableImage
Constructor to make an image that's width x height.
enableAntialiasing() - member function in class Window
Renderer dependent capability.
END - static variable in class NamedKey
ENTER - static variable in class NamedKey
erase(Color) - member function in class Window
Erases drawing and fills background.
ESCAPE - static variable in class NamedKey
Event - member variable in typedef MouseEvent::Event
exitHandler() - static function in class WindowManager
Called inside the event loop to exit the handle

F

flipPage() - member function in class Window
Deprecated. This is an alias for reDraw()
Make the changes that you've made appear on screen.
flipPatternBit(int) - member function in class Style
flushKeyboardQueue() - member function in class Window
Remove all pending messages in the keyboard event queue.
flushMouseQueue() - member function in class Window
Remove all pending messages in the mouse event queue.
flushTimerQueue() - member function in class Window
Remove all pending messages in the timer event queue.
Font - class in CarnegieMellonGraphics2
Class for representing fonts.
~Font() - constructor in class Font
Font(const Font&) - constructor in class Font
Copy constructor
Font(int,int) - constructor in class Font
Constructor for creating fonts from one of the builtin fonts.
FUNCTION_1 - static variable in class NamedKey
FUNCTION_10 - static variable in class NamedKey
FUNCTION_11 - static variable in class NamedKey
FUNCTION_12 - static variable in class NamedKey
FUNCTION_2 - static variable in class NamedKey
FUNCTION_3 - static variable in class NamedKey
FUNCTION_4 - static variable in class NamedKey
FUNCTION_5 - static variable in class NamedKey
FUNCTION_6 - static variable in class NamedKey
FUNCTION_7 - static variable in class NamedKey
FUNCTION_8 - static variable in class NamedKey
FUNCTION_9 - static variable in class NamedKey

G

getAlpha() - member function in class Color
getBlue() - member function in class Color
getButton() - member function in class MouseEvent
getColor() - member function in class Style
getEvent() - member function in class MouseEvent
getFace() - member function in class Font
getGreen() - member function in class Color
getHeight() - member function in class Image
Get the height of the image
getHeight() - member function in class Window
Return the height of the window.
getKeyboardEvent() - member function in class Window
Pull events off the front of the Keyboard event queue.
getKeyboardFilter() - member function in class Window
Set filters on the input queues, useful in eliminating non-interesting events.
getLineWidth() - member function in class Style
getModifiers() - member function in class KeyboardEvent
Obtain the set of modifers active at the time of the event
getModifiers() - member function in class MouseEvent
getMouseEvent() - member function in class Window
Pull events off the front of the Mouse event queue Use isButtonDown if you're interested in less precise input processing (i.e. when you're making a game).
getMouseFilter() - member function in class Window
Set filters on the input queues, useful in eliminating non-interesting events.
getMouseX() - member function in class Window
Return the last location of mouse X position.
getMouseY() - member function in class Window
Return the last location of mouse Y position.
getPattern() - member function in class Style
getPatternAsUShort() - member function in class Style
getPixel(int,int) - member function in class EditableImage
gets the color of the pixel at (x,y)
getPointSize() - member function in class Font
getPosition(int&,int&) - member function in class Window
Retrieves the current position of the window.
getRasterOp() - member function in class Style
getRed() - member function in class Color
getRotation() - member function in class Transform
getScaleX() - member function in class Transform
getScaleY() - member function in class Transform
getStringSize(const std::string&,int&,int&) - member function in class Font
Get the dimensions of the specified text.
getTime() - static function in class WindowManager
Return the number of "ticks" that have ellapsed since the program was started.
getTimerCount(const TimerEvent&) - member function in class Window
Get the number of times this timer event has occurred.
getTimerEvent() - member function in class Window
Pull events off the front of the Timer event queue Use getTimerCount to get lower-overhead event processing.
getTimerFilter() - member function in class Window
Set filters on the input queues, useful in eliminating non-interesting events.
getTimerID() - member function in class TimerEvent
getType() - member function in class Image
Get the type of the image
getValue() - member function in class KeyboardEvent
Obtain the integer value cooresponding to the event
getWidth() - member function in class Image
Get the width of the image
getWidth() - member function in class Window
Return the width of the window.
getX() - member function in class MouseEvent
getY() - member function in class MouseEvent
GREEN - static variable in class Color
GREEN - static variable in class Style

H

handleEvents() - static function in class WindowManager
Called to begin event handling
handleIdleEvent() - member function in class Window
Event handlers for when in event handling mode.
handleKeyboardEvent(const KeyboardEvent&) - member function in class Window
Event handlers for when in event handling mode.
handleMouseEvent(const MouseEvent&) - member function in class Window
Event handlers for when in event handling mode.
handleTimerEvent(const TimerEvent&) - member function in class Window
Event handlers for when in event handling mode.
HELVETICA - static variable in class Font
bitmapped fonts, must be used at specific sizes; helvetica sizes: 10,12, 18.
hide() - member function in class Window
Hide this window.
HOME - static variable in class NamedKey

I

ignoreKeyRepeat(bool) - member function in class Window
Ignore repeated keystrokes sent to this window.
Image - class in CarnegieMellonGraphics2
The Image class
Image() - constructor in class Image
~Image() - constructor in class Image
Image(const Image&) - constructor in class Image
Copy constructor
Image(const std::string&,const Type) - constructor in class Image
Image::Type - typedef in CarnegieMellonGraphics2
Image types currently supported
JPEG JPEG Images
PNG PNG Images
SCREENAn image created from a region in a window
INSERT - static variable in class NamedKey
INVERTED - static variable in class Style
isButtonDown(MouseEvent::Button) - member function in class Window
Tells whether a specified mouse button is down.
isHidden() - member function in class Window
Tell if this window is hidden or not.
isKeyboardQueueEmpty() - member function in class Window
Check whether there is input sitting in the Keyboard Queue.
isKeyDown(int) - member function in class Window
Tells whether the specified key is down.
isModifierDown(KeyModifiers) - member function in class Window
Tells whether the specified modifier was pressed during the last recorded mouse or keyboard event.
isMouseQueueEmpty() - member function in class Window
Check whether there is input sitting in the Mouse Queue.
isTimerQueueEmpty() - member function in class Window
Check whether there is input sitting in the Timer Queue.

K

KeyboardEvent - class in CarnegieMellonGraphics2
KeyboardEvents are generated whenever the user presses a key.
KeyboardEvent() - constructor in class KeyboardEvent
KeyboardEvent(const int,const KeyModifiers) - constructor in class KeyboardEvent
Constructor for a keyboard event from a pair of parameters.
KeyboardEvent(const KeyboardEvent&) - constructor in class KeyboardEvent
KeyModifiers - class in CarnegieMellonGraphics2
The KeyModifiers objects act as a "set" whose domain is that of the modifier keys that are available on a given system (usually control, shift, and alt).
KeyModifiers() - constructor in class KeyModifiers

L

LEFT_ARROW - static variable in class NamedKey

M

MONO_ROMAN - static variable in class Font
stroked font, can be used at any resolution
MouseEvent - class in CarnegieMellonGraphics2
MouseEvents are generated whenever the user performs some action with the mouse.
MouseEvent() - constructor in class MouseEvent
Default constructor
MouseEvent(const Event,const Button,const int,const int,const KeyModifiers) - constructor in class MouseEvent
Constructor for a mouse event from a set of parameters.
MouseEvent(const MouseEvent&) - constructor in class MouseEvent
Copy constructor
MouseEvent::Button - typedef in CarnegieMellonGraphics2
These are the buttons that CMG recognizes.
MouseEvent::Event - typedef in CarnegieMellonGraphics2
These are the events that CMG reports.

N

NamedKey - class in CarnegieMellonGraphics2
The NamedKey class acts as a namespace for constants that correspond to keys that do not have a simple ASCII representation.
NO_MODIFIERS - static variable in class KeyModifiers
Matches if there are no active modifiers
numberToString(double,int) - static function in class Window
Convert the given double number to a string.
numberToString(int) - static function in class Window
Convert the given number to a string.

O

operator!=(const Color&) - member function in class Color
Comparison operator for inequality on color objects
operator!=(const Font&) - member function in class Font
Comparison operator for inequality on fonts
operator!=(const Image&) - member function in class Image
Comparison operator for inequality on images
operator!=(const KeyboardEvent&) - member function in class KeyboardEvent
Comparison operators for inequality on keyboard events
operator!=(const KeyModifiers&) - member function in class KeyModifiers
!= Inequality tests on KeyModifiers
operator!=(const MouseEvent&) - member function in class MouseEvent
Comparison operator for inequality on events.
operator!=(const Style&) - member function in class Style
Comparison operator for inequality on style objects
operator!=(const TimerEvent&) - member function in class TimerEvent
operator<<(std::ostream&,const Color&) - member function in (CarnegieMellonGraphics2 globals)
operator<<(std::ostream&,const Font&) - member function in (CarnegieMellonGraphics2 globals)
operator<<(std::ostream&,const Image&) - member function in (CarnegieMellonGraphics2 globals)
operator<<(std::ostream&,const KeyboardEvent&) - member function in (CarnegieMellonGraphics2 globals)
operator<<(std::ostream&,const KeyModifiers&) - member function in (CarnegieMellonGraphics2 globals)
operator<<(std::ostream&,const MouseEvent&) - member function in (CarnegieMellonGraphics2 globals)
operator<<(std::ostream&,const Style&) - member function in (CarnegieMellonGraphics2 globals)
operator<<(std::ostream&,const TimerEvent&) - member function in (CarnegieMellonGraphics2 globals)
operator<<(std::ostream&,const Transform&) - member function in (CarnegieMellonGraphics2 globals)
operator&=(const KeyModifiers&) - member function in class KeyModifiers
&= Intersection-Assignment operator on KeyModifiers
operator=(const EditableImage&) - member function in class EditableImage
Assignment operator.
operator=(const Font&) - member function in class Font
Assignment operator
operator=(const Image&) - member function in class Image
Assignment operator
operator=(const Style&) - member function in class Style
operator==(const Color&) - member function in class Color
Comparison operator for equality on color objects
operator==(const Font&) - member function in class Font
Comparison operator for equality on fonts
operator==(const Image&) - member function in class Image
Comparison operator for equality on images
operator==(const KeyboardEvent&) - member function in class KeyboardEvent
Comparison operators for equality on keyboard events
operator==(const KeyModifiers&) - member function in class KeyModifiers
== Equality tests on KeyModifiers
operator==(const MouseEvent&) - member function in class MouseEvent
Comparison operator for equality on events.
operator==(const Style&) - member function in class Style
Comparison operator for equality on style objects
operator==(const TimerEvent&) - member function in class TimerEvent
operator|=(const KeyModifiers&) - member function in class KeyModifiers
|= Union-Assignment operator on KeyModifiers
operator~() - member function in class KeyModifiers
~ Compliment operator on KeyModifiers

P

PAGE_DOWN - static variable in class NamedKey
PAGE_UP - static variable in class NamedKey

R

RasterOp - member variable in typedef Style::RasterOp
readPixel(const int,const int) - member function in class Window
Return the color at point (x, y)
RED - static variable in class Color
RED - static variable in class Style
reDraw() - member function in class Window
Redraws window. Makes changes visible.
resize(int,int) - member function in class Window
Changes the size of the window after creation.
RIGHT_ARROW - static variable in class NamedKey
ROMAN - static variable in class Font
stroked font, can be used at any resolution

S

save(const std::string&,const Type) - member function in class Image
Save this image to a file of the specified type.
SCALE - static variable in class Transform
setAlpha(int) - member function in class Color
setBlue(int) - member function in class Color
setColor(Color) - member function in class Style
setFace(const std::string&) - member function in class Font
setGreen(int) - member function in class Color
setKeyboardFilter(const KeyboardEvent&) - member function in class Window
Change the filter for the keyboard queue.
setLineWidth(int) - member function in class Style
setMouseFilter(const MouseEvent&) - member function in class Window
Change the filter for the mouse queue.
setPattern(const std::vector< bool >&) - member function in class Style
setPixel(int,int,const Color&) - member function in class EditableImage
sets the color of the pixel at (x,y)
setPixel(int,int,unsigned char,unsigned char,unsigned char,unsigned char) - member function in class EditableImage
sets the color of the pixel at (x,y)
setPointSize(const int) - member function in class Font
setPosition(int,int) - member function in class Window
Changes the position of the window after creation.
setRasterOp(RasterOp) - member function in class Style
setRed(int) - member function in class Color
setRotation(double) - member function in class Transform
setScale(double,double) - member function in class Transform
setScaleX(double) - member function in class Transform
setScaleY(double) - member function in class Transform
setTimerCount(const TimerEvent&,int) - member function in class Window
Changes the count for a timer.
setTimerFilter(const TimerEvent&) - member function in class Window
Change the filter for the timer queue.
setTitle(const std::string&) - member function in class Window
Changes the title of the window after creation.
SHIFT - static variable in class KeyModifiers
Matches the "shift" key
SHIFT_AND_ALT - static variable in class KeyModifiers
Matches if both "shift" and "alt" are active
SHIFT_AND_CONTROL - static variable in class KeyModifiers
Matches if both "control" and "shift" are active
show() - member function in class Window
Show this window.
startTimer(int) - member function in class Window
Register a timer event to occur every specified interval until you stop it using stopTimer.
stopTimer(const TimerEvent&) - member function in class Window
Stop a timer that was started with startTimer.
Style - class in CarnegieMellonGraphics2
Style objects are used to encapsulate several pieces of style information to be passed to drawing calls.
Style(Color,int,RasterOp,const std::vector< bool >&) - constructor in class Style
Construct a style from a set of parameters
Style(const Style&) - constructor in class Style
Style::RasterOp - typedef in CarnegieMellonGraphics2
Possible raster operations
COPY_OP Simply draw the color, default behavior
INVERT_OP Invert the drawing surface's color
XOR_OP XOR drawing surface with color
AND_OP AND drawing surface with color
OR_OP OR drawing surface with color
subImage(int,int,int,int) - member function in class Image
Copy out a sub-portion of the image and return it.

T

TimerEvent - class in CarnegieMellonGraphics2
TimerEvents are used to keep track of events that happen at regular intervals.
TimerEvent() - constructor in class TimerEvent
TimerEvent(const TimerEvent&) - constructor in class TimerEvent
TimerEvent(int) - constructor in class TimerEvent
TIMES - static variable in class Font
bitmapped fonts, must be used at specific sizes; times sizes: 10, 24.
Transform - class in CarnegieMellonGraphics2
Transform objects are used to encapsulate image transformations: rotations and scales.
Transform() - constructor in class Transform
Transform(double) - constructor in class Transform
Transform(double,double) - constructor in class Transform
Transform(double,double,double) - constructor in class Transform
Type - member variable in typedef Image::Type

U

UP_ARROW - static variable in class NamedKey

W

waitForKeyboardEvent() - member function in class Window
Wait for a keyboard event to occur and then return the event.
waitForMouseEvent() - member function in class Window
Wait for a mouse event to occur and then return the event.
waitForTimerEvent() - member function in class Window
Wait for a timer event to occur and then return the event.
WHITE - static variable in class Color
WHITE - static variable in class Style
Window - class in CarnegieMellonGraphics2
The Window class is used to represent that actual drawing surfaces.
~Window() - constructor in class Window
Window(const int,const int,const std::string&,bool,int,int) - constructor in class Window
Construct a new window with the specified size and title.
Window(int,int,int,int,const std::string&,bool,int,int) - constructor in class Window
An alternate constructor where you get to choose the position of the window as well as all of the other usual parameters.
WindowManager - class in CarnegieMellonGraphics2
The WindowManager class is used when operating the library in an event driven mode.

 Overview   Project   Class   Tree   Deprecated   Index 
CarnegieMellonGraphics
FRAMES    NO FRAMES