Mercurial > hg > ccmieditor
annotate native/PhantomOmni/GraphicManager.h @ 8:ea7885bd9bff tip
fixed bug : render solid line as dotted/dashed when moving the stylus from dotted/dashed to solid
author | ccmi-guest |
---|---|
date | Thu, 03 Jul 2014 16:12:20 +0100 |
parents | 9e67171477bc |
children |
rev | line source |
---|---|
fiore@3 | 1 #pragma once |
fiore@3 | 2 |
fiore@3 | 3 #include "stdafx.h" |
fiore@3 | 4 #include "CollectionsManager.h" |
fiore@3 | 5 #include "HapticManager.h" |
fiore@3 | 6 |
fiore@3 | 7 /* The graphic manager draws the diagram openGL scene graphically. * |
fiore@3 | 8 * In order to get all the data about the diagram it's constructed * |
fiore@3 | 9 * passing a reference to the CollectionManager */ |
fiore@3 | 10 class GraphicManager{ |
fiore@3 | 11 static const double kCursorRadius; |
fiore@3 | 12 static const double kCursorHeight; |
fiore@3 | 13 static const int kCursorTess; |
fiore@3 | 14 static const GLfloat light_model_ambient[]; |
fiore@3 | 15 static const GLfloat light0_diffuse[]; |
fiore@3 | 16 static const GLfloat light0_direction[]; |
fiore@3 | 17 |
fiore@3 | 18 static const double nodeSize; |
fiore@3 | 19 |
fiore@3 | 20 static const hduVector3Dd nodeColor;//(1.0, 1.0, 1.0); |
fiore@3 | 21 static const hduVector3Dd edgeColor; |
fiore@3 | 22 |
fiore@3 | 23 CollectionsManager * collectionsManager; |
fiore@3 | 24 HapticManager * hapticManager; |
fiore@3 | 25 |
fiore@3 | 26 void drawCursor(void); |
fiore@3 | 27 public: |
fiore@3 | 28 double gCursorScale; |
fiore@3 | 29 double gWorldScale; |
fiore@3 | 30 GLuint gCursorDisplayList; |
fiore@3 | 31 GraphicManager(CollectionsManager * cManager, HapticManager * hManager) : collectionsManager(cManager), hapticManager(hManager) { |
fiore@3 | 32 gCursorDisplayList = 0; |
fiore@3 | 33 gWorldScale = 1; |
fiore@3 | 34 }; |
fiore@3 | 35 ~GraphicManager(void){}; |
fiore@3 | 36 void init(void); |
fiore@3 | 37 void draw(void); |
fiore@3 | 38 |
fiore@3 | 39 }; |