ARB
Functions | Variables
RNA3D_OpenGLEngine.cxx File Reference
#include "RNA3D_GlobalHeader.hxx"
#include "RNA3D_Global.hxx"
#include "RNA3D_OpenGLEngine.hxx"
#include "RNA3D_OpenGLGraphics.hxx"
#include "RNA3D_StructureData.hxx"
#include "RNA3D_Textures.hxx"
#include "RNA3D_Renderer.hxx"
#include "RNA3D_Graphics.hxx"
#include "RNA3D_Interface.hxx"
#include <iostream>
#include <aw_root.hxx>
#include <aw_awars.hxx>
#include <BI_basepos.hxx>
#include <GL/aw_window_ogl.hxx>
Include dependency graph for RNA3D_OpenGLEngine.cxx:

Go to the source code of this file.

Functions

void RNA3D_init_global_data (ED4_plugin_host &host)
 
static void ShowVendorInformation ()
 
static void initExtensions ()
 
void ReshapeOpenGLWindow (GLint width, GLint height)
 
static void CalculateRotationMatrix ()
 
void InitializeOpenGLEngine (GLint width, GLint height)
 
void ComputeRotationXY (int x, int y)
 
static void update_HelixNrDispList ()
 
void MapDisplayParameters (AW_root *root)
 
void DisplayPostionsIntervalChanged_CB (AW_root *awr)
 
void MapSelectedSpeciesChanged_CB (AW_root *awr)
 
void MapSaiToEcoliTemplateChanged_CB (AW_root *)
 
void MapSearchStringsToEcoliTemplateChanged_CB (AW_root *awr)
 
void CursorPositionChanged_CB (AW_root *awr)
 
void DisplayHelixNrsChanged_CB (AW_root *awr, bool upper_limit_changed)
 
static void DrawStructure ()
 
void RenderOpenGLScene (Widget w)
 
void InitializeOpenGLWindow (Widget w)
 

Variables

RNA3D_GlobalRNA3D = NULp
 
static float fAspectRatio
 
const float fViewAngle = 40.0
 
const float fClipNear = 0.5f
 
const float fClipFar = 100
 
static Display * dpy
 
static GLXContext glx_context
 
static int DoubleBufferWithAlpha []
 
static int DoubleBuffer []
 
static int SingleBuffer []
 
static GLfloat rotation_matrix [16]
 
static GLfloat rot_x = 0.0
 
static GLfloat rot_y = 0.0
 
static int iScreenWidth
 
static int iScreenHeight
 
static bool bMapSpDispListCreated = false
 
static bool bCursorPosDispListCreated = false
 
static bool bHelixNrDispListCreated = false
 

Function Documentation

void RNA3D_init_global_data ( ED4_plugin_host host)

Definition at line 24 of file RNA3D_OpenGLEngine.cxx.

Referenced by CreateRNA3DMainWindow().

static void ShowVendorInformation ( )
static

Definition at line 108 of file RNA3D_OpenGLEngine.cxx.

References NULp.

Referenced by InitializeOpenGLEngine().

static void initExtensions ( )
static
void ReshapeOpenGLWindow ( GLint  width,
GLint  height 
)
static void CalculateRotationMatrix ( )
static

Definition at line 160 of file RNA3D_OpenGLEngine.cxx.

References initialized, rot_x, rot_y, and rotation_matrix.

Referenced by InitializeOpenGLEngine(), and RenderOpenGLScene().

void InitializeOpenGLEngine ( GLint  width,
GLint  height 
)
void ComputeRotationXY ( int  x,
int  y 
)
static void update_HelixNrDispList ( )
static
void MapDisplayParameters ( AW_root root)

Definition at line 247 of file RNA3D_OpenGLEngine.cxx.

References AW_root::awar(), AWAR_3D_BASES_HELIX, AWAR_3D_BASES_MODE, AWAR_3D_BASES_NON_HELIX, AWAR_3D_BASES_UNPAIRED_HELIX, AWAR_3D_CURSOR_POSITION, AWAR_3D_DISPLAY_BASES, AWAR_3D_DISPLAY_HELIX, AWAR_3D_DISPLAY_SIZE, AWAR_3D_DISPLAY_TERTIARY_INTRACTIONS, AWAR_3D_HELIX_BACKBONE, AWAR_3D_HELIX_FROM, AWAR_3D_HELIX_MIDPOINT, AWAR_3D_HELIX_NUMBER, AWAR_3D_HELIX_SIZE, AWAR_3D_HELIX_TO, AWAR_3D_MAP_ENABLE, AWAR_3D_MAP_SAI, AWAR_3D_MAP_SEARCH_STRINGS, AWAR_3D_MAP_SPECIES, AWAR_3D_MAP_SPECIES_DISP_BASE, AWAR_3D_MAP_SPECIES_DISP_DELETIONS, AWAR_3D_MAP_SPECIES_DISP_INSERTIONS, AWAR_3D_MAP_SPECIES_DISP_INSERTIONS_INFO, AWAR_3D_MAP_SPECIES_DISP_MISSING, AWAR_3D_MAP_SPECIES_DISP_POS, AWAR_3D_MOL_BACKBONE, AWAR_3D_MOL_COLORIZE, AWAR_3D_MOL_DISP_POS, AWAR_3D_MOL_POS_INTERVAL, AWAR_3D_MOL_ROTATE, AWAR_3D_MOL_SIZE, AWAR_3D_SHAPES_HELIX, AWAR_3D_SHAPES_NON_HELIX, AWAR_3D_SHAPES_UNPAIRED_HELIX, RNA3D_Global::bMapSaiDispListCreated, RNA3D_Global::bMapSearchStringsDispListCreated, bMapSpDispListCreated, Structure3D::calc_helix_count(), RNA3D_Global::cRenderer, RNA3D_Global::cStructure, Structure3D::iInterval, Structure3D::iMapEnable, Structure3D::iMapSAI, Structure3D::iMapSearch, RNA3D_Global::iRotateMolecule, Structure3D::MapCurrentSpeciesToEcoliTemplate(), Structure3D::MapSaiToEcoliTemplate(), Structure3D::MapSearchStringsToEcoliTemplate(), AW_awar::read_float(), AW_awar::read_int(), update_HelixNrDispList(), and AW_awar::write_int().

