Overture  Version 25
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
GL_GraphicsInterface Class Reference

#include <GL_GraphicsInterface.h>

Inheritance diagram for GL_GraphicsInterface:
Inheritance graph
[legend]
Collaboration diagram for GL_GraphicsInterface:
Collaboration graph
[legend]

Public Types

enum  { maximumNumberOfClippingPlanes =6, maximumNumberOfTextStrings =25 }
 
- Public Types inherited from GenericGraphicsInterface
enum  HardCopyRenderingEnum { offScreenRender, frameBuffer }
 
enum  { defaultOrigin =-(INT_MAX/2) }
 
enum  ItemColourEnum { backGroundColour =0, textColour, numberOfItemColours }
 
enum  { numberOfColourNames =25 }
 
enum  ViewParameters {
  xAxisAngle, yAxisAngle, zAxisAngle, xTranslation,
  yTranslation, zTranslation, magnification
}
 
enum  displayListProperty { lightDL = 1, plotDL = 2, hideableDL = 4, interactiveDL = 8 }
 

Public Member Functions

 GL_GraphicsInterface (const aString &windowTitle="Your Slogan Here")
 
 GL_GraphicsInterface (int &argc, char *argv[], const aString &windowTitle="Your Slogan Here")
 
 GL_GraphicsInterface (const bool initialize, const aString &windowTitle="Your Slogan Here")
 
virtual ~GL_GraphicsInterface ()
 
virtual int createWindow (const aString &windowTitle=nullString, int argc=0, char *argv[]=NULL)
 
virtual bool displayHelp (const aString &topic)
 
virtual int destroyWindow (int win_number)
 
virtual int getMenuItem (const aString *menu, aString &answer, const aString &prompt=nullString)
 
virtual void erase ()
 
virtual void erase (const int win_number, bool forceDelete=false)
 
virtual void erase (const IntegerArray &displayList)
 
virtual void inputFileName (aString &answer, const aString &prompt=nullString, const aString &extension=nullString)
 
virtual void inputString (aString &answer, const aString &prompt=nullString)
 
virtual void outputString (const aString &message, int messageLevel=2)
 
virtual void redraw (bool immediate=FALSE)
 
virtual void initView (int win_number=-1)
 
virtual void resetView (int win_number=-1)
 
virtual void stopReadingCommandFile ()
 
virtual int normalizedToWorldCoordinates (const RealArray &r, RealArray &x) const
 
virtual int worldToNormalizedCoordinates (const RealArray &x, RealArray &r) const
 
virtual void setGlobalBound (const RealArray &xBound)
 
virtual RealArray getGlobalBound () const
 
virtual void resetGlobalBound (const int win_number)
 
virtual int setKeepAspectRatio (bool trueOrFalse=true)
 
virtual bool getKeepAspectRatio ()
 
virtual void plotPoints (const realArray &points, GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int dList=0)
 
virtual void plotPoints (const realArray &points, const realArray &value, GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int dList=0)
 
virtual void plotLines (const realArray &arrows, GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int dList=0)
 
virtual aString chooseAColour ()
 
virtual aString getColour (ItemColourEnum item)
 
virtual int setColour (const aString &colourName)
 
virtual int setColour (ItemColourEnum item)
 
virtual void setColourFromTable (const GUITypes::real value, GraphicsParameters &parameters=Overture::defaultGraphicsParameters())
 
virtual void setColourName (int i, aString newColourName) const
 
virtual aString getColourName (int i) const
 
virtual void drawColouredSquares (const IntegerArray &numberList, GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), const int &numberOfColourNames=-1, aString *colourNames=NULL)
 
virtual void displayColourBar (const int &numberOfContourLevels, RealArray &contourLevels, GUITypes::real uMin, GUITypes::real uMax, GraphicsParameters &parameters)
 
virtual void eraseColourBar ()
 
virtual int hardCopy (const aString &fileName=nullString, GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int win_number=-1)
 
virtual void setView (ViewLocation &loc, int win_number=-1)
 
virtual void getView (ViewLocation &loc, int win_number=-1)
 
virtual int generateNewDisplayList (bool lit=false, bool plotIt=true, bool hideable=false, bool interactive=true)
 
virtual int getNewLabelList (int win=-1)
 
virtual void deleteList (int dList)
 
virtual void setLighting (int list, bool lit)
 
virtual void setPlotDL (int list, bool plot)
 
virtual void setInteractiveDL (int list, bool interactive)
 
virtual int getFirstDL (const int win)
 
virtual int getFirstFixedDL (const int win)
 
virtual int getTopLabelDL (const int win)
 
virtual int getTopLabel1DL (const int win)
 
virtual int getTopLabel2DL (const int win)
 
virtual int getTopLabel3DL (const int win)
 
virtual int getBottomLabelDL (const int win)
 
virtual int getBottomLabel1DL (const int win)
 
virtual int getBottomLabel2DL (const int win)
 
virtual int getBottomLabel3DL (const int win)
 
virtual int getColouredSquaresDL (const int win)
 
virtual int getColourBarDL (const int win)
 
virtual int getFirstUserLabelDL (const int win)
 
virtual int getLastUserLabelDL (const int win)
 
virtual int getLastFixedDL (const int win)
 
virtual int getFirstRotableDL (const int win)
 
virtual int getAxesDL (const int win)
 
virtual int getFirstUserRotableDL (const int win)
 
virtual int getLastUserRotableDL (const int win)
 
virtual int getLastRotableDL (const int win)
 
virtual int getLastDL (const int win)
 
virtual int getMaxNOfDL (const int win)
 
virtual int getCurrentWindow ()
 
virtual void setCurrentWindow (const int &w)
 
virtual void setPlotTheAxes (bool newState, int win_number=-1)
 
virtual bool getPlotTheAxes (int win_number=-1)
 
virtual void setAxesDimension (int dim, int win_number=-1)
 
virtual void setPlotTheLabels (bool newState, int win_number=-1)
 
virtual bool getPlotTheLabels (int win_number=-1)
 
virtual void setPlotTheRotationPoint (bool newState, int win_number=-1)
 
virtual bool getPlotTheRotationPoint (int win_number=-1)
 
virtual void setPlotTheColourBar (bool newState, int win_number=-1)
 
virtual bool getPlotTheColourBar (int win_number=-1)
 
virtual void setPlotTheColouredSquares (bool newState, int win_number=-1)
 
virtual bool getPlotTheColouredSquares (int win_number=-1)
 
virtual void setPlotTheBackgroundGrid (bool newState, int win_number=-1)
 
virtual bool getPlotTheBackgroundGrid (int win_number=-1)
 
virtual void pollEvents ()
 
virtual int getAnswer (aString &answer, const aString &prompt)
 
virtual int getAnswer (aString &answer, const aString &prompt, SelectionInfo &selection)
 
virtual int getAnswerNoBlock (aString &answer, const aString &prompt)
 
virtual int pickPoints (RealArray &x, bool plotPoints=TRUE, int win_number=-1)
 
virtual void setUserButtonSensitive (int btn, int trueOrFalse)
 
virtual void pushGUI (GUIState &newState)
 
virtual void popGUI ()
 
virtual int beginRecordDisplayLists (IntegerArray &displayLists)
 
virtual int endRecordDisplayLists (IntegerArray &displayLists)
 
virtual void createMessageDialog (aString msg, MessageTypeEnum type)
 
virtual int pause ()
 
virtual void appendCommandHistory (const aString &answer)
 
virtual int processSpecialMenuItems (aString &answer)
 
virtual void plotLabels (GraphicsParameters &parameters, const GUITypes::real &labelSize=-1., const GUITypes::real &topLabelHeight=.925, const GUITypes::real &bottomLabelHeight=-.925, int win_number=-1)
 
virtual void eraseLabels (GraphicsParameters &parameters, int win_number=-1)
 
virtual int setAxesLabels (const aString &xAxisLabel=blankString, const aString &yAxisLabel=blankString, const aString &zAxisLabel=blankString)
 
