fiore@3: #pragma once fiore@3: fiore@3: #include "stdafx.h" fiore@3: #include "CollectionsManager.h" fiore@3: #include "HapticManager.h" fiore@3: fiore@3: /* The graphic manager draws the diagram openGL scene graphically. * fiore@3: * In order to get all the data about the diagram it's constructed * fiore@3: * passing a reference to the CollectionManager */ fiore@3: class GraphicManager{ fiore@3: static const double kCursorRadius; fiore@3: static const double kCursorHeight; fiore@3: static const int kCursorTess; fiore@3: static const GLfloat light_model_ambient[]; fiore@3: static const GLfloat light0_diffuse[]; fiore@3: static const GLfloat light0_direction[]; fiore@3: fiore@3: static const double nodeSize; fiore@3: fiore@3: static const hduVector3Dd nodeColor;//(1.0, 1.0, 1.0); fiore@3: static const hduVector3Dd edgeColor; fiore@3: fiore@3: CollectionsManager * collectionsManager; fiore@3: HapticManager * hapticManager; fiore@3: fiore@3: void drawCursor(void); fiore@3: public: fiore@3: double gCursorScale; fiore@3: double gWorldScale; fiore@3: GLuint gCursorDisplayList; fiore@3: GraphicManager(CollectionsManager * cManager, HapticManager * hManager) : collectionsManager(cManager), hapticManager(hManager) { fiore@3: gCursorDisplayList = 0; fiore@3: gWorldScale = 1; fiore@3: }; fiore@3: ~GraphicManager(void){}; fiore@3: void init(void); fiore@3: void draw(void); fiore@3: fiore@3: };