Shape Class Reference

Geometry Lib: Shape Class Reference
Geometry Lib

A shape. More...

#include <shape.hpp>

Inheritance diagram for Shape:
[legend]
Collaboration diagram for Shape:
[legend]

Classes

struct  Properties
 Shape properties. More...
 

Public Member Functions

 Shape (Properties properties)
 Construct a new Shape object. More...
 
virtual uint edges () const =0
 Shape's number of edges. More...
 
const Propertiesproperties () const
 Getter for properties_. More...
 

Protected Attributes

Properties properties_
 

Detailed Description

A shape.

Constructor & Destructor Documentation

◆ Shape()

Shape::Shape ( Properties  properties)
inline

Construct a new Shape object.

Parameters
propertiesShape properties

Member Function Documentation

◆ edges()

virtual uint Shape::edges ( ) const
pure virtual

Shape's number of edges.

Returns
uint

Implemented in Rectangle, and Circle.

◆ properties()

const Properties& Shape::properties ( ) const
inline

Getter for properties_.

Returns
const Properties&

Member Data Documentation

◆ properties_

Properties Shape::properties_
protected

Shape properties.


The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/doxysphinx-demo/checkouts/latest/geometry_lib/include/geometry/shape.hpp