Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
BaseData Class Reference#include <BaseData.h>
Inheritance diagram for BaseData:
![]() Detailed DescriptionBase class that all shape data classes inherit from, e.g., LineData, BlobData, etc.Definition at line 51 of file BaseData.h.
Constructor & Destructor Documentation
Member Function Documentation
Definition at line 86 of file BaseData.h. Referenced by TargetData::extractLineTarget(), DualCoding::operator<<(), SphereData::projectToGround(), and SphereData::render().
Definition at line 127 of file BaseData.cc. Referenced by EllipseData::EllipseData(), PolygonData::getCentroid(), BlobData::getCentroid(), TargetData::update_derived_properties(), and LineData::update_derived_properties().
Definition at line 89 of file BaseData.h. Referenced by TargetData::printParams(), SphereData::printParams(), PyramidData::printParams(), PointData::printParams(), LocalizationParticleData::printParams(), LineData::printParams(), EllipseData::printParams(), BrickData::printParams(), BlobData::printParams(), and AgentData::printParams().
Definition at line 90 of file BaseData.h. Referenced by TargetData::printParams(), SphereData::printParams(), PyramidData::printParams(), PointData::printParams(), LocalizationParticleData::printParams(), LineData::printParams(), EllipseData::printParams(), BrickData::printParams(), BlobData::printParams(), and AgentData::printParams().
Definition at line 91 of file BaseData.h. Referenced by BlobData::extractBlobs(), and BaseData::inheritFrom().
Definition at line 93 of file BaseData.h. Referenced by SphereData::printParams(), PyramidData::printParams(), PointData::printParams(), LineData::printParams(), EllipseData::printParams(), BrickData::printParams(), and AgentData::printParams().
Definition at line 96 of file BaseData.h. Referenced by BrickData::extractBrick(), BrickData::findBricksFromBlobs(), BlobData::findCorners(), SketchDataRoot::inheritFrom(), BaseData::inheritFrom(), TargetData::render(), PyramidData::render(), LineData::render(), and BrickData::render().
Definition at line 107 of file BaseData.cc.
Definition at line 112 of file BaseData.cc.
Definition at line 107 of file BaseData.h.
Definition at line 108 of file BaseData.h.
Definition at line 110 of file BaseData.h. Referenced by BaseData::getRendering(), TargetData::render(), SphereData::render(), PyramidData::render(), PointData::render(), LocalizationParticleData::render(), LineData::render(), EllipseData::render(), BrickData::render(), BlobData::render(), and AgentData::render().
Definition at line 117 of file BaseData.cc.
Definition at line 122 of file BaseData.cc.
Reimplemented in EllipseData, LineData, PointData, PolygonData, and TargetData. Definition at line 116 of file BaseData.h.
Confidence. returns confidence of Data. Reimpletemnted in PolygonData Reimplemented in PolygonData. Definition at line 120 of file BaseData.h. Referenced by BaseData::increaseConfidence(), BaseData::setConfidence(), and AgentData::updateParams().
Confidence. returns confidence of Data. Reimpletemnted in PolygonData Definition at line 182 of file BaseData.cc. Referenced by BaseData::increaseConfidence().
Confidence. returns confidence of Data. Reimpletemnted in PolygonData Definition at line 188 of file BaseData.cc.
Confidence. returns confidence of Data. Reimpletemnted in PolygonData Definition at line 192 of file BaseData.cc.
Confidence. returns confidence of Data. Reimpletemnted in PolygonData Definition at line 126 of file BaseData.h.
Confidence. returns confidence of Data. Reimpletemnted in PolygonData Definition at line 127 of file BaseData.h.
Type. Get the shape type.
Type. Get shape type name. Definition at line 134 of file BaseData.cc. Referenced by TargetData::printParams(), SphereData::printParams(), PyramidData::printParams(), PointData::printParams(), LocalizationParticleData::printParams(), LineData::printParams(), EllipseData::printParams(), BrickData::printParams(), BlobData::printParams(), and AgentData::printParams().
Test the shape type.
Definition at line 137 of file BaseData.cc. Referenced by BaseData::isSameTypeAs(). Test if shape types are the same. Test that two shapes are of same type. Definition at line 140 of file BaseData.cc. Referenced by TargetData::isMatchFor(), SphereData::isMatchFor(), PyramidData::isMatchFor(), PointData::isMatchFor(), LocalizationParticleData::isMatchFor(), LineData::isMatchFor(), EllipseData::isMatchFor(), BrickData::isMatchFor(), and BlobData::isMatchFor().
Color. Get the color. Definition at line 147 of file BaseData.h. Referenced by BaseData::getRendering(), SketchDataRoot::inheritFrom(), BaseData::inheritFrom(), BaseData::isSameColorAs(), SphereData::printParams(), PyramidData::printParams(), PointData::printParams(), LineData::printParams(), EllipseData::printParams(), BrickData::printParams(), BlobData::printParams(), AgentData::printParams(), TargetData::render(), PyramidData::render(), LineData::render(), and BrickData::render().
Set shape and rendering sketch color.
Reimplemented in PolygonData. Definition at line 147 of file BaseData.cc. Referenced by BlobData::BlobData(), BaseData::inheritFrom(), and BaseData::setColor().
Test if shape colors are the same.
Definition at line 144 of file BaseData.cc. Referenced by TargetData::isMatchFor(), SphereData::isMatchFor(), PyramidData::isMatchFor(), PolygonData::isMatchFor(), PointData::isMatchFor(), LocalizationParticleData::isMatchFor(), LineData::isMatchFor(), EllipseData::isMatchFor(), BrickData::isMatchFor(), and BlobData::isMatchFor(). Shapes match if their coordinates agree. DOES NOT Assume type and color already checked.
Implemented in AgentData, BlobData, BrickData, EllipseData, LineData, LocalizationParticleData, PointData, PolygonData, PyramidData, SphereData, and TargetData.
Combine two shapes by taking weighted average depending on confidence level. Shapes are admissible to the local map if they're large enough not to be noise. Reimplemented in BrickData, EllipseData, LineData, PolygonData, PyramidData, SphereData, and TargetData. Definition at line 168 of file BaseData.h. Update shape parameters after matching to another shape.
Implemented in AgentData, BlobData, BrickData, EllipseData, LineData, LocalizationParticleData, PointData, PolygonData, PyramidData, SphereData, and TargetData. returns if a point is inside the shape or not. Reimplemented by EllipseData, SphereData, PolygonData
Reimplemented in PolygonData, and SphereData. Definition at line 174 of file BaseData.h.
Implemented in AgentData, BlobData, BrickData, EllipseData, LineData, LocalizationParticleData, PointData, PolygonData, PyramidData, SphereData, and TargetData.
Mobility.
Definition at line 162 of file BaseData.cc. Referenced by SphereData::printParams(), LineData::printParams(), EllipseData::printParams(), and AgentData::printParams().
Definition at line 166 of file BaseData.cc. Referenced by LineData::getRendering(), PolygonData::setColor(), EllipseData::setOrientation(), AgentData::setOrientation(), SphereData::setRadius(), EllipseData::setSemimajor(), EllipseData::setSemiminor(), LineData::update_derived_properties(), PyramidData::updateParams(), PointData::updateParams(), and BrickData::updateParams().
return the centroid of the shape in point format
Implemented in AgentData, BlobData, BrickData, EllipseData, LineData, LocalizationParticleData, PointData, PolygonData, PyramidData, SphereData, and TargetData. Referenced by BaseData::getCentroidPtShape().
Definition at line 76 of file BaseData.cc.
Prints information about this shape.
Implemented in AgentData, BlobData, BrickData, EllipseData, LineData, LocalizationParticleData, PointData, PolygonData, PyramidData, SphereData, and TargetData.
Apply a transformation matrix to the shape.
Implemented in AgentData, BlobData, BrickData, EllipseData, LineData, LocalizationParticleData, PointData, PolygonData, PyramidData, SphereData, and TargetData.
Project to ground plane using given matrix.
Implemented in AgentData, BlobData, BrickData, EllipseData, LineData, LocalizationParticleData, PointData, PolygonData, PyramidData, SphereData, and TargetData. Update properties of the shape derived from endpoints or other basic parameters. Rendering. Returns a pointer to the rendering associated with the ShapeRoot object. If no such rendering exists, it is created. Reimplemented in LineData. Definition at line 171 of file BaseData.cc. Referenced by BrickData::extractBrick(), PyramidData::extractPyramid(), BlobData::findCornersDerivative(), BlobData::findCornersDiagonal(), and BlobData::findCornersShapeFit(). Render into a sketch space.
Implemented in AgentData, BlobData, BrickData, EllipseData, LineData, LocalizationParticleData, PointData, PolygonData, PyramidData, SphereData, and TargetData. Referenced by BaseData::getRendering(). Copy operator. Assumes "&other =? this" check is done by the sub class calling this operator.
Definition at line 82 of file BaseData.cc. Referenced by TargetData::operator=(), PolygonData::operator=(), PointData::operator=(), LocalizationParticleData::operator=(), and LineData::operator=().
Friends And Related Function Documentation
Definition at line 53 of file BaseData.h.
Definition at line 54 of file BaseData.h.
Member Data Documentation
Definition at line 57 of file BaseData.h. Referenced by ShapeRoot::addShape(), LineData::bottomPtShape(), ShapeRoot::deleteShape(), BlobData::findCorners(), BlobData::findCornersDerivative(), BlobData::findCornersDiagonal(), BlobData::findCornersShapeFit(), LineData::firstPtShape(), BaseData::getCentroidPtShape(), BaseData::getRefFrameType(), ShapeRoot::getSpace(), BaseData::getSpace(), ShapeSpace::importShape(), LineData::isBetween(), PolygonData::isInside(), LineData::leftPtShape(), LineData::LineData(), BaseData::operator=(), PointData::PointData(), TargetData::render(), SphereData::render(), PyramidData::render(), PolygonData::render(), PointData::render(), LocalizationParticleData::render(), LineData::render(), EllipseData::render(), BrickData::render(), BlobData::render(), AgentData::render(), LineData::rightPtShape(), LineData::secondPtShape(), LineData::setDrawCoords(), LineData::topPtShape(), and PolygonData::tryClosePolygon().
Definition at line 58 of file BaseData.h. Referenced by PyramidData::extractPyramid(), BaseData::getName(), BaseData::operator=(), and BaseData::setName().
Definition at line 59 of file BaseData.h. Referenced by BaseData::getTypeName(), BaseData::isType(), and BaseData::operator=().
Definition at line 60 of file BaseData.h. Referenced by ShapeSpace::addShape(), BaseData::getId(), BaseData::getViewableId(), ShapeRoot::isValid(), BaseData::operator=(), and ShapeRoot::sanity_check().
Definition at line 61 of file BaseData.h. Referenced by BaseData::getParentId(), BaseData::getViewableId(), ShapeSpace::importShape(), BaseData::operator=(), and BaseData::setParentId().
Id of the shape in the preceding space that gave rise to or was matched to this one.
Definition at line 62 of file BaseData.h. Referenced by BaseData::getLastMatchId(), ShapeSpace::importShape(), BaseData::operator=(), and BaseData::setLastMatchId().
Definition at line 63 of file BaseData.h. Referenced by ShapeSpace::importShape(), ShapeRoot::operator=(), BaseData::operator=(), ShapeRoot::ShapeRoot(), and ShapeRoot::~ShapeRoot().
Definition at line 64 of file BaseData.h. Referenced by BaseData::getViewableId(), BaseData::isViewable(), BaseData::operator=(), and BaseData::setViewable().
Definition at line 65 of file BaseData.h. Referenced by BaseData::getColor(), BaseData::operator=(), PolygonData::setColor(), and BaseData::setColor().
Confidence that this shape exists and isn't noise.
Definition at line 67 of file BaseData.h. Referenced by BaseData::decreaseConfidence(), BaseData::getConfidence(), BaseData::increaseConfidence(), TargetData::mergeWith(), SphereData::mergeWith(), PointData::mergeWith(), LineData::mergeWith(), BaseData::operator=(), BaseData::setConfidence(), TargetData::updateParams(), SphereData::updateParams(), PyramidData::updateParams(), PointData::updateParams(), EllipseData::updateParams(), BrickData::updateParams(), BlobData::updateParams(), and AgentData::updateParams(). True if this shape can move in the world.
Definition at line 68 of file BaseData.h. Referenced by AgentData::AgentData(), EllipseData::EllipseData(), BaseData::getMobile(), BaseData::operator=(), PolygonData::PolygonData(), BaseData::setMobile(), and SphereData::SphereData().
Definition at line 70 of file BaseData.h. Referenced by BaseData::deleteRendering(), LineData::getRendering(), BaseData::getRendering(), BaseData::operator=(), BaseData::setColor(), and BaseData::~BaseData().
The documentation for this class was generated from the following files: |
DualCoding 4.0 |
Generated Thu Nov 22 00:53:55 2007 by Doxygen 1.5.4 |