SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | List of all members
smtk::geometry::DistanceTo Struct Referenceabstract

An API for computing the shortest distance between an input point and a geometric resource component. More...

#include <DistanceTo.h>

Inheritance diagram for smtk::geometry::DistanceTo:
[legend]
Collaboration diagram for smtk::geometry::DistanceTo:
[legend]

Public Member Functions

virtual std::pair< double, std::array< double, 3 > > operator() (const smtk::resource::Component::Ptr &, const std::array< double, 3 > &) const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from smtk::resource::query::DerivedFrom< DistanceTo, smtk::resource::query::Query >
static std::size_t typeIndex ()
 
- Static Public Member Functions inherited from smtk::resource::query::Query
static std::size_t typeIndex ()
 
- Protected Types inherited from smtk::resource::query::DerivedFrom< DistanceTo, smtk::resource::query::Query >
typedef smtk::resource::query::Query Parent
 
- Static Protected Member Functions inherited from smtk::resource::query::DerivedFrom< DistanceTo, smtk::resource::query::Query >
static int numberOfGenerationsFromType (const std::size_t index)
 Return the number of generations from this instance to the type index of a parent, or return a large negative number if the two types are unrelated.
 
- Static Protected Member Functions inherited from smtk::resource::query::Query
static int numberOfGenerationsFromType (const std::size_t index)
 

Detailed Description

An API for computing the shortest distance between an input point and a geometric resource component.

The location of the point on the component is also returned. This query differs from ClosestPoint in that the returned point does not need to be explicitly contained within the geometric representation.


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