Class Line

Inheritance Relationships

Base Type

Class Documentation

class Line : public BlamRendering::RenderStack::StackObjectBase

Class containing data for a Line object.

Public Functions

Line()

Sets the stack type, default starting/ending points, and default zone color.

~Line()

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 PokeLineTranslation()

Pokes the line start/end points to match the coordinates/area.

void SetThickness(float new_thickness)

Sets the thickness of the line.

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

Public Members

D2D1_POINT_2F start_point

The starting point of the line.

D2D1_POINT_2F end_point

The ending point of the line.

float thickness = 1

The line thickness.

bool show_zone = false

Whether or not to show the line area.

D2D1_COLOR_F zone_color

The color of the line area border.

float zone_thickness = 1

The thickness of the line area border.