vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::OffsetTable::PreImage Struct Reference

#include <perfect_spatial_hashing.h>

List of all members.

Public Member Functions

bool operator< (const PreImage &second) const
 PreImage (EntryCoordinate &at, std::vector< typename UniformGrid::CellCoordinate > *preimage)

Public Attributes

int cardinality
EntryCoordinate entry_index
std::vector< typename
UniformGrid::CellCoordinate > * 
pre_image

Detailed Description

template<class OBJECT_TYPE, class SCALAR_TYPE>
struct vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::OffsetTable::PreImage

This class represents the pre-image for a given entry in the offset table, that is the set $h_1^{-1}(q)={p \in S s.t. h_1(p)=q}$

Definition at line 677 of file perfect_spatial_hashing.h.


Constructor & Destructor Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::OffsetTable::PreImage::PreImage ( EntryCoordinate at,
std::vector< typename UniformGrid::CellCoordinate > *  preimage 
) [inline]

Default constructor.

Parameters:
[in] at The entry in the offset table where the cells in the preimage are mapped into.
[in] preimage The set of UniformGrid cells mapping to this entry.

Definition at line 684 of file perfect_spatial_hashing.h.


Member Function Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
bool vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::OffsetTable::PreImage::operator< ( const PreImage second  )  const [inline]

less-than operator: needed for sorting the preimage slots based on their cardinality.

Parameters:
second 
Returns:
true if and only if the cardinality of this preimage slot is greater than that of second.

Definition at line 696 of file perfect_spatial_hashing.h.


Member Data Documentation

template<class OBJECT_TYPE , class SCALAR_TYPE >
int vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::OffsetTable::PreImage::cardinality

The cardinality of the pre-image.

Definition at line 702 of file perfect_spatial_hashing.h.

template<class OBJECT_TYPE , class SCALAR_TYPE >
EntryCoordinate vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::OffsetTable::PreImage::entry_index

The index of the entry inside the offset table.

Definition at line 701 of file perfect_spatial_hashing.h.

template<class OBJECT_TYPE , class SCALAR_TYPE >
std::vector< typename UniformGrid::CellCoordinate >* vcg::PerfectSpatialHashing< OBJECT_TYPE, SCALAR_TYPE >::OffsetTable::PreImage::pre_image

The set of entries in the uniform grid whose image through $h_1$ is this entry.

Definition at line 700 of file perfect_spatial_hashing.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:04 2013