pfodParser 3.61.0 The pfodParser library is handles commands sent from the Android pfodApp, pfodApp supports WiFi, BLE, Bluetooth and SMS connections

pfodDwgs.h
Go to the documentation of this file.
1 #ifndef pfodDwgs_h
2 #define pfodDwgs_h
3 /*
4 * (c)2014-2017 Forward Computing and Control Pty. Ltd.
5 * NSW Australia, www.forward.com.au
6 * This code is not warranted to be fit for any purpose. You may only use it at your own risk.
7 * This code may be freely used for both private and commercial use
8 * Provide this copyright is maintained.
9 */
10 #include <stdint.h>
11 #include <Arduino.h>
12 #include "dwgs/pfodAutoCmd.h"
13 #include "dwgs/pfodAutoIdx.h"
14 #include "dwgs/pfodDwgsBase.h"
15 #include "dwgs/pfodCircle.h"
16 #include "dwgs/pfodRectangle.h"
17 #include "dwgs/pfodLabel.h"
18 #include "dwgs/pfodTouchZone.h"
19 #include "dwgs/pfodTouchAction.h"
20 #include "dwgs/pfodTouchActionInput.h"
21 #include "dwgs/pfodLine.h"
22 #include "dwgs/pfodArc.h"
23 #include "dwgs/pfodErase.h"
24 #include "dwgs/pfodHide.h"
25 #include "dwgs/pfodUnhide.h"
26 #include "dwgs/pfodIndex.h"
27 #include "dwgs/pfodInsertDwg.h"
28
29
30 class pfodDwgs : public pfodDwgsBase {
31 public:
32
33 // returns the first index of the reserved ones
34 static int reserveIdx(int numToReserve);
35
36 pfodDwgs(Print *out);
37 void start(int cols, int rows, int backgroundColor = WHITE, uint8_t moreData = 0);
38 void startUpdate(uint8_t moreData = 0);
39 void end();
40 void pushZero(double col, double row = 0.0, double scale = 1.0);
41 void popZero(); // restore previous zero
42 pfodRectangle& rectangle();
43 pfodCircle& circle();
44 pfodLabel& label();
45 pfodTouchZone& touchZone();
46 pfodTouchAction& touchAction();
47 pfodTouchActionInput& touchActionInput();
48 pfodInsertDwg& insertDwg();
49 pfodLine& line();
50 pfodArc& arc();
51 pfodErase& erase();
52 pfodHide& hide();
53 pfodUnhide& unhide();
54 pfodIndex& index();
55
56 // utilies for finding the x,y location at the end of a radius of a given angle
57 // the x position at the end of this radius at this angle
58 float xRadius(float angle, float radius);
59 // the y position at the end of this radius at this angle
60 float yRadius(float angle, float radius);
61
62
63 protected:
64 struct pfodDwgVALUES values;
65
66 private:
67 pfodCircle c;
68 pfodRectangle r;
69 pfodLabel t;
70 pfodTouchZone x;
71 pfodTouchAction X;
72 pfodTouchActionInput XI;
73 pfodLine l;
74 pfodArc a;
75 pfodErase e;
76 pfodHide h;
77 pfodUnhide u;
78 pfodIndex i;
79 pfodInsertDwg d;
80 static int _idx;
81
82 };
83 #endif // pfodDwgs_h
pfodDwgs
Definition: pfodDwgs.h:30
pfodDwgs::hide
pfodHide & hide()
pfodDwgs::xRadius
float xRadius(float angle, float radius)
pfodDwgs::end
void end()
pfodDwgs::yRadius
float yRadius(float angle, float radius)
pfodDwgs::pushZero
void pushZero(double col, double row=0.0, double scale=1.0)
pfodDwgs::pfodDwgs
pfodDwgs(Print *out)
pfodDwgs::arc
pfodArc & arc()
pfodDwgs::touchAction
pfodTouchAction & touchAction()
pfodDwgs::touchActionInput
pfodTouchActionInput & touchActionInput()
pfodDwgs::index
pfodIndex & index()
pfodDwgs::line
pfodLine & line()
pfodDwgs::label
pfodLabel & label()
pfodDwgs::reserveIdx
static int reserveIdx(int numToReserve)
pfodDwgs::start
void start(int cols, int rows, int backgroundColor=WHITE, uint8_t moreData=0)
pfodDwgs::startUpdate
void startUpdate(uint8_t moreData=0)
pfodDwgs::values
struct pfodDwgVALUES values
Definition: pfodDwgs.h:64
pfodDwgs::erase
pfodErase & erase()
pfodDwgs::rectangle
pfodRectangle & rectangle()
pfodDwgs::touchZone
pfodTouchZone & touchZone()
pfodDwgs::popZero
void popZero()
pfodDwgs::circle
pfodCircle & circle()
pfodDwgs::unhide
pfodUnhide & unhide()
pfodDwgs::insertDwg
pfodInsertDwg & insertDwg()