-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTree.h
More file actions
49 lines (41 loc) · 900 Bytes
/
Tree.h
File metadata and controls
49 lines (41 loc) · 900 Bytes
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
// Tree.h
#ifndef TREE_H
#define TREE_H
#include "Branch.h"
#include <vector>
using namespace std;
class Tree
{
private:
bool hidden;
int tiers, order, index;
double angle;
double rbranch, mbranch;
double rleaves, mleaves;
vector< vector< Branch* > > branches;
Plot* plot;
public:
Tree( double x0, double y0, double z0, double r0, double th0, double ph0,
int tiers, int order, double angle, double rbranch, double mbranch, double rleaves, double mleaves );
~Tree();
void init();
void list();
void resize();
int leaves();
double volume();
void set_tiers( int tiers );
void set_order( int order );
void strahler();
void progeny();
void random( int min );
void show();
void update();
void hide();
int get_branches();
int get_tiers();
double get_height();
double get_width();
bool toggle();
void NewBranch( Branch* branch );
};
#endif