
# This code creates the user interface for the mesh editor.
#
# Copyright (c) 1997 Pacific Marketing and Consulting, Inc,
#       and ICEM Systems, GmbH.  All rights reserved.
# Author:  Wayne A. Christopher, wayne@icemcfd.com

set display_menu_info(domain) {
    { "All"           "disp_set_visible domain 1" }
    { "None"          "disp_set_visible domain 0" }
    { "Blank"         "disp_set_visible domain b" }
    { "Restrict"      "disp_set_visible domain r" }
    { "Invert"        "disp_set_visible domain i" }
    { "Adjacent"      "disp_set_visible domain a" }
    { "Number list"   domain,selnumber "disp_pack_list domain" }
    {}
    { "No mesh"       domain,shade   none      "disp_set_option domain" }
    { "Wireframe"     domain,shade   wire      "disp_set_option domain" }
    { "Solid"         domain,shade   solid     "disp_set_option domain" }
    { "Solid/wire"    domain,shade   flat_wire "disp_set_option domain" }
    { "Hidden line"   domain,shade   hidden    "disp_set_option domain" }
    {}
    { "Simplify"      domain,simplify "disp_set_option domain" }
    { "Show outlines" domain,outlines "disp_set_option domain" }
    { "Show nodes"    domain,nodes    "disp_set_option domain" }
    { "Show names"    domain,names    "disp_set_option domain" }
    { "Show IJK"      domain,ijk      "disp_set_option domain" }
    { "Family colors" domain,famcols  "disp_set_option domain" }
    { "Show changes"  domain,changes  "disp_set_option domain" }
    {}
    { "Shrink IJK"    "disp_shrink_ijk domain 0" }
    { "No shrink"     "disp_shrink_ijk domain 1" }
    { "Pick"          "pick_struct_entity domain" }
}

set display_menu_info(subface) {
    { "All"           "disp_set_visible subface 1" }
    { "None"          "disp_set_visible subface 0" }
    { "Blank"         "disp_set_visible subface b" }
    { "Restrict"      "disp_set_visible subface r" }
    { "Invert"        "disp_set_visible subface i" }
    { "Unshared"      "disp_set_visible subface u" }
    { "Shared"        "disp_set_visible subface s" }
    { "Number list"   subface,selnumber "disp_pack_list subface" }
    { "Domain list"   subface,seldomain "disp_pack_list subface" }
    {}
    { "Wireframe"     subface,shade   wire      "disp_set_option subface" }
    { "Solid"         subface,shade   solid     "disp_set_option subface" }
    { "Solid/wire"    subface,shade   flat_wire "disp_set_option subface" }
    { "Hidden line"   subface,shade   hidden    "disp_set_option subface" }
    {}
    { "Simplify"      subface,simplify  "disp_set_option subface" }
    { "Show outlines" subface,outlines  "disp_set_option subface" }
    { "Show nodes"    subface,nodes     "disp_set_option subface" }
    { "Show numbers"  subface,numbers   "disp_set_option subface" }
    { "Show IJK"      subface,ijk       "disp_set_option subface" }
    { "Family colors" subface,famcols   "disp_set_option subface" }
    { "Show changes"  subface,changes   "disp_set_option subface" }
    { "Periodic twin" subface,draw_twin "disp_set_option subface" }
    {}
    { "Shrink IJK"    "disp_shrink_ijk subface 0" }
    { "No shrink"     "disp_shrink_ijk subface 1" }
    { "Pick"          "pick_struct_entity subface" }
}

set display_menu_info(edge) {
    { "All"           "disp_set_visible edge 1" }
    { "None"          "disp_set_visible edge 0" }
    { "Blank"         "disp_set_visible edge b" }
    { "Restrict"      "disp_set_visible edge r" }
    { "Invert"        "disp_set_visible edge i" }
    { "Number list"   edge,selnumber "disp_pack_list edge" }
    { "Domain list"   edge,seldomain "disp_pack_list edge" }
    {}
    { "Simplify"      edge,simplify  "disp_set_option edge" }
    { "Show nodes"    edge,nodes     "disp_set_option edge" }
    { "Show names"    edge,names     "disp_set_option edge" }
    { "Show numbers"  edge,numbers   "disp_set_option edge" }
    { "Show IJK"      edge,ijk       "disp_set_option edge" }
    { "Family colors" edge,famcols   "disp_set_option edge" }
    { "Show changes"  edge,changes   "disp_set_option edge" }
    { "Periodic twin" edge,draw_twin "disp_set_option edge" }
    {}
    { "Shrink IJK"    "disp_shrink_ijk edge 0" }
    { "No shrink"     "disp_shrink_ijk edge 1" }
    { "Pick"          "pick_struct_entity edge" }
}

