atomes 1.2.1
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
glwin.h File Reference

Variable declarations related the OpenGL window
Data structure declarations related the OpenGL window. More...

#include "ogl_shading.h"
+ Include dependency graph for glwin.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  angle
 
struct  distance
 
struct  atom_data
 
struct  spinner
 
struct  sequencer
 
struct  recorder
 
struct  Light
 
struct  Lightning
 
struct  Material
 
struct  Fog
 
struct  screen_string
 
struct  screen_label
 
struct  atom_in_selection
 
struct  atom_selection
 
struct  background
 
struct  axis
 
struct  box
 
struct  image
 
struct  snapshot
 
struct  animation
 
struct  colormap
 
struct  atom_search
 
struct  atomic_object
 
struct  wyckoff_position
 
struct  spg_setting
 
struct  space_group
 
struct  box_info
 
struct  cell_info
 
struct  builder_edition
 
struct  atom_edition
 
struct  cell_edition
 
struct  opengl_edition
 
struct  coord_edition
 
struct  measures
 
struct  volumes
 
struct  model_edition
 
struct  box_edition
 
struct  axis_edition
 
struct  rep_edition
 
struct  gradient_edition
 
struct  glwin
 

Macros

#define GL_COLOR_SUM_EXT   0x8458
 
#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT   0x81F8
 
#define GL_SEPARATE_SPECULAR_COLOR_EXT   0x81FA
 
#define GL_TEXTURE_RECTANGLE_ARB   0x84F5
 
#define BOX   0
 
#define AXIS   1
 
#define OGL_RENDERS   3
 
#define OGL_BOX   8
 
#define OGL_AXIS   13
 
#define OGL_REPS   2
 
#define ATOM_MAPS   7
 
#define POLY_MAPS   7
 
#define OGL_COORDS   5
 
#define OGL_RINGS   12
 
#define NUM_COLORS   64
 
#define NINPUTS   6
 
#define NSELECTION   7
 
#define NGLOBAL_SHADERS   15
 
#define FILLED_STYLES   4
 
#define OGL_STYLES   6
 

Typedefs

typedef struct angle angle
 
typedef struct distance distance
 
typedef struct atom_data atom_data
 
typedef struct spinner spinner
 
typedef struct sequencer sequencer
 
typedef struct recorder recorder
 
typedef struct Light Light
 Light parameters for OpenGL rendering.
 
typedef struct Lightning Lightning
 Lightning data for OpenGL rendering.
 
typedef struct Material Material
 Material parameters for OpenGL rendering.
 
typedef struct Fog Fog
 Fog parameters for OpenGL rendering.
 
typedef struct screen_string screen_string
 OpenGL string rendering.
 
typedef struct screen_label screen_label
 
typedef struct atom_in_selection atom_in_selection
 
typedef struct atom_selection atom_selection
 
typedef struct background background
 a background data structure
 
typedef struct axis axis
 axis layout data structure
 
typedef struct box box
 box layout data structure
 
typedef struct image image
 a structure to describe the visual content of the OpenGL rendering
 
typedef struct snapshot snapshot
 
typedef struct animation animation
 
typedef struct colormap colormap
 
typedef struct atom_search atom_search
 a data structure to search for atom(s) and edit the model
 
typedef struct atomic_object atomic_object
 a data structure to describe an object to work on.
the object can be one or more:

 
typedef struct wyckoff_position wyckoff_position
 a structure to describe a Wyckoff position in crystallography
 
typedef struct spg_setting spg_setting
 a structure to describe the settings of a space group in crystallography
 
typedef struct space_group space_group
 a structure to described a space group in crystallography
 
typedef struct box_info box_info
 model box information
 
typedef struct cell_info cell_info
 Description of the periodicity.
 
typedef struct builder_edition builder_edition
 
typedef struct atom_edition atom_edition
 
typedef struct cell_edition cell_edition
 
typedef struct opengl_edition opengl_edition
 
typedef struct coord_edition coord_edition
 
typedef struct measures measures
 
typedef struct volumes volumes
 
typedef struct model_edition model_edition
 
typedef struct box_edition box_edition
 
typedef struct axis_edition axis_edition
 
typedef struct rep_edition rep_edition
 
typedef struct gradient_edition gradient_edition
 
typedef struct glwin glwin
 OpenGL window widget structure.
 

Enumerations

enum  object_types {
  FROM_DATA = -8 , FROM_SPEC = -7 , FROM_MOL = -6 , FROM_FRAG = -5 ,
  FROM_COORD_P = -4 , FROM_COORD_T = -3 , FROM_LIBRARY = -2 , FROM_PROJECT = -1
}
 
