ARB
Classes | Namespaces | Macros | Enumerations | Functions | Variables
aw_position.hxx File Reference
#include "aw_base.hxx"
#include <arb_assert.h>
#include <arbtools.h>
#include <cmath>
Include dependency graph for aw_position.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  AW::FillStyle
 
class  AW::Position
 
class  AW::Vector
 
class  AW::LineVector
 
class  AW::Rectangle
 
class  AW::Angle
 

Namespaces

 AW
 

Macros

#define aw_assert(bed)   arb_assert(bed)
 
#define ISVALID(a)
 
#define NONAN(d)   (d)
 

Enumerations

enum  AW::AW_screen_area_conversion_mode { AW::INCLUSIVE_OUTLINE, AW::UPPER_LEFT_OUTLINE }
 
enum  AW::RoughDirection {
  AW::D_NORTH = 1, AW::D_SOUTH = 2, AW::D_WEST = 4, AW::D_EAST = 8,
  AW::D_NORTH_WEST = D_NORTH | D_WEST, AW::D_NORTH_EAST = D_NORTH | D_EAST, AW::D_SOUTH_EAST = D_SOUTH | D_EAST, AW::D_SOUTH_WEST = D_SOUTH | D_WEST,
  AW::D_VERTICAL = D_NORTH | D_SOUTH, AW::D_HORIZONTAL = D_EAST | D_WEST
}
 

Functions

bool AW::nearlyEqual (const double &val1, const double &val2)
 
bool AW::nearlyZero (const double &val)
 
double AW::centroid (const double &val1, const double &val2)
 
bool AW::is_between (const double &coord1, const double &between, const double &coord2)
 
bool AW::nearlyEqual (const Position &p1, const Position &p2)
 
bool AW::nearlyEqual (const Vector &v1, const Vector &v2)
 
Vector AW::operator- (const Position &to, const Position &from)
 
Position AW::operator+ (const Position &p, const Vector &v)
 
Position AW::operator+ (const Vector &v, const Position &p)
 
Position AW::operator- (const Position &p, const Vector &v)
 
Vector AW::operator+ (const Vector &v1, const Vector &v2)
 
Vector AW::operator- (const Vector &v1, const Vector &v2)
 
Vector AW::operator* (const Vector &v, const double &f)
 
Vector AW::operator* (const double &f, const Vector &v)
 
Vector AW::operator/ (const Vector &v, const double &d)
 
Position AW::centroid (const Position &p1, const Position &p2)
 
double AW::Distance (const Position &from, const Position &to)
 
double AW::scalarProduct (const Vector &v1, const Vector &v2)
 
bool AW::are_distinct (const Position &p1, const Position &p2)
 
bool AW::is_vertical (const Vector &v)
 
bool AW::is_horizontal (const Vector &v)
 
Vector AW::orthogonal_projection (const Vector &projectee, const Vector &target)
 
Vector AW::normalized (const Vector &v)
 
bool AW::are_parallel (const Vector &v1, const Vector &v2)
 
bool AW::are_antiparallel (const Vector &v1, const Vector &v2)
 returns true, if two vectors have opposite orientations More...
 
Position AW::crosspoint (const LineVector &l1, const LineVector &l2, double &factor_l1, double &factor_l2)
 
Position AW::nearest_linepoint (const Position &pos, const LineVector &line, double &factor)
 
Position AW::nearest_linepoint (const Position &pos, const LineVector &line)
 
double AW::Distance (const Position &pos, const LineVector &line)
 
bool AW::is_vertical (const LineVector &line)
 
bool AW::is_horizontal (const LineVector &line)
 
bool AW::nearlyEqual (const LineVector &L1, const LineVector &L2)
 
Rectangle AW::bounding_box (const Rectangle &r1, const Rectangle &r2)
 
Rectangle AW::bounding_box (const Rectangle &rect, const LineVector &line)
 
Rectangle AW::bounding_box (const LineVector &line, const Rectangle &rect)
 
Rectangle AW::bounding_box (const LineVector &l1, const LineVector &l2)
 
Rectangle AW::bounding_box (const Rectangle &rect, const Position &pos)
 
Rectangle AW::bounding_box (const Position &pos, const Rectangle &rect)
 
Rectangle AW::bounding_box (const LineVector &line, const Position &pos)
 
Rectangle AW::bounding_box (const Position &pos, const LineVector &line)
 
Rectangle AW::bounding_box (const Position &p1, const Position &p2)
 
CONSTEXPR_INLINE bool AW::definesQuadrant (const RoughDirection rd)
 
Angle AW::operator+ (const Angle &a1, const Angle &a2)
 
Angle AW::operator- (const Angle &a1, const Angle &a2)
 
Angle AW::operator* (const Angle &a, const double &fact)
 
Angle AW::operator/ (const Angle &a, const double &divi)
 
double AW::hypotenuse (double cath1, double cath2)
 
double AW::cathetus (double hypotenuse, double cathetus)
 
bool AW::isOrigin (const Position &p)
 
AW_pos AW::x_alignment (AW_pos x_pos, AW_pos x_size, AW_pos alignment)
 

Variables

const double AW::EPSILON = 0.001
 
const Position AW::Origin
 
const Vector AW::ZeroVector
 
const Angle AW::Northwards
 
const Angle AW::Westwards
 
const Angle AW::Southwards
 
const Angle AW::Eastwards
 

Macro Definition Documentation

#define aw_assert (   bed)    arb_assert(bed)

Definition at line 29 of file aw_position.hxx.