set display_menu_info(vertex) {
    { "All"           "disp_set_visible vertex 1" }
    { "None"          "disp_set_visible vertex 0" }
    { "Blank"         "disp_set_visible vertex b" }
    { "Restrict"      "disp_set_visible vertex r" }
    { "Invert"        "disp_set_visible vertex i" }
    { "Number list"   vertex,selnumber "disp_pack_list vertex" }
    { "Domain list"   vertex,seldomain "disp_pack_list vertex" }
    {}
    { "Show names"    vertex,names     "disp_set_option vertex" }
    { "Show numbers"  vertex,numbers   "disp_set_option vertex" }
    { "Family colors" vertex,famcols   "disp_set_option vertex" }
    { "Show changes"  vertex,changes   "disp_set_option vertex" }
    { "Periodic twin" vertex,draw_twin "disp_set_option vertex" }
    {}
    { "Pick"          "pick_struct_entity vertex" }
}

set display_menu_info(region) {
    { "All"           "disp_set_visible region 1" }
    { "None"          "disp_set_visible region 0" }
    { "Blank"         "disp_set_visible region b" }
    { "Restrict"      "disp_set_visible region r" }
    { "Invert"        "disp_set_visible region i" }
    {}
    { "Wireframe"     region,shade   wire      "disp_set_option region" }
    { "Solid"         region,shade   solid     "disp_set_option region" }
    { "Solid/wire"    region,shade   flat_wire "disp_set_option region" }
    { "Hidden line"   region,shade   hidden    "disp_set_option region" }
    {}
    { "Extended"      region,extended "disp_set_option region" }
    { "Show names"    region,names    "disp_set_option region" }
    { "Show nodes"    region,nodes    "disp_set_option region" }
    { "Show IJK"      region,ijk      "disp_set_option region" }
    {}
    { "Pick"          "pick_struct_entity region" }
}

set display_menu_info(scanp) {
    { "Wireframe"     scanp,shade   wire      "disp_set_option_scanp" }
    { "Solid"         scanp,shade   solid     "disp_set_option_scanp" }
    { "Solid/wire"    scanp,shade   flat_wire "disp_set_option_scanp" }
    { "Hidden line"   scanp,shade   hidden    "disp_set_option_scanp" }
    {}
    { "Extended"      scanp,extended "disp_set_option_scanp" }
    { "Show nodes"    scanp,nodes    "disp_set_option_scanp" }
    { "Show IJK"      scanp,ijk      "disp_set_option_scanp" }
}

# --------------------------------------------------------------------

set display_menu_info(surface) {
    { "Info"          "pick_geom_entity surface" }
    { "Blank select"  "blank_geom_entity surface" }
    { "Blank all"     "blank_geom_entity surface all" }
    { "Reverse blank"   "blank_geom_entity surface reverse" }
    { "Unblank all"   "blank_geom_entity surface unblank_all" }
    { "Unblank adjacent"   "blank_geom_entity surface unblank_adjacent" }
    { "Unblank by name"   "blank_geom_entity surface unblank_by_name" }
    { "Restrict"      "restrict_geom_entity surface" }
    {}
    { "Full"          surface,dtype detailed  "update_geom_visible surface p" }
    { "Simple"        surface,dtype simple    "update_geom_visible surface p" }
    { "Simpler"       surface,dtype simpler   "update_geom_visible surface p" }
    { "Simplest"      surface,dtype simplest  "update_geom_visible surface p" }
    {}
    { "Solid"         surface,stype solid     "update_geom_visible surface p" }
    { "Wireframe"     surface,stype wire      "update_geom_visible surface p" }
    { "Solid/wire"    surface,stype flat_wire "update_geom_visible surface p" }
    {}
    { "No sizes"      surface,sizes none      "update_geom_visible surface p" }
    { "Tetra sizes"   surface,sizes tetra     "update_geom_visible surface p" }
    { "Prism sizes"   surface,sizes prism     "update_geom_visible surface p" }
    { "Hexa sizes"    surface,sizes hexa      "update_geom_visible surface p" }
    {}
    { "Show names"    surface,names           "update_geom_visible surface p" }
    { "Wide lines"    surface,wide            "update_geom_visible surface p" }
    { "Show nodes"    surface,nodes           "update_geom_visible surface p" }
    { "Show norms"    surface,norms           "update_geom_visible surface p" }
    { "Show thickness" surface,thickness      "update_geom_visible surface p" }
    {}
    { "Tri numbers"   surface,tri_numbers  "update_geom_visible surface p" }
    { "Node numbers"  surface,node_numbers "update_geom_visible surface p" }
}

