Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
SketchSpace Class ReferenceHolds a collection of sketches of various types. More...
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 16 of file SketchSpace.cc.
Definition at line 106 of file SketchSpace.cc.
never call this Member Function Documentation
apply the ShapeSpace-to-SketchSpace coordinate transformation to a vector Definition at line 152 of file SketchSpace.cc. Referenced by PointData::extractPoints(), PointData::render(), NaughtData::render(), LocalizationParticleData::render(), EllipseData::render(), LineData::setDrawCoords(), and LineData::splitLine().
apply the SketchSpace-to-ShapeSpace coordinate transformation to a vector Definition at line 156 of file SketchSpace.cc. Referenced by LineData::houghExtractLines().
Definition at line 91 of file SketchSpace.h. Referenced by SketchSpace::getSketchListForGUI(), and VRmixin::~VRmixin().
Clears out viewable Sketches, and also retained sketches if argument is true. Definition at line 123 of file SketchSpace.cc. Referenced by VRmixin::~VRmixin().
dumps contents of sketch space Definition at line 114 of file SketchSpace.cc.
frees the idx members Definition at line 80 of file SketchSpace.cc. Referenced by SketchSpace::resize(), SketchSpace::~SketchSpace(), and VRmixin::~VRmixin().
Returns the SketchPool of appropriate type for the calling Sketch. Definition at line 135 of file SketchSpace.h.
Returns the SketchPool of appropriate type for the calling Sketch. Definition at line 134 of file SketchSpace.h.
Returns the SketchPool of appropriate type for the calling Sketch. Definition at line 133 of file SketchSpace.h.
Returns the SketchPool of appropriate type for the calling Sketch. Definition at line 132 of file SketchSpace.h.
Returns the SketchPool of appropriate type for the calling Sketch. Definition at line 131 of file SketchSpace.h.
Returns the SketchPool of appropriate type for the calling Sketch. Definition at line 130 of file SketchSpace.h. Referenced by Sketch< T >::Sketch().
Definition at line 75 of file SketchSpace.h. Referenced by PointData::extractPoints(), SketchDataRoot::getDualSpace(), LineData::houghExtractLines(), and SketchDataRoot::indexPoint().
returns the height of contained images, in pixels Definition at line 86 of file SketchSpace.h. Referenced by SketchData< T >::at(), visops::boundaryPoints(), visops::ebdist(), BlobData::findCorners(), Region::findTopBound(), SketchDataRoot::getNumPixels(), LineData::LineData(), BlobData::new_blob(), VRmixin::processSketchRequest(), SkeletonData::projectToGround(), Point::projectToGround(), MarkerData::projectToGround(), AprilTagData::projectToGround(), visops::radiate(), SphereData::render(), PolygonData::render(), LineData::renderOnTo(), and Sketch< T >::Sketch().
returns the number of pixels of images in this space Definition at line 88 of file SketchSpace.h. Referenced by SketchIndices::trimBounds().
Definition at line 90 of file SketchSpace.h. Referenced by SketchPoolRoot::getRefreshCounter().
Returns a string containing a list of all the sketches and their attributes. Definition at line 178 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest().
return the ShapeSpace-to-SketchSpace coordinate transformation matrix Definition at line 109 of file SketchSpace.h. Referenced by EllipseData::render().
Returns a string describing the shape-to-sketch transformation matrix. Definition at line 168 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest().
return the SketchSpace-to-ShapeSpace coordinate transformation matrix Definition at line 112 of file SketchSpace.h. Referenced by SketchDataRoot::indexPoint().
returns the width of contained images, in pixels Definition at line 84 of file SketchSpace.h. Referenced by SketchData< T >::at(), visops::boundaryPoints(), visops::ebdist(), Region::findBotBound(), Region::findCentralMoment(), BlobData::findCorners(), Region::findLeftBound(), Region::findMoment(), Region::findRightBound(), Region::findTopBound(), Region::findXcoordFor(), Region::findYcoordFor(), SketchDataRoot::getHeight(), Region::isContained(), LineData::LineData(), Region::mostDistantPtFrom(), BlobData::new_blob(), SketchData< skindex >::operator()(), VRmixin::processSketchRequest(), SkeletonData::projectToGround(), Point::projectToGround(), MarkerData::projectToGround(), AprilTagData::projectToGround(), visops::radiate(), SphereData::render(), PolygonData::render(), LineData::renderOnTo(), and Sketch< T >::Sketch().
never call this
creates idx if needed Definition at line 31 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(), and SketchSpace::requireIdx8way().
creates idxNE, idxNW, idxSE, and idxSW, plus NSEW cases via requireIdx4way(), if needed Definition at line 60 of file SketchSpace.cc.
change the size of sketches in this sketch space (discards all existing sketches) Definition at line 90 of file SketchSpace.cc.
Returns a pointer to the sketch with specified ID number; null if not found. Definition at line 190 of file SketchSpace.cc. Referenced by VRmixin::processSketchRequest().
helper function to ensure indices of idx Sketches are proper Definition at line 160 of file SketchSpace.cc. Referenced by SketchSpace::requireIdx(), SketchSpace::requireIdx4way(), and SketchSpace::requireIdx8way().
Definition at line 147 of file SketchSpace.cc. Scale and then translate shape space to sketch space coordinates. Definition at line 142 of file SketchSpace.cc.
set the ShapeSpace-to-SketchSpace coordinate transformation matrix Definition at line 132 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(), SketchSpace::resize(), and SketchSpace::retrieveSketch().
Pointer to the ShapeSpace associated with this SketchSpace. Definition at line 41 of file SketchSpace.h. Referenced by SketchSpace::getDualSpace(), SketchSpace::setTmat(), and SketchSpace::~SketchSpace().
The value assigned to out-of-bounds indices: numPixels, i.e., one beyond the last image pixel. Definition at line 55 of file SketchSpace.h. Referenced by SketchSpace::resize(), SketchSpace::setIdx(), and Sketch< T >::Sketch().
Pool for one of the SketchData<T> classes. Definition at line 49 of file SketchSpace.h. Referenced by SketchSpace::clear(), SketchSpace::dumpSpace(), SketchSpace::get_pool(), SketchSpace::getSketchListForGUI(), SketchSpace::resize(), 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::resize(), and SketchSpace::setIdx().
Incremented with each new Sketch, to guarantee a unique ID. Definition at line 38 of file SketchSpace.h. Definition at line 59 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), and SketchSpace::requireIdx(). Definition at line 62 of file SketchSpace.h. Referenced by visops::bdist(), SketchSpace::freeIndexes(), and SketchSpace::requireIdx4way(). Definition at line 60 of file SketchSpace.h. Referenced by visops::bdist(), SketchSpace::freeIndexes(), and SketchSpace::requireIdx4way(). Definition at line 64 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), and SketchSpace::requireIdx8way(). Definition at line 65 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), and SketchSpace::requireIdx8way(). Definition at line 61 of file SketchSpace.h. Referenced by visops::bdist(), SketchSpace::freeIndexes(), and SketchSpace::requireIdx4way(). Definition at line 66 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), and SketchSpace::requireIdx8way(). Definition at line 67 of file SketchSpace.h. Referenced by SketchSpace::freeIndexes(), and SketchSpace::requireIdx8way(). Definition at line 63 of file SketchSpace.h. Referenced by visops::bdist(), SketchSpace::freeIndexes(), and SketchSpace::requireIdx4way().
name of this SketchSpace Definition at line 29 of file SketchSpace.h. Referenced by SketchPoolRoot::getSpaceName().
total pixels = width * height Definition at line 34 of file SketchSpace.h. Referenced by SketchSpace::getNumPixels(), and SketchSpace::resize().
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(), 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().
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(). Socket and port info for communication with a sketch viewer GUI. Definition at line 143 of file SketchSpace.h. Referenced by VRmixin::encodeSketch(), VRmixin::processSketchRequest(), 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::resize(), and SketchSpace::setIdx().
Pool for one of the SketchData<T> classes. Definition at line 50 of file SketchSpace.h. Referenced by SketchSpace::clear(), SketchSpace::dumpSpace(), SketchSpace::get_pool(), SketchSpace::getSketchListForGUI(), SketchSpace::resize(), and SketchSpace::retrieveSketch(). 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 |