Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
SketchSpace Class Reference#include <SketchSpace.h>
Detailed DescriptionHolds a collection of sketches of various types.All the sketches in a SketchSpace have the same dimensions (width and height). They are organized into pools, managed by SketchPool<T> instances. Each SketchSpace has a dual, called a ShapeSpace. Several standard SketchSpace/ShapeSpace pairs are built in to VisualRoutinesBehavior. The most basic is camSkS, the camera sketch space. Definition at line 27 of file SketchSpace.h.
Constructor & Destructor Documentation
Definition at line 15 of file SketchSpace.cc.
Definition at line 102 of file SketchSpace.cc.
never call this
Member Function Documentation
Definition at line 73 of file SketchSpace.h. Referenced by LineData::extractLine(), PointData::extractPoints(), and SketchDataRoot::getDualSpace().
Clears out viewable Sketches.
Definition at line 117 of file SketchSpace.cc. Referenced by MapBuilder::DoStart(), MapBuilder::executeRequest(), MapBuilder::processImage(), Lookout::processPointAtEvent(), and VRmixin::~VRmixin().
returns the width of contained images, in pixels
Definition at line 82 of file SketchSpace.h. Referenced by SketchData::at(), visops::edist(), Region::findBotBound(), Region::findCentralMoment(), BlobData::findCorners(), Region::findLeftBound(), Lookout::findLocationFor(), Region::findMoment(), Region::findRightBound(), Region::findTopBound(), Region::findXcoordFor(), Region::findYcoordFor(), SketchDataRoot::getWidth(), Region::isContained(), LineData::LineData(), Region::mostDistantPtFrom(), VRmixin::processSketchRequest(), Point::projectToGround(), SphereData::render(), PolygonData::render(), LineData::render(), Sketch::Sketch(), and visops::topHalfPlane().
returns the height of contained images, in pixels
Definition at line 84 of file SketchSpace.h. Referenced by SketchData::at(), visops::edist(), BlobData::findCorners(), Lookout::findLocationFor(), Region::findTopBound(), SketchDataRoot::getHeight(), visops::leftHalfPlane(), LineData::LineData(), VRmixin::processSketchRequest(), Point::projectToGround(), SphereData::render(), PolygonData::render(), LineData::render(), and Sketch::Sketch().
returns the number of pixels of images in this space
Definition at line 86 of file SketchSpace.h. Referenced by SketchDataRoot::getNumPixels(), and SketchIndices::trimBounds().
Definition at line 89 of file SketchSpace.h. Referenced by SketchSpace::getSketchListForGUI(), and VRmixin::~VRmixin().
creates idx if needed
Definition at line 29 of file SketchSpace.cc. Referenced by VRmixin::VRmixin().
creates idxN, idxS, idxE, and idxW if needed
Definition at line 39 of file SketchSpace.cc. Referenced by visops::bdist(), visops::neighborSum(), and SketchSpace::requireIdx8way().
creates idxNE, idxNW, idxSE, and idxSW, plus NSEW cases via requireIdx4way(), if needed
Definition at line 58 of file SketchSpace.cc. Referenced by visops::neighborSum().
frees the idx members
Definition at line 78 of file SketchSpace.cc. Referenced by SketchSpace::resize(), SketchSpace::~SketchSpace(), and VRmixin::~VRmixin().
change the size of sketches in this sketch space (discards all existing sketches)
Definition at line 88 of file SketchSpace.cc.
return the ShapeSpace-to-SketchSpace coordinate transformation matrix
Definition at line 107 of file SketchSpace.h. Referenced by EllipseData::render().
return the SketchSpace-to-ShapeSpace coordinate transformation matrix
Definition at line 110 of file SketchSpace.h.
set the ShapeSpace-to-SketchSpace coordinate transformation matrix
Definition at line 124 of file SketchSpace.cc. Referenced by SketchSpace::setTmat().
Definition at line 129 of file SketchSpace.cc.
Definition at line 138 of file SketchSpace.cc.
apply the ShapeSpace-to-SketchSpace coordinate transformation to a vector
Definition at line 145 of file SketchSpace.cc. Referenced by PointData::extractPoints(), PointData::render(), LocalizationParticleData::render(), EllipseData::render(), and LineData::setDrawCoords().
apply the SketchSpace-to-ShapeSpace coordinate transformation to a vector
Definition at line 151 of file SketchSpace.cc. Referenced by LineData::extractLine().
Returns the SketchPool of appropriate type for the calling Sketch.
Definition at line 127 of file SketchSpace.h. Referenced by Sketch::Sketch().
Returns the SketchPool of appropriate type for the calling Sketch.
Definition at line 128 of file SketchSpace.h.
Returns the SketchPool of appropriate type for the calling Sketch.
Definition at line 129 of file SketchSpace.h.
Returns the SketchPool of appropriate type for the calling Sketch.
Definition at line 130 of file SketchSpace.h.
Returns a string describing the shape-to-sketch transformation matrix.
Definition at line 165 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest().
Returns a string containing a list of all the sketches and their attributes.
Definition at line 175 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest().
Returns a pointer to the sketch with specified ID number; null if not found.
Definition at line 185 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest(). helper function to ensure indices of idx Sketches are proper
Definition at line 157 of file SketchSpace.cc. Referenced by SketchSpace::requireIdx(), SketchSpace::requireIdx4way(), and SketchSpace::requireIdx8way().
never call this
Member Data Documentation
name of this SketchSpace
Definition at line 29 of file SketchSpace.h. Referenced by SketchPoolRoot::getSpaceName().
pixels along x axis
Definition at line 32 of file SketchSpace.h. Referenced by SketchSpace::getWidth(), SketchSpace::requireIdx(), SketchSpace::requireIdx4way(), SketchSpace::requireIdx8way(), SketchSpace::resize(), SketchSpace::setIdx(), and SketchSpace::setTmat().
pixels along y axis
Definition at line 33 of file SketchSpace.h. Referenced by SketchSpace::getHeight(), SketchSpace::requireIdx(), SketchSpace::requireIdx4way(), SketchSpace::requireIdx8way(), SketchSpace::resize(), SketchSpace::setIdx(), and SketchSpace::setTmat().
total pixels = width * height
Definition at line 34 of file SketchSpace.h. Referenced by SketchSpace::getNumPixels(), and SketchSpace::resize().
transformation matrix for rendering shapes
Definition at line 35 of file SketchSpace.h. Referenced by SketchSpace::applyTmat(), SketchSpace::getTmat(), SketchSpace::getTmatForGUI(), and SketchSpace::setTmat().
inverse transformation matrix for extracting shapes
Definition at line 36 of file SketchSpace.h. Referenced by SketchSpace::applyTmatinv(), SketchSpace::getTmatinv(), and SketchSpace::setTmat().
Incremented with each new Sketch, to guarantee a unique ID.
Definition at line 38 of file SketchSpace.h.
Incremented each time SketchGUI refreshes the sketch/shape list.
Definition at line 39 of file SketchSpace.h. Referenced by SketchSpace::bumpRefreshCounter(), and SketchSpace::getRefreshCounter().
Pointer to the ShapeSpace associated with this SketchSpace.
Definition at line 41 of file SketchSpace.h. Referenced by SketchSpace::getDualSpace(), and SketchSpace::~SketchSpace().
Pool for one of the SketchData<T> classes.
Definition at line 45 of file SketchSpace.h. Referenced by SketchSpace::clear(), SketchSpace::dumpSpace(), SketchSpace::get_pool(), SketchSpace::getSketchListForGUI(), SketchSpace::resize(), and SketchSpace::retrieveSketch().
Pool for one of the SketchData<T> classes.
Definition at line 46 of file SketchSpace.h. Referenced by SketchSpace::clear(), SketchSpace::dumpSpace(), SketchSpace::get_pool(), SketchSpace::getSketchListForGUI(), SketchSpace::resize(), and SketchSpace::retrieveSketch().
Pool for one of the SketchData<T> classes.
Definition at line 47 of file SketchSpace.h. Referenced by SketchSpace::clear(), SketchSpace::dumpSpace(), SketchSpace::get_pool(), SketchSpace::getSketchListForGUI(), SketchSpace::resize(), and SketchSpace::retrieveSketch().
Pool for one of the SketchData<T> classes.
Definition at line 48 of file SketchSpace.h. Referenced by SketchSpace::clear(), SketchSpace::dumpSpace(), SketchSpace::get_pool(), SketchSpace::getSketchListForGUI(), SketchSpace::resize(), and SketchSpace::retrieveSketch().
The value assigned to out-of-bounds indices: numPixels, i.e., one beyond the last image pixel.
Definition at line 53 of file SketchSpace.h. Referenced by SketchSpace::resize(), SketchSpace::setIdx(), and Sketch::Sketch().
Definition at line 57 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), visops::leftHalfPlane(), SketchSpace::requireIdx(), and visops::topHalfPlane().
Definition at line 58 of file SketchSpace.h. Referenced by visops::bdist(), SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx4way().
Definition at line 59 of file SketchSpace.h. Referenced by visops::bdist(), visops::edge(), SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx4way().
Definition at line 60 of file SketchSpace.h. Referenced by visops::bdist(), visops::edge(), SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx4way().
Definition at line 61 of file SketchSpace.h. Referenced by visops::bdist(), SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx4way().
Definition at line 62 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx8way().
Definition at line 63 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx8way().
Definition at line 64 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx8way().
Definition at line 65 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx8way(). Socket and port info for communication with a sketch viewer GUI.
Definition at line 138 of file SketchSpace.h. Referenced by VRmixin::processSketchRequest(), VRmixin::rleEncodeSketch(), VRmixin::VRmixin(), and SketchSpace::~SketchSpace().
The documentation for this class was generated from the following files: |
DualCoding 4.0 |
Generated Thu Nov 22 00:54:07 2007 by Doxygen 1.5.4 |