File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/config/TeX-MML-AM_CHTML/MathJax.js
DGtal 2.0.0
DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger > Struct Template Reference

Aim: It is just a helper class for BoundedLatticePolytope to add dimension specific static methods. More...

#include <DGtal/geometry/volumes/BoundedLatticePolytope.h>

Inheritance diagram for DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >:
[legend]

Public Types

typedef TInteger Integer
typedef SpaceND< N, IntegerSpace
typedef Space::Point Point
typedef Space::Vector Vector
typedef BoundedLatticePolytope< SpacePolytope

Static Public Member Functions

static void addEdgeConstraint (Polytope &, unsigned int, unsigned int, const std::vector< Point > &)
static Vector crossProduct (const Vector &, const Vector &)

Static Public Attributes

static const Dimension dimension = Space::dimension

Detailed Description

template<DGtal::Dimension N, typename TInteger>
struct DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >

Aim: It is just a helper class for BoundedLatticePolytope to add dimension specific static methods.

Description of template class 'BoundedLatticePolytopeSpecializer'

Template Parameters
Nthe dimension of the polytope.
TIntegerany model of integer.

Definition at line 882 of file BoundedLatticePolytope.h.

Member Typedef Documentation

◆ Integer

template<DGtal::Dimension N, typename TInteger>
typedef TInteger DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >::Integer

Definition at line 883 of file BoundedLatticePolytope.h.

◆ Point

template<DGtal::Dimension N, typename TInteger>
typedef Space::Point DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >::Point

Definition at line 885 of file BoundedLatticePolytope.h.

◆ Polytope

template<DGtal::Dimension N, typename TInteger>
typedef BoundedLatticePolytope< Space > DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >::Polytope

Definition at line 887 of file BoundedLatticePolytope.h.

◆ Space

template<DGtal::Dimension N, typename TInteger>
typedef SpaceND< N, Integer> DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >::Space

Definition at line 884 of file BoundedLatticePolytope.h.

◆ Vector

template<DGtal::Dimension N, typename TInteger>
typedef Space::Vector DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >::Vector

Definition at line 886 of file BoundedLatticePolytope.h.

Member Function Documentation

◆ addEdgeConstraint()

template<DGtal::Dimension N, typename TInteger>
void DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >::addEdgeConstraint ( Polytope & ,
unsigned int ,
unsigned int ,
const std::vector< Point > &  )
inlinestatic

Not implemented generic method.

This method add extremal constraints for simplex edges, faces, etc. Each constraint is a half-space bounded by the edge, face, etc, and one axis. Such constraints are useful when computing the Minkowski sum.

Note
This method is useful starting from 3D, where it is implemented in the specialization of this class.

Definition at line 903 of file BoundedLatticePolytope.h.

905 {
906 trace.error() << "[BoundedLatticePolytopeHelper::addEdgeConstraint]"
907 << " this method is only implemented in 3D." << std::endl;
908 }
Aim: It is just a helper class for BoundedLatticePolytope to add dimension specific static methods.

References DGtal::trace.

◆ crossProduct()

template<DGtal::Dimension N, typename TInteger>
Vector DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >::crossProduct ( const Vector & ,
const Vector &  )
inlinestatic

Generic method for cross product, only implemented in 3D.

Returns
their cross product.

Definition at line 913 of file BoundedLatticePolytope.h.

914 {
915 trace.error() << "[BoundedLatticePolytopeHelper::crossProduct]"
916 << " this method is only implemented in 3D." << std::endl;
917 return Vector::zero;
918 }

References DGtal::trace, and DGtal::PointVector< dim, Integer >::zero.

Field Documentation

◆ dimension

template<DGtal::Dimension N, typename TInteger>
const Dimension DGtal::detail::BoundedLatticePolytopeSpecializer< N, TInteger >::dimension = Space::dimension
static

Definition at line 888 of file BoundedLatticePolytope.h.


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