virtual aString getXAxisLabel ()
 
virtual aString getYAxisLabel ()
 
virtual aString getZAxisLabel ()
 
virtual void setXAxisLabel (const aString &xAxisLabel_=blankString)
 
virtual void setYAxisLabel (const aString &yAxisLabel_=blankString)
 
virtual void setZAxisLabel (const aString &zAxisLabel_=blankString)
 
virtual int setAxesOrigin (const GUITypes::real x0=defaultOrigin, const GUITypes::real y0=defaultOrigin, const GUITypes::real z0=defaultOrigin)
 
virtual void getAxesOrigin (GUITypes::real &x0, GUITypes::real &y0, GUITypes::real &z0)
 
virtual GUITypes::real getAspectRatio (const int win=0)
 
virtual void setLineWidthScaleFactor (const GUITypes::real &lineWidthScaleFactor=1, int win_number=-1)
 
virtual GUITypes::real getLineWidthScaleFactor (int window=-1)
 
virtual int psToRaster (const aString &fileName, const aString &ppmFileName)
 
virtual void label (const aString &string, GUITypes::real xPosition, GUITypes::real yPosition, GUITypes::real size=.1, int centering=0, GUITypes::real angle=0., GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), const aString &colour=nullString, GUITypes::real zOffset=.99)
 
virtual void xLabel (const aString &string, const GUITypes::real xPosition, const GUITypes::real yPosition, const GUITypes::real size=.1, const int centering=0, const GUITypes::real angle=0., GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int win_number=-1)
 
virtual void xLabel (const aString &string, const RealArray &x, const GUITypes::real size=.1, const int centering=0, const GUITypes::real angle=0., GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int win_number=-1)
 
virtual void xLabel (const aString &string, const GUITypes::real x[3], const GUITypes::real size=.1, const int centering=0, const GUITypes::real angle=0., GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int win_number=-1)
 
virtual void xLabel (const aString &string, const RealArray &x, const GUITypes::real size, const int centering, const RealArray &rightVector, const RealArray &upVector, GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int win_number=-1)
 
virtual void xLabel (const aString &string, const GUITypes::real x[3], const GUITypes::real size, const int centering, const GUITypes::real rightVector[3], const GUITypes::real upVector[3], GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int win_number=-1)
 
virtual void drawColourBar (const int &numberOfContourLevels, RealArray &contourLevels, GUITypes::real uMin=0., GUITypes::real uMax=1., GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), GUITypes::real xLeft=.775, GUITypes::real xRight=.825, GUITypes::real yBottom=-.75, GUITypes::real yTop=.75)
 
virtual void updateColourBar (GraphicsParameters &parameters, int window=0)
 
void init (const int &win_number)
 
void changeView (const int &win_number, const real &dx, const real &dy, const real &dz, const real &dThetaX=0., const real &dThetaY=0., const real &dThetaZ=0., const real &magnify=1.)
 
void display (const int &win_number)
 
void setProjection (const int &win_number)
 
void annotate (const aString &answer)
 
void constructor ()
 
bool readOvertureRC ()
 
int getAnswerSelectPick (aString &answer, const aString &prompt, SelectionInfo *selection_=NULL, int blocking=1)
 
int interactiveAnswer (aString &answer, const aString &prompt, SelectionInfo *selection_, int blocking=1)
 
void parseCommandLine (const aString &line, aString &command, int &windowNumber, aString &arg) const
 
void pickNew (PickInfo &xPick, SelectionInfo &select)
 
int selectNew (PickInfo &xPick, SelectionInfo *select)
 
int offScreenRender (const char *fileName, GraphicsParameters &parameters=Overture::defaultGraphicsParameters())
 
int offScreenRenderX (const char *fileName, GraphicsParameters &parameters=Overture::defaultGraphicsParameters())
 
int offScreenRenderMesa (const char *fileName, GraphicsParameters &parameters=Overture::defaultGraphicsParameters())
 
int saveRasterInAFile (const aString &fileName, void *buffer, const GLint &width, const GLint &height, const int &rgbType=0, GraphicsParameters &parameters=Overture::defaultGraphicsParameters())
 
void rleCompress (const int num, GLubyte *xBuffer, FILE *outFile, const int numPerLine=30)
 
void setMaterialProperties (float ambr, float ambg, float ambb, float difr, float difg, float difb, float specr, float specg, float specb, float shine)
 
void setupHardCopy (DialogData &hcd, int win)
 
void hardcopyCommands (aString &longAnswer, int win_number)
 
void optionCommands (aString &answer, int win_number)
 
void openGUI ()
 
void disableGUI ()
 
- Public Member Functions inherited from GenericGraphicsInterface
 GenericGraphicsInterface ()
 
 GenericGraphicsInterface (int &argc, char *argv[])
 
virtual ~GenericGraphicsInterface ()
 
void abortIfCommandFileEnds (bool trueOrFalse=true)
 
int appendToTheDefaultPrompt (const aString &appendage)
 
int buildCascadingMenu (aString *&menu, int startCascade, int endCascade) const
 
int getInfoLevel () const
 
const aStringgetDefaultPrompt ()
 
int getMatch (const aString *menu, aString &answer)
 
int getProcessorForGraphics ()
 
FILE * getReadCommandFile () const
 
FILE * getSaveCommandFile () const
 
int getValues (const aString &prompt, IntegerArray &values, const int minimunValue=INT_MIN, const int maximumValue=INT_MAX, const int sort=0)
 
int getValues (const aString &prompt, RealArray &values, const GUITypes::real minimunValue=-REAL_MAX, const GUITypes::real maximumValue=REAL_MAX, const int sort=0)
 
bool graphicsIsOn ()
 
int indexInCascadingMenu (int &index, const int startCascade, const int endCascade) const
 
bool isGraphicsWindowOpen ()
 
bool isInteractiveGraphicsOn ()
 
void outputToCommandFile (const aString &line)
 
int popDefaultPrompt ()
 
int pushDefaultPrompt (const aString &prompt)
 
FILE * readCommandFile (const aString &commandFileName=nullString)
 
int readCommandsFromStrings (const aString *commands)
 
bool readingFromCommandFile () const
 
FILE * saveCommandFile (const aString &commandFileName=nullString)
 
int savePickCommands (bool trueOrFalse=TRUE)
 
int setDefaultPrompt (const aString &prompt)
 
FILE * saveEchoFile (const aString &fileName=nullString)
 
void setInfoLevel (int value)
 
void setIgnorePause (bool trueOrFalse=true)
 
void setSingleProcessorGraphicsMode (bool mode)
 
void stopSavingCommandFile ()
 
void stopSavingEchoFile ()
 
void turnOnGraphics ()
 
void turnOffGraphics ()
 
int unAppendTheDefaultPrompt ()
 
int parseAnswer (aString &answer)
 

Public Attributes

aStringcolourNames
 
aStringfileMenuItems
 
aStringhelpMenuItems
 
aStringgraphicsFileMenuItems
 
aStringgraphicsHelpMenuItems
 
aStringmenuBarItems
 
bool keepAspectRatio [MAX_WINDOWS]
 
bool viewHasChanged [MAX_WINDOWS]
 
RealArray globalBound [MAX_WINDOWS]
 
GUITypes::real rotationCenter [MAX_WINDOWS][3]
 
GUITypes::real magnificationFactor [MAX_WINDOWS]
 
GUITypes::real magnificationIncrement [MAX_WINDOWS]
 
GUITypes::real aspectRatio [MAX_WINDOWS]
 
GUITypes::real fractionOfScreen [MAX_WINDOWS]
 
aString wTitle [MAX_WINDOWS]
 
aString defaultWindowTitle
 
GraphicsParameters::HardCopyType hardCopyType [MAX_WINDOWS]
 
GraphicsParameters::OutputFormat outputFormat [MAX_WINDOWS]
 
aString hardCopyFile [MAX_WINDOWS]
 
int rasterResolution [MAX_WINDOWS]
 