enum  shaders {
  ATOMS = 0 , BONDS = 1 , SELEC = 2 , POLYS = 3 ,
  MDBOX = 4 , MAXIS = 5 , ARROW = 6 , RINGS = 7 ,
  PICKS = 8 , LABEL = 9 , MEASU = 10 , LIGHT = 11 ,
  SLABS = 12 , VOLMS = 13 , BACKG = 14
}
 The different types of shaders in the atomes program. More...
 

Variables

char * text_styles [OGL_STYLES]
 
char * text_filled [FILLED_STYLES]
 

Detailed Description

Variable declarations related the OpenGL window
Data structure declarations related the OpenGL window.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file glwin.h.

Macro Definition Documentation

◆ ATOM_MAPS

#define ATOM_MAPS   7

Definition at line 61 of file glwin.h.

◆ AXIS

#define AXIS   1

Definition at line 55 of file glwin.h.

◆ BOX

#define BOX   0

Definition at line 54 of file glwin.h.

◆ FILLED_STYLES

#define FILLED_STYLES   4

Definition at line 106 of file glwin.h.

◆ GL_COLOR_SUM_EXT

#define GL_COLOR_SUM_EXT   0x8458

Definition at line 39 of file glwin.h.

◆ GL_LIGHT_MODEL_COLOR_CONTROL_EXT

#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT   0x81F8

Definition at line 43 of file glwin.h.

◆ GL_SEPARATE_SPECULAR_COLOR_EXT

#define GL_SEPARATE_SPECULAR_COLOR_EXT   0x81FA

Definition at line 47 of file glwin.h.

◆ GL_TEXTURE_RECTANGLE_ARB

#define GL_TEXTURE_RECTANGLE_ARB   0x84F5

Definition at line 51 of file glwin.h.

◆ NGLOBAL_SHADERS

#define NGLOBAL_SHADERS   15

Definition at line 69 of file glwin.h.

◆ NINPUTS

#define NINPUTS   6

Definition at line 66 of file glwin.h.

◆ NSELECTION

#define NSELECTION   7

Definition at line 67 of file glwin.h.

◆ NUM_COLORS

#define NUM_COLORS   64

Definition at line 65 of file glwin.h.

◆ OGL_AXIS

#define OGL_AXIS   13

Definition at line 59 of file glwin.h.

◆ OGL_BOX

#define OGL_BOX   8

Definition at line 58 of file glwin.h.

◆ OGL_COORDS

#define OGL_COORDS   5

Definition at line 63 of file glwin.h.

◆ OGL_RENDERS

#define OGL_RENDERS   3

Definition at line 57 of file glwin.h.

◆ OGL_REPS

#define OGL_REPS   2

Definition at line 60 of file glwin.h.

◆ OGL_RINGS

#define OGL_RINGS   12

Definition at line 64 of file glwin.h.

◆ OGL_STYLES

#define OGL_STYLES   6

Definition at line 107 of file glwin.h.

◆ POLY_MAPS

#define POLY_MAPS   7

Definition at line 62 of file glwin.h.

Typedef Documentation

◆ angle

typedef struct angle angle

Definition at line 113 of file glwin.h.

◆ animation

typedef struct animation animation

Definition at line 504 of file glwin.h.

◆ atom_data

typedef struct atom_data atom_data

Definition at line 131 of file glwin.h.

◆ atom_edition

typedef struct atom_edition atom_edition

Definition at line 749 of file glwin.h.

◆ atom_in_selection

typedef struct atom_in_selection atom_in_selection

Definition at line 273 of file glwin.h.

◆ atom_search

typedef struct atom_search atom_search

a data structure to search for atom(s) and edit the model

Definition at line 529 of file glwin.h.

◆ atom_selection

typedef struct atom_selection atom_selection

Definition at line 282 of file glwin.h.

◆ atomic_object

typedef struct atomic_object atomic_object

a data structure to describe an object to work on.
the object can be one or more:

  • atom(s)
  • chemical species
  • coordination sphere(s) (total or partial)
  • fragment(s)
  • molecule(s)
  • selection(s) of atom(s) from any project in the workspace

Definition at line 601 of file glwin.h.

◆ axis

typedef struct axis axis

axis layout data structure

Definition at line 331 of file glwin.h.

◆ axis_edition

typedef struct axis_edition axis_edition

Definition at line 921 of file glwin.h.

