ARB
RNA3D_Renderer.hxx
Go to the documentation of this file.
1 #ifndef ARB_ALGO_H
2 #include <arb_algo.h>
3 #endif
4 
5 #define CHARACTERS 0
6 #define SHAPES 1
7 
8 // the following macro is already defined in gmacros.h:
9 // #define MIN(a, b) ((a)<(b) ? (a) : (b))
10 
11 class Texture2D;
12 class Structure3D;
13 class OpenGLGraphics;
14 
15 struct GLRenderer : virtual Noncopyable {
16  float ObjectSize;
23  float fHelixSize;
26  int iDispPos;
30 
32 
33  GLRenderer();
34  virtual ~GLRenderer();
35 
36  void DisplayMolecule(Structure3D *cStr);
37  void DisplayMoleculeName(int w, int h, Structure3D *cStr);
38  void DisplayMoleculeMask(int w, int h);
39 
40  void DoHelixMapping();
41  void DisplayHelices();
42  void DisplayHelixBackBone();
43  void DisplayHelixNumbers();
44  void DisplayBasePositions();
47  void DisplayHelixMidPoints(Texture2D *cImages);
48 
49  void BeginTexturizer();
50  void EndTexturizer();
51  void TexturizeStructure(Texture2D *cImages, Structure3D *cStructure);
52 
53  void fixInvalidHelixPositions(int maxHelixNumber) {
54  iStartHelix = force_in_range(1, iStartHelix, maxHelixNumber);
55  iEndHelix = force_in_range(iStartHelix, iEndHelix, maxHelixNumber);
56  }
57 };
void DisplayMoleculeMask(int w, int h)
virtual ~GLRenderer()
void DisplayBasePositions()
void TexturizeStructure(Texture2D *cImages, Structure3D *cStructure)
void DisplayHelixMidPoints(Texture2D *cImages)
void DisplayHelixNumbers()
void DisplayMappedSpBasePositions()
void DisplayMolecule(Structure3D *cStr)
CONSTEXPR_INLINE const T & force_in_range(const T &lower_bound, const T &value, const T &upper_bound)
Definition: arb_algo.h:20
void DisplayHelixBackBone()
int iMapSpeciesInsInfo
void fixInvalidHelixPositions(int maxHelixNumber)
float fSkeletonSize
void EndTexturizer()
void DisplayMappedSpInsertions()
void DisplayHelices()
OpenGLGraphics * G
void DisplayMoleculeName(int w, int h, Structure3D *cStr)
void DoHelixMapping()
void BeginTexturizer()