[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

details StarPolytope< N, T > Class Template Reference VIGRA

Specialization of the polytope to polytopes which forms a star domain. More...

#include <vigra/polytope.hxx>

Inheritance diagram for StarPolytope< N, T >:
Polytope< N, T > ConvexPolytope< N, T >

Public Member Functions

virtual node_type addFacet (const node_type &a, const node_type &b)
 
virtual node_type addFacet (const node_type &a, const node_type &b, const node_type &c)
 
virtual bool contains (const point_view_type &p) const
 
virtual point_type getCenter () const
 
virtual real_type nSurface () const
 
virtual real_type nVolume () const
 
 StarPolytope ()
 
 StarPolytope (const point_view_type &center)
 
 StarPolytope (const point_view_type &a, const point_view_type &b, const point_view_type &c, const point_view_type &center)
 
 StarPolytope (const point_view_type &a, const point_view_type &b, const point_view_type &c, const point_view_type &d, const point_view_type &center)
 
- Public Member Functions inherited from Polytope< N, T >
virtual node_type addVertex (const point_view_type &p)
 
virtual bool closed (const node_type n) const
 
virtual bool closed () const
 
virtual real_type distance (const node_type u, const point_view_type &p) const
 
virtual void eraseFacet (const node_type u)
 
virtual unsigned int fill (MultiArrayView< N, unsigned int > &array, const unsigned int label, const point_view_type offset, const point_view_type scale) const
 
virtual unsigned int fill (MultiArrayView< N, unsigned int > &array, const unsigned int label, const point_view_type offset) const
 
virtual std::set< node_type > getConnected (const node_type u) const
 
virtual ArrayVector< node_type > litFacets (const point_view_type &p) const
 
virtual void operator= (const Polytope< N, T > &other)
 
 Polytope ()
 
 Polytope (const Polytope< N, T > &other)
 
virtual void tidyUp ()
 

Detailed Description

template<unsigned int N, class T>
class vigra::StarPolytope< N, T >

Specialization of the polytope to polytopes which forms a star domain.

Constructor & Destructor Documentation

Constructor creates an empty StarPolytope with its center a the orign.

StarPolytope ( const point_view_type center)

Copy constructor.

StarPolytope ( const point_view_type a,
const point_view_type b,
const point_view_type c,
const point_view_type center 
)

Constructor for the 2-dimensional case taking three vertices and the center.

StarPolytope ( const point_view_type a,
const point_view_type b,
const point_view_type c,
const point_view_type d,
const point_view_type center 
)

Constructor for the 3-dimensional case taking four vertices and the center.

Member Function Documentation

virtual point_type getCenter ( ) const
virtual

Get the center of the star domain.

virtual node_type addFacet ( const node_type &  a,
const node_type &  b 
)
virtual

Add a facet to a 2-dimensional polytope.

virtual node_type addFacet ( const node_type &  a,
const node_type &  b,
const node_type &  c 
)
virtual

Add a facet to a 3-dimensional polytope.

virtual bool contains ( const point_view_type p) const
virtual

Check if a point is inside the polytope.

Implements Polytope< N, T >.

Reimplemented in ConvexPolytope< N, T >, and ConvexPolytope< dimensions, double >.

virtual real_type nVolume ( ) const
virtual

Calculate the volume of the polytope.

Implements Polytope< N, T >.

virtual real_type nSurface ( ) const
virtual

Calculate the surface of the polytope.

Implements Polytope< N, T >.


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

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de)
Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany

html generated using doxygen and Python
vigra 1.11.0 (Fri May 19 2017)