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

#include <P2LineString.hpp>

Inherits s3d::P2Shape.

Public Member Functions

SIV3D_NODISCARD_CXX20 P2LineString (b2Body &body, const LineString &lines, CloseRing closeRing, OneSided oneSided, const P2Material &material, const P2Filter &filter)
 
P2ShapeType getShapeType () const noexcept override
 
bool isClosed () const noexcept
 
bool isOneSided () const noexcept
 
const P2Shapedraw (const ColorF &color=Palette::White) const override
 
const P2ShapedrawFrame (double thickness, const ColorF &color=Palette::White) const override
 
const P2ShapedrawWireframe (double thickness, const ColorF &color=Palette::White) const override
 
const LineStringgetLineString () 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
 

Constructor & Destructor Documentation

◆ P2LineString()

SIV3D_NODISCARD_CXX20 s3d::P2LineString::P2LineString ( b2Body &  body,
const LineString lines,
CloseRing  closeRing,
OneSided  oneSided,
const P2Material material,
const P2Filter filter 
)

Member Function Documentation

◆ draw()

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

Implements s3d::P2Shape.

◆ drawFrame()

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

Implements s3d::P2Shape.

◆ drawWireframe()

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

Implements s3d::P2Shape.

◆ getLineString()

const LineString& s3d::P2LineString::getLineString ( ) const

◆ getShapeType()

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

Implements s3d::P2Shape.

◆ isClosed()

bool s3d::P2LineString::isClosed ( ) const
noexcept

◆ isOneSided()

bool s3d::P2LineString::isOneSided ( ) const
noexcept

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