// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.

#ifndef tools_sg_enums
#define tools_sg_enums

namespace tools {
namespace sg {

enum line_pattern {
  line_solid = 0xffff,
  line_dashed = 0x00ff,
  line_dotted = 0x1111,
  line_dash_dotted = 0x1c47
};

enum marker_style {
  marker_dot = 0,
  marker_plus = 1,
  marker_asterisk,
  marker_cross,
  marker_star,
  marker_circle_line,
  marker_circle_filled,
  marker_triangle_up_line,
  marker_triangle_up_filled,
  marker_triangle_down_line,
  marker_triangle_down_filled,
  marker_david_star_line,
  marker_david_star_filled,
  marker_swiss_cross_line,
  marker_swiss_cross_filled,
  marker_diamond_line,
  marker_diamond_filled,
  marker_square_line,
  marker_square_filled,
  marker_penta_star_line,
  marker_penta_star_filled,
  marker_minus
};

enum area_style {
  area_solid = 0,
  area_hatched,
  area_checker,
  area_edged
};

enum projection_type {
  projection_none,
  projection_rz,
  projection_phiz,
  projection_zr,
  projection_zphi
};

enum painting_policy {
  painting_uniform,
  painting_by_value,
  painting_by_level,
  painting_grey_scale,
  painting_violet_to_red,
  painting_grey_scale_inverse
};

enum hatching_policy {
  hatching_none,
  hatching_right,
  hatching_left,
  hatching_left_and_right
};

enum hjust {
  left   = 0,
  center = 1,
  right  = 2
};

enum vjust {
  bottom = 0,
  middle = 1,
  top    = 2
};

enum font_type {
  latin,
  greek,
  special
};

enum font_modeling {
  font_outline,
  font_filled,
  font_pixmap
};

enum arrow_type {
  arrow_up,
  arrow_down,
  arrow_left,
  arrow_right
};

enum winding_type {
  winding_ccw,
  winding_cw
};

enum move_type {
  //move_none,
  move_rotate_right,
  move_rotate_left,
  move_rotate_up,
  move_rotate_down,
  move_roll_plus,
  move_roll_minus,

  move_translate_right,
  move_translate_left,
  move_up,
  move_down,
  move_forward,
  move_backward,
  move_zoom_in,
  move_zoom_out,
  move_rotate_around_focal_right,
  move_rotate_around_focal_left,
  move_rotate_around_focal_up,
  move_rotate_around_focal_down,
  move_roll_around_focal_plus,
  move_roll_around_focal_minus,
  move_zoom_in_out,
  move_zoom_in_out_rot,
  move_curve
};

enum anim_what {
  anim_left,
  anim_right,
  anim_up,
  anim_down
};

enum anim_mode {
  anim_mode_0,
  anim_mode_1,
  anim_mode_2,
  anim_mode_3,
  anim_mode_4
};

enum key_move {
  key_left,
  key_right,
  key_up,
  key_down
};

enum number_type {
  number_uint,
  number_int,
  number_real,
  number_ip,
  number_radec
};

enum camera_type {
  camera_ortho,
  camera_perspective
};

enum gsto_mode {
  gsto_memory  = 0,
  gsto_gl_vbo  = 1,
  gsto_gl_list = 2
};

enum layout_policy {
  layout_text_under_image = 0,
  layout_text_at_left_of_image = 1
};

enum auto_lut_policy {
  auto_lut_none = 0,
  auto_lut_min_max = 1,
  auto_lut_mean_rms = 2
};

enum draw_type {
  draw_points = 0,
  draw_lines,
  draw_filled
};

enum shade_type { //shade_model is a node.
  shade_flat = 0,
  shade_smooth
};

enum solid_operation {
  solid_none,
  solid_union,
  solid_intersection,
  solid_subtraction
};

}}

#endif
