Class Ellipse

Inheritance Relationships

Base Type

Class Documentation

class Ellipse : public BlamRendering::RenderStack::StackObjectBase

Class containing data for an Ellipse object.

The area property of StackObjectBase goes is unused.

Public Functions

Ellipse()

Sets the stack type, default fill color, ellipse origin point, and ellipse radius.

~Ellipse()

Empty destructor.

void Draw()

Draws the stack object.

Specific functionality may vary depending on the type of object.

void ShowImPropertyEditor()

Shows a set of ImGUI properties associated with the object.

This will call functions to draw only the property controls for the item, and nothing else. The window/container for the properties must be handled externally.

void SetThickness(float new_thickness)

Sets the thickness of the ellipse’s border.

Parameters
  • new_thickness: - The new thickness of the border.

void PokeEllipseTranslation()

Updates the ellipse origin point based on the x/y coordinates.

Public Members

float thickness = 1

The current border thickness.

D2D1_COLOR_F fill_color

The current fill color.

D2D1_ELLIPSE ellipse

The data for the ellipse.