geo_line Class Reference

#include <geo_line.hpp>

Inheritance diagram for geo_line:

geo_element subject observer List of all members.

Public Member Functions

 geo_line (const std::string &name, boost::shared_ptr< line_algorithm > algo, boost::shared_ptr< line_formater_strategy > paint_strategy=boost::shared_ptr< line_normal_style >(new line_normal_style()))
virtual ~geo_line ()
virtual std::ostream & put (std::ostream &s)
line get_line () const
void change_parent_algo (boost::shared_ptr< line_algorithm > new_algo)
virtual void update ()
virtual void draw (boost::shared_ptr< drawing_context > context)

Private Member Functions

const geo_lineoperator= (const geo_line &other)
 geo_line (const geo_line &other)

Private Attributes

boost::shared_ptr< line_algorithmm_parent_algorithm
boost::shared_ptr< line_formater_strategym_paint_strategy

Detailed Description

Definition at line 36 of file geo_line.hpp.


Constructor & Destructor Documentation

geo_line::geo_line const geo_line other  )  [private]
 

geo_line::geo_line const std::string &  name,
boost::shared_ptr< line_algorithm algo,
boost::shared_ptr< line_formater_strategy paint_strategy = boost::shared_ptr< line_normal_style >(new line_normal_style())
 

Definition at line 24 of file geo_line.cpp.

References m_parent_algorithm.

geo_line::~geo_line  )  [virtual]
 

Definition at line 34 of file geo_line.cpp.

References m_parent_algorithm.


Member Function Documentation

void geo_line::change_parent_algo boost::shared_ptr< line_algorithm new_algo  ) 
 

Definition at line 50 of file geo_line.cpp.

References m_parent_algorithm, and subject::notice_all_observers().

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

Implements geo_element.

Definition at line 62 of file geo_line.cpp.

References get_line(), and m_paint_strategy.

line geo_line::get_line  )  const
 

Definition at line 45 of file geo_line.cpp.

References m_parent_algorithm.

Referenced by draw(), and put().

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

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

Implements geo_element.

Definition at line 39 of file geo_line.cpp.

References get_line(), line::get_m(), and line::get_t().

void geo_line::update  )  [virtual]
 

Implements geo_element.

Definition at line 57 of file geo_line.cpp.

References subject::notice_all_observers().


Member Data Documentation

boost::shared_ptr<line_formater_strategy> geo_line::m_paint_strategy [private]
 

Definition at line 40 of file geo_line.hpp.

Referenced by draw().

boost::shared_ptr<line_algorithm> geo_line::m_parent_algorithm [private]
 

Definition at line 39 of file geo_line.hpp.

Referenced by change_parent_algo(), geo_line(), get_line(), and ~geo_line().


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