#include <GlutWindow.h>

Public Types | |
| enum | { PERSPECTIVE = 0, ORTHOGRAPHIC = 1 } |
Public Member Functions | |
| GlutWindow () | |
| ~GlutWindow () | |
| void | StartMainLoop () |
| void | Refresh () |
| void | RefreshScreen () |
| void | ResetView () |
| void | Close () |
| virtual void | Open () |
| bool | IsOpen () |
| void | SetHeight (int) |
| void | SetWidth (int) |
| void | SetPositionX (int) |
| void | SetPositionY (int) |
| void | SetBackgroundColor (GLfloat, GLfloat, GLfloat) |
| void | SetSize (int, int) |
| void | SetPosition (int, int) |
| void | SetTitle (const char *) |
| void | SetCamera (Camera *) |
| void | SetMouse (Mouse *) |
| Camera * | GetCamera () |
| Mouse * | GetMouse () |
| Keyboard * | GetKeyboard () |
| Trackball * | GetTrackball () |
| GlObjectList & | GetObjects () |
| void | SetKeyboard (Keyboard *) |
| virtual void | SetProjection (int) |
| void | DeleteObject (GlObject *obj) |
| void | RemoveObject (GlObject *obj) |
| void | AddObject (GlObject *) |
| void | AddObjects (GlObjectList &) |
| void | AddSubWindow (GlutWindow *) |
Protected Member Functions | |
| void | SetWindowID (int newWindowID) |
| int | GetWindowID (void) |
| virtual void | CallBackDisplayFunc () |
| virtual void | CallBackIdleFunc (void) |
| virtual void | CallBackKeyboardFunc (unsigned char key, int x, int y) |
| virtual void | CallBackMotionFunc (int x, int y) |
| virtual void | CallBackMouseFunc (int button, int state, int x, int y) |
| virtual void | CallBackPassiveMotionFunc (int x, int y) |
| virtual void | CallBackReshapeFunc (int w, int h) |
| virtual void | CallBackSpecialFunc (int key, int x, int y) |
| virtual void | CallBackVisibilityFunc (int visible) |
| virtual void | CallBackSpaceballMotionFunc (int x, int y, int z) |
| virtual void | CallBackSpaceballRotateFunc (int rx, int ry, int rz) |
| void | CreateNewObjectFromStream (int, std::istream &) |
| void | ParseBinary () |
| void | StartIdling () |
| virtual void | UpdateView () |
| virtual void | UpdateRotation () |
Protected Attributes | |
| pid_t | mChildPid |
| std::ifstream | mStdin |
| redi::opstream | mPipe |
| int | mFileDescriptor |
| bool | mPipeIsBad |
| bool | mIsOpen |
| bool | mResetView |
| int | mHeight |
| int | mWidth |
| int | mPositionX |
| int | mPositionY |
| int | mProjection |
| int | mWindowID |
| std::string | mTitle |
| GLfloat | mBackgroundR |
| GLfloat | mBackgroundG |
| GLfloat | mBackgroundB |
| GlutMaster * | gGlutMaster |
| Trackball * | mTrackball |
| Camera * | mCamera |
| Mouse * | mMouse |
| Keyboard * | mKeyboard |
| GlObjectList | mObject |
Friends | |
| class | GlutMaster |
| glotzopengl::GlutWindow::GlutWindow | ( | ) |
| glotzopengl::GlutWindow::~GlutWindow | ( | ) |
| void glotzopengl::GlutWindow::StartMainLoop | ( | ) |
| void glotzopengl::GlutWindow::Refresh | ( | ) |
Reimplemented in glotzopengl::GlutWindowThreaded.
| void glotzopengl::GlutWindow::RefreshScreen | ( | ) |
| void glotzopengl::GlutWindow::ResetView | ( | ) |
| void glotzopengl::GlutWindow::Close | ( | ) |
Reimplemented in glotzopengl::GlutWindowThreaded.
| void glotzopengl::GlutWindow::Open | ( | ) | [virtual] |
Reimplemented in glotzopengl::GlutWindowThreaded.
| bool glotzopengl::GlutWindow::IsOpen | ( | ) |
| void glotzopengl::GlutWindow::SetHeight | ( | int | h | ) |
| void glotzopengl::GlutWindow::SetWidth | ( | int | w | ) |
| void glotzopengl::GlutWindow::SetPositionX | ( | int | x | ) |
| void glotzopengl::GlutWindow::SetPositionY | ( | int | y | ) |
| void glotzopengl::GlutWindow::SetBackgroundColor | ( | GLfloat | r, | |
| GLfloat | g, | |||
| GLfloat | b | |||
| ) |
| void glotzopengl::GlutWindow::SetSize | ( | int | w, | |
| int | h | |||
| ) |
| void glotzopengl::GlutWindow::SetPosition | ( | int | x, | |
| int | y | |||
| ) |
| void glotzopengl::GlutWindow::SetTitle | ( | const char * | title | ) |
| void glotzopengl::GlutWindow::SetCamera | ( | Camera * | camera | ) |
| void glotzopengl::GlutWindow::SetMouse | ( | Mouse * | mouse | ) |
| Camera * glotzopengl::GlutWindow::GetCamera | ( | ) |
| Mouse * glotzopengl::GlutWindow::GetMouse | ( | ) |
| Keyboard * glotzopengl::GlutWindow::GetKeyboard | ( | ) |
| Trackball * glotzopengl::GlutWindow::GetTrackball | ( | ) |
| GlObjectList & glotzopengl::GlutWindow::GetObjects | ( | ) |
| void glotzopengl::GlutWindow::SetKeyboard | ( | Keyboard * | keyboard | ) |
| void glotzopengl::GlutWindow::SetProjection | ( | int | projection | ) | [virtual] |
Reimplemented in glotzopengl::GlutWindow3d.
| void glotzopengl::GlutWindow::DeleteObject | ( | GlObject * | obj | ) |
| void glotzopengl::GlutWindow::RemoveObject | ( | GlObject * | obj | ) |
| void glotzopengl::GlutWindow::AddObject | ( | GlObject * | obj | ) |
| void glotzopengl::GlutWindow::AddObjects | ( | GlObjectList & | obj | ) |
| void glotzopengl::GlutWindow::AddSubWindow | ( | GlutWindow * | subwindow | ) |
| void glotzopengl::GlutWindow::SetWindowID | ( | int | newWindowID | ) | [protected] |
| int glotzopengl::GlutWindow::GetWindowID | ( | void | ) | [protected] |
| void glotzopengl::GlutWindow::CallBackDisplayFunc | ( | void | ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackIdleFunc | ( | void | ) | [protected, virtual] |
Reimplemented in glotzopengl::GlutWindowThreaded.
| void glotzopengl::GlutWindow::CallBackKeyboardFunc | ( | unsigned char | key, | |
| int | x, | |||
| int | y | |||
| ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackMotionFunc | ( | int | x, | |
| int | y | |||
| ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackMouseFunc | ( | int | button, | |
| int | state, | |||
| int | x, | |||
| int | y | |||
| ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackPassiveMotionFunc | ( | int | x, | |
| int | y | |||
| ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackReshapeFunc | ( | int | w, | |
| int | h | |||
| ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackSpecialFunc | ( | int | key, | |
| int | x, | |||
| int | y | |||
| ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackVisibilityFunc | ( | int | visible | ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackSpaceballMotionFunc | ( | int | x, | |
| int | y, | |||
| int | z | |||
| ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CallBackSpaceballRotateFunc | ( | int | rx, | |
| int | ry, | |||
| int | rz | |||
| ) | [protected, virtual] |
| void glotzopengl::GlutWindow::CreateNewObjectFromStream | ( | int | seq, | |
| std::istream & | is | |||
| ) | [protected] |
| void glotzopengl::GlutWindow::ParseBinary | ( | ) | [protected] |
| void glotzopengl::GlutWindow::StartIdling | ( | ) | [protected] |
| void glotzopengl::GlutWindow::UpdateView | ( | ) | [protected, virtual] |
Reimplemented in glotzopengl::GlutWindow3d.
| void glotzopengl::GlutWindow::UpdateRotation | ( | ) | [protected, virtual] |
Reimplemented in glotzopengl::GlutWindow3d.
friend class GlutMaster [friend] |
pid_t glotzopengl::GlutWindow::mChildPid [protected] |
std::ifstream glotzopengl::GlutWindow::mStdin [protected] |
redi::opstream glotzopengl::GlutWindow::mPipe [protected] |
int glotzopengl::GlutWindow::mFileDescriptor [protected] |
bool glotzopengl::GlutWindow::mPipeIsBad [protected] |
bool glotzopengl::GlutWindow::mIsOpen [protected] |
bool glotzopengl::GlutWindow::mResetView [protected] |
int glotzopengl::GlutWindow::mHeight [protected] |
int glotzopengl::GlutWindow::mWidth [protected] |
int glotzopengl::GlutWindow::mPositionX [protected] |
int glotzopengl::GlutWindow::mPositionY [protected] |
int glotzopengl::GlutWindow::mProjection [protected] |
int glotzopengl::GlutWindow::mWindowID [protected] |
std::string glotzopengl::GlutWindow::mTitle [protected] |
GLfloat glotzopengl::GlutWindow::mBackgroundR [protected] |
GLfloat glotzopengl::GlutWindow::mBackgroundG [protected] |
GLfloat glotzopengl::GlutWindow::mBackgroundB [protected] |
GlutMaster* glotzopengl::GlutWindow::gGlutMaster [protected] |
Trackball* glotzopengl::GlutWindow::mTrackball [protected] |
Camera* glotzopengl::GlutWindow::mCamera [protected] |
Mouse* glotzopengl::GlutWindow::mMouse [protected] |
Keyboard* glotzopengl::GlutWindow::mKeyboard [protected] |
GlObjectList glotzopengl::GlutWindow::mObject [protected] |
1.5.3