VAPoR
0.1
|
A class for performing OpenGL rendering in a VAPOR Visualizer. More...
#include <glwindow.h>
Public Member Functions | |
void | setDirtyBit (DirtyBitType t, bool val) |
bool | vizIsDirty (DirtyBitType t) |
ViewpointParams * | getActiveViewpointParams () |
RegionParams * | getActiveRegionParams () |
AnimationParams * | getActiveAnimationParams () |
void | TransformToUnitBox () |
Method that transforms the world into the unit box, should be called by each renderer before rendering. More... | |
int | addTextObject (Renderer *, const char *fontPath, int textSize, float textColor[4], float bgColor[4], int type, string text) |
void | addText (Renderer *, int objectNum, float posn[3]) |
void | clearTextObjects (Renderer *) |
bool | isTextValid (Renderer *ren) |
void | setTextValid (Renderer *ren, bool val) |
Public Member Functions inherited from VetsUtil::MyBase | |
MyBase () | |
const string & | getClassName () const |
Static Public Member Functions | |
static int | getModeManipType (int modeIndex) |
static ParamsBase::ParamsBaseType | getModeParamType (int modeIndex) |
static int | getModeFromParams (ParamsBase::ParamsBaseType t) |
static const string & | getModeName (int index) |
static int | AddMouseMode (const std::string paramsTag, int manipType, const char *name) |
static void | ConvertAxes (bool toLatLon, const int ticDirs[3], const double fromMinTic[3], const double fromMaxTic[3], const double fromOrigin[3], const double fromTicLength[3], double toMinTic[3], double toMaxTic[3], double toOrigin[3], double toTicLength[3]) |
Static Public Member Functions inherited from VetsUtil::MyBase | |
static void | SetErrMsg (const char *format,...) |
Record a formatted error message. More... | |
static void | SetErrMsg (int errcode, const char *format,...) |
Record a formatted error message and an error code. More... | |
static const char * | GetErrMsg () |
static void | SetErrCode (int err_code) |
Record an error code. More... | |
static int | GetErrCode () |
Retrieve the current error code. More... | |
static void | SetErrMsgCB (ErrMsgCB_T cb) |
static ErrMsgCB_T | GetErrMsgCB () |
static void | SetErrMsgFilePtr (FILE *fp) |
static const FILE * | SetErrMsgFilePtr () |
static void | SetDiagMsg (const char *format,...) |
Record a formatted diagnostic message. More... | |
static const char * | GetDiagMsg () |
static void | SetDiagMsgCB (DiagMsgCB_T cb) |
static DiagMsgCB_T | GetDiagMsgCB () |
static void | SetDiagMsgFilePtr (FILE *fp) |
static bool | EnableErrMsg (bool enable) |
Additional Inherited Members | |
Public Types inherited from VetsUtil::MyBase | |
typedef void(* | ErrMsgCB_T )(const char *msg, int err_code) |
typedef void(* | DiagMsgCB_T )(const char *msg) |
Static Public Attributes inherited from VetsUtil::MyBase | |
static char * | ErrMsg |
static int | ErrCode |
static int | ErrMsgSize |
static FILE * | ErrMsgFilePtr |
static ErrMsgCB_T | ErrMsgCB |
static char * | DiagMsg |
static int | DiagMsgSize |
static FILE * | DiagMsgFilePtr |
static DiagMsgCB_T | DiagMsgCB |
static bool | Enabled |
Protected Member Functions inherited from VetsUtil::MyBase | |
void | SetClassName (const string &name) |
A class for performing OpenGL rendering in a VAPOR Visualizer.
The GLWindow class is an OpenGL rendering window. There is one instance for each of the VAPOR visualizers. The GLWindow is embedded in a VizWin instance. It performs basic setup for OpenGL rendering, renders incidental geometry, and calls all the enabled VAPOR Renderer instances. The GLWindow maintains "Dirty bits" that indicate window-specific state that may require refreshing
Definition at line 77 of file glwindow.h.
|
static |
Static method used to add a new Mouse Mode to the list of available modes.
[in] | const | string& tag associated with the Params class |
[in] | int | Manipulator type (1,2,or 3) |
[in] | const | char* name of mouse mode |
int | Resulting mouse mode |
void VAPoR::GLWindow::addText | ( | Renderer * | , |
int | objectNum, | ||
float | posn[3] | ||
) |
int VAPoR::GLWindow::addTextObject | ( | Renderer * | , |
const char * | fontPath, | ||
int | textSize, | ||
float | textColor[4], | ||
float | bgColor[4], | ||
int | type, | ||
string | text | ||
) |
void VAPoR::GLWindow::clearTextObjects | ( | Renderer * | ) |
|
static |
Static method to convert axis coordinates between user and lat-lon It is OK for outputs to equal corresponding inputs.
[in] | toLatLon | indicates whether conversion is to LatLon (true) or to user (false) |
[in] | ticDirs | are directions of tics on each axis. |
[in] | fromMinTic | is a 3-vector indicating minimum tic coordinates being mapped. |
[in] | fromMaxTic | is a 3-vector indicating maximum tic coordinates being mapped. |
[in] | fromOrigin | is a 3-vector indicating origin coordinates being mapped. |
[in] | fromTicLength | is a 3-vector indicating tic lengths before conversion |
[out] | toMinTic | is result 3-vector of minimum tic coordinates |
[out] | toMaxTic | is result 3-vector of maximum tic coordinates |
[out] | toOrigin | is result 3-vector of origin coordinates |
[out] | toTicLength | is a 3-vector indicating tic lengths after conversion |
|
inline |
Method that returns the AnimationParams that is active in this window.
AnimationParams* | current active AnimationParams |
Definition at line 103 of file glwindow.h.
|
inline |
Method that returns the RegionParams that is active in this window.
RegionParams* | current active RegionParams |
Definition at line 99 of file glwindow.h.
|
inline |
Method that returns the ViewpointParams that is active in this window.
ViewpointParams* | current active ViewpointParams |
Definition at line 95 of file glwindow.h.
|
inlinestatic |
Static method that identifies the current mouse mode for a particular params type.
[in] | ParamsBase::ParamsBaseType | t must be the type of a params with an associated mouse mode |
int | Mouse mode |
Definition at line 126 of file glwindow.h.
|
inlinestatic |
Static method that indicates the manipulator type that is associated with a mouse mode.
[in] | modeIndex | is a positive integer indexing the current mouse modes |
int | manipulator type is 1 (region box) 2 (2D box) or 3 (rotated 3D box). |
Definition at line 113 of file glwindow.h.
|
inlinestatic |
Static method that identifies the name associated with a mouse mode. This is the text that is displayed in the mouse mode selector.
[in] | int | Mouse Mode |
const | string& Name associated with mode |
Definition at line 132 of file glwindow.h.
|
inlinestatic |
Static method that returns the Params type associated with a mouse mode.
[in] | int | modeIndex The mouse mode. |
ParamsBase::ParamsBaseType | The type of the params associated with the mouse mode. |
Definition at line 119 of file glwindow.h.
|
inline |
Definition at line 163 of file glwindow.h.
void VAPoR::GLWindow::setDirtyBit | ( | DirtyBitType | t, |
bool | val | ||
) |
|
inline |
Definition at line 164 of file glwindow.h.
void VAPoR::GLWindow::TransformToUnitBox | ( | ) |
Method that transforms the world into the unit box, should be called by each renderer before rendering.
bool VAPoR::GLWindow::vizIsDirty | ( | DirtyBitType | t | ) |