NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <corelib/ncbitime.hpp>
#include <corelib/ncbiobj.hpp>
#include <corelib/ncbi_limits.h>
#include <math.h>
#include <stdlib.h>
#include <objects/cn3d/Cn3d_GL_matrix.hpp>
#include <objects/cn3d/Cn3d_vector.hpp>
#include "remove_header_conflicts.hpp"
#include "opengl_renderer.hpp"
#include "structure_window.hpp"
#include "cn3d_glcanvas.hpp"
#include "structure_set.hpp"
#include "style_manager.hpp"
#include "messenger.hpp"
#include "cn3d_tools.hpp"
#include "cn3d_colors.hpp"
Go to the source code of this file.
Go to the SVN repository for this file.
Macros | |
#define | GL_ENUM_TYPE GLenum |
#define | GL_INT_TYPE GLint |
#define | GL_DOUBLE_TYPE GLdouble |
#define | USE_MY_GLU_QUADS 1 |
#define | MAC_GL_SETCOLOR |
#define | GLU_DISK(q, i, o, s, l) MyGluDisk((i), (o), (s), (l)) |
#define | GLU_CYLINDER(q, b, t, h, l, k) MyGluCylinder((b), (t), (h), (l), (k)) |
#define | GLU_SPHERE(q, r, l, k) MyGluSphere((r), (l), (k)) |
#define | MIN_CAMERA_ANGLE 0.001 |
#define | MAX_CAMERA_ANGLE (0.999 * PI) |
#define | SWAPPTR(p1, p2) tmp=(p1); (p1)=(p2); (p2)=tmp |
Functions | |
USING_SCOPE (objects) | |
static double | DegreesToRad (double deg) |
static double | RadToDegrees (double rad) |
static void | Matrix2GL (const Matrix &m, GLdouble *g) |
static void | GL2Matrix (GLdouble *g, Matrix *m) |
static void | DoCylinderPlacementTransform (const Vector &a, const Vector &b, double length) |
Variables | |
USING_NCBI_SCOPE | |
static const double | PI = acos(-1.0) |
static const unsigned int | ALL_FRAMES = kMax_UInt |
static const int | pickBufSize = 1024 |
static GLuint | selectBuf [pickBufSize] |
static const GLfloat | Color_Off [4] = { 0.0f, 0.0f, 0.0f, 1.0f } |
static const GLfloat | Color_MostlyOff [4] = { 0.05f, 0.05f, 0.05f, 1.0f } |
static const GLfloat | Color_MostlyOn [4] = { 0.95f, 0.95f, 0.95f, 1.0f } |
static const GLfloat | Color_On [4] = { 1.0f, 1.0f, 1.0f, 1.0f } |
static const GLfloat | Color_Specular [4] = { 0.5f, 0.5f, 0.5f, 1.0f } |
static const GLint | Shininess = 40 |
static int | atomSlices |
static int | atomStacks |
static int | bondSides |
static int | wormSides |
static int | wormSegments |
static int | helixSides |
static bool | highlightsOn |
static string | projectionType |
static const GLdouble | origin [] = { 0.0, 0.0, 0.0 } |
static const GLdouble | unitZ [] = { 0.0, 0.0, 1.0 } |
#define GL_DOUBLE_TYPE GLdouble |
Definition at line 65 of file opengl_renderer.cpp.
#define GL_ENUM_TYPE GLenum |
Definition at line 63 of file opengl_renderer.cpp.
#define GL_INT_TYPE GLint |
Definition at line 64 of file opengl_renderer.cpp.
Definition at line 213 of file opengl_renderer.cpp.
Definition at line 161 of file opengl_renderer.cpp.
Definition at line 256 of file opengl_renderer.cpp.
#define MAC_GL_SETCOLOR |
Definition at line 98 of file opengl_renderer.cpp.
#define MAX_CAMERA_ANGLE (0.999 * PI) |
#define MIN_CAMERA_ANGLE 0.001 |
#define USE_MY_GLU_QUADS 1 |
Definition at line 85 of file opengl_renderer.cpp.
|
inlinestatic |
Definition at line 108 of file opengl_renderer.cpp.
References PI.
Referenced by OpenGLRenderer::NewView(), and OpenGLRenderer::ResetCamera().
|
static |
Definition at line 1400 of file opengl_renderer.cpp.
References a, b, fabs, and RadToDegrees().
Referenced by OpenGLRenderer::DrawHalfBond(), and OpenGLRenderer::DrawHelix().
Definition at line 148 of file opengl_renderer.cpp.
References g(), and Matrix< T >::m.
Referenced by OpenGLRenderer::AddTransparentSpheresForList(), and OpenGLRenderer::ChangeView().
Definition at line 139 of file opengl_renderer.cpp.
References g(), and Matrix< T >::m.
Referenced by OpenGLRenderer::PushMatrix().
|
inlinestatic |
Definition at line 109 of file opengl_renderer.cpp.
References PI.
Referenced by OpenGLRenderer::CenterView(), DoCylinderPlacementTransform(), and OpenGLRenderer::NewView().
USING_SCOPE | ( | objects | ) |
Definition at line 115 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::AttachStructureSet(), OpenGLRenderer::Display(), OpenGLRenderer::ShowAllFrames(), OpenGLRenderer::ShowFrameNumber(), OpenGLRenderer::ShowNextFrame(), and OpenGLRenderer::ShowPreviousFrame().
|
static |
Definition at line 131 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Construct(), OpenGLRenderer::DrawAtom(), and OpenGLRenderer::RenderTransparentSpheres().
|
static |
Definition at line 131 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Construct(), OpenGLRenderer::DrawAtom(), and OpenGLRenderer::RenderTransparentSpheres().
|
static |
Definition at line 131 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Construct(), and OpenGLRenderer::DrawHalfBond().
Definition at line 124 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::SetColor().
Definition at line 125 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Init().
|
static |
Definition at line 123 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Init(), and OpenGLRenderer::SetColor().
|
static |
Definition at line 126 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Init().
Definition at line 127 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::SetColor().
|
static |
Definition at line 131 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Construct(), and OpenGLRenderer::DrawHelix().
|
static |
Definition at line 132 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Construct(), and OpenGLRenderer::SetColor().
|
static |
Definition at line 159 of file opengl_renderer.cpp.
Referenced by _cs_get_msgstr(), _cs_get_origin(), _csclient_msg(), _ct_get_msgstr(), _ct_get_origin(), _ctclient_msg(), CSrcTableOriginColumn::AddToBioSource(), CPaintSequence::AdjustFeatStartStop(), CPaintSequence::AdjustFeatureRange(), CPaintSequence::AdjustProtFeatRange(), AssignNtConversion(), CAutoColValidatororigin::DoValidate(), CGb_qual::FixRptTypeValue(), CGenbankFormatter::FormatOrigin(), CBioSource::GetOriginByString(), CBioSource::GetStringFromOrigin(), IntersectRayQuad(), IntersectRayTriangle(), OpenGLRenderer::MyGluDisk(), CCgiContext::ProcessCORSRequest(), s_IsAllowedOrigin(), SetOrigin(), CFeatureGenerator::SImplementation::StitchSmallHoles(), CSVGRenderer::WriteText(), CTextItemPanel::x_Draw(), x_GetDivisionProc(), x_GetDivisionProcIdx(), CRuler::x_RenderOriginAndMetric(), and CLocAndGCodePanel::x_SetOrigin().
|
static |
Definition at line 107 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::ConstructLogo(), DegreesToRad(), OpenGLRenderer::DrawHalfWorm(), OpenGLRenderer::MyGluCylinder(), OpenGLRenderer::MyGluDisk(), OpenGLRenderer::MyGluSphere(), RadToDegrees(), and OpenGLRenderer::ResetCamera().
Definition at line 119 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::GetSelected().
|
static |
Definition at line 133 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Construct(), and OpenGLRenderer::NewView().
|
static |
Definition at line 120 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::GetSelected().
|
static |
Definition at line 128 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Init().
|
static |
Definition at line 159 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::MyGluDisk(), and OpenGLRenderer::MyGluSphere().
USING_NCBI_SCOPE |
Definition at line 78 of file opengl_renderer.cpp.
|
static |
Definition at line 131 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Construct(), and OpenGLRenderer::DrawHalfWorm().
|
static |
Definition at line 131 of file opengl_renderer.cpp.
Referenced by OpenGLRenderer::Construct(), and OpenGLRenderer::DrawHalfWorm().