Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SketchIndices Class Reference

Table of indices of sketch elements; parent of the Region class. More...

#include <SketchIndices.h>

Inheritance diagram for SketchIndices:

Detailed Description

Table of indices of sketch elements; parent of the Region class.

Definition at line 20 of file SketchIndices.h.

List of all members.

Public Types

typedef
std::tr1::unordered_set< uint
SketchIndicesTable
typedef
SketchIndicesTable::const_iterator 
CI

Public Member Functions

 SketchIndices ()
 Constructor.
virtual ~SketchIndices ()
 Destructor.
const SketchIndices operator[] (const Sketch< uint > &indirection) const
const SketchIndices operator+ (const SketchIndices &other) const
const SketchIndices operator- (const SketchIndices &other) const
void addIndices (const Sketch< bool > &im)
 Adds indices of non-zero pixels.
void trimBounds (const SketchSpace &space)
 Removes any indices from SketchIndices which are outside the bounds of the SketchSpace.
Sketch< boolgetRendering (SketchSpace &space) const
 Renders the indices as a Sketch<bool>

Public Attributes

SketchIndicesTable table

Member Typedef Documentation

typedef SketchIndicesTable::const_iterator CI

Definition at line 27 of file SketchIndices.h.

typedef std::tr1::unordered_set<uint> SketchIndicesTable

Definition at line 23 of file SketchIndices.h.


Constructor & Destructor Documentation

SketchIndices (  ) 

Constructor.

Definition at line 32 of file SketchIndices.h.

virtual ~SketchIndices (  )  [virtual]

Destructor.

Definition at line 35 of file SketchIndices.h.


Member Function Documentation

void addIndices ( const Sketch< bool > &  im  ) 

Adds indices of non-zero pixels.

Definition at line 40 of file SketchIndices.cc.

Referenced by visops::bdist().

Sketch< bool > getRendering ( SketchSpace space  )  const

Renders the indices as a Sketch<bool>

Definition at line 56 of file SketchIndices.cc.

const SketchIndices operator+ ( const SketchIndices other  )  const

Returns the result of adding the elements of another SketchIndices to the current SketchIndices

Definition at line 19 of file SketchIndices.cc.

const SketchIndices operator- ( const SketchIndices other  )  const

Returns the result of removing the elements of another SketchIndices from the current SketchIndices. This is much more computationally expensive than addition, so try to minimize usage by distribution law: x-y-z=x-(y+z)

Definition at line 26 of file SketchIndices.cc.

const SketchIndices operator[] ( const Sketch< uint > &  indirection  )  const

Operator for indirection based on passed in Sketch. Returns a new SketchIndices based on applying the indirection.

Definition at line 11 of file SketchIndices.cc.

void trimBounds ( const SketchSpace space  ) 

Removes any indices from SketchIndices which are outside the bounds of the SketchSpace.

Definition at line 48 of file SketchIndices.cc.

Referenced by visops::bdist().


Member Data Documentation


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

DualCoding 5.1CVS
Generated Mon May 9 04:56:31 2016 by Doxygen 1.6.3