geo_element Class Reference

The base-class for geometric elements. Is subject for the algorithms and observes them. More...

#include <geo_element.hpp>

Inheritance diagram for geo_element:

subject observer geo_line geo_point List of all members.

Public Member Functions

 geo_element (const std::string &name)
virtual ~geo_element (void)
virtual std::ostream & put (std::ostream &s)=0
std::string get_name ()
void set_name (const std::string &name)
virtual void update ()=0
virtual void draw (boost::shared_ptr< drawing_context > context)=0

Protected Attributes

std::string m_name

Detailed Description

The base-class for geometric elements. Is subject for the algorithms and observes them.

Definition at line 34 of file geo_element.hpp.


Constructor & Destructor Documentation

geo_element::geo_element const std::string &  name  ) 
 

Definition at line 23 of file geo_element.cpp.

geo_element::~geo_element void   )  [virtual]
 

Definition at line 28 of file geo_element.cpp.


Member Function Documentation

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

Implemented in geo_line, and geo_point.

std::string geo_element::get_name  ) 
 

Definition at line 37 of file geo_element.cpp.

References m_name.

virtual std::ostream& geo_element::put std::ostream &  s  )  [pure virtual]
 

Implemented in geo_line, and geo_point.

Referenced by operator<<().

void geo_element::set_name const std::string &  name  ) 
 

Definition at line 42 of file geo_element.cpp.

References m_name.

virtual void geo_element::update  )  [pure virtual]
 

Implements observer.

Implemented in geo_line, and geo_point.


Member Data Documentation

std::string geo_element::m_name [protected]
 

Definition at line 37 of file geo_element.hpp.

Referenced by get_name(), and set_name().


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