Referenced by DisplayHelixNrsChanged_CB(), DisplayPostionsIntervalChanged_CB(), RNA3D_Graphics::paint(), RefreshCanvas(), and RotateMoleculeStateChanged_cb().

void DisplayPostionsIntervalChanged_CB ( AW_root awr)
void MapSelectedSpeciesChanged_CB ( AW_root awr)
void MapSaiToEcoliTemplateChanged_CB ( AW_root )
void MapSearchStringsToEcoliTemplateChanged_CB ( AW_root awr)
void CursorPositionChanged_CB ( AW_root awr)
void DisplayHelixNrsChanged_CB ( AW_root awr,
bool  upper_limit_changed 
)
static void DrawStructure ( )
static
void RenderOpenGLScene ( Widget  w)
void InitializeOpenGLWindow ( Widget  w)

Variable Documentation

RNA3D_Global* RNA3D = NULp
float fAspectRatio
static

Definition at line 65 of file RNA3D_OpenGLEngine.cxx.

Referenced by ReshapeOpenGLWindow().

const float fViewAngle = 40.0

Definition at line 66 of file RNA3D_OpenGLEngine.cxx.

Referenced by ReshapeOpenGLWindow().

const float fClipNear = 0.5f

Definition at line 67 of file RNA3D_OpenGLEngine.cxx.

Referenced by ReshapeOpenGLWindow().

const float fClipFar = 100

Definition at line 68 of file RNA3D_OpenGLEngine.cxx.

Referenced by ReshapeOpenGLWindow().

Display* dpy
static
GLXContext glx_context
static

Definition at line 71 of file RNA3D_OpenGLEngine.cxx.

Referenced by InitializeOpenGLWindow().

int DoubleBufferWithAlpha[]
static
Initial value:
= { GLX_RGBA,
GLX_DEPTH_SIZE, 12,
GLX_RED_SIZE, 4,
GLX_GREEN_SIZE, 4,
GLX_BLUE_SIZE, 4,
GLX_ALPHA_SIZE, 4,
GLX_DOUBLEBUFFER,
None }

Definition at line 73 of file RNA3D_OpenGLEngine.cxx.

int DoubleBuffer[]
static
Initial value:
= { GLX_RGBA,
GLX_DEPTH_SIZE, 12,
GLX_RED_SIZE, 4,
GLX_GREEN_SIZE, 4,
GLX_BLUE_SIZE, 4,
GLX_DOUBLEBUFFER,
None }

Definition at line 82 of file RNA3D_OpenGLEngine.cxx.

int SingleBuffer[]
static
Initial value:
= { GLX_RGBA,
GLX_DEPTH_SIZE, 12,
GLX_RED_SIZE, 4,
GLX_GREEN_SIZE, 4,
GLX_BLUE_SIZE, 4,
None }

Definition at line 90 of file RNA3D_OpenGLEngine.cxx.

GLfloat rotation_matrix[16]
static

Definition at line 97 of file RNA3D_OpenGLEngine.cxx.

Referenced by CalculateRotationMatrix(), and RenderOpenGLScene().

GLfloat rot_x = 0.0
static

Definition at line 98 of file RNA3D_OpenGLEngine.cxx.

Referenced by CalculateRotationMatrix(), and ComputeRotationXY().

GLfloat rot_y = 0.0
static

Definition at line 98 of file RNA3D_OpenGLEngine.cxx.

Referenced by CalculateRotationMatrix(), and ComputeRotationXY().

int iScreenWidth
static

Definition at line 100 of file RNA3D_OpenGLEngine.cxx.

int iScreenHeight
static

Definition at line 100 of file RNA3D_OpenGLEngine.cxx.

bool bMapSpDispListCreated = false
static
bool bCursorPosDispListCreated = false
static

Definition at line 103 of file RNA3D_OpenGLEngine.cxx.

Referenced by CursorPositionChanged_CB().

bool bHelixNrDispListCreated = false
static

Definition at line 104 of file RNA3D_OpenGLEngine.cxx.

Referenced by DisplayHelixNrsChanged_CB(), and update_HelixNrDispList().