int horizontalRasterResolution [MAX_WINDOWS]
 
DialogData hardCopyDialog [MAX_WINDOWS]
 
PullDownMenu optionMenu [MAX_WINDOWS]
 
int userLabel [MAX_WINDOWS]
 
int labelsPlotted [MAX_WINDOWS]
 
GUITypes::real xEyeCoordinate
 
GUITypes::real yEyeCoordinate
 
GUITypes::real zEyeCoordinate
 
GUITypes::real dtx [MAX_WINDOWS]
 
GUITypes::real dty [MAX_WINDOWS]
 
GUITypes::real dtz [MAX_WINDOWS]
 
GUITypes::real xShift [MAX_WINDOWS]
 
GUITypes::real yShift [MAX_WINDOWS]
 
GUITypes::real zShift [MAX_WINDOWS]
 
GUITypes::real deltaX [MAX_WINDOWS]
 
GUITypes::real deltaY [MAX_WINDOWS]
 
GUITypes::real deltaZ [MAX_WINDOWS]
 
GUITypes::real deltaAngle [MAX_WINDOWS]
 
GUITypes::real defaultNear [MAX_WINDOWS]
 
GUITypes::real defaultFar [MAX_WINDOWS]
 
GUITypes::real leftSide [MAX_WINDOWS]
 
GUITypes::real rightSide [MAX_WINDOWS]
 
GUITypes::real bottom [MAX_WINDOWS]
 
GUITypes::real top [MAX_WINDOWS]
 
GUITypes::real near [MAX_WINDOWS]
 
GUITypes::real far [MAX_WINDOWS]
 
RealArray rotationMatrix [MAX_WINDOWS]
 
RealArray matrix [MAX_WINDOWS]
 
Index I4
 
GUITypes::real windowScaleFactor [MAX_WINDOWS][3]
 
bool userDefinedRotationPoint [MAX_WINDOWS]
 
int axesOriginOption [MAX_WINDOWS]
 
RealArray axesOrigin [MAX_WINDOWS]
 
aString xAxisLabel [MAX_WINDOWS]
 
aString yAxisLabel [MAX_WINDOWS]
 
aString zAxisLabel [MAX_WINDOWS]
 
GUITypes::real shiftCorrection [MAX_WINDOWS][3]
 
GUITypes::real backGround [MAX_WINDOWS][4]
 
GUITypes::real foreGround [MAX_WINDOWS][4]
 
aString backGroundName [MAX_WINDOWS]
 
aString foreGroundName [MAX_WINDOWS]
 
bool saveTransformationInfo
 
GLdouble modelMatrix [MAX_WINDOWS][16]
 
GLdouble projectionMatrix [MAX_WINDOWS][16]
 
GLint viewPort [MAX_WINDOWS][4]
 
GUITypes::real homeViewParameters [MAX_WINDOWS][14]
 
int lightIsOn [MAX_WINDOWS][numberOfLights]
 
GLfloat ambient [MAX_WINDOWS][numberOfLights][4]
 
GLfloat diffuse [MAX_WINDOWS][numberOfLights][4]
 
GLfloat specular [MAX_WINDOWS][numberOfLights][4]
 
GLfloat position [MAX_WINDOWS][numberOfLights][4]
 
GLfloat globalAmbient [MAX_WINDOWS][4]
 
GLfloat materialAmbient [MAX_WINDOWS][4]
 
GLfloat materialDiffuse [MAX_WINDOWS][4]
 
GLfloat materialSpecular [MAX_WINDOWS][4]
 
GLfloat materialShininess [MAX_WINDOWS]
 
GLfloat materialScaleFactor [MAX_WINDOWS]
 
ViewCharacteristics viewChar [MAX_WINDOWS]
 
int lighting [MAX_WINDOWS]
 
bool plotTheAxes [MAX_WINDOWS]
 
bool plotBackGroundGrid [MAX_WINDOWS]
 
int axesDimension [MAX_WINDOWS]
 
bool plotTheRotationPoint [MAX_WINDOWS]
 
bool plotTheLabels [MAX_WINDOWS]
 
bool plotTheColouredSquares [MAX_WINDOWS]
 
bool plotTheColourBar [MAX_WINDOWS]
 
GUITypes::real lineWidthScaleFactor [MAX_WINDOWS]
 
int numberOfClippingPlanes [MAX_WINDOWS]
 
int clippingPlaneIsOn [MAX_WINDOWS][maximumNumberOfClippingPlanes]
 
double clippingPlaneEquation [MAX_WINDOWS][maximumNumberOfClippingPlanes][4]
 
GLenum clip [MAX_WINDOWS][maximumNumberOfClippingPlanes]
 
ClippingPlaneInfo clippingPlaneInfo [MAX_WINDOWS]
 
int textIsOn [maximumNumberOfTextStrings]
 
ColourBar colourBar
 
- Public Attributes inherited from GenericGraphicsInterface
int gridCoarseningFactor
 

Protected Member Functions

void resetRotationPoint (int win_number=-1)
 
void setNormalizedCoordinates ()
 
void unsetNormalizedCoordinates ()
 
int pickToWorldCoordinates (const RealArray &r, RealArray &x, const int &win_number) const
 
void setRotationCenter (GUITypes::real rotationPoint[3], int win_number=-1)
 
void plotAxes (const RealArray &xBound, const int numberOfDimensions, GraphicsParameters &parameters=Overture::defaultGraphicsParameters(), int win_number=-1)
 
void eraseAxes (int win_number)
 
void labelR (const aString &string, const GUITypes::real xPosition, const GUITypes::real yPosition, const GUITypes::real size=.1, const int centering=0, const GUITypes::real angle=0., GraphicsParameters &parameters=Overture::defaultGraphicsParameters())
 
int renderPS (const char *fileName, GraphicsParameters &parameters=Overture::defaultGraphicsParameters())
 
void setRotationTransformation (int win_number)
 
virtual void setView (const ViewParameters &viewParameter, const GUITypes::real &value)
 
void getWindowShape (int window, GUITypes::real &leftSide, GUITypes::real &rightSide, GUITypes::real &top, GUITypes::real &bottom) const
 
GUIStategetCurrentGUI ()
 
void setModelViewMatrix ()
 
void setFractionOfScreen (const GUITypes::real &fraction=.75, int win_number=-1)
 
void lightsOn (int win_number)
 
void lightsOff (int win_number)
 
- Protected Member Functions inherited from GenericGraphicsInterface
void constructor (int &argc, char *argv[])
 
int readLineFromCommandFile (aString &answer)
 
int fileAnswer (aString &answer, const aString &prompt, SelectionInfo *selection_)
 
int promptAnswerSelectPick (aString &answer, const aString &prompt, SelectionInfo *selection_)
 
int promptAnswer (aString &answer, const aString &prompt=nullString)
 

Protected Attributes

WindowProperties wProp
 
int currentWindow
 
int topLabelList [MAX_WINDOWS]
 
int topLabel1List [MAX_WINDOWS]
 
int topLabel2List [MAX_WINDOWS]
 
int topLabel3List [MAX_WINDOWS]
 
int bottomLabelList [MAX_WINDOWS]
 
int bottomLabel1List [MAX_WINDOWS]
 
int bottomLabel2List [MAX_WINDOWS]
 
int bottomLabel3List [MAX_WINDOWS]
 
int colouredSquaresList [MAX_WINDOWS]
 
int colourBarList [MAX_WINDOWS]
 
int firstUserLabelList [MAX_WINDOWS]
 
int lastUserLabelList [MAX_WINDOWS]
 
int axesList [MAX_WINDOWS]
 
int firstUserRotableList [MAX_WINDOWS]
 
int lastUserRotableList [MAX_WINDOWS]
 
int maximumNumberOfDisplayLists [MAX_WINDOWS]
 
IntegerArray plotInfo [MAX_WINDOWS]
 
- Protected Attributes inherited from GenericGraphicsInterface
aString readFileName
 
aString saveFileName
 
aString echoFileName
 
