CubbyFlow::Box2::Builder Class Referencefinal

Front-end to create Box2 objects step by step. More...

#include <Core/Geometry/Box2.h>

Inheritance diagram for CubbyFlow::Box2::Builder:
CubbyFlow::SurfaceBuilderBase2< Box2::Builder >

Public Member Functions

BuilderWithLowerCorner (const Vector2D &pt)
 Returns builder with lower corner set. More...
 
BuilderWithUpperCorner (const Vector2D &pt)
 Returns builder with upper corner set. More...
 
BuilderWithBoundingBox (const BoundingBox2D &bbox)
 Returns builder with bounding box. More...
 
Box2 Build () const
 Builds Box2. More...
 
Box2Ptr MakeShared () const
 Builds shared pointer of Box2 instance. More...
 
- Public Member Functions inherited from CubbyFlow::SurfaceBuilderBase2< Box2::Builder >
Box2::BuilderWithIsNormalFlipped (bool isNormalFlipped)
 Returns builder with flipped normal flag. More...
 
Box2::BuilderWithTranslation (const Vector2D &translation)
 Returns builder with translation. More...
 
Box2::BuilderWithOrientation (double orientation)
 Returns builder with orientation. More...
 
Box2::BuilderWithTransform (const Transform2 &transform)
 Returns builder with transform. More...
 

Additional Inherited Members

- Protected Attributes inherited from CubbyFlow::SurfaceBuilderBase2< Box2::Builder >
bool m_isNormalFlipped
 
Transform2 m_transform
 

Detailed Description

Front-end to create Box2 objects step by step.

Member Function Documentation

◆ Build()

Box2 CubbyFlow::Box2::Builder::Build ( ) const

Builds Box2.

◆ MakeShared()

Box2Ptr CubbyFlow::Box2::Builder::MakeShared ( ) const

Builds shared pointer of Box2 instance.

◆ WithBoundingBox()

Builder& CubbyFlow::Box2::Builder::WithBoundingBox ( const BoundingBox2D bbox)

Returns builder with bounding box.

◆ WithLowerCorner()

Builder& CubbyFlow::Box2::Builder::WithLowerCorner ( const Vector2D pt)

Returns builder with lower corner set.

◆ WithUpperCorner()

Builder& CubbyFlow::Box2::Builder::WithUpperCorner ( const Vector2D pt)

Returns builder with upper corner set.


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