Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
BlamRendering::RenderStack::Ellipse Class Reference

Class containing data for an Ellipse object. More...

#include <render_stack.h>

+ Inheritance diagram for BlamRendering::RenderStack::Ellipse:

Public Member Functions

 Ellipse ()
 Sets the stack type, default fill color, ellipse origin point, and ellipse radius. More...
 
 ~Ellipse ()
 Empty destructor. More...
 
void Draw ()
 Draws the stack object. More...
 
void ShowImPropertyEditor ()
 Shows a set of ImGUI properties associated with the object. More...
 
void SetThickness (float new_thickness)
 Sets the thickness of the ellipse's border. More...
 
void PokeEllipseTranslation ()
 Updates the ellipse origin point based on the x/y coordinates. More...
 
- Public Member Functions inherited from BlamRendering::RenderStack::StackObjectBase
 StackObjectBase ()
 Sets default values and provides a default ID to be used if none is provided. More...
 
 ~StackObjectBase ()
 Empty destructor. More...
 
virtual void HandleResize ()
 Called upon window resize events. More...
 
void SetArea (float new_area[4])
 Sets the area of the object. More...
 
void SetArea (float top, float bottom, float left, float right)
 Sets the area of the object. More...
 
void SetArea (D2D1_RECT_F new_area)
 Sets the area of the object. More...
 
void SetColor (float new_color[3])
 Sets the color of the object. More...
 
void SetColor (float r, float g, float b)
 Sets the color of the object. More...
 
void SetColor (float r, float g, float b, float a)
 Sets the color of the object. More...
 
void SetColor (D2D1::ColorF color)
 Sets the color of the object. More...
 
void SetZOrder (int z)
 Sets the Z-Order of the object. More...
 
void SetTranslation (float new_x, float new_y)
 Sets the translation of the object. More...
 
void PokeTranslation ()
 Updates the area of the object to account for any x/y coordinate changes. More...
 
void SetSize (float new_width, float new_height)
 Sets the size of the object. More...
 
void PokeSize ()
 Updates the area of the object to account for any width/height changes. More...
 
void ValidateSizeAndTranslation ()
 Validates X/Y coordinates and Width/Height sizes after the area has been modified. More...
 
std::string GetType ()
 Retrieves the type of item that this stack object is. More...
 
std::string GetDrawModeLabel ()
 Retrieves the current drawing mode of the object. More...
 

Public Attributes

float thickness = 1
 The current border thickness. More...
 
D2D1_COLOR_F fill_color
 The current fill color. More...
 
D2D1_ELLIPSE ellipse
 The data for the ellipse. More...
 
- Public Attributes inherited from BlamRendering::RenderStack::StackObjectBase
D2D1_RECT_F area
 The area of the object. More...
 
D2D1_COLOR_F color
 The color of the object. More...
 
int z_order = 0
 The Z-Order of the object. More...
 
StackType type_label = STACKTYPE_GENERIC
 The type of the object. More...
 
StackItemDrawMode draw_mode = DEFAULT_DRAWMODE
 The drawing mode of the object. More...
 
bool visible = true
 Whether or not the object is visible. More...
 
float x = 0
 The X coordinate of the object. More...
 
float y = 0
 The Y coordinate of the object. More...
 
float width = 100
 The width of the object. More...
 
float height = 100
 The height of the object. More...
 
std::string unique_id = ""
 The unique ID of this object. More...
 

Detailed Description

Class containing data for an Ellipse object.

The area property of StackObjectBase goes is unused.

Constructor & Destructor Documentation

◆ Ellipse()

BlamRendering::RenderStack::Ellipse::Ellipse ( )
inline

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

◆ ~Ellipse()

BlamRendering::RenderStack::Ellipse::~Ellipse ( )
inline

Empty destructor.

Member Function Documentation

◆ Draw()

void BlamRendering::RenderStack::Ellipse::Draw ( )
virtual

Draws the stack object.

Specific functionality may vary depending on the type of object.

Reimplemented from BlamRendering::RenderStack::StackObjectBase.

◆ PokeEllipseTranslation()

void BlamRendering::RenderStack::Ellipse::PokeEllipseTranslation ( )

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

◆ SetThickness()

void BlamRendering::RenderStack::Ellipse::SetThickness ( float  new_thickness)

Sets the thickness of the ellipse's border.

Parameters
new_thickness- The new thickness of the border.

◆ ShowImPropertyEditor()

void BlamRendering::RenderStack::Ellipse::ShowImPropertyEditor ( )
virtual

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.

Reimplemented from BlamRendering::RenderStack::StackObjectBase.

Member Data Documentation

◆ ellipse

D2D1_ELLIPSE BlamRendering::RenderStack::Ellipse::ellipse

The data for the ellipse.

◆ fill_color

D2D1_COLOR_F BlamRendering::RenderStack::Ellipse::fill_color

The current fill color.

◆ thickness

float BlamRendering::RenderStack::Ellipse::thickness = 1

The current border thickness.


The documentation for this class was generated from the following files: