CubbyFlow::SurfaceSet2 Class Referencefinal
2-D surface set. More...
#include <Core/Surface/SurfaceSet2.h>
Inheritance diagram for CubbyFlow::SurfaceSet2:
Classes | |
| class | Builder |
| Front-end to create SurfaceSet2 objects step by step. More... | |
Public Member Functions | |
| SurfaceSet2 () | |
| Constructs an empty surface set. More... | |
| SurfaceSet2 (const std::vector< Surface2Ptr > &others, const Transform2 &transform=Transform2(), bool isNormalFlipped=false) | |
| Constructs with a list of other surfaces. More... | |
| SurfaceSet2 (const SurfaceSet2 &other) | |
| Copy constructor. More... | |
| void | UpdateQueryEngine () override |
| Updates internal spatial query engine. More... | |
| size_t | NumberOfSurfaces () const |
| Returns the number of surfaces. More... | |
| const Surface2Ptr & | SurfaceAt (size_t i) const |
| Returns the i-th surface. More... | |
| void | AddSurface (const Surface2Ptr &surface) |
| Adds a surface instance. More... | |
Public Member Functions inherited from CubbyFlow::Surface2 | |
| Surface2 (const Transform2 &transform=Transform2(), bool isNormalFlipped=false) | |
| Constructs a surface with normal direction. More... | |
| Surface2 (const Surface2 &other) | |
| Copy constructor. More... | |
| virtual | ~Surface2 () |
| Default destructor. More... | |
| Vector2D | ClosestPoint (const Vector2D &otherPoint) const |
Returns the closest point from the given point otherPoint to the surface. More... | |
| BoundingBox2D | BoundingBox () const |
| Returns the bounding box of this surface object. More... | |
| bool | Intersects (const Ray2D &ray) const |
Returns true if the given ray intersects with this surface object. More... | |
| double | ClosestDistance (const Vector2D &otherPoint) const |
| SurfaceRayIntersection2 | ClosestIntersection (const Ray2D &ray) const |
Returns the closest intersection point for given ray. More... | |
| Vector2D | ClosestNormal (const Vector2D &otherPoint) const |
Static Public Member Functions | |
| static Builder | GetBuilder () |
| Returns builder for SurfaceSet2. More... | |
Additional Inherited Members | |
Public Attributes inherited from CubbyFlow::Surface2 | |
| Transform2 | transform |
| Local-to-world transform. More... | |
| bool | isNormalFlipped = false |
| Flips normal. More... | |
Detailed Description
2-D surface set.
This class represents 2-D surface set which extends Surface2 by overriding surface-related queries. This is class can hold a collection of other surface instances.
Constructor & Destructor Documentation
◆ SurfaceSet2() [1/3]
| CubbyFlow::SurfaceSet2::SurfaceSet2 | ( | ) |
Constructs an empty surface set.
◆ SurfaceSet2() [2/3]
|
explicit |
Constructs with a list of other surfaces.
◆ SurfaceSet2() [3/3]
| CubbyFlow::SurfaceSet2::SurfaceSet2 | ( | const SurfaceSet2 & | other | ) |
Copy constructor.
Member Function Documentation
◆ AddSurface()
| void CubbyFlow::SurfaceSet2::AddSurface | ( | const Surface2Ptr & | surface | ) |
Adds a surface instance.
◆ GetBuilder()
|
static |
Returns builder for SurfaceSet2.
◆ NumberOfSurfaces()
| size_t CubbyFlow::SurfaceSet2::NumberOfSurfaces | ( | ) | const |
Returns the number of surfaces.
◆ SurfaceAt()
| const Surface2Ptr& CubbyFlow::SurfaceSet2::SurfaceAt | ( | size_t | i | ) | const |
Returns the i-th surface.
◆ UpdateQueryEngine()
|
overridevirtual |
Updates internal spatial query engine.
Reimplemented from CubbyFlow::Surface2.
The documentation for this class was generated from the following file:
- Core/Surface/SurfaceSet2.h
Public Member Functions inherited from
1.8.14