Homepage Demos Overview Downloads Tutorials Reference
Credits

SketchIndices Class Reference

#include <SketchIndices.h>

Inheritance diagram for SketchIndices:

Inheritance graph
[legend]
List of all members.

Detailed Description

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

Definition at line 18 of file SketchIndices.h.

Public Types

typedef hash_set< usint, hash<
usint >, equal_to< usint > > 
SketchIndicesTable
typedef SketchIndicesTable::const_iterator CI

Public Member Functions

 SketchIndices ()
 Constructor.
virtual ~SketchIndices ()
 Destructor.
const SketchIndices operator[] (const Sketch< usint > &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 SketchIndicesTable::const_iterator CI

Definition at line 21 of file SketchIndices.h.

typedef hash_set<usint, hash<usint>, equal_to<usint> > SketchIndicesTable

Definition at line 20 of file SketchIndices.h.


Constructor & Destructor Documentation

SketchIndices (  )  [inline]

Constructor.

Definition at line 26 of file SketchIndices.h.

virtual ~SketchIndices (  )  [inline, virtual]

Destructor.

Definition at line 29 of file SketchIndices.h.


Member Function Documentation

void addIndices ( const Sketch< bool > &  im  ) 

Adds indices of non-zero pixels.

Definition at line 39 of file SketchIndices.cc.

Referenced by visops::bdist().

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.

const SketchIndices operator[] ( const Sketch< usint > &  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.

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 3.0beta
Generated Wed Oct 4 00:02:31 2006 by Doxygen 1.4.7