set display_menu_info(curve) {
    { "Info"          "pick_geom_entity curve" }
    { "Blank select"  "blank_geom_entity curve" }
    { "Blank all"     "blank_geom_entity curve all" }
    { "Reverse blank"   "blank_geom_entity curve reverse" }
    { "Unblank all"   "blank_geom_entity curve unblank_all" }
    { "Unblank adjacent"   "blank_geom_entity curve unblank_adjacent" }
    { "Unblank boundary"   "blank_geom_entity curve unblank_boundary" }
    { "Unblank by name"   "blank_geom_entity curve unblank_by_name" }
    { "Restrict"      "restrict_geom_entity curve" }
    {}
    { "No sizes"      curve,sizes   none      "update_geom_visible curve p" }
    { "Quad sizes"    curve,sizes   quad      "update_geom_visible curve p" }
    { "Tetra sizes"   curve,sizes   tetra     "update_geom_visible curve p" }
    { "Prism sizes"   curve,sizes   prism     "update_geom_visible curve p" }
    { "Hexa sizes"    curve,sizes   hexa      "update_geom_visible curve p" }
    {}
    { "Show names"    curve,names   "update_geom_visible curve p" }
    { "Wide lines"    curve,wide    "update_geom_visible curve p" }
    { "Show nodes"    curve,nodes   "update_geom_visible curve p" }
    { "Color by count" curve,count   "update_geom_visible curve p" }
    {}
    { "Unattached"  curve,show0   "update_geom_visible curve p" }
    { "Single"      curve,show1   "update_geom_visible curve p" }
    { "Double"      curve,show2   "update_geom_visible curve p" }
    { "Multiple"    curve,show3   "update_geom_visible curve p" }
}

set display_menu_info(point) {
    { "Info"          "pick_geom_entity point" }
    { "Blank select"  "blank_geom_entity point" }
    { "Blank all"     "blank_geom_entity point all" }
    { "Reverse blank"   "blank_geom_entity point reverse" }
    { "Unblank all"   "blank_geom_entity point unblank_all" }
    { "Unblank adjacent"   "blank_geom_entity point unblank_adjacent" }
    { "Unblank boundary"   "blank_geom_entity point unblank_boundary" }
    { "Unblank by name"   "blank_geom_entity point unblank_by_name" }
    { "Restrict"      "restrict_geom_entity point" }
    {}
    { "No sizes"      point,sizes   none      "update_geom_visible point p" }
    { "Tetra sizes"   point,sizes   tetra     "update_geom_visible point p" }
    { "Prism sizes"   point,sizes   prism     "update_geom_visible point p" }
    { "Hexa sizes"    point,sizes   hexa      "update_geom_visible point p" }
    {}
    { "Show names"    point,names   "update_geom_visible point p" }
    { "Large points"  point,wide    "update_geom_visible point p" }
}

set display_menu_info(material) {
    { "Info"          "pick_geom_entity material" }
    { "Blank"         "blank_geom_entity material" }
    { "Unblank all"   "blank_geom_entity material unblank_all" }
    { "Unblank by name"   "blank_geom_entity material unblank_by_name" }
    { "Restrict"      "restrict_geom_entity material" }
    {}
    { "No sizes"      material,sizes none    "update_geom_visible material p" }
    { "Tetra sizes"   material,sizes tetra   "update_geom_visible material p" }
    { "Prism sizes"   material,sizes prism   "update_geom_visible material p" }
    { "Hexa sizes"    material,sizes hexa    "update_geom_visible material p" }
    {}
    { "Show names"    material,names   "update_geom_visible material p" }
}

set display_menu_info(density) {
    { "Info"          "pick_geom_entity density" }
    { "Blank"         "blank_geom_entity density" }
    { "Unblank all"   "blank_geom_entity density unblank_all" }
    { "Unblank by name"   "blank_geom_entity density unblank_by_name" }
    { "Restrict"      "restrict_geom_entity density" }
    {}
    { "No sizes"      density,sizes none      "update_geom_visible density p" }
    { "Tetra sizes"   density,sizes tetra     "update_geom_visible density p" }
    { "Prism sizes"   density,sizes prism     "update_geom_visible density p" }
    { "Hexa sizes"    density,sizes hexa      "update_geom_visible density p" }
    {}
    { "Show names"    density,names   "update_geom_visible density p" }
    { "Wide lines"    density,wide    "update_geom_visible density p" }
}

set display_menu_info(loop) {
    { "Info"          "pick_geom_entity loop" }
    { "Blank"         "blank_geom_entity loop" }
    { "Unblank all"   "blank_geom_entity loop unblank_all"  }
    { "Unblank by name"   "blank_geom_entity loop unblank_by_name"  }
    { "Restrict"      "restrict_geom_entity loop" }
    {}
    { "Full"          loop,lfull   "update_geom_visible loop p" }
    {}
    { "Quad sizes"    loop,lsizes  "update_geom_visible loop p" }
    {}
    { "Show names"    loop,names   "update_geom_visible loop p" }    
    { "Wide lines"    loop,wide    "update_geom_visible loop p" }
    {}
    { "Show points"    loop,lshow0 "update_geom_visible loop p" }
    { "Show surfaces"  loop,lshow1 "update_geom_visible loop p" }
    { "Show corners"   loop,lshow2 "update_geom_visible loop p" }
}
