OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::P2Circle Class Reference

円形の部品です。 More...

#include <P2Circle.hpp>

Inherits s3d::P2Shape.

Public Member Functions

SIV3D_NODISCARD_CXX20 P2Circle (b2Body &body, const Circle &circle, const P2Material &material, const P2Filter &filter, bool isSensor)
 円形の部品を作成します。(この関数は内部実装向けで、通常は使用しません) More...
 
P2ShapeType getShapeType () const noexcept override
 P2ShapeType::Circle を返します。 More...
 
const P2Shapedraw (const ColorF &color=Palette::White) const override
 部品を描画します。 More...
 
const P2ShapedrawFrame (double thickness, const ColorF &color=Palette::White) const override
 
const P2ShapedrawWireframe (double thickness, const ColorF &color=Palette::White) const override
 
Circle getCircle () const
 
- Public Member Functions inherited from s3d::P2Shape
virtual ~P2Shape ()=default
 
void setDensity (double density) noexcept
 
double getDensity () const noexcept
 
void setRestitution (double restitution) noexcept
 
double getRestitution () const noexcept
 
void setFriction (double friction) noexcept
 
double getFriction () const noexcept
 
void setRestitutionThreshold (double restitutionThreshold) noexcept
 
double getRestitutionThreshold () const noexcept
 
void setFilter (const P2Filter &filter) noexcept
 
P2Filter getFilter () const noexcept
 

Additional Inherited Members

- Protected Attributes inherited from s3d::P2Shape
Array< b2Fixture * > m_fixtures
 

Detailed Description

円形の部品です。

Constructor & Destructor Documentation

◆ P2Circle()

SIV3D_NODISCARD_CXX20 s3d::P2Circle::P2Circle ( b2Body &  body,
const Circle circle,
const P2Material material,
const P2Filter filter,
bool  isSensor 
)

円形の部品を作成します。(この関数は内部実装向けで、通常は使用しません)

Parameters
body
circle
material
filter
isSensor

Member Function Documentation

◆ draw()

const P2Shape& s3d::P2Circle::draw ( const ColorF color = Palette::White) const
overridevirtual

部品を描画します。

Parameters
color
Returns
*this

Implements s3d::P2Shape.

◆ drawFrame()

const P2Shape& s3d::P2Circle::drawFrame ( double  thickness,
const ColorF color = Palette::White 
) const
overridevirtual

Implements s3d::P2Shape.

◆ drawWireframe()

const P2Shape& s3d::P2Circle::drawWireframe ( double  thickness,
const ColorF color = Palette::White 
) const
overridevirtual

Implements s3d::P2Shape.

◆ getCircle()

Circle s3d::P2Circle::getCircle ( ) const

◆ getShapeType()

P2ShapeType s3d::P2Circle::getShapeType ( ) const
overridevirtualnoexcept

P2ShapeType::Circle を返します。

Returns
P2ShapeType::Circle

Implements s3d::P2Shape.


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