Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
SketchDataRoot Class ReferenceParent class for SketchData<T> More...
Inheritance diagram for SketchDataRoot:
Detailed DescriptionParent class for SketchData<T> Definition at line 21 of file SketchDataRoot.h.
Constructor & Destructor Documentation
Definition at line 66 of file SketchDataRoot.h.
Definition at line 72 of file SketchDataRoot.h.
never call this Member Function Documentation
Returns the current color assigned to the sketch; only used for rendering Sketch<bool> Definition at line 108 of file SketchDataRoot.h. Referenced by SketchDataRoot::inheritFrom(), and BaseData::inheritFrom().
Return the sketch's current colormap setting. Definition at line 118 of file SketchDataRoot.h. Referenced by SketchDataRoot::inheritFrom().
Returns the ShapeSpace associated with the SketchSpace for this Sketch. Definition at line 18 of file SketchDataRoot.cc.
Width and height of sketches in this space. Definition at line 21 of file SketchDataRoot.cc. Referenced by SketchData< T >::at(), SketchDataRoot::saveBuffer(), and SketchData< T >::savePixels().
Return the id of this sketch. Definition at line 81 of file SketchDataRoot.h. Referenced by SketchDataRoot::getViewableId().
Return the name of a sketch as a string. Definition at line 124 of file SketchDataRoot.h.
Width and height of sketches in this space. Definition at line 22 of file SketchDataRoot.cc. Referenced by SketchData< T >::savePixels().
Return the id of this sketch's parent; value is zero for parentless sketches. Definition at line 84 of file SketchDataRoot.h. Referenced by SketchDataRoot::getViewableId().
Returns the reference count of the sketch; should always be positive in user code. Definition at line 105 of file SketchDataRoot.h.
Returns the SketchSpace that owns the pool containing this SketchData object. Definition at line 75 of file SketchDataRoot.h. Referenced by VRmixin::encodeSketch().
Return the type of data stored in this sketch. Virtual function overridden by each SketchData<T> class. Implemented in SketchData< T >, SketchData< uchar >, SketchData< bool >, SketchData< DualCoding::uchar >, SketchData< skindex >, SketchData< T >, SketchData< T >, SketchData< T >, SketchData< T >, SketchData< T >, and SketchData< T >. Referenced by SketchDataRoot::inheritFrom(), and SketchDataRoot::saveBuffer().
Return the id of the closest viewable ancestor; will be the sketch's own id if it's viewable. Definition at line 90 of file SketchDataRoot.h. Referenced by SketchDataRoot::inheritFrom(), and BaseData::inheritFrom().
Width and height of sketches in this space. Definition at line 20 of file SketchDataRoot.cc. Referenced by SketchData< T >::at(), SketchDataRoot::indexOf(), SketchDataRoot::indexX(), SketchDataRoot::indexY(), SketchDataRoot::saveBuffer(), and SketchData< T >::savePixels().
Converts (x,y) into a sketch index. Definition at line 162 of file SketchDataRoot.h.
Convert an index to a Point, using TmatInv. Definition at line 61 of file SketchDataRoot.cc.
X coordinate encoded by sketch index. Definition at line 153 of file SketchDataRoot.h. Referenced by SketchDataRoot::indexPoint().
Y coordinate encoded by sketch index. Definition at line 156 of file SketchDataRoot.h. Referenced by SketchDataRoot::indexPoint().
Set parentId and inherit color and colormap properties from a parent sketch. Definition at line 38 of file SketchDataRoot.cc.
Set parentId and inherit color and colormap properties from a parent sketch. Definition at line 33 of file SketchDataRoot.cc.
Set parentId and inherit color and colormap properties from a parent sketch. Definition at line 24 of file SketchDataRoot.cc.
Returns true if the sketch is currently retained. Definition at line 102 of file SketchDataRoot.h.
Returns true if the sketch is currently viewable by the SketchGUI. Definition at line 93 of file SketchDataRoot.h. Referenced by SketchDataRoot::getViewableId().
Make a sketch non-viewable and change its name; used by NEW_SKETCH_N macro. Definition at line 48 of file SketchDataRoot.cc.
never call this
Sets or clears the retain bit, which prevents a sketch from being reclaimed even if its reference count goes to zero; such a sketch may still be retrieved via GET_SKETCH. Definition at line 99 of file SketchDataRoot.h.
Save a sketch to a buffer; used in the SketchGUI interface. Definition at line 71 of file SketchDataRoot.cc. Referenced by VRmixin::encodeSketch().
handle copying pixels to buffer Implemented in SketchData< T >, SketchData< uchar >, SketchData< bool >, SketchData< DualCoding::uchar >, SketchData< skindex >, and SketchData< T >. Referenced by SketchDataRoot::saveBuffer().
Set the color of the sketch. Definition at line 57 of file SketchDataRoot.cc.
Set the color of the sketch. Definition at line 53 of file SketchDataRoot.cc.
Set the color of the sketch. Definition at line 112 of file SketchDataRoot.h. Referenced by SketchDataRoot::inheritFrom(), and SketchDataRoot::setColor().
Change the colormap of a sketch. Definition at line 121 of file SketchDataRoot.h. Referenced by SketchDataRoot::inheritFrom().
Change the name of a sketch. Note that since the name is actually stored in the SketchData object, all Sketch objects pointing to this sketch will be affected. Definition at line 127 of file SketchDataRoot.h. Referenced by SketchDataRoot::N(), and SketchDataRoot::V().
Set the parent id of a sketch; normally used only inside visops functions. Definition at line 87 of file SketchDataRoot.h. Referenced by SketchDataRoot::inheritFrom().
Sets whether the sketch is viewabile by the SketchGUI. Definition at line 96 of file SketchDataRoot.h. Referenced by SketchDataRoot::N(), and SketchDataRoot::V().
Make a sketch viewable and change its name; used by NEW_SKETCH macro. Definition at line 43 of file SketchDataRoot.cc. Friends And Related Function Documentation
Definition at line 61 of file SketchDataRoot.h.
Definition at line 62 of file SketchDataRoot.h.
Definition at line 60 of file SketchDataRoot.h.
Definition at line 63 of file SketchDataRoot.h. Member Data Documentation
True if we've tried to clear this sketch but the SketchGUI was looking at it. Definition at line 48 of file SketchDataRoot.h. Color to use for displaying this sketch. Only meaningful for Sketch<bool> but info is preserved for inheritance by children or in case we coerce bool to int or float and then back to bool. Definition at line 53 of file SketchDataRoot.h. Referenced by SketchDataRoot::getColor(), and SketchDataRoot::setColor().
Which color map to use; default is to use the robot's own color table. Other tables are used for displaying grayscale images, or scaled quantities like distance or area using a continuous color scale from red to blue. Definition at line 58 of file SketchDataRoot.h. Referenced by SketchDataRoot::getColorMap(), SketchDataRoot::setColorMap(), and SketchData< T >::SketchData().
Sketch-specific integer ID, for unique identification. Definition at line 30 of file SketchDataRoot.h. Referenced by SketchDataRoot::getId().
Name of this sketch. Definition at line 27 of file SketchDataRoot.h. Referenced by SketchDataRoot::getName(), and SketchDataRoot::setName().
Integer ID of the "parent" Sketch, 0 if no parent; used in GUI. Definition at line 33 of file SketchDataRoot.h. Referenced by SketchDataRoot::getParentId(), and SketchDataRoot::setParentId().
Reference count for the sketch. When SketchPool detects this as 0, it may reuse it. Definition at line 36 of file SketchDataRoot.h. Referenced by SketchDataRoot::getRefcount().
Last time this sketch was included in a sketch list sent to the SketchGUI. Definition at line 45 of file SketchDataRoot.h. If true, don't garbage collect this sketch when refcount is zero, so it can still be retrieved by GET_SKETCH. Definition at line 39 of file SketchDataRoot.h. Referenced by SketchDataRoot::isRetained(), and SketchDataRoot::retain().
The SketchSpace that owns the pool containing this SketchData object. Definition at line 24 of file SketchDataRoot.h. Referenced by SketchData< T >::at(), SketchDataRoot::getDualSpace(), SketchDataRoot::getHeight(), SketchDataRoot::getNumPixels(), SketchDataRoot::getSpace(), SketchDataRoot::indexPoint(), and SketchData< skindex >::operator()(). True if the Sketch is currently viewable via the SketchGUI. Definition at line 42 of file SketchDataRoot.h. Referenced by SketchDataRoot::isViewable(), and SketchDataRoot::setViewable(). 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 |