source: tags/old_import_filter/RNA3D/RNA3D_Renderer.hxx

Last change on this file was 7623, checked in by westram, 13 years ago
  • merge from dev [7450] [7452] [7456] [7457] [7458] [7459] [7460] [7461] [7464] [7465] [7466] [7467] [7468] [7469] [7482]
    • tweaked compiler options
      • activated -Weffc++
        • postfilter warnings where Scott Meyers' advices are too general.
          • base classes should not always have virtual destructors, since that renders tiny classes useless and
          • members should not always be initialized via initialization list, since that often violates the DRY principle
        • fix gcc's inability to detect that Noncopyable implements a private copy-ctor and op=
        • this slows down complete ARB recompilation by ~5%
    • added -Wold-style-cast (inactive)
    • removed -Wno-non-template-friend added in [7447]
  • postcompile.pl
    • added option —original to show unmodified compiler output
  • declared op= for classes which had a copy-ctor
  • moved op= macros to arbtools.h
  • derived classes containing pointers from Noncopyable (use Noncopyable virtually) or
  • made them copyable if needed (awt_mask_item, KnownDB, Code, AWT_registered_itemtype, GEN_gene, PosGene, PartialSequence, PlugIn, Range, Convaln_exception)
  • other related changes
    • user mask destruction working now
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1#define CHARACTERS 0
2#define SHAPES     1
3
4#define MIN(a, b) ((a)<(b) ? (a) : (b))
5
6class Texture2D;
7class Structure3D;
8class OpenGLGraphics;
9
10class GLRenderer : virtual Noncopyable {
11public:
12    float ObjectSize;
13    int iDisplayBases, iBaseMode;
14    int iBaseHelix,  iBaseUnpairHelix,  iBaseNonHelix;
15    int iShapeHelix, iShapeUnpairHelix, iShapeNonHelix;
16    int iDisplayHelix, iHelixMidPoint, iHelixBackBone, iHelixNrs;
17    int iDispTerInt;
18    int iStartHelix, iEndHelix;
19    float fHelixSize;
20    float fSkeletonSize;
21    int iColorise, iBackBone;
22    int iDispPos;
23    int iMapSpecies, iMapSpeciesBase, iMapSpeciesPos;
24    int iMapSpeciesDels, iMapSpeciesMiss, iMapSpeciesIns, iMapSpeciesInsInfo;
25    int iDispCursorPos;
26
27    OpenGLGraphics *G;
28
29    GLRenderer();
30    virtual ~GLRenderer();
31
32    void DisplayMolecule(Structure3D *cStr);
33    void DisplayMoleculeName(int w, int h, Structure3D *cStr);
34    void DisplayMoleculeMask(int w, int h);
35
36    void DoHelixMapping();
37    void DisplayHelices();
38    void DisplayHelixBackBone();
39    void DisplayHelixNumbers();
40    void DisplayBasePositions();
41    void DisplayMappedSpBasePositions();
42    void DisplayMappedSpInsertions();
43    void DisplayHelixMidPoints(Texture2D *cImages);
44
45    void BeginTexturizer();
46    void EndTexturizer();
47    void TexturizeStructure(Texture2D *cImages, Structure3D *cStructure);
48};
Note: See TracBrowser for help on using the repository browser.