Referenced by AW_window::_create_option_entry(), AW_gc_manager::activateColorRange(), AW_gc_manager::active_range_changed_cb(), aw_xargs::add(), AW_gc_manager::add_gc(), AW::Angle::Angle(), apply_ScalerType(), AW_root::apply_sensitivity(), ARB_bind_global_awars(), ARB_declare_global_awars(), ARB_in_expert_mode(), AW_rgb16::ascii(), UsedColor::assign(), AW_window::at_attach(), AW_window::at_attach_to(), AW_window::at_ifdef(), AW_advice(), AW_awar::AW_awar(), AW_buttons_struct::AW_buttons_struct(), AW_color_groups_active(), AW_create_fileselection_awars(), aw_detect_text_size(), AW_font_limits::AW_font_limits(), AW_get_color_group_name(), AW_get_color_groups_active_awarname(), AW_get_font_shortname(), AW_get_font_specification(), AW_get_nameserver_addid(), AW_get_selected_fullname(), aw_help_helpfile_changed_cb(), AW_help_popup(), AW_hsv::AW_hsv(), AW_init_color_group_defaults(), aw_initstatus(), aw_input(), AW_label_in_awar_list(), AW_manage_GC(), aw_message(), aw_popup_exit(), AW_popup_gc_color_groups_window(), aw_question(), AW_reactivate_all_advices(), AW_rgb16::AW_rgb16(), AW_root::AW_root(), aw_root_init_font(), AW_select_nameserver(), AW_selection_list_iterator::AW_selection_list_iterator(), aw_size_awar_name(), aw_status_gauge(), aw_status_timer_listen_event(), AW_var_gbdata_callback_delete_intern(), AW_variable_update_callback(), AW_xfig::AW_xfig(), AW_ScalerTransformer::awar2scaler(), awar_updated_cb(), AWTC_makeUniqueShortName(), AW_clipable::box_clip(), build_range_gc_number(), AW::cathetus(), TrackedFiles::check_changes(), check_ps_fontinfo_valid(), CI_GetCharInfo_1D(), NameServerConnection::connect(), correct_subselection_cb(), AW_window::create_autosize_button(), AW_window::create_button(), AW_gc_manager::create_gc_buttons(), File_selection::create_gui_elements(), AW_window::create_menu(), AW_window::create_mode(), AW_window::create_option_menu(), AW_window::create_selection_list(), AW_window::create_toggle(), AW_window::create_toggle_field(), AW::crosspoint(), declare_awar_global(), AW_root::define_remote_command(), AW_gc_manager::delay_changed_callbacks(), AW_selection_list::delete_element_at(), detectBrowserCommand(), AW_window::draw_line(), TrackedFiles::erase(), AW_GC::establish_default(), File_selection::File_selection(), File_selection::filename_changed(), File_selection::fill(), gcman_specific_awarname(), get_available_fontsizes(), gc_range::get_color(), gc_desc::get_color_index(), gc_range::get_dimension(), AW_GC::get_font_limits(), get_full_qualified_help_file_name(), AW_gc_manager::get_gc_desc(), AW_font_group::get_limits(), get_local_help_url(), AW_awar::get_max(), AW_font_group::get_max_limits(), AW_awar::get_min(), FINAL_TYPE< SEQTYPE >::get_polygon(), gc_desc::get_range_index(), AW_selection_list::get_selected_value(), AW_GC::get_string_size(), UsedColor::getIndex(), getParsedFontPart(), getStipplePixmap(), AW_gc_manager::init_color_ranges(), AW_selection_list::init_from_array(), TrackedFiles::insert(), AW_window::insert_help_topic(), AW_window::insert_menu_topic(), AW_window::insert_sub_menu(), AWT_canvas::instant_zoom_reset(), AW::Rectangle::intersect_with(), AW_font_limits::is_monospaced(), AW_window::label(), lookfont(), AW_awar::make_global(), AW_root::make_sensitive(), makeUniqueShortName(), AW_awar::map(), AW_GC_set::map_gc(), AW_GC_set::map_mod_gc(), ColorMap::mapColors(), new_input_window(), AW::Vector::normalize(), ColorMap::operator()(), AW::Angle::operator+=(), AW::Angle::operator-=(), AW_device::pop_clip_scale(), ColorMap::printUserColorDefinitions(), AW_awar::read_char_pntr(), AW_awar::read_float(), AW_awar::read_int(), AW_awar::read_pointer(), AW_awar::read_string(), AW_selection_list::refresh(), AW_window::refresh_toggle_field(), AW_font_group::registerFont(), AW_gc_manager::reserve_gcs(), AW_window::reset_layout(), AW_awar::reset_to_default(), AW_hsv::rgb(), ColorMap::rgb2index(), AW_cb::run_callbacks(), safe_write(), AW_selection_list::select_element_at(), AW_window::sens_mask(), AW_selection_list_iterator::set_displayed(), AW_GC::set_line_attributes(), VarUpdateInfo::set_scalerType(), AW_common::set_screen(), VarUpdateInfo::set_sellist(), AW_awar::set_temp_if_is_default(), AW_selection_list::set_update_callback(), AW_selection_list_iterator::set_value(), AW_root::setUserActionTracker(), AW_window::show(), AW_device::text_overlay(), AW_selection_list::to_array(), AW_awar::touch(), track_awar_change_cb(), AW_window::TuneBackground(), AW_awar::unlink(), AW_root::unlink_awars_from_DB(), AW_awar::unlink_from_DB(), AW_awar::update(), gc_range::update_colors(), AW_gc_manager::update_gc_color(), AW_gc_manager::update_gc_font(), AW_awar::update_target(), write_scalervalue_to_awar(), AW_root::~AW_root(), AW_widget_value_pair::~AW_widget_value_pair(), and NameServerConnection::~NameServerConnection().

#define ISVALID (   a)
#define NONAN (   d)    (d)