FILE * readFile
 
FILE * saveFile
 
FILE * echoFile
 
std::stack< FILE * > readFileStack
 
std::queue< aStringstringCommands
 
bool getInteractiveResponse
 
bool readCommands
 
bool saveCommands
 
bool savePick
 
OvertureParserparser
 
bool useParser
 
bool singleProcessorGraphicsMode
 
int processorForGraphics
 
bool graphicsPlottingIsOn
 
GUIStatecurrentGUI
 
aString defaultPrompt
 
aString indentBlanks
 
aStringdefaultPromptStack
 
int maxNumberOfDefaultPrompts
 
int topOfDefaultPromptStack
 
int saveFileCount
 
bool graphicsWindowIsOpen
 
bool interactiveGraphicsIsOn
 
bool ignorePause
 
bool preferDirectRendering
 
HardCopyRenderingEnum hardCopyRenderingType
 
int numberRecorded
 
IntegerArrayrecordDisplayLists
 
int simplifyPlotWhenRotating
 
int infoLevel
 
int abortProgramIfCommandFileEnds
 

Friends

class ColourBar
 

Additional Inherited Members

- Protected Types inherited from GenericGraphicsInterface
enum  Sizes {
  lineWidth =GraphicsParameters::lineWidth, axisNumberSize =GraphicsParameters::axisNumberSize, axisLabelSize =GraphicsParameters::axisLabelSize, axisMinorTickSize =GraphicsParameters::axisMinorTickSize,
  axisMajorTickSize =GraphicsParameters::axisMajorTickSize, topLabelSize =GraphicsParameters::topLabelSize, topSubLabelSize =GraphicsParameters::topSubLabelSize, bottomLabelSize =GraphicsParameters::bottomLabelSize,
  bottomSubLabelSize =GraphicsParameters::bottomSubLabelSize, minorContourWidth =GraphicsParameters::minorContourWidth, majorContourWidth =GraphicsParameters::majorContourWidth, streamLineWidth =GraphicsParameters::streamLineWidth,
  labelLineWidth =GraphicsParameters::labelLineWidth, curveLineWidth =GraphicsParameters::curveLineWidth, extraSize1, extraSize2,
  extraSize3, numberOfSizes
}
 

Member Enumeration Documentation

anonymous enum
Enumerator
maximumNumberOfClippingPlanes 
maximumNumberOfTextStrings 

Constructor & Destructor Documentation

GL_GraphicsInterface::GL_GraphicsInterface ( const aString windowTitle = "Your Slogan Here")
GL_GraphicsInterface::GL_GraphicsInterface ( int &  argc,
char *  argv[],
const aString windowTitle = "Your Slogan Here" 
)
GL_GraphicsInterface::GL_GraphicsInterface ( const bool  initialize,
const aString windowTitle = "Your Slogan Here" 
)
GL_GraphicsInterface::~GL_GraphicsInterface ( )
virtual

Member Function Documentation

void GL_GraphicsInterface::annotate ( const aString answer)
void GL_GraphicsInterface::appendCommandHistory ( const aString answer)
virtual
int GL_GraphicsInterface::beginRecordDisplayLists ( IntegerArray displayLists)
virtual
void GL_GraphicsInterface::changeView ( const int &  win_number,
const real dx,
const real dy,
const real dz,
const real dThetaX = 0.,
const real dThetaY = 0.,
const real dThetaZ = 0.,
const real magnify = 1. 
)
aString GL_GraphicsInterface::chooseAColour ( )
virtual

Implements GenericGraphicsInterface.

References aString, and getMenuItem().

Referenced by plotPoints().

void GL_GraphicsInterface::constructor ( )

References ViewCharacteristics::ambient, ambient, aspectRatio, aString, axesDimension, axesList, axesOrigin, axesOriginOption, ViewCharacteristics::axesOriginOption_, ViewCharacteristics::backGround, backGround, WindowProperties::backgroundColour, backGroundName, blankString, bottom, bottomLabel1List, bottomLabel2List, bottomLabel3List, bottomLabelList, clip, ClippingPlaneInfo::clippingPlaneEquation, clippingPlaneEquation, clippingPlaneInfo, ClippingPlaneInfo::clippingPlaneIsOn, clippingPlaneIsOn, GraphicsParameters::colour8Bit, colourBarList, colouredSquaresList, colourNames, CS, GenericGraphicsInterface::currentGUI, currentWindow, defaultFar, defaultNear, GenericGraphicsInterface::defaultOrigin, deltaAngle, deltaX, deltaY, deltaZ, ViewCharacteristics::diffuse, diffuse, dtx, dty, dtz, far, fileMenuItems, firstUserLabelList, firstUserRotableList, ViewCharacteristics::foreGround, foreGround, WindowProperties::foregroundColour, foreGroundName, fractionOfScreen, ViewCharacteristics::fractionOfScreen_, getXColour(), GI_TOGGLEBUTTON, ViewCharacteristics::globalAmbient, globalAmbient, globalBound, graphicsFileMenuItems, graphicsHelpMenuItems, GenericGraphicsInterface::graphicsWindowIsOpen, hardCopyFile, hardCopyType, helpMenuItems, homeViewParameters, horizontalRasterResolution, I4, GenericGraphicsInterface::interactiveDL, keepAspectRatio, labelsPlotted, lastUserLabelList, lastUserRotableList, leftSide, lighting, ViewCharacteristics::lighting_, ViewCharacteristics::lightIsOn, lightIsOn, ViewCharacteristics::lineScaleFactor_, lineWidthScaleFactor, magnificationFactor, magnificationIncrement, ViewCharacteristics::materialAmbient, materialAmbient, ViewCharacteristics::materialDiffuse, materialDiffuse, materialScaleFactor, ViewCharacteristics::materialScaleFactor_, materialShininess, ViewCharacteristics::materialShininess_, ViewCharacteristics::materialSpecular, materialSpecular, matrix, MAX_WINDOWS, ClippingPlaneInfo::maximumNumberOfClippingPlanes, maximumNumberOfClippingPlanes, maximumNumberOfDisplayLists, menuBarItems, moglMakeCurrent(), near, NULL, numberOfClippingPlanes, GenericGraphicsInterface::numberOfColourNames, numberOfLights, optionCommands(), optionMenu, outputFormat, plotBackGroundGrid, GenericGraphicsInterface::plotDL, plotInfo, plotTheAxes, plotTheColourBar, plotTheColouredSquares, plotTheLabels, plotTheRotationPoint, ViewCharacteristics::position, position, GraphicsParameters::postScript, printF(), q, rasterResolution, GenericGraphicsInterface::readFile, readOvertureRC(), resetGlobalBound(), rightSide, ViewCharacteristics::rotationCenter, rotationCenter, rotationMatrix, GenericGraphicsInterface::saveFile, saveTransformationInfo, PullDownMenu::setPullDownMenu(), shiftCorrection, GenericGraphicsInterface::simplifyPlotWhenRotating, ViewCharacteristics::specular, specular, sPrintF(), SQRT, top, topLabel1List, topLabel2List, topLabel3List, topLabelList, TRUE, userDefinedRotationPoint, userLabel, viewChar, viewHasChanged, windowScaleFactor, wProp, xAxisLabel, xEyeCoordinate, xShift, yAxisLabel, yEyeCoordinate, yShift, zAxisLabel, zEyeCoordinate, and zShift.

Referenced by GL_GraphicsInterface().

void GL_GraphicsInterface::createMessageDialog ( aString  msg,
MessageTypeEnum  type 
)
virtual
int GL_GraphicsInterface::createWindow ( const aString windowTitle = nullString,
int  argc = 0,
char *  argv[] = NULL 
)
virtual
void GL_GraphicsInterface::deleteList ( int  dList)
virtual
int GL_GraphicsInterface::destroyWindow ( int  win_number)
virtual
void GL_GraphicsInterface::disableGUI ( )
void GL_GraphicsInterface::display ( const int &  win_number)
void GL_GraphicsInterface::displayColourBar ( const int &  numberOfContourLevels,
RealArray contourLevels,
GUITypes::real  uMin,
GUITypes::real  uMax,
GraphicsParameters parameters 
)
virtual
bool GL_GraphicsInterface::displayHelp ( const aString topic)
virtual