◆ background

typedef struct background background

a background data structure

Definition at line 300 of file glwin.h.

◆ box

typedef struct box box

box layout data structure

Definition at line 349 of file glwin.h.

◆ box_edition

typedef struct box_edition box_edition

Definition at line 908 of file glwin.h.

◆ box_info

typedef struct box_info box_info

model box information

Definition at line 676 of file glwin.h.

◆ builder_edition

typedef struct builder_edition builder_edition

Definition at line 714 of file glwin.h.

◆ cell_edition

typedef struct cell_edition cell_edition

Definition at line 786 of file glwin.h.

◆ cell_info

typedef struct cell_info cell_info

Description of the periodicity.

Definition at line 694 of file glwin.h.

◆ colormap

typedef struct colormap colormap

Definition at line 513 of file glwin.h.

◆ coord_edition

typedef struct coord_edition coord_edition

Definition at line 857 of file glwin.h.

◆ distance

typedef struct distance distance

Definition at line 121 of file glwin.h.

◆ Fog

typedef struct Fog Fog

Fog parameters for OpenGL rendering.

Definition at line 232 of file glwin.h.

◆ glwin

typedef struct glwin glwin

OpenGL window widget structure.

Definition at line 963 of file glwin.h.

◆ gradient_edition

typedef struct gradient_edition gradient_edition

Definition at line 946 of file glwin.h.

◆ image

typedef struct image image

a structure to describe the visual content of the OpenGL rendering

Definition at line 363 of file glwin.h.

◆ Light

typedef struct Light Light

Light parameters for OpenGL rendering.

Definition at line 180 of file glwin.h.

◆ Lightning

typedef struct Lightning Lightning

Lightning data for OpenGL rendering.

Definition at line 197 of file glwin.h.

◆ Material

typedef struct Material Material

Material parameters for OpenGL rendering.

Definition at line 208 of file glwin.h.

◆ measures

typedef struct measures measures

Definition at line 871 of file glwin.h.

◆ model_edition

typedef struct model_edition model_edition

Definition at line 901 of file glwin.h.

◆ opengl_edition

typedef struct opengl_edition opengl_edition

Definition at line 823 of file glwin.h.

◆ recorder

typedef struct recorder recorder

Definition at line 168 of file glwin.h.

◆ rep_edition

typedef struct rep_edition rep_edition

Definition at line 939 of file glwin.h.

◆ screen_label

typedef struct screen_label screen_label

Definition at line 260 of file glwin.h.

◆ screen_string

typedef struct screen_string screen_string

OpenGL string rendering.

Definition at line 246 of file glwin.h.

◆ sequencer

typedef struct sequencer sequencer

Definition at line 152 of file glwin.h.

◆ snapshot

typedef struct snapshot snapshot

Definition at line 495 of file glwin.h.

◆ space_group

typedef struct space_group space_group

a structure to described a space group in crystallography

Definition at line 655 of file glwin.h.

◆ spg_setting

typedef struct spg_setting spg_setting

a structure to describe the settings of a space group in crystallography

Definition at line 641 of file glwin.h.

◆ spinner

typedef struct spinner spinner

Definition at line 141 of file glwin.h.

◆ volumes

typedef struct volumes volumes

Definition at line 879 of file glwin.h.

◆ wyckoff_position

typedef struct wyckoff_position wyckoff_position

a structure to describe a Wyckoff position in crystallography

Definition at line 628 of file glwin.h.

Enumeration Type Documentation

◆ object_types

Enumerator
FROM_DATA 

-8

FROM_SPEC 

-7

FROM_MOL 

-6

FROM_FRAG 

-5

FROM_COORD_P 

-4

FROM_COORD_T 

-3

FROM_LIBRARY 

-2

FROM_PROJECT 

-1

Definition at line 72 of file glwin.h.

◆ shaders

enum shaders

The different types of shaders in the atomes program.

Enumerator
ATOMS 

0

BONDS 

1

SELEC 

2

POLYS 

3

MDBOX 

4

MAXIS 

5

ARROW 

6

RINGS 

7

PICKS 

8

LABEL 

9

MEASU 

10

LIGHT 

11

SLABS 

12

VOLMS 

13

BACKG 

14

Definition at line 88 of file glwin.h.

Variable Documentation

◆ text_filled

char* text_filled[FILLED_STYLES]
extern

Definition at line 62 of file m_style.c.

◆ text_styles

char* text_styles[OGL_STYLES]
extern

Definition at line 55 of file m_style.c.