geo_point Class Reference

#include <geo_point.hpp>

Inheritance diagram for geo_point:

geo_element subject observer List of all members.

Public Member Functions

 geo_point (const std::string &name, boost::shared_ptr< point_algorithm > algo, boost::shared_ptr< point_formater_strategy > paint_strategy=boost::shared_ptr< point_normal_style >(new point_normal_style()))
virtual ~geo_point ()
virtual std::ostream & put (std::ostream &s)
point get_point () const
void change_parent_algo (boost::shared_ptr< point_algorithm > new_algo)
virtual void update ()
virtual void draw (boost::shared_ptr< drawing_context > context)
bool is_free_point ()

Private Member Functions

 geo_point (const geo_point &other)
const geo_pointoperator= (const geo_point &other)

Private Attributes

boost::shared_ptr< point_algorithmm_parent_algorithm
boost::shared_ptr< point_formater_strategym_paint_strategy

Detailed Description

Definition at line 34 of file geo_point.hpp.


Constructor & Destructor Documentation

geo_point::geo_point const geo_point other  )  [private]
 

geo_point::geo_point const std::string &  name,
boost::shared_ptr< point_algorithm algo,
boost::shared_ptr< point_formater_strategy paint_strategy = boost::shared_ptr< point_normal_style >(new point_normal_style())
 

Definition at line 24 of file geo_point.cpp.

References m_parent_algorithm.

geo_point::~geo_point  )  [virtual]
 

Definition at line 34 of file geo_point.cpp.

References m_parent_algorithm.


Member Function Documentation

void geo_point::change_parent_algo boost::shared_ptr< point_algorithm new_algo  ) 
 

Definition at line 50 of file geo_point.cpp.

References m_parent_algorithm, and subject::notice_all_observers().

void geo_point::draw boost::shared_ptr< drawing_context context  )  [virtual]
 

Implements geo_element.

Definition at line 62 of file geo_point.cpp.

References get_point(), and m_paint_strategy.

point geo_point::get_point  )  const
 

Definition at line 45 of file geo_point.cpp.

References m_parent_algorithm.

Referenced by draw(), and put().

bool geo_point::is_free_point  ) 
 

Definition at line 67 of file geo_point.cpp.

References m_parent_algorithm.

const geo_point& geo_point::operator= const geo_point other  )  [private]
 

std::ostream & geo_point::put std::ostream &  s  )  [virtual]
 

Implements geo_element.

Definition at line 39 of file geo_point.cpp.

References get_point(), point::get_x(), and point::get_y().

void geo_point::update  )  [virtual]
 

Implements geo_element.

Definition at line 57 of file geo_point.cpp.

References subject::notice_all_observers().


Member Data Documentation

boost::shared_ptr<point_formater_strategy> geo_point::m_paint_strategy [private]
 

Definition at line 38 of file geo_point.hpp.

Referenced by draw().

boost::shared_ptr<point_algorithm> geo_point::m_parent_algorithm [private]
 

Definition at line 37 of file geo_point.hpp.

Referenced by change_parent_algo(), geo_point(), get_point(), is_free_point(), and ~geo_point().


The documentation for this class was generated from the following files:
Generated on Fri May 19 19:30:29 2006 for geometria by  doxygen 1.4.6-NO