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

Boundary::BoundingCircle< T, Boolean, Float > Class Template Reference

#include <boundingbox.h>

Inheritance diagram for Boundary::BoundingCircle< T, Boolean, Float >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T = int, class Boolean = bool, class Float = double>
class Boundary::BoundingCircle< T, Boolean, Float >

Circular bounding box.

Definition at line 269 of file boundingbox.h.

Public Methods

 BoundingCircle ()
 Default constructor: infinite extent.

 BoundingCircle (T centerx_, T centery_, Float radius_)
 Typical constructor.

Boolean isinfinite () const
virtual Boolean inside (T x, T y) const
 Whether the given point is enclosed by the box, inclusively.

virtual base & scale (T xscale, T yscale)
 Only supports scaling with xscale==yscale.

virtual base & rotate (Float)
 Rotating a circle does nothing.

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

virtual base::Rectangle aarectangle () const
 Provides an axis-aligned rectangle based on the circle, but not necessarily enclosing all of it due to integer truncation.

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>
virtual std::ostream& Boundary::BoundingCircle< T, Boolean, Float >::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 317 of file boundingbox.h.


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