SAGA API Version 9.14
Loading...
Searching...
No Matches
map_shapes_point.cpp File Reference
#include "../dc_helper.h"
#include "map_symbology.h"
#include "map_layer.h"
#include <wx/filename.h>
#include "../saga_gui/res/xpm/default.xpm"

Go to the source code of this file.

Macros

#define SYMBOL_TYPE_Image   13
#define SYMBOL_TYPE_Arrow   14
#define SYMBOL_TYPE_Beachball   15
#define DRAW_CIRCLE(d)
#define DRAW_SQUARE(d)
#define DRAW_RHOMBUS(d)
#define DRAW_TRIANGLE_UP(d)
#define DRAW_TRIANGLE_DOWN(d)
#define ROTATE(i)

Macro Definition Documentation

◆ DRAW_CIRCLE

#define DRAW_CIRCLE ( d)
Value:
{ int s = d == 1. ? Size : (int)((d) * Size);\
dc.DrawCircle(x, y, s);\
}

Definition at line 654 of file map_shapes_point.cpp.

Referenced by CSG_Map_Shapes_Point::Draw_Symbol(), and CSG_Map_Shapes_Point::Draw_Symbol().

◆ DRAW_RHOMBUS

#define DRAW_RHOMBUS ( d)
Value:
{ int s = d == 1. ? Size : (int)((d) * Size); wxPoint p[4];\
p[0].y = p[2].y = y;\
p[1].x = p[3].x = x;\
p[0].x = x - s;\
p[2].x = x + s;\
p[1].y = y - s;\
p[3].y = y + s;\
dc.DrawPolygon(4, p);\
}

Definition at line 664 of file map_shapes_point.cpp.

Referenced by CSG_Map_Shapes_Point::Draw_Symbol(), and CSG_Map_Shapes_Point::Draw_Symbol().

◆ DRAW_SQUARE

#define DRAW_SQUARE ( d)
Value:
{ int s = d == 1. ? Size : (int)((d) * Size);\
dc.DrawRectangle(x - s, y - s, 1 + 2 * s, 1 + 2 * s);\
}

Definition at line 659 of file map_shapes_point.cpp.

Referenced by CSG_Map_Shapes_Point::Draw_Symbol(), and CSG_Map_Shapes_Point::Draw_Symbol().

◆ DRAW_TRIANGLE_DOWN

#define DRAW_TRIANGLE_DOWN ( d)
Value:
{ int s = d == 1. ? Size : (int)((d) * Size); wxPoint p[3];\
p[0].y = p[1].y = y - (s / 2);\
p[2].y = y + (s - 1);\
p[0].x = x - (int)(0.8660254038 * s);\
p[1].x = x + (int)(0.8660254038 * s);\
p[2].x = x;\
dc.DrawPolygon(3, p);\
}

Definition at line 685 of file map_shapes_point.cpp.

Referenced by CSG_Map_Shapes_Point::Draw_Symbol(), and CSG_Map_Shapes_Point::Draw_Symbol().

◆ DRAW_TRIANGLE_UP

#define DRAW_TRIANGLE_UP ( d)
Value:
{ int s = d == 1. ? Size : (int)((d) * Size); wxPoint p[3];\
p[0].y = p[1].y = y + (s / 2);\
p[2].y = y - (s - 1);\
p[0].x = x - (int)(0.8660254038 * s);\
p[1].x = x + (int)(0.8660254038 * s);\
p[2].x = x;\
dc.DrawPolygon(3, p);\
}

Definition at line 675 of file map_shapes_point.cpp.

Referenced by CSG_Map_Shapes_Point::Draw_Symbol(), and CSG_Map_Shapes_Point::Draw_Symbol().

◆ ROTATE

#define ROTATE ( i)
Value:
{\
x + (int)(Template[i][0] * cos_a + Template[i][1] * sin_a),\
y + (int)(Template[i][1] * cos_a - Template[i][0] * sin_a) }

◆ SYMBOL_TYPE_Arrow

◆ SYMBOL_TYPE_Beachball

◆ SYMBOL_TYPE_Image