public CircleMarker2D(OCAIS2D_InteractiveContext context, double x, double y, double radius) { base.SetContext(context); _xPos = x; _yPos = y; _radius = radius; _marker = new OCGraphic2d_Marker(this, 4, _xPos, _yPos, _radius, _radius, _radius); }
/// <summary> /// Moves the marker at the specified position. /// </summary> /// <param name="xPos"></param> /// <param name="yPos"></param> public void SetPosition(Double xPos, Double yPos) { if (_marker != null) { _xPos = xPos; _yPos = yPos; RemovePrimitive(_marker); _marker = new OCGraphic2d_Marker(this, 4, _xPos, _yPos, _radius, _radius, _radius); } }