point.cpp 1023 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include <iostream>
  2. #include "point.h"
  3. //==========================
  4. cPoint::cPoint () : m_X (-999),m_Y (-999), m_Z (-999) {}
  5. cPoint::~cPoint () {}
  6. //==========================
  7. cPoint::cPoint (double x_, double y_, double z_) {
  8. m_X = x_;
  9. m_Y = y_;
  10. m_Z = z_;
  11. }
  12. //==========================
  13. void cPoint::set_XYZ (double x_, double y_, double z_) {
  14. m_X = x_;
  15. m_Y = y_;
  16. m_Z = z_;
  17. }
  18. //==========================
  19. void cPoint::set_X (double x_) {
  20. m_X = x_;
  21. }
  22. //==========================
  23. void cPoint::set_Y (double y_) {
  24. m_Y = y_;
  25. }
  26. //==========================
  27. void cPoint::set_Z (double z_) {
  28. m_Z = z_;
  29. }
  30. //==========================
  31. bool cPoint::Ok () {
  32. std::cout << "NOT finish \n";
  33. }
  34. //==========================
  35. void cPoint::show () {
  36. // std::cout << __FILE__ << " "<<_FUNC_ << std::endl;
  37. std::cout << "\t\t SHOW POINT \n";
  38. std::cout << "X = " << m_X << std::endl;
  39. std::cout << "Y = " << m_Y << std::endl;
  40. std::cout << "Z = " << m_Z << std::endl;
  41. }