ARB
|
#include "RNA3D_GlobalHeader.hxx"
#include <GL/aw_window_ogl.hxx>
#include <aw_window_Xm_interface.hxx>
#include "RNA3D_Global.hxx"
#include "RNA3D_Graphics.hxx"
#include "RNA3D_OpenGLEngine.hxx"
#include "RNA3D_Interface.hxx"
#include "RNA3D_OpenGLGraphics.hxx"
#include "RNA3D_StructureData.hxx"
#include <string>
#include <iostream>
#include <X11/keysym.h>
#include <aw_preset.hxx>
#include <aw_root.hxx>
#include <aw_msg.hxx>
#include <aw_awars.hxx>
Go to the source code of this file.
Variables | |
static AW_window_menu_modes_opengl * | awm |
static XtAppContext | appContext |
static XtWorkProcId | workId = 0 |
|
static |
Definition at line 38 of file RNA3D_Interface.cxx.
References RefreshOpenGLDisplay(), RNA3D, and RNA3D_Global::ROTATION_SPEED.
Referenced by RotateMoleculeStateChanged().
|
static |
Definition at line 51 of file RNA3D_Interface.cxx.
References appContext, AW_root::awar(), AWAR_3D_MOL_ROTATE, RNA3D_Global::bAutoRotate, NULp, AW_awar::read_int(), RNA3D, SpinMolecule(), and workId.
Referenced by RotateMoleculeStateChanged_cb().
|
static |
Definition at line 72 of file RNA3D_Interface.cxx.
References MapDisplayParameters(), RefreshOpenGLDisplay(), and RotateMoleculeStateChanged().
Referenced by AddCallBacks(), and InitCallBacks().
Definition at line 78 of file RNA3D_Interface.cxx.
References NOT_CREATED, RNA3D_Global::OpenGLEngineState, RefreshOpenGLDisplay(), ReshapeOpenGLWindow(), and RNA3D.
Referenced by CreateRNA3DMainWindow().
Definition at line 91 of file RNA3D_Interface.cxx.
References RefreshOpenGLDisplay().
Referenced by CreateRNA3DMainWindow().
Definition at line 95 of file RNA3D_Interface.cxx.
References AW_root::awar(), AWAR_3D_MOL_ROTATE, RNA3D_Global::bDisplayComments, RNA3D_Global::bDisplayMask, buffer, RNA3D_Global::Center, RNA3D_Global::iRotateMolecule, NULp, RefreshOpenGLDisplay(), RNA3D, RNA3D_Global::root, AW_awar::write_int(), Vector3::x, and Vector3::y.
Referenced by CreateRNA3DMainWindow().
Definition at line 130 of file RNA3D_Interface.cxx.
References RNA3D_Global::bRotateMolecule, LEFT_BUTTON, MIDDLE_BUTTON, RefreshOpenGLDisplay(), RIGHT_BUTTON, and RNA3D.
Referenced by CreateRNA3DMainWindow().
Definition at line 143 of file RNA3D_Interface.cxx.
References AWT_MODE_NONE, RNA3D_Global::bRotateMolecule, RNA3D_Global::gl_Canvas, LEFT_BUTTON, MIDDLE_BUTTON, RefreshOpenGLDisplay(), RIGHT_BUTTON, RNA3D, RNA3D_Global::saved_x, RNA3D_Global::saved_y, RNA3D_Global::scale, AWT_canvas::set_mode(), WHEEL_DOWN, WHEEL_UP, and ZOOM_FACTOR.
Referenced by CreateRNA3DMainWindow().
Definition at line 174 of file RNA3D_Interface.cxx.
References RNA3D_Global::bAutoRotate, RNA3D_Global::bRotateMolecule, ComputeRotationXY(), RefreshOpenGLDisplay(), RNA3D, and RNA3D_Global::ROTATION_SPEED.
Referenced by CreateRNA3DMainWindow().
Definition at line 191 of file RNA3D_Interface.cxx.
References aw_message(), GBS_global_string(), AW_window::hide(), InitializeOpenGLEngine(), InitializeOpenGLWindow(), NOT_CREATED, RNA3D_Global::OpenGLEngineState, RefreshOpenGLDisplay(), ReshapeOpenGLWindow(), and RNA3D.
Referenced by CreateRNA3DMainWindow().
void RefreshOpenGLDisplay | ( | ) |
Definition at line 215 of file RNA3D_Interface.cxx.
References CREATED, RNA3D_Global::glw, RNA3D_Global::OpenGLEngineState, RenderOpenGLScene(), and RNA3D.
Referenced by ButtonPressEventHandler(), ButtonReleaseEventHandler(), CursorPositionChanged_CB(), DisplayHelixNrsChanged_CB(), DisplayMoleculeMask(), DisplayPostionsIntervalChanged_CB(), ExposeOpenGLWindow(), KeyPressEventHandler(), KeyReleaseEventHandler(), MapSaiToEcoliTemplateChanged_CB(), MapSelectedSpeciesChanged_CB(), MouseMoveEventHandler(), RNA3D_Graphics::paint(), RefreshCanvas(), ResizeOpenGLWindow(), RotateMoleculeStateChanged_cb(), and SpinMolecule().
|
static |
Definition at line 222 of file RNA3D_Interface.cxx.
References MapDisplayParameters(), and RefreshOpenGLDisplay().
Referenced by AddCallBacks(), Change3DMolecule_CB(), and RefreshMappingDisplay().
|
static |
Definition at line 227 of file RNA3D_Interface.cxx.
References AW_copy_GC_colors(), AW_window::get_root(), and NULp.
Referenced by CreateMapSequenceData_window().
|
static |
Definition at line 241 of file RNA3D_Interface.cxx.
References AW_root::awar(), AWAR_3D_23S_RRNA_MOL, AWAR_3D_HELIX_FROM, AWAR_SPECIES_NAME, Structure3D::Combine2Dand3DstructureInfo(), RNA3D_Global::cStructure, Structure3D::DeleteOldMoleculeData(), Structure3D::GenerateDisplayLists(), Structure3D::GetSecondaryStructureInfo(), Structure3D::LSU_molID, AW_awar::read_int(), Structure3D::ReadCoOrdinateFile(), RefreshCanvas(), RNA3D, and AW_awar::touch().
Referenced by AddCallBacks().
Definition at line 262 of file RNA3D_Interface.cxx.
References AW_root::awar(), AWAR_3D_23S_RRNA_MOL, AW_window::get_root(), and AW_awar::write_int().
Referenced by CreateChangeMolecule_window().
|
static |
Definition at line 267 of file RNA3D_Interface.cxx.
References RNA3D_Global::bDisplayMask, RefreshOpenGLDisplay(), and RNA3D.
Referenced by AddCallBacks().
|
static |
Definition at line 274 of file RNA3D_Interface.cxx.
References AW_awar::add_callback(), AW_root::awar(), AWAR_3D_23S_RRNA_MOL, 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_MASK, 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, AWAR_CURSOR_POSITION, AWAR_SAI_GLOBAL, AWAR_SPECIES_NAME, Change3DMolecule_CB(), CursorPositionChanged_CB(), DisplayHelixNrsChanged_CB(), DisplayMoleculeMask(), DisplayPostionsIntervalChanged_CB(), MapSaiToEcoliTemplateChanged_CB(), MapSelectedSpeciesChanged_CB(), RefreshCanvas(), and RotateMoleculeStateChanged_cb().
Referenced by CreateRNA3DMainWindow().
|
static |
Definition at line 328 of file RNA3D_Interface.cxx.
References RotateMoleculeStateChanged_cb().
Referenced by CreateRNA3DMainWindow().
|
static |
Definition at line 333 of file RNA3D_Interface.cxx.
References RNA3D_Global::Center, MapSaiToEcoliTemplateChanged_CB(), MapSearchStringsToEcoliTemplateChanged_CB(), RefreshCanvas(), RNA3D, RNA3D_Global::root, and RNA3D_Global::scale.
Referenced by CreateMapSequenceData_window(), and CreateRNA3DMainWindow().
|
static |
Definition at line 353 of file RNA3D_Interface.cxx.
References AW_window::at(), AW_HORIZONTAL, AW_window::create_toggle_field(), AW_window::insert_toggle(), and AW_window::update_toggle_field().
Referenced by CreateDisplayBases_window().
Definition at line 364 of file RNA3D_Interface.cxx.
References AW_POPDOWN(), AW_VERTICAL, AWAR_3D_BASES_HELIX, AWAR_3D_BASES_MODE, AWAR_3D_BASES_NON_HELIX, AWAR_3D_BASES_UNPAIRED_HELIX, AWAR_3D_DISPLAY_BASES, AWAR_3D_DISPLAY_SIZE, AWAR_3D_SHAPES_HELIX, AWAR_3D_SHAPES_NON_HELIX, AWAR_3D_SHAPES_UNPAIRED_HELIX, insertShapeSelection(), AW_window::load_xfig(), and makeHelpCallback().
Referenced by CreateRNA3DMainWindow().
Definition at line 410 of file RNA3D_Interface.cxx.
References arb_assert, AW_POPDOWN(), AWAR_3D_DISPLAY_HELIX, 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, RNA3D_Global::cStructure, Structure3D::FindTypeOfRNA(), AW_window::load_xfig(), LSU_23S, LSU_5S, makeHelpCallback(), NULp, RNA3D, and SSU_16S.
Referenced by CreateRNA3DMainWindow().
Definition at line 464 of file RNA3D_Interface.cxx.
References AW_POPDOWN(), AWAR_3D_CURSOR_POSITION, 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, AW_window::load_xfig(), and makeHelpCallback().
Referenced by CreateRNA3DMainWindow().
Definition at line 501 of file RNA3D_Interface.cxx.
References AW_POPDOWN(), 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, AW_window::load_xfig(), makeHelpCallback(), RefreshMappingDisplay(), and SynchronizeColorsWithEditor().
Referenced by CreateRNA3DMainWindow().
Definition at line 556 of file RNA3D_Interface.cxx.
References AW_POPDOWN(), Change3DMolecule(), AW_window::load_xfig(), makeHelpCallback(), and NULp.
Referenced by CreateRNA3DMainWindow().
|
static |
Definition at line 591 of file RNA3D_Interface.cxx.
References AW_create_gc_window_named().
Referenced by CreateRNA3DMainWindow().
AW_window* CreateRNA3DMainWindow | ( | AW_root * | awr, |
GBDATA * | gb_main, | ||
ED4_plugin_host & | host | ||
) |
Definition at line 595 of file RNA3D_Interface.cxx.
References AddCallBacks(), appContext, arb_assert, AW_window::at(), AW_window::at_newline(), AW_window::auto_space(), AW_get_AreaWidget(), AW_get_XtAppContext(), AW_MIDDLE_AREA, AW_POPDOWN(), AW_ROOT_DEFAULT, AWAR_3D_DISPLAY_BASES, AWAR_3D_DISPLAY_HELIX, AWAR_3D_DISPLAY_MASK, AWAR_3D_MAP_ENABLE, AWAR_3D_SAI_SELECTED, AW_root::awar_int(), awm, AWM_ALL, AWT_MODE_NONE, AWT_canvas::aww, AW_window::button_length(), ButtonPressEventHandler(), ButtonReleaseEventHandler(), AW_window::callback(), AW_window::create_autosize_button(), AW_window::create_button(), AW_window::create_menu(), AW_window::create_toggle(), CreateChangeMolecule_window(), CreateDisplayBases_window(), CreateDisplayHelices_window(), CreateDisplayOptions_window(), CreateMapSequenceData_window(), CreateRNA3DGcWindow(), RNA3D_Global::cStructure, ExposeOpenGLWindow(), Structure3D::FindTypeOfRNA(), gb_main, Structure3D::gb_main, AWT_canvas::gc_manager, AW_window::get_at_position(), AW_window::get_window_id(), RNA3D_Global::gl_Canvas, AW_window::help_text(), AW_window_menu_modes_opengl::init(), InitCallBacks(), AW_window::insert_menu_topic(), KeyPressEventHandler(), KeyReleaseEventHandler(), LSU_23S, makeHelpCallback(), MouseMoveEventHandler(), NOT_CREATED, NULp, RNA3D_Global::OpenGLEngineState, RefreshMappingDisplay(), AWT_canvas::request_resize(), ResizeOpenGLWindow(), RNA3D, RNA3D_init_global_data(), RNA3D_Global::root, AWT_canvas::set_mode(), AW_window::shadow_width(), ta, WINDOW_HEIGHT, and WINDOW_WIDTH.
Referenced by start_RNA3D_plugin().
|
static |
Definition at line 26 of file RNA3D_Interface.cxx.
Referenced by aw_initstatus(), create_phyl_main_window(), CreateRNA3DMainWindow(), createSaiProbeMatchWindow(), DI_create_view_matrix_window(), MERGE_create_main_window(), popup_new_main_window(), and start_SECEDIT_plugin().
|
static |
Definition at line 27 of file RNA3D_Interface.cxx.
Referenced by CreateRNA3DMainWindow(), and RotateMoleculeStateChanged().
|
static |
Definition at line 28 of file RNA3D_Interface.cxx.
Referenced by RotateMoleculeStateChanged().