Implements GenericGraphicsInterface.

References helpOverture(), and printF().

Referenced by processSpecialMenuItems().

void GL_GraphicsInterface::drawColourBar ( const int &  numberOfContourLevels,
RealArray contourLevels,
GUITypes::real  uMin = 0.,
GUITypes::real  uMax = 1.,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
GUITypes::real  xLeft = .775,
GUITypes::real  xRight = .825,
GUITypes::real  yBottom = -.75,
GUITypes::real  yTop = .75 
)
virtual
void GL_GraphicsInterface::drawColouredSquares ( const IntegerArray numberList,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
const int &  numberOfColourNames = -1,
aString colourNames = NULL 
)
virtual
int GL_GraphicsInterface::endRecordDisplayLists ( IntegerArray displayLists)
virtual
void GL_GraphicsInterface::erase ( )
virtual
void GL_GraphicsInterface::erase ( const int  win_number,
bool  forceDelete = false 
)
virtual
void GL_GraphicsInterface::erase ( const IntegerArray displayList)
virtual
void GL_GraphicsInterface::eraseAxes ( int  win_number)
protected

References getAxesDL().

Referenced by display().

void GL_GraphicsInterface::eraseColourBar ( )
virtual
void GL_GraphicsInterface::eraseLabels ( GraphicsParameters parameters,
int  win_number = -1 
)
virtual
int GL_GraphicsInterface::generateNewDisplayList ( bool  lit = false,
bool  plotIt = true,
bool  hideable = false,
bool  interactive = true 
)
virtual
int GL_GraphicsInterface::getAnswer ( aString answer,
const aString prompt 
)
virtual
int GL_GraphicsInterface::getAnswer ( aString answer,
const aString prompt,
SelectionInfo selection 
)
virtual
int GL_GraphicsInterface::getAnswerNoBlock ( aString answer,
const aString prompt 
)
virtual

Implements GenericGraphicsInterface.

References getAnswerSelectPick(), and NULL.

int GL_GraphicsInterface::getAnswerSelectPick ( aString answer,
const aString prompt,
SelectionInfo selection_ = NULL,
int  blocking = 1 
)
virtual GUITypes::real GL_GraphicsInterface::getAspectRatio ( const int  win = 0)
inlinevirtual

Implements GenericGraphicsInterface.

References aspectRatio.

virtual int GL_GraphicsInterface::getAxesDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References axesList.

Referenced by eraseAxes().

virtual void GL_GraphicsInterface::getAxesOrigin ( GUITypes::real x0,
GUITypes::real y0,
GUITypes::real z0 
)
inlinevirtual

Implements GenericGraphicsInterface.

References axesOrigin, and currentWindow.

virtual int GL_GraphicsInterface::getBottomLabel1DL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References bottomLabel1List.

Referenced by eraseLabels(), and plotLabels().

virtual int GL_GraphicsInterface::getBottomLabel2DL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References bottomLabel2List.

Referenced by eraseLabels(), and plotLabels().

virtual int GL_GraphicsInterface::getBottomLabel3DL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References bottomLabel3List.

Referenced by display(), eraseLabels(), and plotLabels().

virtual int GL_GraphicsInterface::getBottomLabelDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References bottomLabelList.

Referenced by display(), eraseLabels(), and plotLabels().

aString GL_GraphicsInterface::getColour ( ItemColourEnum  item)
virtual
virtual int GL_GraphicsInterface::getColourBarDL ( const int  win)
inlinevirtual
virtual int GL_GraphicsInterface::getColouredSquaresDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References colouredSquaresList.

Referenced by display(), and drawColouredSquares().

aString GL_GraphicsInterface::getColourName ( int  i) const
virtual
GUIState* GL_GraphicsInterface::getCurrentGUI ( )
inlineprotected
int GL_GraphicsInterface::getCurrentWindow ( )
virtual
virtual int GL_GraphicsInterface::getFirstDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References topLabelList.

Referenced by erase().

virtual int GL_GraphicsInterface::getFirstFixedDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References topLabelList.

virtual int GL_GraphicsInterface::getFirstRotableDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References axesList.

Referenced by display().

virtual int GL_GraphicsInterface::getFirstUserLabelDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References firstUserLabelList.

Referenced by display(), and getNewLabelList().

virtual int GL_GraphicsInterface::getFirstUserRotableDL ( const int  win)
inlinevirtual
RealArray GL_GraphicsInterface::getGlobalBound ( ) const
virtual

Implements GenericGraphicsInterface.

References currentWindow, and globalBound.

virtual bool GL_GraphicsInterface::getKeepAspectRatio ( )
inlinevirtual
virtual int GL_GraphicsInterface::getLastDL ( const int  win)
inlinevirtual
virtual int GL_GraphicsInterface::getLastFixedDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References lastUserLabelList.

Referenced by erase().

virtual int GL_GraphicsInterface::getLastRotableDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References lastUserRotableList.

Referenced by display().

virtual int GL_GraphicsInterface::getLastUserLabelDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References lastUserLabelList.

Referenced by display(), and getNewLabelList().

virtual int GL_GraphicsInterface::getLastUserRotableDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References lastUserRotableList.

Referenced by erase().

real GL_GraphicsInterface::getLineWidthScaleFactor ( int  window = -1)
virtual
virtual int GL_GraphicsInterface::getMaxNOfDL ( const int  win)
inlinevirtual
int GL_GraphicsInterface::getMenuItem ( const aString menu,
aString answer,
const aString prompt = nullString 
)
virtual
int GL_GraphicsInterface::getNewLabelList ( int  win = -1)
virtual
bool GL_GraphicsInterface::getPlotTheAxes ( int  win_number = -1)
virtual
bool GL_GraphicsInterface::getPlotTheBackgroundGrid ( int  win_number = -1)
virtual
bool GL_GraphicsInterface::getPlotTheColourBar ( int  win_number = -1)
virtual
bool GL_GraphicsInterface::getPlotTheColouredSquares ( int  win_number = -1)
virtual
bool GL_GraphicsInterface::getPlotTheLabels ( int  win_number = -1)
virtual
bool GL_GraphicsInterface::getPlotTheRotationPoint ( int  win_number = -1)
virtual
virtual int GL_GraphicsInterface::getTopLabel1DL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References topLabel1List.

Referenced by eraseLabels(), and plotLabels().

virtual int GL_GraphicsInterface::getTopLabel2DL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References topLabel2List.

Referenced by eraseLabels(), and plotLabels().

virtual int GL_GraphicsInterface::getTopLabel3DL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References topLabel3List.

Referenced by display(), eraseLabels(), and plotLabels().

virtual int GL_GraphicsInterface::getTopLabelDL ( const int  win)
inlinevirtual

Implements GenericGraphicsInterface.

References topLabelList.

Referenced by display(), eraseLabels(), and plotLabels().

