summaryrefslogtreecommitdiffstats
path: root/tksao/frame/baseline.h
blob: e28278277bedd503898e71149c7a035ab5b12e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (C) 1999-2018
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __baseline_h__
#define __baseline_h__

#include "marker.h"

class BaseLine : public Marker {
protected:
  Vector p1;
  Vector p2;

  void renderXInclude(Drawable, Coord::InternalSystem, RenderMode) {}

  void renderPSInclude(int) {}

#ifdef MAC_OSX_TK
  void renderMACOSXInclude() {}
#endif

#ifdef __WIN32
  void renderWIN32Include() {}
#endif

  void updateHandles() {}

public:
  BaseLine(Base* p, const Vector& ptr1, const Vector& ptr2);
  BaseLine(Base* p, const Vector& ptr1, const Vector& ptr2,
	   const char* clr, int* dsh, 
	   int wth, const char* fnt, const char* txt,
	   unsigned short prop, const char* cmt, 
	   const List<Tag>& tg, const List<CallBack>& cb);
  BaseLine(const BaseLine&);

  virtual void updateCoords(const Matrix&);
  virtual int isIn(const Vector&);

  void centroid();
  void move(const Vector&);
  void moveTo(const Vector&);
  virtual void edit(const Vector&, int);

  void rotateBegin() {}
  void rotate(const Vector& v, int h) {}
  void rotateEnd() {}

  const Vector& getP1() {return p1;}
  const Vector& getP2() {return p2;}
  void setPoints(const Vector&, const Vector&);

  // special composite funtionality
  void setComposite(const Matrix&, double);
};

#endif