ARB
Public Member Functions | List of all members
AW::Rectangle Class Reference

#include <aw_position.hxx>

Inheritance diagram for AW::Rectangle:
Inheritance graph
[legend]
Collaboration diagram for AW::Rectangle:
Collaboration graph
[legend]

Public Member Functions

 Rectangle (const LineVector &Diagonal)
 
 Rectangle (const Position &corner, const Position &opposite_corner)
 
 Rectangle (const Position &corner, const Vector &to_opposite_corner)
 
 Rectangle (double X1, double Y1, double X2, double Y2)
 
 Rectangle (const AW_screen_area &r, AW_screen_area_conversion_mode mode)
 
 Rectangle (const AW_world &r)
 
 Rectangle ()
 
const Vectordiagonal () const
 
const Positionupper_left_corner () const
 
Position lower_left_corner () const
 
Position upper_right_corner () const
 
Position lower_right_corner () const
 
Position get_corner (int i) const
 
Position nearest_corner (const Position &topos) const
 
double left () const
 
double top () const
 
double right () const
 
double bottom () const
 
double width () const
 
double height () const
 
LineVector upper_edge () const
 
LineVector left_edge () const
 
LineVector lower_edge () const
 
LineVector right_edge () const
 
LineVector horizontal_extent () const
 
LineVector vertical_extent () const
 
LineVector bigger_extent () const
 
LineVector smaller_extent () const
 
void standardize ()
 
bool contains (const Position &pos) const
 
bool contains (const LineVector &lvec) const
 
bool distinct_from (const Rectangle &rect) const
 
bool overlaps_with (const Rectangle &rect) const
 
Rectangle intersect_with (const Rectangle &rect) const
 
Rectangle bounding_box (const Rectangle &rect) const
 
Rectangle bounding_box (const Position &pos) const
 
double surface () const
 
- Public Member Functions inherited from AW::LineVector
bool valid () const
 
 LineVector (const Position &startpos, const Position &end)
 
 LineVector (const Position &startpos, const Vector &to_end)
 
 LineVector (double X1, double Y1, double X2, double Y2)
 
 LineVector (const AW_screen_area &r, AW_screen_area_conversion_mode mode)
 
 LineVector (const AW_world &r)
 
 LineVector ()
 
const Vectorline_vector () const
 
const Positionstart () const
 
Position head () const
 
Position centroid () const
 
double length () const
 
bool has_length () const
 
const double & xpos () const
 
const double & ypos () const
 
void move (const Vector &movement)
 
void moveTo (const Position &pos)
 
LineVector reverse () const
 

Additional Inherited Members

- Protected Member Functions inherited from AW::LineVector
void standardize ()
 

Detailed Description

Definition at line 337 of file aw_position.hxx.

Constructor & Destructor Documentation

AW::Rectangle::Rectangle ( const LineVector Diagonal)
inlineexplicit

Definition at line 339 of file aw_position.hxx.

References standardize().

AW::Rectangle::Rectangle ( const Position corner,
const Position opposite_corner 
)
inline

Definition at line 340 of file aw_position.hxx.

References standardize().

AW::Rectangle::Rectangle ( const Position corner,
const Vector to_opposite_corner 
)
inline

Definition at line 341 of file aw_position.hxx.

References standardize().

AW::Rectangle::Rectangle ( double  X1,
double  Y1,
double  X2,
double  Y2 
)
inline

Definition at line 342 of file aw_position.hxx.

References standardize().

AW::Rectangle::Rectangle ( const AW_screen_area r,
AW_screen_area_conversion_mode  mode 
)
inlineexplicit

Definition at line 343 of file aw_position.hxx.

References standardize().

AW::Rectangle::Rectangle ( const AW_world r)
inlineexplicit

Definition at line 344 of file aw_position.hxx.

References standardize().

AW::Rectangle::Rectangle ( )
inline

Definition at line 345 of file aw_position.hxx.

Referenced by bounding_box(), and intersect_with().

Member Function Documentation

const Vector& AW::Rectangle::diagonal ( ) const
inline
const Position& AW::Rectangle::upper_left_corner ( ) const
inline
Position AW::Rectangle::lower_left_corner ( ) const
inline
Position AW::Rectangle::upper_right_corner ( ) const
inline
Position AW::Rectangle::lower_right_corner ( ) const
inline
Position AW::Rectangle::get_corner ( int  i) const
inline
Position Rectangle::nearest_corner ( const Position topos) const

Definition at line 67 of file AW_position.cxx.

double AW::Rectangle::left ( ) const
inline
double AW::Rectangle::top ( ) const
inline
double AW::Rectangle::right ( ) const
inline
double AW::Rectangle::bottom ( ) const
inline
double AW::Rectangle::width ( ) const
inline
double AW::Rectangle::height ( ) const
inline
LineVector AW::Rectangle::upper_edge ( ) const
inline
LineVector AW::Rectangle::left_edge ( ) const
inline
LineVector AW::Rectangle::lower_edge ( ) const
inline
LineVector AW::Rectangle::right_edge ( ) const
inline
LineVector AW::Rectangle::horizontal_extent ( ) const
inline
LineVector AW::Rectangle::vertical_extent ( ) const
inline
LineVector AW::Rectangle::bigger_extent ( ) const
inline

Definition at line 380 of file aw_position.hxx.

References height(), horizontal_extent(), vertical_extent(), and width().

LineVector AW::Rectangle::smaller_extent ( ) const
inline

Definition at line 381 of file aw_position.hxx.

References height(), horizontal_extent(), vertical_extent(), and width().

void AW::Rectangle::standardize ( )
inline

Definition at line 383 of file aw_position.hxx.

References AW::LineVector::standardize().

Referenced by Rectangle().

bool AW::Rectangle::contains ( const Position pos) const
inline
bool AW::Rectangle::contains ( const LineVector lvec) const
inline

Definition at line 386 of file aw_position.hxx.

References contains(), AW::LineVector::head(), and AW::LineVector::start().

Referenced by contains().

bool AW::Rectangle::distinct_from ( const Rectangle rect) const
inline

Definition at line 388 of file aw_position.hxx.

References bottom(), left(), right(), and top().

Referenced by AW_clipable::box_clip(), and overlaps_with().

bool AW::Rectangle::overlaps_with ( const Rectangle rect) const
inline
Rectangle AW::Rectangle::intersect_with ( const Rectangle rect) const
inline
Rectangle AW::Rectangle::bounding_box ( const Rectangle rect) const
inline
Rectangle AW::Rectangle::bounding_box ( const Position pos) const
inline

Definition at line 408 of file aw_position.hxx.

References lower_right_corner(), Rectangle(), and upper_left_corner().

double AW::Rectangle::surface ( ) const
inline

Definition at line 413 of file aw_position.hxx.

References height(), and width().


The documentation for this class was generated from the following files: