Jet  v1.3.3
Classes | Public Member Functions | Static Public Member Functions | List of all members
jet::ImplicitSurfaceSet2 Class Referencefinal

2-D implicit surface set. More...

#include <jet/implicit_surface_set2.h>

Inheritance diagram for jet::ImplicitSurfaceSet2:
jet::ImplicitSurface2 jet::Surface2

Classes

class  Builder
 Front-end to create ImplicitSurfaceSet2 objects step by step. More...
 

Public Member Functions

 ImplicitSurfaceSet2 ()
 Constructs an empty implicit surface set. More...
 
 ImplicitSurfaceSet2 (const std::vector< ImplicitSurface2Ptr > &surfaces, const Transform2 &transform=Transform2(), bool isNormalFlipped=false)
 Constructs an implicit surface set using list of other surfaces. More...
 
 ImplicitSurfaceSet2 (const std::vector< Surface2Ptr > &surfaces, const Transform2 &transform=Transform2(), bool isNormalFlipped=false)
 Constructs an implicit surface set using list of other surfaces. More...
 
 ImplicitSurfaceSet2 (const ImplicitSurfaceSet2 &other)
 Copy constructor. More...
 
void updateQueryEngine () override
 Updates internal spatial query engine. More...
 
bool isBounded () const override
 Returns true if bounding box can be defined. More...
 
bool isValidGeometry () const override
 Returns true if the surface is a valid geometry. More...
 
size_t numberOfSurfaces () const
 Returns the number of implicit surfaces. More...
 
const ImplicitSurface2PtrsurfaceAt (size_t i) const
 Returns the i-th implicit surface. More...
 
void addExplicitSurface (const Surface2Ptr &surface)
 Adds an explicit surface instance. More...
 
void addSurface (const ImplicitSurface2Ptr &surface)
 Adds an implicit surface instance. More...
 
- Public Member Functions inherited from jet::ImplicitSurface2
 ImplicitSurface2 (const Transform2 &transform=Transform2(), bool isNormalFlipped=false)
 Default constructor. More...
 
 ImplicitSurface2 (const ImplicitSurface2 &other)
 Copy constructor. More...
 
virtual ~ImplicitSurface2 ()
 Default destructor. More...
 
double signedDistance (const Vector2D &otherPoint) const
 Returns signed distance from the given point otherPoint. More...
 
- Public Member Functions inherited from jet::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
 
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
 
bool isInside (const Vector2D &otherPoint) const
 

Static Public Member Functions

static Builder builder ()
 Returns builder fox ImplicitSurfaceSet2. More...
 

Additional Inherited Members

- Public Attributes inherited from jet::Surface2
Transform2 transform
 Local-to-world transform. More...
 
bool isNormalFlipped = false
 Flips normal. More...
 

Detailed Description

2-D implicit surface set.

This class represents 2-D implicit surface set which extends ImplicitSurface2 by overriding implicit surface-related quries. This is class can hold a collection of other implicit surface instances.

Constructor & Destructor Documentation

◆ ImplicitSurfaceSet2() [1/4]

jet::ImplicitSurfaceSet2::ImplicitSurfaceSet2 ( )

Constructs an empty implicit surface set.

◆ ImplicitSurfaceSet2() [2/4]

jet::ImplicitSurfaceSet2::ImplicitSurfaceSet2 ( const std::vector< ImplicitSurface2Ptr > &  surfaces,
const Transform2 transform = Transform2(),
bool  isNormalFlipped = false 
)

Constructs an implicit surface set using list of other surfaces.

◆ ImplicitSurfaceSet2() [3/4]

jet::ImplicitSurfaceSet2::ImplicitSurfaceSet2 ( const std::vector< Surface2Ptr > &  surfaces,
const Transform2 transform = Transform2(),
bool  isNormalFlipped = false 
)

Constructs an implicit surface set using list of other surfaces.

◆ ImplicitSurfaceSet2() [4/4]

jet::ImplicitSurfaceSet2::ImplicitSurfaceSet2 ( const ImplicitSurfaceSet2 other)

Copy constructor.

Member Function Documentation

◆ addExplicitSurface()

void jet::ImplicitSurfaceSet2::addExplicitSurface ( const Surface2Ptr surface)

Adds an explicit surface instance.

◆ addSurface()

void jet::ImplicitSurfaceSet2::addSurface ( const ImplicitSurface2Ptr surface)

Adds an implicit surface instance.

◆ builder()

static Builder jet::ImplicitSurfaceSet2::builder ( )
static

Returns builder fox ImplicitSurfaceSet2.

◆ isBounded()

bool jet::ImplicitSurfaceSet2::isBounded ( ) const
overridevirtual

Returns true if bounding box can be defined.

Reimplemented from jet::Surface2.

◆ isValidGeometry()

bool jet::ImplicitSurfaceSet2::isValidGeometry ( ) const
overridevirtual

Returns true if the surface is a valid geometry.

Reimplemented from jet::Surface2.

◆ numberOfSurfaces()

size_t jet::ImplicitSurfaceSet2::numberOfSurfaces ( ) const

Returns the number of implicit surfaces.

◆ surfaceAt()

const ImplicitSurface2Ptr& jet::ImplicitSurfaceSet2::surfaceAt ( size_t  i) const

Returns the i-th implicit surface.

◆ updateQueryEngine()

void jet::ImplicitSurfaceSet2::updateQueryEngine ( )
overridevirtual

Updates internal spatial query engine.

Reimplemented from jet::Surface2.


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