| 1 | #define CHARACTERS 0 |
|---|
| 2 | #define SHAPES 1 |
|---|
| 3 | |
|---|
| 4 | // the following macro is already defined in gmacros.h: |
|---|
| 5 | // #define MIN(a, b) ((a)<(b) ? (a) : (b)) |
|---|
| 6 | |
|---|
| 7 | class Texture2D; |
|---|
| 8 | class Structure3D; |
|---|
| 9 | class OpenGLGraphics; |
|---|
| 10 | |
|---|
| 11 | struct GLRenderer : virtual Noncopyable { |
|---|
| 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 | }; |
|---|