MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / wxShape

Method wxShape

ogl/basic.cpp:263–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261IMPLEMENT_ABSTRACT_CLASS(wxShape, wxShapeEvtHandler)
262
263wxShape::wxShape(wxShapeCanvas *can)
264{
265 m_eventHandler = this;
266 SetShape(this);
267 m_id = 0;
268 m_formatted = false;
269 m_canvas = can;
270 m_xpos = 0.0; m_ypos = 0.0;
271 m_pen = g_oglBlackPen;
272 m_brush = wxWHITE_BRUSH;
273 m_font = g_oglNormalFont;
274 m_textColour = "BLACK";
275 m_textColourName = "BLACK";
276 m_visible = false;
277 m_selected = false;
278 m_attachmentMode = ATTACHMENT_MODE_NONE;
279 m_spaceAttachments = true;
280 m_disableLabel = false;
281 m_fixedWidth = false;
282 m_fixedHeight = false;
283 m_drawHandles = true;
284 m_sensitivity = OP_ALL;
285 m_draggable = true;
286 m_parent = NULL;
287 m_formatMode = FORMAT_CENTRE_HORIZ | FORMAT_CENTRE_VERT;
288 m_shadowMode = SHADOW_NONE;
289 m_shadowOffsetX = 6;
290 m_shadowOffsetY = 6;
291 m_shadowBrush = wxBLACK_BRUSH;
292 m_textMarginX = 5;
293 m_textMarginY = 5;
294 m_regionName = "0";
295 m_centreResize = true;
296 m_maintainAspectRatio = false;
297 m_highlighted = false;
298 m_rotation = 0.0;
299 m_branchNeckLength = 10;
300 m_branchStemLength = 10;
301 m_branchSpacing = 10;
302 m_branchStyle = BRANCHING_ATTACHMENT_NORMAL;
303
304 // Set up a default region. Much of the above will be put into
305 // the region eventually (the duplication is for compatibility)
306 wxShapeRegion *region = new wxShapeRegion;
307 m_regions.Append(region);
308 region->SetName("0");
309 region->SetFont(g_oglNormalFont);
310 region->SetFormatMode(FORMAT_CENTRE_HORIZ | FORMAT_CENTRE_VERT);
311 region->SetColour("BLACK");
312}
313
314wxShape::~wxShape()
315{

Callers

nothing calls this directly

Calls 6

SetShapeFunction · 0.85
AppendMethod · 0.80
SetColourMethod · 0.80
SetNameMethod · 0.45
SetFontMethod · 0.45
SetFormatModeMethod · 0.45

Tested by

no test coverage detected