![]() |
KSquare Utilities
|
Container object used to maintaining a list of pixel locations. More...
#include <Point.h>
Inheritance diagram for KKB::PointList:Public Types | |
| typedef PointList * | PointListPtr |
Public Types inherited from KKB::KKQueue< Point > | |
| typedef std::vector< Point * >::const_iterator | const_iterator |
| typedef std::vector< Point * >::iterator | iterator |
Public Member Functions | |
| PointList (const PointList &pointList) | |
| PointList (bool _owner) | |
| void | BoxCoordinites (kkint32 &minRow, kkint32 &minCol, kkint32 &maxRow, kkint32 &maxCol) |
| Point | CalculateCenterPoint () |
| float | ComputeSegmentLens (float heightFactor, float widthFactor) const |
| KKStr | ToDelStr (char del) const |
Public Member Functions inherited from KKB::KKQueue< Point > | |
| KKQueue (bool _owner=true) | |
| KKQueue (const KKQueue &q, bool _owner) | |
| Constructor, similar to the Copy Constructor except that you can control whether it duplicates the contents. More... | |
| virtual | ~KKQueue () |
| Virtual destructor; if owns its contents will also call the destructor on each one entry that it contains. More... | |
| virtual void | Add (EntryPtr _entry) |
| virtual void | AddFirst (EntryPtr _entry) |
| virtual void | AddQueue (const KKQueue &q) |
| Add the contents of a separate KKQueue container to this container. More... | |
| EntryPtr | BackOfQueue () const |
| void | DeleteContents () |
| void | DeleteEntry (EntryPtr _entry) |
| void | DeleteEntry (kkuint32 _idx) |
| KKQueue * | DuplicateListAndContents () const |
| Creates a new container including duplicating the contents, which also makes the new instance the owner of those contents. More... | |
| kkuint32 | FindTheKthElement (kkuint32 k, Functor pred) |
| EntryPtr | FrontOfQueue () const |
| EntryPtr | GetFirst () const |
| EntryPtr | GetLast () const |
| EntryPtr | IdxToPtr (kkuint32 idx) const |
| kkint32 | LocateEntry (EntryConstPtr _entry) const |
| EntryPtr | LookAtBack () const |
| EntryPtr | LookAtFront () const |
| bool | operator!= (const KKQueue< Point > &rightSide) const |
| returns False if NOT every entry in both containers point to the same elements More... | |
| KKQueue & | operator= (const KKQueue &q) |
| Assignment Operator. More... | |
| bool | operator== (const KKQueue< Point > &rightSide) const |
| Returns True if every entry in both containers point to the same elements. More... | |
| Point & | operator[] (kkuint32 i) const |
| bool | Owner () const |
| void | Owner (bool _owner) |
| virtual EntryPtr | PopFromBack () |
| virtual EntryPtr | PopFromFront () |
| kkint32 | PtrToIdx (EntryConstPtr _entry) const |
| virtual void | PushOnBack (EntryPtr _entry) |
| virtual void | PushOnFront (EntryPtr _entry) |
| kkint32 | QueueSize () const |
| void | RandomizeOrder () |
| Randomizes the order of the vector. More... | |
| void | RandomizeOrder (kkint64 seed) |
| void | RandomizeOrder (RandomNumGenerator &randomVariable) |
| Randomizes the order of the vector. More... | |
| virtual EntryPtr | RemoveFirst () |
| virtual EntryPtr | RemoveLast () |
| void | SetIdxToPtr (kkuint32 _idx, Point *_ptr) |
| void | SwapIndexes (size_t idx1, size_t idx2) |
Static Public Member Functions | |
| static PointListPtr | FromDelStr (const KKStr &s) |
Additional Inherited Members | |
Protected Member Functions inherited from KKB::KKQueue< Point > | |
| KKQueue (const KKQueue &q) | |
| Copy Constructor creating new instance; including duplicating contents if owner set to true. More... | |
Container object used to maintaining a list of pixel locations.
| typedef PointList* KKB::PointList::PointListPtr |
| PointList::PointList | ( | const PointList & | pointList | ) |
Definition at line 93 of file Point.cpp.
References PointList().
Referenced by PointList().
| PointList::PointList | ( | bool | _owner | ) |
Definition at line 105 of file Point.cpp.
References PointList().
Referenced by KKB::ContourFollower::CreateFourierDescriptorBySampling(), KKB::ContourFollower::CreatePointListFromFourier(), KKB::Raster::DeriveImageLength(), FromDelStr(), KKB::ContourFollower::GenerateContourList(), PointList(), and KKB::Raster::ThinContour().
| void PointList::BoxCoordinites | ( | kkint32 & | minRow, |
| kkint32 & | minCol, | ||
| kkint32 & | maxRow, | ||
| kkint32 & | maxCol | ||
| ) |
Definition at line 111 of file Point.cpp.
References KKB::Point::Col(), and KKB::Point::Row().
Referenced by KKB::ContourFollower::CreatePointListFromFourier().
| Point PointList::CalculateCenterPoint | ( | ) |
Definition at line 138 of file Point.cpp.
References KKB::Point::Col(), KKB::Point::Point(), and KKB::Point::Row().
| float PointList::ComputeSegmentLens | ( | float | heightFactor, |
| float | widthFactor | ||
| ) | const |
Definition at line 233 of file Point.cpp.
|
static |
Definition at line 176 of file Point.cpp.
References KKB::KKStr::ChopFirstChar(), KKB::KKStr::Concat(), KKB::KKStr::ExtractTokenInt(), KKB::KKStr::Find(), KKB::KKStr::FirstChar(), KKB::KKStr::KKStr(), KKB::KKStr::Len(), KKB::KKStr::operator=(), PointList(), KKB::KKStr::SubStrPart(), and KKB::KKStr::TrimLeft().
| KKStr PointList::ToDelStr | ( | char | del | ) | const |
Definition at line 156 of file Point.cpp.
References KKB::Point::Col(), KKB::KKStr::Concat(), and KKB::Point::Row().