HOG2
|
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include "SFML_HOG.h"
#include "Trackball.h"
#include "Common.h"
#include "TextBox.h"
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include <cassert>
#include "MonoFont.h"
Go to the source code of this file.
Macros | |
#define | GL_SILENCE_DEPRECATION |
Functions | |
void | glutStrokeCharacter (void *font, int character) |
int | glutStrokeWidth (void *font, int character) |
int | hog_main (int argc, char **argv) |
int | main (int argc, char **argv) |
Graphics::point | WindowToHOG (const Graphics::point &p) |
void | Line (Graphics::point p1, Graphics::point p2, float width, int viewport) |
pRecContext | GetContext (unsigned long windowID) |
pRecContext | getCurrentContext () |
Graphics::point | convertToGlobalHogCoordinate (int x, int y) |
void | RunHOGGUI (int argc, char **argv, int windowDimension) |
void | RunHOGGUI (int argc, char *argv[], int xDimension, int yDimension) |
void | createMenus () |
void | processMenuEvents (int option) |
void | keyPressed (unsigned char key, int, int) |
Called when a key is pressed, and no other keys are held down. More... | |
void | mouseMovedNoButton (int x, int y) |
void | mouseMovedButton (int x, int y) |
Called when the mouse is moved with a button pressed down. More... | |
void | mousePressedButton (int button, int state, int x, int y) |
Called when a mouse button is pressed. More... | |
static void | mousePan (int x, int y, pRecContext pContextInfo) |
static void | mouseDolly (int x, int y, pRecContext pContextInfo) |
void | renderScene (void) |
Renders the scene. More... | |
void | resizeWindow (int x, int y) |
Called when the window is resized. More... | |
void | resizeGL (pRecContext pContextInfo, int width, int height) |
Handles resizing of GL need context update and if the window dimensions change, a window dimension update, reseting of viewport and an update of the projection matrix. More... | |
void | updateProjection (pRecContext pContextInfo, int viewPort) |
Update the projection matrix based on camera and view info. More... | |
void | CrossProd (float x1, float y1, float z1, float x2, float y2, float z2, float res[3]) |
void | MyGluLookAt (float eyeX, float eyeY, float eyeZ, float lookAtX, float lookAtY, float lookAtZ, float upX, float upY, float upZ) |
void | updateModelView (pRecContext pContextInfo, int currPort) |
Updates the viewpoint of the model. More... | |
void | drawCStringGL (char *cstrOut, GLuint fontList) |
Draws a CString in OpenGL. More... | |
void | setTextBufferVisibility (bool visible) |
bool | getTextBufferVisibility () |
void | appendTextToBuffer (const char *tempStr) |
void | submitTextToBuffer (const char *val) |
Graphics::point | ViewportToScreen (Graphics::point where, int viewport) |
Graphics::rect | ViewportToScreen (const Graphics::rect &loc, int viewport) |
float | ViewportToScreenX (float x, int v) |
void | DoDrawCommands (Graphics::Display &display, int port, sf::Window &window, std::vector< Graphics::Display::data > &commands) |
void | DrawLines (std::vector< Graphics::Display::lineInfo > &textLines, int viewport) |
void | DrawGraphics (Graphics::Display &display, int port, sf::Window &window) |
void | drawGL (pRecContext pContextInfo, sf::Window &window) |
Main OpenGL drawing function. More... | |
void | buildGL (int xDim, int yDim) |
End OpenGL drawing function - for visualizing trajectory merging. More... | |
Variables | |
pRecContext | pContextInfo |
GLint | gDollyPanStartPoint [2] = {0, 0} |
GLfloat | gTrackBallRotation [4] = {0.0f, 0.0f, 0.0f, 0.0f} |
GLboolean | gDolly = GL_FALSE |
GLboolean | gPan = GL_FALSE |
GLboolean | gTrackball = GL_FALSE |
pRecContext | gTrackingContextInfo = NULL |
int | gCurrButton = -1 |
pRecContext | backup |
double | fps = 30.0 |
int | width =100 |
int | height =100 |
Graphics::rect | screenRect |
MonoFont | font |
std::vector< Graphics::Display::lineInfo > | textLines |
TextBox * | myTextBox = 0 |
bool | bufferVisibility = true |
#define GL_SILENCE_DEPRECATION |
Definition at line 14 of file SFML_HOG.cpp.
void appendTextToBuffer | ( | const char * | tempStr | ) |
Definition at line 813 of file SFML_HOG.cpp.
References bufferVisibility, recContext::message, myTextBox, pContextInfo, and TextBox::setColor().
void buildGL | ( | int | xDim, |
int | yDim | ||
) |
End OpenGL drawing function - for visualizing trajectory merging.
Initializes OpenGL.
Definition at line 1222 of file SFML_HOG.cpp.
References pContextInfo, resizeGL(), and SetLighting().
Referenced by RunHOGGUI().
Graphics::point convertToGlobalHogCoordinate | ( | int | x, |
int | y | ||
) |
Definition at line 72 of file SFML_HOG.cpp.
References height, width, Graphics::point::x, Graphics::point::y, and Graphics::point::z.
void createMenus | ( | ) |
Definition at line 216 of file SFML_HOG.cpp.
void CrossProd | ( | float | x1, |
float | y1, | ||
float | z1, | ||
float | x2, | ||
float | y2, | ||
float | z2, | ||
float | res[3] | ||
) |
Definition at line 672 of file SFML_HOG.cpp.
Referenced by MyGluLookAt().
void DoDrawCommands | ( | Graphics::Display & | display, |
int | port, | ||
sf::Window & | window, | ||
std::vector< Graphics::Display::data > & | commands | ||
) |
Definition at line 880 of file SFML_HOG.cpp.
References Graphics::rect::bottom, DrawCircle(), FrameCircle(), Graphics::Display::kFillNGon, Graphics::Display::kFillOval, Graphics::Display::kFillRectangle, Graphics::Display::kFillTriangle, Graphics::Display::kFrameNGon, Graphics::Display::kFrameOval, Graphics::Display::kFrameRectangle, Graphics::Display::kFrameTriangle, Graphics::Display::kLine, Graphics::rect::left, Line(), Graphics::rect::right, Graphics::rect::top, ViewportToScreen(), ViewportToScreenX(), Graphics::point::x, Graphics::point::y, and Graphics::point::z.
Referenced by DrawGraphics().
void drawCStringGL | ( | char * | cstrOut, |
GLuint | fontList | ||
) |
Draws a CString in OpenGL.
Definition at line 778 of file SFML_HOG.cpp.
void drawGL | ( | pRecContext | pContextInfo, |
sf::Window & | window | ||
) |
Main OpenGL drawing function.
Definition at line 1136 of file SFML_HOG.cpp.
References recFrustum::bottom, recContext::camera, recContext::display, TextBox::draw(), DrawGraphics(), Graphics::Display::EndFrame(), recFrustum::far, recCamera::frust, HandleFrame(), recFrustum::left, myTextBox, recFrustum::near, recContext::numPorts, pContextInfo, recFrustum::right, setViewport(), Graphics::Display::StartFrame(), TextBox::stepTime(), recFrustum::top, updateModelView(), and updateProjection().
Referenced by RunHOGGUI().
void DrawGraphics | ( | Graphics::Display & | display, |
int | port, | ||
sf::Window & | window | ||
) |
Definition at line 1067 of file SFML_HOG.cpp.
References Graphics::Display::backgroundDrawCommands, Graphics::Display::backgroundLineSegments, Graphics::Display::backgroundText, DoDrawCommands(), Graphics::Display::drawCommands, DrawLines(), font, MonoFont::GetTextLines(), Line(), Graphics::Display::lineSegments, Graphics::Display::text, textLines, ViewportToScreen(), Graphics::point::x, Graphics::point::y, and Graphics::point::z.
Referenced by drawGL().
void DrawLines | ( | std::vector< Graphics::Display::lineInfo > & | textLines, |
int | viewport | ||
) |
Definition at line 1019 of file SFML_HOG.cpp.
References DrawCircle(), textLines, ViewportToScreen(), ViewportToScreenX(), Graphics::point::x, Graphics::point::y, and Graphics::point::z.
Referenced by DrawGraphics().
pRecContext GetContext | ( | unsigned long | windowID | ) |
Definition at line 62 of file SFML_HOG.cpp.
References pContextInfo.
Referenced by AddViewport(), GetActivePort(), GetHeading(), GetNumPorts(), MoveViewport(), ReinitViewports(), SaveScreenshot(), SetActivePort(), SetNumPorts(), and SetZoom().
pRecContext getCurrentContext | ( | ) |
Definition at line 67 of file SFML_HOG.cpp.
References pContextInfo.
Referenced by cameraLookAt(), cameraLookingAt(), cameraMoveTo(), cameraOffset(), GlobalHOGToViewport(), GlobalHOGToViewportX(), GlobalHOGToViewportY(), resetCamera(), ViewportToGlobalHOG(), and ViewportToGlobalHOGX().
bool getTextBufferVisibility | ( | ) |
Definition at line 810 of file SFML_HOG.cpp.
References bufferVisibility.
void glutStrokeCharacter | ( | void * | font, |
int | character | ||
) |
Definition at line 17 of file SFML_HOG.cpp.
int glutStrokeWidth | ( | void * | font, |
int | character | ||
) |
Definition at line 18 of file SFML_HOG.cpp.
int hog_main | ( | int | argc, |
char ** | argv | ||
) |
Referenced by main().
void keyPressed | ( | unsigned char | key, |
int | , | ||
int | |||
) |
Called when a key is pressed, and no other keys are held down.
Definition at line 229 of file SFML_HOG.cpp.
References DoKeyboardCommand(), and pContextInfo.
void Line | ( | Graphics::point | p1, |
Graphics::point | p2, | ||
float | width, | ||
int | viewport | ||
) |
Definition at line 1042 of file SFML_HOG.cpp.
References ViewportToScreen(), ViewportToScreenX(), width, Graphics::point::x, Graphics::point::y, and Graphics::point::z.
Referenced by DoDrawCommands(), and DrawGraphics().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 22 of file SFML_HOG.cpp.
References hog_main().
|
static |
Definition at line 516 of file SFML_HOG.cpp.
void mouseMovedButton | ( | int | x, |
int | y | ||
) |
Called when the mouse is moved with a button pressed down.
Definition at line 292 of file SFML_HOG.cpp.
References recContext::currPort, gCurrButton, gDolly, gPan, gTrackball, gTrackBallRotation, HandleMouseClick(), kLeftButton, kMiddleButton, kMouseDrag, kRightButton, mouseDolly(), mousePan(), recContext::moveAllPortsTogether, recContext::numPorts, pContextInfo, point3d, rollToTrackball(), and updateProjection().
void mouseMovedNoButton | ( | int | x, |
int | y | ||
) |
Definition at line 240 of file SFML_HOG.cpp.
References addToRotationTrackball(), recContext::camera, recRotation::cameraRotation, recContext::currPort, gDollyPanStartPoint, recContext::globalCamera, gPan, gTrackingContextInfo, HandleMouseClick(), kMouseMove, kNoButton, pContextInfo, point3d, rotation, recCamera::rotations, recCamera::thirdPerson, recCamera::viewHeight, and recCamera::viewWidth.
|
static |
Definition at line 510 of file SFML_HOG.cpp.
void mousePressedButton | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) |
Called when a mouse button is pressed.
Definition at line 311 of file SFML_HOG.cpp.
Referenced by RunHOGGUI().
void MyGluLookAt | ( | float | eyeX, |
float | eyeY, | ||
float | eyeZ, | ||
float | lookAtX, | ||
float | lookAtY, | ||
float | lookAtZ, | ||
float | upX, | ||
float | upY, | ||
float | upZ | ||
) |
Definition at line 680 of file SFML_HOG.cpp.
References CrossProd().
Referenced by updateModelView().
void processMenuEvents | ( | int | option | ) |
Definition at line 220 of file SFML_HOG.cpp.
void renderScene | ( | void | ) |
Renders the scene.
Used by GLUT for it's display function. Wraps the drawGL() function.
Definition at line 524 of file SFML_HOG.cpp.
References drawGL(), fps, and pContextInfo.
void resizeGL | ( | pRecContext | pContextInfo, |
int | width, | ||
int | height | ||
) |
Handles resizing of GL need context update and if the window dimensions change, a window dimension update, reseting of viewport and an update of the projection matrix.
Definition at line 568 of file SFML_HOG.cpp.
References recContext::globalCamera, height, recContext::numPorts, pContextInfo, setPortCamera(), updateProjection(), recCamera::viewHeight, recCamera::viewOriginX, recCamera::viewOriginY, recCamera::viewWidth, and width.
Referenced by buildGL(), resizeWindow(), and RunHOGGUI().
void resizeWindow | ( | int | x, |
int | y | ||
) |
Called when the window is resized.
Specific format for GLUT.
Definition at line 546 of file SFML_HOG.cpp.
References CGSize::height, CGRect::origin, pContextInfo, resizeGL(), CGRect::size, CGSize::width, CGPoint::x, and CGPoint::y.
Referenced by RunHOGGUI().
void RunHOGGUI | ( | int | argc, |
char ** | argv, | ||
int | windowDimension | ||
) |
Definition at line 82 of file SFML_HOG.cpp.
void RunHOGGUI | ( | int | argc, |
char * | argv[], | ||
int | xDimension, | ||
int | yDimension | ||
) |
Definition at line 87 of file SFML_HOG.cpp.
References buildGL(), DoKeyboardCommand(), drawGL(), HandleMouse(), HandleWindowEvent(), initialConditions(), kDownArrow, kLeftArrow, kLeftButton, kMiddleButton, kMouseDown, kMouseDrag, kMouseMove, kMouseUp, kNoButton, kRightArrow, kRightButton, kUpArrow, kWindowCreated, pContextInfo, ProcessCommandLineArgs(), resizeGL(), resizeWindow(), recContext::windowHeight, WindowToHOG(), and recContext::windowWidth.
void setTextBufferVisibility | ( | bool | visible | ) |
Definition at line 791 of file SFML_HOG.cpp.
References bufferVisibility, recContext::message, myTextBox, pContextInfo, and TextBox::setColor().
void submitTextToBuffer | ( | const char * | val | ) |
Definition at line 830 of file SFML_HOG.cpp.
References bufferVisibility, recContext::message, myTextBox, pContextInfo, and TextBox::setColor().
void updateModelView | ( | pRecContext | pContextInfo, |
int | currPort | ||
) |
Updates the viewpoint of the model.
Definition at line 734 of file SFML_HOG.cpp.
References recContext::camera, recContext::currPort, gTrackBallRotation, gTrackingContextInfo, recContext::moveAllPortsTogether, MyGluLookAt(), pContextInfo, recCamera::rotations, recCamera::thirdPerson, recCamera::viewDir, recCamera::viewPos, recCamera::viewUp, recRotation::worldRotation, recVec::x, recVec::y, and recVec::z.
Referenced by drawGL(), and GetOGLPos().
void updateProjection | ( | pRecContext | pContextInfo, |
int | viewPort | ||
) |
Update the projection matrix based on camera and view info.
Should be called when viewport size, eye z position, or camera aperture changes. Also call if far or near changes which is determined by shape size in this case.
Definition at line 595 of file SFML_HOG.cpp.
References recCamera::aperture, recFrustum::bottom, Graphics::rect::bottom, recContext::camera, recFrustum::far, recCamera::frust, if(), recFrustum::left, Graphics::rect::left, recFrustum::near, recContext::numPorts, pContextInfo, recFrustum::right, Graphics::rect::right, screenRect, recFrustum::top, Graphics::rect::top, ViewportToGlobalHOG(), recCamera::viewPos, recContext::windowHeight, recContext::windowWidth, and recVec::z.
Referenced by cameraLookAt(), cameraMoveTo(), cameraOffset(), drawGL(), resetCamera(), resizeGL(), SetNumPorts(), and SetZoom().
Graphics::rect ViewportToScreen | ( | const Graphics::rect & | loc, |
int | viewport | ||
) |
Definition at line 852 of file SFML_HOG.cpp.
References Graphics::rect::bottom, Graphics::rect::right, screenRect, and ViewportToGlobalHOG().
Graphics::point ViewportToScreen | ( | Graphics::point | where, |
int | viewport | ||
) |
Definition at line 844 of file SFML_HOG.cpp.
References Graphics::rect::bottom, Graphics::rect::right, screenRect, and ViewportToGlobalHOG().
Referenced by DoDrawCommands(), DrawGraphics(), DrawLines(), and Line().
float ViewportToScreenX | ( | float | x, |
int | v | ||
) |
Definition at line 862 of file SFML_HOG.cpp.
References Graphics::rect::right, screenRect, and ViewportToGlobalHOGX().
Referenced by DoDrawCommands(), DrawLines(), and Line().
Graphics::point WindowToHOG | ( | const Graphics::point & | p | ) |
Definition at line 868 of file SFML_HOG.cpp.
References pContextInfo, recContext::windowHeight, recContext::windowWidth, Graphics::point::x, and Graphics::point::y.
Referenced by RunHOGGUI().
pRecContext backup |
Definition at line 51 of file SFML_HOG.cpp.
bool bufferVisibility = true |
Definition at line 789 of file SFML_HOG.cpp.
Referenced by appendTextToBuffer(), getTextBufferVisibility(), setTextBufferVisibility(), and submitTextToBuffer().
MonoFont font |
Definition at line 57 of file SFML_HOG.cpp.
Referenced by DrawGraphics().
double fps = 30.0 |
Definition at line 52 of file SFML_HOG.cpp.
Referenced by renderScene().
int gCurrButton = -1 |
Definition at line 48 of file SFML_HOG.cpp.
GLboolean gDolly = GL_FALSE |
Definition at line 44 of file SFML_HOG.cpp.
GLint gDollyPanStartPoint[2] = {0, 0} |
Definition at line 42 of file SFML_HOG.cpp.
GLboolean gPan = GL_FALSE |
Definition at line 45 of file SFML_HOG.cpp.
GLboolean gTrackball = GL_FALSE |
Definition at line 46 of file SFML_HOG.cpp.
GLfloat gTrackBallRotation[4] = {0.0f, 0.0f, 0.0f, 0.0f} |
Definition at line 43 of file SFML_HOG.cpp.
Referenced by initialConditions(), resetCamera(), and updateModelView().
pRecContext gTrackingContextInfo = NULL |
Definition at line 47 of file SFML_HOG.cpp.
Referenced by resetCamera(), and updateModelView().
int height =100 |
Definition at line 54 of file SFML_HOG.cpp.
Referenced by Witness< width, height >::AddCannotCrossConstraint(), Witness< width, height >::AddGoal(), Witness< width, height >::AddMustCrossConstraint(), GridData::AddPoint(), SnakeBird::SnakeBird::AddSnakeBody(), SnakeBird::SnakeBird::AddSnakeHead(), Witness< width, height >::AddStarConstraint(), Witness< width, height >::AddTriangleConstraint(), SnakeBird::SnakeBird::ApplyAction(), SnakeBird::SnakeBird::ApplyPartialAction(), GridData::BFS(), SnakeBird::SnakeBird::BiggerMapHeight(), SnakeBird::SnakeBird::BiggerMapWidth(), BuildRandomRoomMap(), SnakeBird::SnakeBird::CanPush(), MNPuzzle< width, height >::Change_Op_Order(), Witness< width, height >::ClearConstraint(), Witness< width, height >::ClearInnerConstraints(), Witness< width, height >::Click(), convertToGlobalHogCoordinate(), MNPuzzle< width, height >::Create_Random_MN_Puzzles(), SnakeBird::SnakeBird::DecodeLevel(), MNPuzzle< width, height >::DefaultH(), Witness< width, height >::Deserialize(), SnakeBird::SnakeBird::DoFall(), MNPuzzle< width, height >::Draw(), SnakeBird::SnakeBird::Draw(), Witness< width, height >::Draw(), TextBox::drawChar(), MonoFont::DrawChar(), DrawCylinder(), SnakeBird::SnakeBird::DrawObject(), SnakeBird::SnakeBird::DrawObjects(), DrawPyramid(), MonoFont::DrawText(), Graphics::Display::DrawText(), DWG::DynamicWeightedGridEnvironment::DynamicWeightedGridEnvironment(), SnakeBird::SnakeBird::EncodeLevel(), Map3DGrid::FindNearState(), MNPuzzle< width, height >::Generate_Random_Puzzle(), MNPuzzle< width, height >::Get_Num_Of_Rows(), MNPuzzle< width, height >::GetAction(), SnakeBird::SnakeBird::GetActions(), Witness< width, height >::GetActions(), Witness< width, height >::GetCannotCrossConstraint(), GetEdgeHash(), SnakeBird::SnakeBird::GetHeight(), SnakeBird::SnakeBird::GetIndex(), MNPuzzle< width, height >::GetMaxStateHash(), Witness< width, height >::GetMouseActions(), Witness< width, height >::GetMustCrossConstraint(), MNPuzzle< width, height >::GetName(), Witness< width, height >::GetNumCannotCrossConstraints(), Witness< width, height >::GetNumEraserConstraints(), Witness< width, height >::GetNumPathConstraints(), Witness< width, height >::GetNumSeparationConstraints(), Witness< width, height >::GetNumStarConstraints(), Witness< width, height >::GetNumTetrisConstraints(), Witness< width, height >::GetNumTriangleConstraints(), MNPuzzle< width, height >::GetParity(), Witness< width, height >::GetPathLocation(), SnakeBird::SnakeBird::GetPointFromCoordinate(), SnakeBird::SnakeBird::GetRadius(), Witness< width, height >::GetScreenCoord(), MNPuzzle< width, height >::GetStateFromHash(), MNPuzzle< width, height >::GetStateHash(), MonoFont::GetTextLines(), SnakeBird::SnakeBird::GetX(), SnakeBird::SnakeBird::GetY(), Witness< width, height >::GoalTest(), HandleCommand(), SnakeBird::SnakeBird::HandleTeleports(), MNPuzzle< width, height >::HCost(), WitnessState< width, height >::hitTheWall(), WitnessState< width, height >::InGoal(), WitnessState< width, height >::isAlongTheWall(), SnakeBird::SnakeBird::IsOnSpikes(), GridData::LabelAreas(), Witness< width, height >::LabelRegions(), Witness< width, height >::Legal(), SnakeBird::SnakeBird::Load(), Witness< width, height >::LoadFromHashString(), MakeMaze(), MakePseudoMaze(), MakeSVG(), Map3DGrid::Map3DGrid(), WitnessState< width, height >::Occupied(), MNPuzzle< width, height >::OpenGLDraw(), Witness< width, height >::operator std::string(), operator<<(), MNPuzzle< width, height >::read_in_mn_puzzles(), Witness< width, height >::RecursivelyPlacePieces(), SnakeBird::SnakeBird::RemoveBlock(), Witness< width, height >::RemoveCannotCrossConstraint(), Witness< width, height >::RemoveMustCrossConstraint(), SnakeBird::SnakeBird::Render(), SnakeBird::SnakeBird::Reset(), Witness< width, height >::Reset(), resizeGL(), SaveScreenshot(), Witness< width, height >::SaveToHashString(), SnakeBird::SnakeBird::SetGroundType(), GridData::SetHeightOffset(), MNPuzzle< width, height >::SetPattern(), MNPuzzleState< width, height >::size(), SnakeBird::SnakeBird::SmallerMapHeight(), SnakeBird::SnakeBird::SnakeBird(), startTrackball(), MNPuzzle< width, height >::State_Check(), MNPuzzle< width, height >::StoreGoal(), SVGDrawRect(), SVGFrameRect(), Witness< width, height >::UndoAction(), WitnessState< width, height >::Unoccupy(), Witness< width, height >::Witness(), and Plotting::Plot2D::Zoom().
TextBox* myTextBox = 0 |
Definition at line 787 of file SFML_HOG.cpp.
Referenced by appendTextToBuffer(), drawGL(), setTextBufferVisibility(), and submitTextToBuffer().
pRecContext pContextInfo |
Definition at line 41 of file SFML_HOG.cpp.
Referenced by appendTextToBuffer(), buildGL(), drawGL(), GetContext(), getCurrentContext(), keyPressed(), resizeGL(), resizeWindow(), RunHOGGUI(), setTextBufferVisibility(), submitTextToBuffer(), updateModelView(), updateProjection(), and WindowToHOG().
Graphics::rect screenRect |
Definition at line 55 of file SFML_HOG.cpp.
Referenced by updateProjection(), ViewportToScreen(), and ViewportToScreenX().
std::vector<Graphics::Display::lineInfo> textLines |
Definition at line 58 of file SFML_HOG.cpp.
Referenced by DrawGraphics(), and DrawLines().
int width =100 |
Definition at line 54 of file SFML_HOG.cpp.
Referenced by Witness< width, height >::AddCannotCrossConstraint(), Witness< width, height >::AddGoal(), MNPuzzle< width, height >::AdditiveGCost(), Witness< width, height >::AddMustCrossConstraint(), MapCliqueAbstraction::addNodesToParent(), LoadedCliqueAbstraction::addNodesToParent(), SnakeBird::SnakeBird::AddSnakeBody(), SnakeBird::SnakeBird::AddSnakeHead(), Witness< width, height >::AddStarConstraint(), Witness< width, height >::AddTriangleConstraint(), MNPuzzle< width, height >::ApplyAction(), SnakeBird::SnakeBird::BiggerMapHeight(), SnakeBird::SnakeBird::BiggerMapWidth(), BuildRandomRoomMap(), SnakeBird::SnakeBird::CanPush(), MNPuzzle< width, height >::Change_Op_Order(), Witness< width, height >::ClearConstraint(), Witness< width, height >::ClearInnerConstraints(), Witness< width, height >::Click(), GraphAbstraction::ComputeWidth(), convertToGlobalHogCoordinate(), MNPuzzle< width, height >::Create_Random_MN_Puzzles(), SnakeBird::SnakeBird::DecodeLevel(), MNPuzzle< width, height >::DefaultH(), Witness< width, height >::Deserialize(), MNPuzzle< width, height >::Draw(), SnakeBird::SnakeBird::Draw(), Witness< width, height >::Draw(), CanonicalGrid::CanonicalGrid::DrawArrow(), MapEnvironment::DrawArrow(), BOAStar< state, action, environment >::DrawGoal(), Map2DSectorAbstraction::DrawLine(), NaryTree::DrawLine(), Racetrack::DrawLine(), CanonicalGrid::CanonicalGrid::DrawLine(), MapEnvironment::DrawLine(), GraphEnvironment::DrawLine(), SnakeBird::SnakeBird::DrawObjects(), DrawPyramid(), DrawTextCentered(), DWG::DynamicWeightedGridEnvironment::DynamicWeightedGridEnvironment(), SnakeBird::SnakeBird::EncodeLevel(), Graphics::Display::FrameNGon(), MNPuzzle< width, height >::GCost(), MNPuzzle< width, height >::Generate_Random_Puzzle(), MNPuzzle< width, height >::Get_Num_Of_Columns(), MNPuzzle< width, height >::GetAction(), SnakeBird::SnakeBird::GetActions(), Witness< width, height >::GetActions(), Witness< width, height >::GetCannotCrossConstraint(), GetEdgeHash(), MNPuzzle< width, height >::GetMaxStateHash(), Witness< width, height >::GetMouseActions(), Witness< width, height >::GetMustCrossConstraint(), MNPuzzle< width, height >::GetName(), Witness< width, height >::GetNumCannotCrossConstraints(), Witness< width, height >::GetNumEraserConstraints(), Witness< width, height >::GetNumPathConstraints(), Witness< width, height >::GetNumSeparationConstraints(), Witness< width, height >::GetNumStarConstraints(), Witness< width, height >::GetNumTetrisConstraints(), Witness< width, height >::GetNumTriangleConstraints(), MNPuzzle< width, height >::GetParity(), Witness< width, height >::GetPathIndex(), Witness< width, height >::GetPathLocation(), SnakeBird::SnakeBird::GetRadius(), Witness< width, height >::GetRegionFromX(), Witness< width, height >::GetRegionFromY(), Witness< width, height >::GetRegionIndex(), Witness< width, height >::GetScreenCoord(), MNPuzzle< width, height >::GetStateFromHash(), MNPuzzle< width, height >::GetStateHash(), SnakeBird::SnakeBird::GetWidth(), Witness< width, height >::GoalTest(), HandleCommand(), SnakeBird::SnakeBird::HandleTeleports(), MNPuzzle< width, height >::HCost(), WitnessState< width, height >::hitTheWall(), WitnessState< width, height >::InGoal(), WitnessState< width, height >::isAlongTheWall(), SnakeBird::SnakeBird::IsOnSpikes(), Witness< width, height >::LabelRegions(), Witness< width, height >::Legal(), Line(), SnakeBird::SnakeBird::Load(), Witness< width, height >::LoadFromHashString(), SnakeBird::LoadSnake(), MakeMaze(), MakePseudoMaze(), MakeSVG(), Map3DGrid::Map3DGrid(), LoadedCliqueAbstraction::neighborAbstractGraph(), WitnessState< width, height >::Occupied(), WitnessState< width, height >::Occupy(), MNPuzzle< width, height >::OpenGLDraw(), Witness< width, height >::operator std::string(), operator<<(), MNPuzzle< width, height >::read_in_mn_puzzles(), Witness< width, height >::RecursivelyPlacePieces(), SnakeBird::SnakeBird::RemoveBlock(), Witness< width, height >::RemoveCannotCrossConstraint(), Witness< width, height >::RemoveMustCrossConstraint(), SnakeBird::SnakeBird::Render(), SnakeBird::SnakeBird::Reset(), Witness< width, height >::Reset(), resizeGL(), SaveScreenshot(), Witness< width, height >::SaveToHashString(), aStar::setCorridor(), MNPuzzle< width, height >::SetPattern(), MNPuzzleState< width, height >::size(), SnakeBird::SnakeBird::SmallerMapHeight(), SnakeBird::SnakeBird::SmallerMapWidth(), SnakeBird::SnakeBird::SnakeBird(), startTrackball(), MNPuzzle< width, height >::State_Check(), MNPuzzle< width, height >::StoreGoal(), SVGBeginLinePath(), SVGDrawLine(), CanonicalGrid::CanonicalGrid::SVGDrawLine(), MapEnvironment::SVGDrawLine(), SVGDrawLineSegments(), SVGDrawRect(), SVGFrameRect(), CanonicalGrid::CanonicalGrid::SVGFrameRect(), MapEnvironment::SVGFrameRect(), RoboticArm::TipPositionIndex(), ArmToArmHeuristic::TipPositionIndex(), ArmToTipHeuristic::TipPositionIndex(), Witness< width, height >::UndoAction(), WitnessState< width, height >::Unoccupy(), Witness< width, height >::Witness(), and Plotting::Plot2D::Zoom().