void GL_GraphicsInterface::getView ( ViewLocation loc,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::getWindowShape ( int  window,
GUITypes::real leftSide,
GUITypes::real rightSide,
GUITypes::real top,
GUITypes::real bottom 
) const
protected

References bottom, leftSide, rightSide, and top.

virtual aString GL_GraphicsInterface::getXAxisLabel ( )
inlinevirtual

Implements GenericGraphicsInterface.

References currentWindow, and xAxisLabel.

virtual aString GL_GraphicsInterface::getYAxisLabel ( )
inlinevirtual

Implements GenericGraphicsInterface.

References currentWindow, and yAxisLabel.

virtual aString GL_GraphicsInterface::getZAxisLabel ( )
inlinevirtual

Implements GenericGraphicsInterface.

References currentWindow, and zAxisLabel.

int GL_GraphicsInterface::hardCopy ( const aString fileName = nullString,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::hardcopyCommands ( aString longAnswer,
int  win_number 
)
void GL_GraphicsInterface::init ( const int &  win_number)
void GL_GraphicsInterface::initView ( int  win_number = -1)
virtual
void GL_GraphicsInterface::inputFileName ( aString answer,
const aString prompt = nullString,
const aString extension = nullString 
)
virtual
void GL_GraphicsInterface::inputString ( aString answer,
const aString prompt = nullString 
)
virtual

Reimplemented from GenericGraphicsInterface.

References aString, and getMenuItem().

Referenced by main(), plotPoints(), and processSpecialMenuItems().

int GL_GraphicsInterface::interactiveAnswer ( aString answer,
const aString prompt,
SelectionInfo selection_,
int  blocking = 1 
)
void GL_GraphicsInterface::label ( const aString string,
GUITypes::real  xPosition,
GUITypes::real  yPosition,
GUITypes::real  size = .1,
int  centering = 0,
GUITypes::real  angle = 0.,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
const aString colour = nullString,
GUITypes::real  zOffset = .99 
)
virtual
void GL_GraphicsInterface::labelR ( const aString string,
const GUITypes::real  xPosition,
const GUITypes::real  yPosition,
const GUITypes::real  size = .1,
const int  centering = 0,
const GUITypes::real  angle = 0.,
GraphicsParameters parameters = Overture::defaultGraphicsParameters() 
)
protected
void GL_GraphicsInterface::lightsOff ( int  win_number)
protected

References glDisable, and lightIsOn.

Referenced by display().

void GL_GraphicsInterface::lightsOn ( int  win_number)
protected
int GL_GraphicsInterface::normalizedToWorldCoordinates ( const RealArray r,
RealArray x 
) const
virtual
int GL_GraphicsInterface::offScreenRender ( const char *  fileName,
GraphicsParameters parameters = Overture::defaultGraphicsParameters() 
)

References offScreenRenderMesa(), and offScreenRenderX().

Referenced by hardCopy().

int GL_GraphicsInterface::offScreenRenderMesa ( const char *  fileName,
GraphicsParameters parameters = Overture::defaultGraphicsParameters() 
)

Referenced by offScreenRender().

int GL_GraphicsInterface::offScreenRenderX ( const char *  fileName,
GraphicsParameters parameters = Overture::defaultGraphicsParameters() 
)

Referenced by offScreenRender().

void GL_GraphicsInterface::openGUI ( )
void GL_GraphicsInterface::optionCommands ( aString answer,
int  win_number 
)
void GL_GraphicsInterface::outputString ( const aString message,
int  messageLevel = 2 
)
virtual
void GL_GraphicsInterface::parseCommandLine ( const aString line,
aString command,
int &  windowNumber,
aString arg 
) const
int GL_GraphicsInterface::pause ( )
virtual
void GL_GraphicsInterface::pickNew ( PickInfo xPick,
SelectionInfo select 
)
int GL_GraphicsInterface::pickPoints ( RealArray x,
bool  plotPoints = TRUE,
int  win_number = -1 
)
virtual
int GL_GraphicsInterface::pickToWorldCoordinates ( const RealArray r,
RealArray x,
const int &  win_number 
) const
protected

References assert, modelMatrix, pow(), projectionMatrix, r, R, viewPort, and x.

Referenced by pickPoints().

void GL_GraphicsInterface::plotAxes ( const RealArray xBound,
const int  numberOfDimensions,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  win_number = -1 
)
protected
void GL_GraphicsInterface::plotLabels ( GraphicsParameters parameters,
const GUITypes::real labelSize = -1.,
const GUITypes::real topLabelHeight = .925,
const GUITypes::real bottomLabelHeight = -.925,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::plotLines ( const realArray arrows,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  dList = 0 
)
virtual
void GL_GraphicsInterface::plotPoints ( const realArray points,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  dList = 0 
)
virtual
void GL_GraphicsInterface::plotPoints ( const realArray points,
const realArray value,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  dList = 0 
)
virtual
void GL_GraphicsInterface::pollEvents ( )
virtual
void GL_GraphicsInterface::popGUI ( )
virtual
int GL_GraphicsInterface::processSpecialMenuItems ( aString answer)
virtual

Reimplemented from GenericGraphicsInterface.

References ambient, annotate(), appendCommandHistory(), aString, axesOriginOption, backGround, backGroundName, clippingPlaneEquation, clippingPlaneIsOn, createWindow(), GenericGraphicsInterface::currentGUI, currentWindow, deltaAngle, deltaX, deltaY, deltaZ, diffuse, disableGUI(), displayHelp(), dtx, dty, dtz, erase(), FALSE, foreGround, foreGroundName, fPrintF(), fraction, fractionOfScreen, GenericGraphicsInterface::getMatch(), getXColour(), hardcopyCommands(), homeViewParameters, GenericGraphicsInterface::indentBlanks, initView(), inputString(), GenericGraphicsInterface::isGraphicsWindowOpen(), lighting, lightIsOn, lineWidthScaleFactor, magnificationFactor, magnificationIncrement, materialAmbient, materialDiffuse, materialScaleFactor, materialShininess, materialSpecular, maximumNumberOfClippingPlanes, menuBarItems, moglBuildPopup(), moglBuildUserButtons(), moglBuildUserMenu(), moglGetNWindows(), moglPostDisplay(), moglPrintFractionOfScreen(), moglPrintLineWidth(), moglPrintRotPnt(), moglSetSensitive(), nullString, numberOfClippingPlanes, openGUI(), optionCommands(), outputString(), parseCommandLine(), pause(), pickPoints(), plotTheRotationPoint, GUIState::popupMenu, position, printF(), GUIState::pulldownCommand, GUIState::pulldownTitle, r, GenericGraphicsInterface::readCommandFile(), GenericGraphicsInterface::readFile, redraw(), resetView(), rotationMatrix, s, GenericGraphicsInterface::saveCommandFile(), GenericGraphicsInterface::saveFile, SC, GUIState::setAllCommands(), setCurrentWindow(), setFractionOfScreen(), setLineWidthScaleFactor(), setProjection(), setRotationCenter(), setRotationTransformation(), specular, SQR, SQRT, sScanF(), str_matches(), TRUE, GenericGraphicsInterface::turnOffGraphics(), GenericGraphicsInterface::turnOnGraphics(), GenericGraphicsInterface::useParser, userDefinedRotationPoint, viewChar, GUIState::windowButtonCommands, GUIState::windowButtonLabels, x, xShift, yShift, and zShift.

Referenced by getAnswerSelectPick().

int GL_GraphicsInterface::psToRaster ( const aString fileName,
const aString ppmFileName 
)
virtual
void GL_GraphicsInterface::pushGUI ( GUIState newState)
virtual
bool GL_GraphicsInterface::readOvertureRC ( )
void GL_GraphicsInterface::redraw ( bool  immediate = FALSE)
virtual
int GL_GraphicsInterface::renderPS ( const char *  fileName,
GraphicsParameters parameters = Overture::defaultGraphicsParameters() 
)
protected
void GL_GraphicsInterface::resetGlobalBound ( const int  win_number)
virtual

Implements GenericGraphicsInterface.

References End, globalBound, REAL_MAX, and Start.

Referenced by constructor(), erase(), and init().

void GL_GraphicsInterface::resetRotationPoint ( int  win_number = -1)
protected
void GL_GraphicsInterface::resetView ( int  win_number = -1)
virtual
void GL_GraphicsInterface::rleCompress ( const int  num,
GLubyte *  xBuffer,
FILE *  outFile,
const int  numPerLine = 30 
)

References fPrintF(), getCPU(), printF(), and r.

Referenced by saveRasterInAFile().

int GL_GraphicsInterface::saveRasterInAFile ( const aString fileName,
void *  buffer,
const GLint &  width,
const GLint &  height,
const int &  rgbType = 0,
GraphicsParameters parameters = Overture::defaultGraphicsParameters() 
)
int GL_GraphicsInterface::selectNew ( PickInfo xPick,
SelectionInfo select 
)
void GL_GraphicsInterface::setAxesDimension ( int  dim,
int  win_number = -1 
)
virtual
int GL_GraphicsInterface::setAxesLabels ( const aString xAxisLabel = blankString,
const aString yAxisLabel = blankString,
const aString zAxisLabel = blankString 
)
virtual
int GL_GraphicsInterface::setAxesOrigin ( const GUITypes::real  x0 = defaultOrigin,
const GUITypes::real  y0 = defaultOrigin,
const GUITypes::real  z0 = defaultOrigin 
)
virtual

Implements GenericGraphicsInterface.

References axesOrigin, and currentWindow.

int GL_GraphicsInterface::setColour ( const aString colourName)
virtual
int GL_GraphicsInterface::setColour ( ItemColourEnum  item)
virtual
void GL_GraphicsInterface::setColourFromTable ( const GUITypes::real  value,
GraphicsParameters parameters = Overture::defaultGraphicsParameters() 
)
virtual
void GL_GraphicsInterface::setColourName ( int  i,
aString  newColourName 
) const
virtual
void GL_GraphicsInterface::setCurrentWindow ( const int &  w)
virtual
void GL_GraphicsInterface::setFractionOfScreen ( const GUITypes::real fraction = .75,
int  win_number = -1 
)
protected
void GL_GraphicsInterface::setGlobalBound ( const RealArray xBound)
virtual
void GL_GraphicsInterface::setInteractiveDL ( int  list,
bool  interactive 
)
virtual
int GL_GraphicsInterface::setKeepAspectRatio ( bool  trueOrFalse = true)
virtual
void GL_GraphicsInterface::setLighting ( int  list,
bool  lit 
)
virtual
void GL_GraphicsInterface::setLineWidthScaleFactor ( const GUITypes::real lineWidthScaleFactor = 1,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::setMaterialProperties ( float  ambr,
float  ambg,
float  ambb,
float  difr,
float  difg,
float  difb,
float  specr,
float  specg,
float  specb,
float  shine 
)

References glDisable.

Referenced by setColour().

void GL_GraphicsInterface::setModelViewMatrix ( )
protected
void GL_GraphicsInterface::setNormalizedCoordinates ( )
protected
void GL_GraphicsInterface::setPlotDL ( int  list,
bool  plot 
)
virtual
void GL_GraphicsInterface::setPlotTheAxes ( bool  newState,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::setPlotTheBackgroundGrid ( bool  newState,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::setPlotTheColourBar ( bool  newState,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::setPlotTheColouredSquares ( bool  newState,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::setPlotTheLabels ( bool  newState,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::setPlotTheRotationPoint ( bool  newState,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::setProjection ( const int &  win_number)
void GL_GraphicsInterface::setRotationCenter ( GUITypes::real  rotationPoint[3],
int  win_number = -1 
)
protected
void GL_GraphicsInterface::setRotationTransformation ( int  win_number)
protected
void GL_GraphicsInterface::setupHardCopy ( DialogData hcd,
int  win 
)
void GL_GraphicsInterface::setUserButtonSensitive ( int  btn,
int  trueOrFalse 
)
virtual
void GL_GraphicsInterface::setView ( ViewLocation loc,
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::setView ( const ViewParameters viewParameter,
const GUITypes::real value 
)
protectedvirtual
virtual void GL_GraphicsInterface::setXAxisLabel ( const aString xAxisLabel_ = blankString)
inlinevirtual

Implements GenericGraphicsInterface.

References currentWindow, and xAxisLabel.

virtual void GL_GraphicsInterface::setYAxisLabel ( const aString yAxisLabel_ = blankString)
inlinevirtual

Implements GenericGraphicsInterface.

References currentWindow, and yAxisLabel.

virtual void GL_GraphicsInterface::setZAxisLabel ( const aString zAxisLabel_ = blankString)
inlinevirtual

Implements GenericGraphicsInterface.

References currentWindow, and zAxisLabel.

void GL_GraphicsInterface::stopReadingCommandFile ( )
virtual
void GL_GraphicsInterface::unsetNormalizedCoordinates ( )
protected
void GL_GraphicsInterface::updateColourBar ( GraphicsParameters parameters,
int  window = 0 
)
virtual
int GL_GraphicsInterface::worldToNormalizedCoordinates ( const RealArray x,
RealArray r 
) const
virtual
void GL_GraphicsInterface::xLabel ( const aString string,
const GUITypes::real  xPosition,
const GUITypes::real  yPosition,
const GUITypes::real  size = .1,
const int  centering = 0,
const GUITypes::real  angle = 0.,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  win_number = -1 
)
virtual

Implements GenericGraphicsInterface.

References currentWindow, Pi, and x.

Referenced by plotAxes(), and xLabel().

void GL_GraphicsInterface::xLabel ( const aString string,
const RealArray x,
const GUITypes::real  size = .1,
const int  centering = 0,
const GUITypes::real  angle = 0.,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  win_number = -1 
)
virtual

Implements GenericGraphicsInterface.

References currentWindow, Pi, and xLabel().

void GL_GraphicsInterface::xLabel ( const aString string,
const GUITypes::real  x[3],
const GUITypes::real  size = .1,
const int  centering = 0,
const GUITypes::real  angle = 0.,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  win_number = -1 
)
virtual

Implements GenericGraphicsInterface.

References currentWindow, Pi, and xLabel().

void GL_GraphicsInterface::xLabel ( const aString string,
const RealArray x,
const GUITypes::real  size,
const int  centering,
const RealArray rightVector,
const RealArray upVector,
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  win_number = -1 
)
virtual
void GL_GraphicsInterface::xLabel ( const aString string,
const GUITypes::real  x[3],
const GUITypes::real  size,
const int  centering,
const GUITypes::real  rightVector[3],
const GUITypes::real  upVector[3],
GraphicsParameters parameters = Overture::defaultGraphicsParameters(),
int  win_number = -1 
)
virtual

Friends And Related Function Documentation

friend class ColourBar
friend

Member Data Documentation

GLfloat GL_GraphicsInterface::ambient[MAX_WINDOWS][numberOfLights][4]
GUITypes::real GL_GraphicsInterface::aspectRatio[MAX_WINDOWS]
int GL_GraphicsInterface::axesDimension[MAX_WINDOWS]
int GL_GraphicsInterface::axesList[MAX_WINDOWS]
protected
RealArray GL_GraphicsInterface::axesOrigin[MAX_WINDOWS]
int GL_GraphicsInterface::axesOriginOption[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::backGround[MAX_WINDOWS][4]
aString GL_GraphicsInterface::backGroundName[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::bottom[MAX_WINDOWS]
int GL_GraphicsInterface::bottomLabel1List[MAX_WINDOWS]
protected

Referenced by constructor(), and getBottomLabel1DL().

int GL_GraphicsInterface::bottomLabel2List[MAX_WINDOWS]
protected

Referenced by constructor(), and getBottomLabel2DL().

int GL_GraphicsInterface::bottomLabel3List[MAX_WINDOWS]
protected

Referenced by constructor(), and getBottomLabel3DL().

int GL_GraphicsInterface::bottomLabelList[MAX_WINDOWS]
protected

Referenced by constructor(), and getBottomLabelDL().

GLenum GL_GraphicsInterface::clip[MAX_WINDOWS][maximumNumberOfClippingPlanes]

Referenced by constructor(), and display().

double GL_GraphicsInterface::clippingPlaneEquation[MAX_WINDOWS][maximumNumberOfClippingPlanes][4]
ClippingPlaneInfo GL_GraphicsInterface::clippingPlaneInfo[MAX_WINDOWS]

Referenced by constructor(), and createWindow().

int GL_GraphicsInterface::clippingPlaneIsOn[MAX_WINDOWS][maximumNumberOfClippingPlanes]
ColourBar GL_GraphicsInterface::colourBar
int GL_GraphicsInterface::colourBarList[MAX_WINDOWS]
protected

Referenced by constructor(), and getColourBarDL().

int GL_GraphicsInterface::colouredSquaresList[MAX_WINDOWS]
protected
aString* GL_GraphicsInterface::colourNames
int GL_GraphicsInterface::currentWindow
protected
GUITypes::real GL_GraphicsInterface::defaultFar[MAX_WINDOWS]

Referenced by constructor(), and resetView().

GUITypes::real GL_GraphicsInterface::defaultNear[MAX_WINDOWS]

Referenced by constructor(), and resetView().

aString GL_GraphicsInterface::defaultWindowTitle
GUITypes::real GL_GraphicsInterface::deltaAngle[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::deltaX[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::deltaY[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::deltaZ[MAX_WINDOWS]
GLfloat GL_GraphicsInterface::diffuse[MAX_WINDOWS][numberOfLights][4]
GUITypes::real GL_GraphicsInterface::dtx[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::dty[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::dtz[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::far[MAX_WINDOWS]
aString* GL_GraphicsInterface::fileMenuItems
int GL_GraphicsInterface::firstUserLabelList[MAX_WINDOWS]
protected
int GL_GraphicsInterface::firstUserRotableList[MAX_WINDOWS]
protected
GUITypes::real GL_GraphicsInterface::foreGround[MAX_WINDOWS][4]
aString GL_GraphicsInterface::foreGroundName[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::fractionOfScreen[MAX_WINDOWS]
GLfloat GL_GraphicsInterface::globalAmbient[MAX_WINDOWS][4]

Referenced by constructor(), and lightsOn().

RealArray GL_GraphicsInterface::globalBound[MAX_WINDOWS]
aString* GL_GraphicsInterface::graphicsFileMenuItems
aString* GL_GraphicsInterface::graphicsHelpMenuItems
DialogData GL_GraphicsInterface::hardCopyDialog[MAX_WINDOWS]

Referenced by createWindow(), and hardcopyCommands().

aString GL_GraphicsInterface::hardCopyFile[MAX_WINDOWS]
GraphicsParameters::HardCopyType GL_GraphicsInterface::hardCopyType[MAX_WINDOWS]
aString* GL_GraphicsInterface::helpMenuItems
GUITypes::real GL_GraphicsInterface::homeViewParameters[MAX_WINDOWS][14]
int GL_GraphicsInterface::horizontalRasterResolution[MAX_WINDOWS]
Index GL_GraphicsInterface::I4
bool GL_GraphicsInterface::keepAspectRatio[MAX_WINDOWS]
int GL_GraphicsInterface::labelsPlotted[MAX_WINDOWS]
int GL_GraphicsInterface::lastUserLabelList[MAX_WINDOWS]
protected
int GL_GraphicsInterface::lastUserRotableList[MAX_WINDOWS]
protected
GUITypes::real GL_GraphicsInterface::leftSide[MAX_WINDOWS]
int GL_GraphicsInterface::lighting[MAX_WINDOWS]
int GL_GraphicsInterface::lightIsOn[MAX_WINDOWS][numberOfLights]
GUITypes::real GL_GraphicsInterface::lineWidthScaleFactor[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::magnificationFactor[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::magnificationIncrement[MAX_WINDOWS]
GLfloat GL_GraphicsInterface::materialAmbient[MAX_WINDOWS][4]
GLfloat GL_GraphicsInterface::materialDiffuse[MAX_WINDOWS][4]
GLfloat GL_GraphicsInterface::materialScaleFactor[MAX_WINDOWS]
GLfloat GL_GraphicsInterface::materialShininess[MAX_WINDOWS]
GLfloat GL_GraphicsInterface::materialSpecular[MAX_WINDOWS][4]
RealArray GL_GraphicsInterface::matrix[MAX_WINDOWS]
int GL_GraphicsInterface::maximumNumberOfDisplayLists[MAX_WINDOWS]
protected
aString* GL_GraphicsInterface::menuBarItems
GLdouble GL_GraphicsInterface::modelMatrix[MAX_WINDOWS][16]
GUITypes::real GL_GraphicsInterface::near[MAX_WINDOWS]
int GL_GraphicsInterface::numberOfClippingPlanes[MAX_WINDOWS]
PullDownMenu GL_GraphicsInterface::optionMenu[MAX_WINDOWS]
GraphicsParameters::OutputFormat GL_GraphicsInterface::outputFormat[MAX_WINDOWS]
bool GL_GraphicsInterface::plotBackGroundGrid[MAX_WINDOWS]
IntegerArray GL_GraphicsInterface::plotInfo[MAX_WINDOWS]
protected
bool GL_GraphicsInterface::plotTheAxes[MAX_WINDOWS]
bool GL_GraphicsInterface::plotTheColourBar[MAX_WINDOWS]
bool GL_GraphicsInterface::plotTheColouredSquares[MAX_WINDOWS]
bool GL_GraphicsInterface::plotTheLabels[MAX_WINDOWS]
bool GL_GraphicsInterface::plotTheRotationPoint[MAX_WINDOWS]
GLfloat GL_GraphicsInterface::position[MAX_WINDOWS][numberOfLights][4]
GLdouble GL_GraphicsInterface::projectionMatrix[MAX_WINDOWS][16]
int GL_GraphicsInterface::rasterResolution[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::rightSide[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::rotationCenter[MAX_WINDOWS][3]
RealArray GL_GraphicsInterface::rotationMatrix[MAX_WINDOWS]
bool GL_GraphicsInterface::saveTransformationInfo

Referenced by constructor(), and display().

GUITypes::real GL_GraphicsInterface::shiftCorrection[MAX_WINDOWS][3]
GLfloat GL_GraphicsInterface::specular[MAX_WINDOWS][numberOfLights][4]
int GL_GraphicsInterface::textIsOn[maximumNumberOfTextStrings]

Referenced by annotate().

GUITypes::real GL_GraphicsInterface::top[MAX_WINDOWS]
int GL_GraphicsInterface::topLabel1List[MAX_WINDOWS]
protected

Referenced by constructor(), and getTopLabel1DL().

int GL_GraphicsInterface::topLabel2List[MAX_WINDOWS]
protected

Referenced by constructor(), and getTopLabel2DL().

int GL_GraphicsInterface::topLabel3List[MAX_WINDOWS]
protected

Referenced by constructor(), and getTopLabel3DL().

int GL_GraphicsInterface::topLabelList[MAX_WINDOWS]
protected
bool GL_GraphicsInterface::userDefinedRotationPoint[MAX_WINDOWS]
int GL_GraphicsInterface::userLabel[MAX_WINDOWS]

Referenced by annotate(), constructor(), and erase().

ViewCharacteristics GL_GraphicsInterface::viewChar[MAX_WINDOWS]
bool GL_GraphicsInterface::viewHasChanged[MAX_WINDOWS]
GLint GL_GraphicsInterface::viewPort[MAX_WINDOWS][4]
GUITypes::real GL_GraphicsInterface::windowScaleFactor[MAX_WINDOWS][3]
WindowProperties GL_GraphicsInterface::wProp
protected
aString GL_GraphicsInterface::wTitle[MAX_WINDOWS]

Referenced by createWindow(), and setCurrentWindow().

aString GL_GraphicsInterface::xAxisLabel[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::xEyeCoordinate

Referenced by constructor(), and display().

GUITypes::real GL_GraphicsInterface::xShift[MAX_WINDOWS]
aString GL_GraphicsInterface::yAxisLabel[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::yEyeCoordinate

Referenced by constructor(), and display().

GUITypes::real GL_GraphicsInterface::yShift[MAX_WINDOWS]
aString GL_GraphicsInterface::zAxisLabel[MAX_WINDOWS]
GUITypes::real GL_GraphicsInterface::zEyeCoordinate

Referenced by constructor(), and display().

GUITypes::real GL_GraphicsInterface::zShift[MAX_WINDOWS]

The documentation for this class was generated from the following files: