NCBI C++ ToolKit
Macros | Typedefs | Functions | Variables
structure_window.cpp File Reference

Search Toolkit Book for ure_window_8cpp

#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <corelib/ncbitime.hpp>
#include <objects/ncbimime/Ncbi_mime_asn1.hpp>
#include <objects/cdd/Cdd.hpp>
#include <objects/mmdb2/Model_type.hpp>
#include <algorithm>
#include <memory>
#include "remove_header_conflicts.hpp"
#include <wx/wx.h>
#include <wx/html/helpfrm.h>
#include <wx/html/helpctrl.h>
#include <wx/fontdlg.h>
#include <wx/confbase.h>
#include <wx/fileconf.h>
#include <wx/filename.h>
#include <wx/choicdlg.h>
#include "asn_reader.hpp"
#include "cn3d_glcanvas.hpp"
#include "structure_window.hpp"
#include "structure_set.hpp"
#include "opengl_renderer.hpp"
#include "style_manager.hpp"
#include "messenger.hpp"
#include "chemical_graph.hpp"
#include "alignment_manager.hpp"
#include "show_hide_manager.hpp"
#include "show_hide_dialog.hpp"
#include "cn3d_tools.hpp"
#include "cdd_annot_dialog.hpp"
#include "preferences_dialog.hpp"
#include "cdd_ref_dialog.hpp"
#include "cdd_book_ref_dialog.hpp"
#include "cn3d_png.hpp"
#include <algo/structure/wx_tools/wx_tools.hpp>
#include "block_multiple_alignment.hpp"
#include "sequence_set.hpp"
#include "molecule_identifier.hpp"
#include "cdd_splash_dialog.hpp"
#include "command_processor.hpp"
#include "animation_controls.hpp"
#include "cn3d_cache.hpp"
#include "dist_select_dialog.hpp"
#include "data_manager.hpp"
+ Include dependency graph for structure_window.cpp:

Go to the source code of this file.

Macros

#define RENDERING_SHORTCUT(type, menu)
 
#define COLORING_SHORTCUT(type, menu)
 

Typedefs

typedef pair< const Sequence *, wxString > SeqAndDescr
 
typedef vector< SeqAndDescrSeqAndDescrList
 

Functions

 USING_SCOPE (objects)
 
const stringGetUserDir (void)
 
const stringGetWorkingFilename (void)
 
const stringGetWorkingTitle (void)
 
static void SetWorkingTitle (StructureSet *sSet)
 
static bool LoadFavorites (void)
 
static void SaveFavorites (void)
 
static string GetFavoritesFile (bool forRead)
 
static bool CompareSequencesByIdentifier (const SeqAndDescr &a, const SeqAndDescr &b)
 
static EModel_type GetModelTypeFromUser (wxWindow *parent)
 
bool LoadDataOnly (StructureSet **sset, OpenGLRenderer *renderer, const char *filename, CNcbi_mime_asn1 *mimeData, const string &favoriteStyle, EModel_type model, StructureWindow *window)
 

Variables

 USING_NCBI_SCOPE
 
static string userDir
 
static string currentFile
 
static bool currentFileIsBinary
 
static string workingTitle
 
static bool favoriteStylesChanged = false
 
static CCn3d_style_settings_set favoriteStyles
 

Macro Definition Documentation

◆ COLORING_SHORTCUT

#define COLORING_SHORTCUT (   type,
  menu 
)
Value:
glCanvas->structureSet->styleManager->SetGlobalColorScheme(StyleSettings::type); \
SetColoringMenuFlag(menu); \
break
static int type
Definition: getdata.c:31

Definition at line 1319 of file structure_window.cpp.

◆ RENDERING_SHORTCUT

#define RENDERING_SHORTCUT (   type,
  menu 
)
Value:
glCanvas->structureSet->styleManager->SetGlobalRenderingStyle(StyleSettings::type); \
SetRenderingMenuFlag(menu); \
break

Definition at line 1315 of file structure_window.cpp.

Typedef Documentation

◆ SeqAndDescr

typedef pair< const Sequence * , wxString > SeqAndDescr

Definition at line 1029 of file structure_window.cpp.

◆ SeqAndDescrList

typedef vector< SeqAndDescr > SeqAndDescrList

Definition at line 1030 of file structure_window.cpp.

Function Documentation

◆ CompareSequencesByIdentifier()

static bool CompareSequencesByIdentifier ( const SeqAndDescr a,
const SeqAndDescr b 
)
static

Definition at line 1031 of file structure_window.cpp.

References a, b, and MoleculeIdentifier::CompareIdentifiers().

Referenced by StructureWindow::OnCDD().

◆ GetFavoritesFile()

static string GetFavoritesFile ( bool  forRead)
static

◆ GetModelTypeFromUser()

static EModel_type GetModelTypeFromUser ( wxWindow *  parent)
static

◆ GetUserDir()

const string& GetUserDir ( void  )

Definition at line 105 of file structure_window.cpp.

References userDir.

Referenced by UpdateViewer::ImportStructure(), and PNGOptionsDialog::OnButton().

◆ GetWorkingFilename()

const string& GetWorkingFilename ( void  )

Definition at line 106 of file structure_window.cpp.

References currentFile.

Referenced by SetWorkingTitle().

◆ GetWorkingTitle()

const string& GetWorkingTitle ( void  )

◆ LoadDataOnly()

bool LoadDataOnly ( StructureSet **  sset,
OpenGLRenderer renderer,
const char *  filename,
CNcbi_mime_asn1 mimeData,
const string favoriteStyle,
EModel_type  model,
StructureWindow window 
)

◆ LoadFavorites()

static bool LoadFavorites ( void  )
static

◆ SaveFavorites()

static void SaveFavorites ( void  )
static

◆ SetWorkingTitle()

static void SetWorkingTitle ( StructureSet sSet)
static

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ currentFile

string currentFile
static

Definition at line 103 of file structure_window.cpp.

Referenced by GetWorkingFilename(), LoadDataOnly(), and StructureWindow::OnSave().

◆ currentFileIsBinary

bool currentFileIsBinary
static

Definition at line 104 of file structure_window.cpp.

Referenced by LoadDataOnly(), and StructureWindow::OnSave().

◆ favoriteStyles

CCn3d_style_settings_set favoriteStyles
static

◆ favoriteStylesChanged

bool favoriteStylesChanged = false
static

◆ userDir

string userDir
static

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 94 of file structure_window.cpp.

◆ workingTitle

string workingTitle
static

Definition at line 109 of file structure_window.cpp.

Referenced by GetWorkingTitle(), and SetWorkingTitle().

Modified on Wed May 29 18:39:46 2024 by modify_doxy.py rev. 669887