Files Classes Functions Hierarchy
#include <cassert>#include <deque>#include <vector>#include <iostream>#include <GL/glut.h>#include <GL/gl.h>#include <fnobjTfn.h>#include <point.h>#include <print.h>#include <typedefs.h>#include <gobjdebug.h>
Go to the source code of this file.
Classes | |
| class | gobj |
| class | gobjGlobal |
| Switch global graphics stream. Uses stack unwinding with named variable to release the resource. More... | |
| class | gobjglCallList< T > |
| OpenGL glCallList function wrapped as an object. More... | |
| class | gobjcallback< T > |
| Callback writes graphics. More... | |
| class | gobjContainer |
| Composite container of graphics objects. More... | |
| class | gobjContainerdeque |
| class | gobjContainerSwitch |
| A graphics container where each is a switch. More... | |
| class | gobjContainerPrePost |
| Execute draw functions on the containers in the order of pre is first, this class is second and post is last. More... | |
| class | gobjSwitch< BOOL > |
| If the switch is on draw the object else don't. More... | |
| class | gobjcallbackcontainer< T > |
| Callback writes graphics. More... | |
Defines | |
| #define | gobjpush(x) assert(gobjContainer::global != 0); gobj::global->push(x) |
| #define | DOUBLECOLOR(uR, uG, uB) 1.0*uR/256.0, 1.0*uG/256.0, 1.0*uB/256.0 |
Functions | |
| template<class T > | |
| gobjcallback< T > * | gobjcallbackcreatenew (T &data_, void(T::*fn_)()) |
| Helper function creating callback with no arguments functional object. | |
| template<class T > | |
| gobjcallbackcontainer< T > * | gobjcallbackcontainercreatenew (T &data_, void(T::*fn_)(gobjContainer &)) |
| Helper function creating callback with first argument gobjContainer functional object. | |
| #define DOUBLECOLOR | ( | uR, | |||
| uG, | |||||
| uB | ) | 1.0*uR/256.0, 1.0*uG/256.0, 1.0*uB/256.0 |
| #define gobjpush | ( | x | ) | assert(gobjContainer::global != 0); gobj::global->push(x) |
Definition at line 18 of file gobjbase.h.
Referenced by graphicsImmediateDeferredTestTri::addshape02(), bsptree001::bsptree001(), buttonpanel01test::buttonpanel01test(), mazedisp03::celldraw(), mazedisp02::celldraw(), mazedisp01::celldraw(), maze001::celldraw(), mazedisp03::celldraw2(), mazedisp02::celldraw2(), maze001::constructgraphics(), bsptree001::currentsphere(), visenv::defaultgraphics(), tessD1draw01simplexindexes< TESS, PT >::draw(), tessD1draw01lines< TESS, PT >::draw(), tessD1draw01linesmulticolor< TESS, PT >::draw(), tessD1draw01points< TESS, PT >::draw(), mazedisp02::draw(), mazedisp01::draw(), gobjcallbackcontainer< T >::draw(), tessD2draw02simplexindex< TESS, PT, INDX >::draw(), tessD2draw02points< TESS, PT >::draw(), tessD2draw02multicolor< TESS, PT, INDX >::draw(), tessD2draw02circles< TESS, PT, INDX >::draw(), maze005::eval(), maze004::eval(), graphicsImmediateDeferredTestTri::graphicscreate03(), visline::handlecommand(), visconvex::handlecommand(), simplexD1tessapp01::mainmenu(), maze003::maze003(), graphicsImmediateDeferredTest::menu01(), graphicsImmediateDeferredTest::menu02(), maze005::menubuild(), menusystemtest01::menusystemtest01(), menusystemtest02::menusystemtest02(), menusystemtest03::menusystemtest03(), menusystemtest04::menusystemtest04(), simplexD1tessapp01::messagemenu(), vispointxml::piaddpoint(), cubegui::prog01(), mazedisp03::staticgraphics(), gobjtest::test001(), windowscaleD2test::test002(), graphmisctest::test002(), gobjtest::test002(), gobjtest::test003(), helixtestscope::helixtest::test01(), quickhull3Dtest::test01(), planeinttest::test01(), diskinttest::test01(), circleD2test::test01(), boxOBBhalfspaceD2test::test01(), triangles3Tdisplaytest::test01(), pointsurfacetest::test01(), graphicsImmediateDeferredTest::test01(), pathlinesegtest::test01(), helixtestscope::helixtest::test02(), spiralindextest::test02(), snakesorttest::test02(), simplexD2tessapp01::test02(), quickhull2Dtest::test02(), diskinttest::test02(), triangles3Tdisplaytest::test02(), pointsurfacetest::test02(), menusystemtest::test02(), graphicsImmediateDeferredTest::test02(), delaunaysimpleD2test::test02(), polytopesD2linkedtest::test02(), meshpatchtest::test02(), helixtestscope::helixtest::test03(), snakesorttest::test03(), diskinttest::test03(), triangles3Tdisplaytest::test03(), pointsurfacetest::test03(), graphicsImmediateDeferredTest::test03(), treeindexedD2test::test03(), meshpatchtest::test03(), test03(), spiralindextest::test04(), triangles3Tdisplaytest::test04(), graphicsImmediateDeferredTest::test04(), meshpatchtest::test04(), triangles3Tdisplaytest::test05(), graphicsImmediateDeferredTest::test05(), treeindexedD2test::test05(), quickhull2Dtest::test06(), graphicsImmediateDeferredTest::test06(), and graphicsImmediateDeferredTest::test07().
| gobjcallbackcontainer<T>* gobjcallbackcontainercreatenew | ( | T & | data_, | |
| void(T::*)(gobjContainer &) | fn_ | |||
| ) | [inline] |
Helper function creating callback with first argument gobjContainer functional object.
Definition at line 431 of file gobjbase.h.
Referenced by graphicsImmediateDeferredSwitch::pushdeferred().
00435 { return new gobjcallbackcontainer<T>(data_,fn_); }
| gobjcallback<T>* gobjcallbackcreatenew | ( | T & | data_, | |
| void(T::*)() | fn_ | |||
| ) | [inline] |
Helper function creating callback with no arguments functional object.
Definition at line 146 of file gobjbase.h.
Referenced by mazedisp03::construct(), and graphicsImmediateDeferredSwitch::pushdeferred().
00147 { return new gobjcallback<T>(data_,fn_); }
1.5.8