void RenderObservationZone::Visit(const FAISectorZone& oz) { parms_sector(oz); if (draw_style(false)) { draw_segment(oz.getStartRadial(), oz.getEndRadial()); } if (draw_style(!m_past)) { draw_two_lines(); } m_buffer.mix_copy(); }
void RenderObservationZone::Visit(const BGAEnhancedOptionZone& oz) { parms_sector(oz); if (draw_style(false)) { draw_segment(oz.getStartRadial(), oz.getEndRadial()); p_radius = m_proj.DistanceMetersToScreen(fixed(500)); draw_circle(); } if (draw_style(!m_past)) { draw_two_lines(); } m_buffer.mix_copy(); }
void RenderObservationZone::Visit(const CylinderZone& oz) { parms_oz(oz); if (draw_style(!m_past)) { draw_circle(); } m_buffer.mix_copy(); }
void monitor_tools(int n,int t) { getmousepos(&button,&mousex,&mousey); for(;mousey<20;getmousepos(&button,&mousex,&mousey)) { if((mousex/20>0)&&(mousex/20)<=n&&(mousex/20)!=button_track) { button_track=mousex/20; top_panel_buttons(n,button_track,2); if(t==0) { hidemouseptr(); settextstyle(0,0,1); if(cur_color==0) setcolor(WHITE); else setcolor(BLACK); hover_text(mousex/20); showmouseptr(); } } else if(mousex<20&&button==1&&t!=0) { cur_panel=0; t=0; cur_style=1; n=tool_but_num; button_hover(2,2,18,18); top_panel_default(); top_panel_buttons(tool_but_num,0,1); button_click((2+cur_tool*20),2,(18+cur_tool*20),18); } else if(t==0&&mousex>619&&button==1) { button_hover(620,2,638,18); ask_exit(); } else if(((mousex/20)==0||(mousex/20>(n+1)))&&button_track!=-1) { button_track=-1; top_panel_buttons(n,0,2); if(t==0) button_click((2+cur_tool*20),2,(18+cur_tool*20),18); else if(t==1) button_click((2+cur_style*20),2,(18+cur_style*20),18); } if((mousex/20>0)&&(mousex/20)<=n&&button==1) { if(t==0) { if(button_track!=18) cur_tool=button_track; button_hover((2+button_track*20),2,(18+button_track*20),18); if(button_track==18) { cur_panel=2; draw_color(); } draw_style(); break; } else { cur_style=button_track; button_hover((2+cur_style*20),2,(18+cur_style*20),18); } } } }