Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Boundary::Intersection< T, Boolean, Float, BBA, BBB > Class Template Reference

#include <boundingbox.h>

Inheritance diagram for Boundary::Intersection< T, Boolean, Float, BBA, BBB >:

Inheritance graph
[legend]
Collaboration diagram for Boundary::Intersection< T, Boolean, Float, BBA, BBB >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T = int, class Boolean = bool, class Float = double, class BBA = BoundingEllipse<T,Boolean,Float>, class BBB = AARBoundingBox<T,Boolean,Float>>
class Boundary::Intersection< T, Boolean, Float, BBA, BBB >

BoundingBox consisting of the intersection between two already-defined bounding boxes.

Definition at line 224 of file boundingbox.h.

Public Methods

 Intersection (const BBA &bb_a=BBA(), const BBB &bb_b=BBB())
 Default constructor; infinite extent if no arguments supplied.

virtual Boolean inside (T x, T y) const
 Returns true if the given coordinates are inside the ellipse bounded by the corresponding rectangle.

virtual base & scale (T xscale, T yscale)
 Scale the size of the box in X and Y dimensions.

virtual base & rotate (Float angle)
 Rotate the box around the origin.

virtual base & translate (T xoffset, T yoffset)
 Translate the origin of the box elsewhere.

virtual base::Rectangle aarectangle () const
 Returns an axis-aligned rectangle fully enclosing this box, or an empty rectangle if no such finite rectangle exists.

virtual base * clone () const
 Constructs an identical copy of self and returns it.

virtual std::ostream & put (std::ostream &s) const
 Virtual interface to the operator<<, since << cannot be virtual.


Member Function Documentation

template<class T = int, class Boolean = bool, class Float = double, class BBA = BoundingEllipse<T,Boolean,Float>, class BBB = AARBoundingBox<T,Boolean,Float>>
virtual std::ostream& Boundary::Intersection< T, Boolean, Float, BBA, BBB >::put std::ostream &    s const [inline, virtual]
 

Virtual interface to the operator<<, since << cannot be virtual.

This implementation is just a stub, and should be overriden in derived classes. Outputs a human-readable representation to the given stream.

Reimplemented from Boundary::BoundingBox< T, Boolean, Float >.

Definition at line 257 of file boundingbox.h.


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:33 2003 for RF-LISSOM by doxygen1.3-rc2