Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SketchIndices Class Reference

#include <SketchIndices.h>

Inheritance diagram for SketchIndices:

List of all members.


Detailed Description

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

Definition at line 16 of file SketchIndices.h.


Public Types

typedef __gnu_cxx::hash_set
< uint, __gnu_cxx::hash< uint >,
std::equal_to< 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.

Public Attributes

SketchIndicesTable table

Member Typedef Documentation

typedef __gnu_cxx::hash_set<uint, __gnu_cxx::hash<uint>, std::equal_to<uint> > SketchIndicesTable

Definition at line 18 of file SketchIndices.h.

typedef SketchIndicesTable::const_iterator CI

Definition at line 19 of file SketchIndices.h.


Constructor & Destructor Documentation

SketchIndices (  )  [inline]

Constructor.

Definition at line 24 of file SketchIndices.h.

virtual ~SketchIndices (  )  [inline, virtual]

Destructor.

Definition at line 27 of file SketchIndices.h.


Member Function Documentation

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 10 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 18 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 25 of file SketchIndices.cc.

void addIndices ( const Sketch< bool > &  im  ) 

Adds indices of non-zero pixels.

Definition at line 39 of file SketchIndices.cc.

Referenced by visops::bdist().

void trimBounds ( const SketchSpace space  ) 

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

Definition at line 47 of file SketchIndices.cc.

Referenced by visops::bdist().


Member Data Documentation


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

DualCoding 4.0
Generated Thu Nov 22 00:54:06 2007 by Doxygen 1.5.4