#include "ObjetGraphique.hxx"
#include "Point.hxx"
#include <iostream>

int ObjetGraphique::NbObjetsGraphiques_=0;

ostream &operator<<(ostream &o,const ObjetGraphique &a)
{
  o << "Objet graphique ... " << endl;
  o << "Point de base : " << a.pointDeBase_;
  o << "Couleur   : " << a.couleur_ << endl;
  o << "Epaisseur : " << a.epaisseur_ << endl; 
  return o;
}


void ObjetGraphique::afficher(ostream &a) const
{
  a << *this;
}

void ObjetGraphique::afficher(void) const
{
  afficher(cout);
}


ObjetGraphique::~ObjetGraphique()
{
  cout << "Destruction d'objet graphique d'adresse " << this << endl;
  NbObjetsGraphiques_--;
}
