⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ray.bak

📁 《BATTLE OF SKY》
💻 BAK
字号:
#ifndef RAYSEGMENT_H
#define RAYSEGMENT_H

#include "wobject.h"

class RaySegment : public WindowObject {
   public:
      RaySegment(SimpleWindow &w, const Position &StartPoint,
       const Position &EndPoint, const color &c = Black,
       float Thickness = 0.1f, bool Arrowhead = false);
      RaySegment(SimpleWindow &w, float StartX, float StartY,
       float EndX, float EndY, const color &c = Black,
       float Thickness = 0.1f, bool Arrowhead = false);
      Position GetStartPoint() const;
      void GetStartPoint(float &x, float &y) const;
      Position GetEndPoint() const;
      void GetEndPoint(float &x, float &y) const;
      void GetPoints(Position &Start, Position &End) const;
      color GetColor() const;
      float GetThickness() const;
      float GetLength() const;
      bool HasArrow() const;
      void SetStartPoint(const Position &p);
      void SetStartPoint(float x, float y);
      void SetEndPoint(const Position &p);
      void SetEndPoint(float x, float y);
      void SetPoints(const Position &StartPoint,
       const Position &EndPoint);
      void SetColor(const color &c);
      void SetThickness(float t);
      void SetArrowhead();
      void ClearArrowhead();
      void Draw();
      void Erase();
   private:
      Position DrawArrow(const color &c);
      Position EndPoint;
      float Thickness;
      color Color;
      bool Arrow;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -