| Homepage | Demos | Overview | Downloads | Tutorials | 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 90 of file SketchSpace.cc.
never call this
Member Function Documentation
apply the ShapeSpace-to-SketchSpace coordinate transformation to a vector
Definition at line 133 of file SketchSpace.cc. Referenced by PointData::extractPoints(), PointData::render(), EllipseData::render(), and LineData::setDrawCoords().
apply the SketchSpace-to-ShapeSpace coordinate transformation to a vector
Definition at line 139 of file SketchSpace.cc. Referenced by LineData::extractLine().
Definition at line 92 of file SketchSpace.h. Referenced by SketchSpace::getSketchListForGUI(), and VRmixin::~VRmixin().
Clears out viewable Sketches.
Definition at line 105 of file SketchSpace.cc. Referenced by MapBuilder::DoStop(), MapBuilder::executeRequest(), Lookout::processPointAt(), and VRmixin::~VRmixin().
frees the idx members
Definition at line 80 of file SketchSpace.cc. Referenced by SketchSpace::~SketchSpace(), and VRmixin::~VRmixin().
Returns the SketchPool of appropriate type for the calling Sketch.
Definition at line 130 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 128 of file SketchSpace.h.
Returns the SketchPool of appropriate type for the calling Sketch.
Definition at line 127 of file SketchSpace.h. Referenced by Sketch::Sketch().
Definition at line 73 of file SketchSpace.h. Referenced by LineData::extractLine(), PointData::extractPoints(), and SketchDataRoot::getDualSpace().
returns the height of contained images, in pixels
Definition at line 87 of file SketchSpace.h. Referenced by SketchData::at(), visops::edist(), Lookout::findLocationFor(), 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 89 of file SketchSpace.h. Referenced by SketchDataRoot::getNumPixels(), and SketchIndices::trimBounds().
Returns a string containing a list of all the sketches and their attributes.
Definition at line 164 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest().
return the ShapeSpace-to-SketchSpace coordinate transformation matrix
Definition at line 107 of file SketchSpace.h. Referenced by EllipseData::render().
Returns a string describing the shape-to-sketch transformation matrix.
Definition at line 154 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest().
return the SketchSpace-to-ShapeSpace coordinate transformation matrix
Definition at line 110 of file SketchSpace.h.
returns the width of contained images, in pixels
Definition at line 85 of file SketchSpace.h. Referenced by SketchData::at(), visops::edist(), Region::findBotBound(), Region::findCentralMoment(), 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().
never call this
creates idx if needed
Definition at line 27 of file SketchSpace.cc. Referenced by VRmixin::VRmixin().
creates idxN, idxS, idxE, and idxW if needed
Definition at line 41 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 60 of file SketchSpace.cc. Referenced by visops::neighborSum().
Returns a pointer to the sketch with specified ID number; null if not found.
Definition at line 174 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest(). helper function to ensure indices of idx Sketches are proper
Definition at line 145 of file SketchSpace.cc. Referenced by SketchSpace::requireIdx(), SketchSpace::requireIdx4way(), and SketchSpace::requireIdx8way().
Definition at line 126 of file SketchSpace.cc.
Definition at line 117 of file SketchSpace.cc.
set the ShapeSpace-to-SketchSpace coordinate transformation matrix
Definition at line 112 of file SketchSpace.cc. Referenced by SketchSpace::setTmat().
Member Data Documentation
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(), and SketchSpace::retrieveSketch().
Pointer to the ShapeSpace associated with this SketchSpace.
Definition at line 41 of file SketchSpace.h. Referenced by SketchSpace::getDualSpace(), and SketchSpace::~SketchSpace().
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::setIdx(), and Sketch::Sketch().
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(), and SketchSpace::retrieveSketch().
pixels along y axis
Definition at line 33 of file SketchSpace.h. Referenced by SketchSpace::getHeight(), SketchSpace::requireIdx(), SketchSpace::requireIdx4way(), SketchSpace::requireIdx8way(), SketchSpace::setIdx(), and SketchSpace::setTmat().
Incremented with each new Sketch, to guarantee a unique ID.
Definition at line 38 of file SketchSpace.h.
Definition at line 57 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), visops::leftHalfPlane(), SketchSpace::requireIdx(), and visops::topHalfPlane().
Definition at line 60 of file SketchSpace.h. Referenced by visops::bdist(), visops::edge(), SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx4way().
Definition at line 58 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 59 of file SketchSpace.h. Referenced by visops::bdist(), visops::edge(), SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx4way().
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().
Definition at line 61 of file SketchSpace.h. Referenced by visops::bdist(), SketchSpace::freeIndexes(), visops::neighborSum(), and SketchSpace::requireIdx4way().
total pixels = width * height
Definition at line 34 of file SketchSpace.h. Referenced by SketchSpace::getNumPixels().
Incremented each time SketchGUI refreshes the sketch/shape list.
Definition at line 39 of file SketchSpace.h. Referenced by SketchSpace::bumpRefreshCounter(), and SketchSpace::getRefreshCounter().
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().
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(), 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(), and SketchSpace::retrieveSketch(). 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().
pixels along x axis
Definition at line 32 of file SketchSpace.h. Referenced by SketchSpace::getWidth(), SketchSpace::requireIdx(), SketchSpace::requireIdx4way(), SketchSpace::requireIdx8way(), SketchSpace::setIdx(), and SketchSpace::setTmat().
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 |